Skip to content

Commit

Permalink
Turns out the v2 line of listen gem is based on celluloid gem which o…
Browse files Browse the repository at this point in the history
…nly runs under Ruby 1.9 so reverting to v1 of listen for backwards compatiblity with Ruby 1.8
  • Loading branch information
Vladislav Gangan committed Mar 10, 2014
1 parent ef963fd commit e88f655
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions emory.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ Gem::Specification.new do |s|
s.test_files = Dir.glob("{spec,test}/**/*.rb")
s.require_paths = ["lib"]

s.add_development_dependency 'rspec', '~> 2.10'
s.add_development_dependency 'simplecov', '~> 0.6.4' if RUBY_VERSION =~ /1.9/
s.add_development_dependency 'rspec', '~> 2.14.1'
s.add_development_dependency 'simplecov', '0.8.2' if RUBY_VERSION =~ /1.9/
s.add_development_dependency 'rake'

s.add_runtime_dependency 'logging'
s.add_runtime_dependency 'listen'
s.add_runtime_dependency 'logging', '1.8.2'
s.add_runtime_dependency 'listen', '1.3.1'
end
2 changes: 1 addition & 1 deletion lib/emory/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def configure_listeners(config, config_location)
listener.ignore(teleport.ignore) unless teleport.ignore.nil?
listener.filter(teleport.filter) unless teleport.filter.nil?
listener.change(&get_handler_callback(teleport.handler))
listener.start(false)
listener.start
end
end

Expand Down
4 changes: 2 additions & 2 deletions spec/emory/runner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module Emory
mock_listener.should_receive(:ignore).with(teleport.ignore)
mock_listener.should_receive(:filter).with(teleport.filter)
mock_listener.should_receive(:change)
mock_listener.should_receive(:start).with(false)
mock_listener.should_receive(:start)

Thread.should_receive(:stop).once

Expand Down Expand Up @@ -60,7 +60,7 @@ module Emory
mock_listener.should_receive(:ignore).with(teleport.ignore)
mock_listener.should_receive(:filter).with(teleport.filter)
mock_listener.should_receive(:change)
mock_listener.should_receive(:start).with(false)
mock_listener.should_receive(:start)

Thread.should_receive(:stop).once

Expand Down

0 comments on commit e88f655

Please sign in to comment.