Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Bundler integration #48

Closed
wants to merge 2 commits into from

2 participants

@keithpitt

I wanted to do some hacking on the gem but it was a pain to get the development environment setup. I've included bundler with the correct gems so the setup process is a easier.

@bblimke
Owner

I would definitely like to add bundler integration but for now I didn't want to maintain two lists of dependencies (jeweler + bundler). Hopefully it won't be a problem with the new version of jeweler (Gemfile support is currently in jeweler master).

Anyway the webmock Gemfile will require splitting dependencies across runtime, dvelopment and test group. It will also require platform directives, since some of the gems are not supported on jruby.

@keithpitt

Ah that makes sense.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
3  .gitignore
@@ -18,4 +18,7 @@ coverage
rdoc
pkg
+## BUNDLER
+.bundle
+
## PROJECT::SPECIFIC
View
10 Gemfile
@@ -0,0 +1,10 @@
+source 'http://gemcutter.org'
+
+gem 'jeweler'
+gem 'addressable', '>= 2.2.2'
+gem 'crack', '>= 0.1.7'
+gem 'rspec', '1.2.9'
+gem 'httpclient', '>= 2.1.5.2'
+gem 'patron', '>= 0.4.9'
+gem 'em-http-request', '>= 0.2.14'
+gem 'curb', '>= 0.7.8'
View
35 Gemfile.lock
@@ -0,0 +1,35 @@
+GEM
+ remote: http://gemcutter.org/
+ specs:
+ addressable (2.2.2)
+ crack (0.1.8)
+ curb (0.7.8)
+ em-http-request (0.2.14)
+ addressable (>= 2.0.0)
+ eventmachine (>= 0.12.9)
+ eventmachine (0.12.10)
+ gemcutter (0.6.1)
+ git (1.2.5)
+ httpclient (2.1.5.2)
+ jeweler (1.4.0)
+ gemcutter (>= 0.1.0)
+ git (>= 1.2.5)
+ rubyforge (>= 2.0.0)
+ json_pure (1.4.6)
+ patron (0.4.9)
+ rspec (1.2.9)
+ rubyforge (2.0.4)
+ json_pure (>= 1.1.7)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ addressable (>= 2.2.2)
+ crack (>= 0.1.7)
+ curb (>= 0.7.8)
+ em-http-request (>= 0.2.14)
+ httpclient (>= 2.1.5.2)
+ jeweler
+ patron (>= 0.4.9)
+ rspec (= 1.2.9)
View
6 lib/webmock/adapters/rspec.rb
@@ -1,8 +1,8 @@
require 'webmock'
# RSpec 1.x and 2.x compatibility
-if defined?(Rspec)
- RSPEC_NAMESPACE = RSPEC_CONFIGURER = Rspec
+if defined?(RSpec)
+ RSPEC_NAMESPACE = RSPEC_CONFIGURER = RSpec
elsif defined?(Spec)
RSPEC_NAMESPACE = Spec
RSPEC_CONFIGURER = Spec::Runner
@@ -30,4 +30,4 @@
end
}
-WebMock::AssertionFailure.error_class = RSPEC_NAMESPACE::Expectations::ExpectationNotMetError
+WebMock::AssertionFailure.error_class = RSPEC_NAMESPACE::Expectations::ExpectationNotMetError
View
2  test/test_helper.rb
@@ -1,4 +1,6 @@
require 'rubygems'
+require 'bundler'
+Bundler.setup(:default)
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
Something went wrong with that request. Please try again.