Skip to content

Commit

Permalink
reorganize gem dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
e2 committed Dec 20, 2014
1 parent ee63ec4 commit 4b98092
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,5 +1,5 @@
language: ruby
bundler_args: --without tool
bundler_args: --without development
rvm:
- 1.9.3
- 2.0.0
Expand Down
42 changes: 14 additions & 28 deletions Gemfile
@@ -1,48 +1,34 @@
source 'https://rubygems.org'

gemspec
gemspec development_group: :gem_build_tools

require 'rbconfig'

case RbConfig::CONFIG['target_os']

when /mswin|mingw|cygwin/i
gem 'wdm', '>= 0.1.0'
Kernel.warn 'NOTE: Known issues for your platform:'
Kernel.warn ' * celluloid-io dns resovler bug causes TCP adapter to fail'
Kernel.warn ' (fixed celluloid-io requires unreleased celluloid version)'
Kernel.warn " * celluloid master branch doesn't work properly on Windows"

# has fix, but causes above other problems:
# gem 'celluloid-io', github: 'celluloid/celluloid-io', ref: 'a72cae2e'

Kernel.warn 'NOTE: Celluloid may not work properly on your platform'
when /bsd|dragonfly/i

gem 'rb-kqueue', '>= 0.2'
Kernel.warn 'NOTE: You are using BSD. You are on your own!'
end

Kernel.warn 'NOTE: BSD is unsupported because:'
Kernel.warn "* Ruby threads don't work correctly (Ruby/MRI unit tests)"
Kernel.warn "* and because of them, Celluloid doesn't work correctly"

Kernel.warn '* FFI blows up when libc is a LD script (ac63e07f7)'
gem 'ffi', github: 'carpetsmoker/ffi', ref: 'ac63e07f7'

Kernel.warn '* Celluloid core detection blows up (7fdef04)'
gem 'celluloid', github: 'celluloid/celluloid', ref: '7fdef04'

else
# handled by gemspec
group :test do
gem 'celluloid-io', '>= 0.15.0'
gem 'rake'
gem 'rspec', '~> 3.0.0rc1'
gem 'rspec-retry'
gem 'coveralls'
end

group :tool do
group :development do
gem 'yard', require: false
gem 'guard-rspec', require: false
gem 'rubocop', '0.25.0' # TODO: should match Gemfile HoundCi
gem 'guard-rubocop'
gem 'pry-rescue'
gem 'pry-stack_explorer'
end

group :test do
gem 'coveralls', require: false
gem 'gems', require: false
gem 'netrc', require: false
gem 'octokit', require: false
end
4 changes: 0 additions & 4 deletions listen.gemspec
Expand Up @@ -26,8 +26,4 @@ Gem::Specification.new do |s|
s.add_dependency 'rb-inotify', '>= 0.9'

s.add_development_dependency 'bundler', '>= 1.3.5'
s.add_development_dependency 'celluloid-io', '>= 0.15.0'
s.add_development_dependency 'rake'
s.add_development_dependency 'rspec', '~> 3.0.0rc1'
s.add_development_dependency 'rspec-retry'
end

0 comments on commit 4b98092

Please sign in to comment.