Skip to content

Commit

Permalink
Use Gemfile for development deps rather than gemspec.
Browse files Browse the repository at this point in the history
- To make it work properly for all platforms I had to
  include conditionals in the gemspec. That's pretty
  weird as the gemspec needs to be eventually compiled
  into a static file at gem release time.
- Relax version specifiers to use `>=` rather than `~>`.
  While the latter is the recommended way, I want to be
  able to use `bundle update` and update to the absolute
  latest version of a gem w/o having to research if a new
  minor or major version has come out. Plus, the Gemfile.lock
  is in source to ensure gems aren't accidentally updated to
  a new version when not intended.

This means that `gem install vcr --development` won't work
but I've never heard of anyone doing that. All VCR
contributors use bundler, anyway.
  • Loading branch information
myronmarston committed Sep 23, 2013
1 parent cfec6ec commit 3f27721
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 56 deletions.
31 changes: 31 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,34 @@ group :extras do
gem 'debugger', :platforms => :mri_19
gem 'pry'
end

gem 'rake', '>= 0.9.2'

gem 'cucumber', '>= 1.1.4'
gem 'aruba', '>= 0.5'

gem 'rspec', '>= 2.11'
gem 'shoulda', '>= 2.9.2'

gem 'fakeweb', '>= 1.3.0'
gem 'webmock', '>= 1.13'

gem 'faraday', '>= 0.8'
gem 'httpclient', '>= 2.2'
gem 'excon', '>= 0.22'

gem 'timecop', '>= 0.3.5'
gem 'rack', '>= 1.3.6'
gem 'sinatra', '>= 1.3.2'
gem 'multi_json', '>= 1.0.3'
gem 'json', '>= 1.6.5'
gem 'simplecov', '>= 0.5.3'

gem 'redis', '>= 2.2.2'
gem 'typhoeus', '>= 0.6'

gem 'patron', '>= 0.4.15', :platform => :ruby
gem 'em-http-request', '>= 1.0.2', :platform => :ruby
gem 'curb', '>= 0.8.0', :platform => :ruby
gem 'yajl-ruby', '>= 1.1.0', :platform => :ruby

47 changes: 22 additions & 25 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ GEM
ffi (>= 1.3.0)
mime-types (~> 1.18)
eventmachine (1.0.3)
eventmachine (1.0.3-java)
excon (0.25.3)
fakeweb (1.3.0)
faraday (0.8.8)
Expand All @@ -70,7 +69,6 @@ GEM
json (>= 1.4.6)
github-markup (0.7.5)
http_parser.rb (0.5.3)
http_parser.rb (0.5.3-java)
httpclient (2.3.4.1)
jruby-openssl (0.9.0)
bouncy-castle-java (>= 1.5.0147)
Expand Down Expand Up @@ -153,37 +151,36 @@ PLATFORMS

DEPENDENCIES
appraisal
aruba (~> 0.5)
bundler (>= 1.0.7)
cucumber (~> 1.1.4)
curb (~> 0.8.0)
aruba (>= 0.5)
cucumber (>= 1.1.4)
curb (>= 0.8.0)
debugger
em-http-request (~> 1.0.2)
excon (~> 0.22)
fakeweb (~> 1.3.0)
faraday (~> 0.8)
em-http-request (>= 1.0.2)
excon (>= 0.22)
fakeweb (>= 1.3.0)
faraday (>= 0.8)
fuubar
fuubar-cucumber
github-markup
httpclient (~> 2.2)
httpclient (>= 2.2)
jruby-openssl
json (~> 1.6.5)
multi_json (~> 1.0.3)
patron (~> 0.4.15)
json (>= 1.6.5)
multi_json (>= 1.0.3)
patron (>= 0.4.15)
pry
rack (~> 1.3.6)
rake (~> 0.9.2)
rack (>= 1.3.6)
rake (>= 0.9.2)
redcarpet (~> 1.17.2)
redis (~> 2.2.2)
redis (>= 2.2.2)
relish (~> 0.6)
rspec (~> 2.11)
rspec (>= 2.11)
ruby-debug
shoulda (~> 2.9.2)
simplecov (~> 0.5.3)
sinatra (~> 1.3.2)
timecop (~> 0.3.5)
typhoeus (~> 0.6)
shoulda (>= 2.9.2)
simplecov (>= 0.5.3)
sinatra (>= 1.3.2)
timecop (>= 0.3.5)
typhoeus (>= 0.6)
vcr!
webmock (~> 1.13)
yajl-ruby (~> 1.1.0)
webmock (>= 1.13)
yajl-ruby (>= 1.1.0)
yard
33 changes: 2 additions & 31 deletions vcr.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,6 @@ Gem::Specification.new do |s|
s.required_ruby_version = '>= 1.8.7'
s.required_rubygems_version = '>= 1.3.5'

s.add_development_dependency 'bundler', '>= 1.0.7'
s.add_development_dependency 'rake', '~> 0.9.2'

s.add_development_dependency 'cucumber', '~> 1.1.4'
s.add_development_dependency 'aruba', '~> 0.5'

s.add_development_dependency 'rspec', '~> 2.11'
s.add_development_dependency 'shoulda', '~> 2.9.2'

s.add_development_dependency 'fakeweb', '~> 1.3.0'
s.add_development_dependency 'webmock', '~> 1.13'

s.add_development_dependency 'faraday', '~> 0.8'
s.add_development_dependency 'httpclient', '~> 2.2'
s.add_development_dependency 'excon', '~> 0.22'

s.add_development_dependency 'timecop', '~> 0.3.5'
s.add_development_dependency 'rack', '~> 1.3.6'
s.add_development_dependency 'sinatra', '~> 1.3.2'
s.add_development_dependency 'multi_json', '~> 1.0.3'
s.add_development_dependency 'json', '~> 1.6.5'
s.add_development_dependency 'simplecov', '~> 0.5.3'
s.add_development_dependency 'redis', '~> 2.2.2'
s.add_development_dependency 'typhoeus', '~> 0.6'

unless RUBY_PLATFORM == 'java'
s.add_development_dependency 'patron', '~> 0.4.15'
s.add_development_dependency 'em-http-request', '~> 1.0.2'
s.add_development_dependency 'curb', '~> 0.8.0'
s.add_development_dependency 'yajl-ruby', '~> 1.1.0'
end
# Development dependencies are listed in the Gemfile.
end

0 comments on commit 3f27721

Please sign in to comment.