Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump thread gem to 0.1.7 #115

Merged
merged 6 commits into from
Apr 9, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: ruby
rvm:
- 2.2.0
- 2.1.0
- 2.2
- 2.1
- 2.0.0
- 1.9.3
2 changes: 1 addition & 1 deletion lib/sneakers/queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def subscribe(worker)
# has the same configuration as the worker. Also pass along the exchange and
# queue in case the handler requires access to them (for things like binding
# retry queues, etc).
handler_klass = worker.opts[:handler] || Sneakers::CONFIG[:handler]
handler_klass = worker.opts[:handler] || Sneakers::CONFIG.fetch(:handler)
handler = handler_klass.new(@channel, queue, worker.opts)

@consumer = queue.subscribe(:block => false, :manual_ack => @opts[:ack]) do | delivery_info, metadata, msg |
Expand Down
2 changes: 1 addition & 1 deletion sneakers.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
gem.require_paths = ['lib']
gem.add_dependency 'serverengine', '~> 1.5.5'
gem.add_dependency 'bunny', '~> 1.7.0'
gem.add_dependency 'thread', '0.1.5'
gem.add_dependency 'thread', '~> 0.1.7'
gem.add_dependency 'thor'

gem.add_development_dependency 'rr'
Expand Down
6 changes: 2 additions & 4 deletions spec/sneakers/queue_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@


describe Sneakers::Queue do
before do
Sneakers.configure
end

let :queue_vars do
{
:prefetch => 25,
Expand All @@ -21,6 +17,8 @@
end

before do
Sneakers.configure

@mkbunny = Object.new
@mkchan = Object.new
@mkex = Object.new
Expand Down