Permalink
Browse files

Use bundler to manage gem dependencies.

  • Loading branch information...
1 parent 30f5c5d commit bca4e49c4f1bf3a00fc63b37cbf2ed70ebc0ebb7 @myronmarston committed Jul 1, 2010
Showing with 36 additions and 11 deletions.
  1. +3 −1 .gitignore
  2. +23 −0 Gemfile
  3. +5 −1 features/support/env.rb
  4. +3 −0 spec/spec_helper.rb
  5. +2 −9 vcr.gemspec
View
4 .gitignore
@@ -21,4 +21,6 @@ pkg
## PROJECT::SPECIFIC
features/fixtures/vcr_cassettes/**/temp/
-*.rbc
+*.rbc
+
+Gemfile.lock
View
23 Gemfile
@@ -0,0 +1,23 @@
+source :rubygems
+
+group :development do
+ gem 'rspec', '~> 1.3.0'
+ gem 'cucumber', '>= 0.6.4'
+ gem 'fakeweb', '~> 1.2.8'
+ gem 'webmock', '~> 1.3.0'
+ gem 'httpclient', '~> 2.1.5.2'
+ gem 'patron', '~> 0.4.6' unless RUBY_PLATFORM == 'java'
+ gem 'em-http-request' , '~> 0.2.7' unless RUBY_PLATFORM == 'java'
+ gem 'capybara', '~> 0.3.9'
+end
+
+group :test do
+ unless RUBY_PLATFORM == 'java'
+ if RUBY_VERSION =~ /1\.9/
+ gem 'ruby-debug19'
+ else
+ gem 'ruby-debug'
+ end
+ end
+end
+
View
6 features/support/env.rb
@@ -20,6 +20,10 @@
require 'vcr'
require 'vcr_localhost_server'
+require 'rubygems'
+require 'bundler'
+Bundler.setup
+
begin
require 'ruby-debug'
Debugger.start
@@ -98,4 +102,4 @@ class << self
VCR.cucumber_tags do |t|
t.tags '@record_cassette1', '@record_cassette2', :record => :new_episodes
t.tags '@replay_cassette1', '@replay_cassette2', '@replay_cassette3', '@regex_cassette', :record => :none
-end
+end
View
3 spec/spec_helper.rb
@@ -1,6 +1,9 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rubygems'
+require 'bundler'
+Bundler.setup
+
require 'patron' unless RUBY_PLATFORM =~ /java/
require 'httpclient'
require 'em-http' unless RUBY_PLATFORM =~ /java/
View
11 vcr.gemspec
@@ -2,6 +2,7 @@ lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
require 'vcr/version'
+require 'bundler'
Gem::Specification.new do |s|
s.name = "vcr"
@@ -16,13 +17,5 @@ Gem::Specification.new do |s|
s.version = VCR.version
s.required_ruby_version = '>= 1.8.6'
s.required_rubygems_version = '>= 1.3.5'
-
- s.add_development_dependency "rspec", ["~> 1.3.0"]
- s.add_development_dependency "cucumber", [">= 0.6.4"]
- s.add_development_dependency "fakeweb", ["~> 1.2.8"]
- s.add_development_dependency "webmock", ["~> 1.3.0"]
- s.add_development_dependency "httpclient", ["~> 2.1.5.2"]
- s.add_development_dependency "patron", ["~> 0.4.6"]
- s.add_development_dependency "em-http-request", ["~> 0.2.7"]
- s.add_development_dependency "capybara", ["~> 0.3.8"]
+ s.add_bundler_dependencies
end

0 comments on commit bca4e49

Please sign in to comment.