remote_http_testing 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.markdown CHANGED
@@ -57,4 +57,6 @@ When working on this gem, after you've made changes, you can include your modifi
57
57
 
58
58
  gem "remote_http_testing", :path => "~/path/to/remote_http_testing_repo"
59
59
 
60
- Then run `bundle install` from within your app. The installed gem is now symlinked to your local working copy of the gem.
60
+ Then run `bundle install` from within your app. The installed gem is now symlinked to your local working copy of the gem.
61
+
62
+ To publish a new version of this gem, increment the version number in `version.rb`, and run `rake release`.
@@ -1,3 +1,3 @@
1
1
  module RemoteHttpTesting
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -80,8 +80,11 @@ module RemoteHttpTesting
80
80
  url = self.server + url
81
81
  uri = URI.parse(url)
82
82
  self.last_request = create_request(url, http_method, params, request_body)
83
- response = Net::HTTP.new(uri.host, uri.port).request(self.last_request) rescue nil
84
- raise "Unable to connect to #{self.server}" if response.nil?
83
+ begin
84
+ response = Net::HTTP.new(uri.host, uri.port).request(self.last_request)
85
+ rescue Errno::ECONNREFUSED => error
86
+ raise "Unable to connect to #{self.server}"
87
+ end
85
88
  self.last_response = response
86
89
  end
87
90
 
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.version = RemoteHttpTesting::VERSION
11
11
  s.authors = ["Phil Crosby"]
12
12
  s.email = ["phil.crosby@gmail.com"]
13
- s.homepage = "http://github.com/ooyala"
13
+ s.homepage = "http://github.com/ooyala/remote_http_testing"
14
14
  s.summary = %q{A small library for making remote HTTP requests and response assertions in tests.}
15
15
 
16
16
  s.rubyforge_project = "remote_http_testing"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remote_http_testing
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Phil Crosby
@@ -64,7 +64,7 @@ files:
64
64
  - lib/remote_http_testing/version.rb
65
65
  - remote_http_testing.gemspec
66
66
  has_rdoc: true
67
- homepage: http://github.com/ooyala
67
+ homepage: http://github.com/ooyala/remote_http_testing
68
68
  licenses: []
69
69
 
70
70
  post_install_message: