Permalink
Browse files

Change ffi dependency to ~> 1.0, >= 1.0.6.

  • Loading branch information...
1 parent 1ab970f commit 3344ccf488cf5633e2eec65c2e56c8082cd8f08a @jarib jarib committed Jul 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 childprocess.gemspec
View
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "rspec", ">= 2.0.0"
s.add_development_dependency "yard", ">= 0"
s.add_development_dependency "rake", "~> 0.9.2"
- s.add_runtime_dependency "ffi", "~> 1.0.6"
+ s.add_runtime_dependency "ffi", "~> 1.0", ">= 1.0.6"
end

3 comments on commit 3344ccf

Bundler can't satisfy a ffi dependency between ruby-xz and childprcess (via aruba), due to chilprocess' restriction on ffi.
Any chance this can be relaxed?

Collaborator

How is this a problem? ruby-xz depends on ffi >= 0, which works out fine

source :rubygems

gem 'aruba'
gem 'ruby-xz'
$ bundle install                                                                                      
Fetching gem metadata from http://rubygems.org/..........
Fetching gem metadata from http://rubygems.org/..
Using ffi (1.2.0) 
Using childprocess (0.3.6) 
Installing builder (3.1.4) 
Using diff-lcs (1.1.3) 
Using json (1.7.5) 
Using gherkin (2.11.5) 
Using cucumber (1.2.1) 
Using rspec-expectations (2.12.0) 
Installing aruba (0.5.1) 
Using io-like (0.3.0) 
Using ruby-xz (0.1.1) 
Using bundler (1.2.2) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
GEM
  remote: http://rubygems.org/
  specs:
    aruba (0.5.1)
      childprocess (~> 0.3.6)
      cucumber (>= 1.1.1)
      rspec-expectations (>= 2.7.0)
    builder (3.1.4)
    childprocess (0.3.6)
      ffi (~> 1.0, >= 1.0.6)
    cucumber (1.2.1)
      builder (>= 2.1.2)
      diff-lcs (>= 1.1.3)
      gherkin (~> 2.11.0)
      json (>= 1.4.6)
    diff-lcs (1.1.3)
    ffi (1.2.0)
    gherkin (2.11.5)
      json (>= 1.4.6)
    io-like (0.3.0)
    json (1.7.5)
    rspec-expectations (2.12.0)
      diff-lcs (~> 1.1.3)
    ruby-xz (0.1.1)
      ffi
      io-like

PLATFORMS
  ruby

DEPENDENCIES
  aruba
  ruby-xz

Apologies some Bundler weirdness... removing ffi from my projects gemspec allowed it to resolve, which it did to version 1.1.5 due to a restriction of ethon. With ffi in the gemspec, without any restriction, and Bundler fails. Seems to be a Bundler issue.
Thanks again.

Please sign in to comment.