Skip to content

Commit

Permalink
Fix Rubocop errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kigster committed Jul 23, 2024
1 parent 42e6a8b commit 7540411
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/simplefeed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Hashie.logger = Logger.new(nil)

::Dir.glob(::File.expand_path('../simplefeed/*.rb', __FILE__)).each { |f| require_relative(f) }
::Dir.glob(::File.expand_path('../simplefeed/*.rb', __FILE__)).sort.each { |f| require_relative(f) }

require 'simplefeed/providers/redis'
require 'simplefeed/dsl'
Expand Down
2 changes: 1 addition & 1 deletion lib/simplefeed/providers/redis/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def initialize(opts)
end

if redis_proc
self.pool = ::ConnectionPool.new(size: (opts[:pool_size] || 2)) do
self.pool = ::ConnectionPool.new(size: opts[:pool_size] || 2) do
redis_proc.call
end
end
Expand Down
8 changes: 2 additions & 6 deletions spec/simplefeed/providers/serialization/key_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,11 @@
let(:namespace) { :poo }

let(:meta_key_transformer) do
->(consumer) do
consumer.id
end
lambda(&:id)
end

let(:data_key_transformer) do
->(consumer) do
consumer.zipcode
end
lambda(&:zipcode)
end

context '#key_params' do
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
require 'simple_feed'
require 'rspec/its'

::Dir.glob(::File.expand_path('../support/*.rb', __FILE__)).each do |f|
::Dir.glob(::File.expand_path('../support/*.rb', __FILE__)).sort.each do |f|
require_relative(f)
end

Expand Down

0 comments on commit 7540411

Please sign in to comment.