Skip to content

Commit

Permalink
Installed Rubocop and SimpleCov for code coverage and style check
Browse files Browse the repository at this point in the history
  • Loading branch information
EC2 Default User committed Aug 2, 2017
1 parent 2b7eafe commit 51782e9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
AllCops:
Exclude:
- 'vendor/**/*'
- 'spec/fixtures/**/*'
- 'tmp/**/*'
- 'config/**/*'
- 'config/puma*'
- 'bin/*'
- 'app/mailers/*'
- 'db/**/*'
6 changes: 4 additions & 2 deletions config/initializers/redis.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
module UrlLookupCache
class << self
def redis
REDIS_INSTANCE_LIST.each do |key, redis_instance|
redis_instance[:object] ||= Redis.new(:url => (redis_instance[:url] || 'redis://127.0.0.1:6379'))
REDIS_INSTANCE_LIST.each do |_key, redis_instance|
redis_instance[:object] ||= Redis.new(
:url => (redis_instance[:url] || 'redis://127.0.0.1:6379')
)
end
REDIS_INSTANCE_LIST
end
Expand Down

0 comments on commit 51782e9

Please sign in to comment.