Skip to content

Commit

Permalink
Enable Lint/UriEscapeUnescape
Browse files Browse the repository at this point in the history
  • Loading branch information
bronzdoc committed Nov 22, 2018
1 parent 818cc50 commit 7a79c76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .rubocop-bundler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Lint/AssignmentInCondition:
Lint/UnusedMethodArgument:
Enabled: false

Lint/UriEscapeUnescape:
Enabled: true


# Style

Layout/EndAlignment:
Expand Down
2 changes: 1 addition & 1 deletion lib/gemstash/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def db
db = if RUBY_PLATFORM == "java"
Sequel.connect("jdbc:sqlite:#{db_path}", config.database_connection_config)
else
Sequel.connect("sqlite://#{URI.escape(db_path)}", config.database_connection_config)
Sequel.connect("sqlite://#{CGI.escape(db_path)}", config.database_connection_config)
end
when "postgres", "mysql", "mysql2"
db = Sequel.connect(config[:db_url], config.database_connection_config)
Expand Down

0 comments on commit 7a79c76

Please sign in to comment.