responsalizr 1.0 → 1.0.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 +5 -2
- data/Rakefile +1 -1
- data/lib/responsalizr.rb +1 -1
- metadata +4 -3
data/README
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
-
|
1
|
+
Responsalizr
|
2
|
+
- Test HTTP Response Codes in Ruby
|
2
3
|
|
3
|
-
|
4
|
+
I'll update this readme soon. For now, take a look at:
|
5
|
+
|
6
|
+
http://www.natontesting.com/2010/09/06/announcing-responsalizr-test-http-response-codes-in-ruby/
|
data/Rakefile
CHANGED
data/lib/responsalizr.rb
CHANGED
@@ -14,7 +14,7 @@ module Responsalizr
|
|
14
14
|
|
15
15
|
Net::HTTPResponse.send :define_method, :code? do |expected_code|
|
16
16
|
unless Net::HTTPResponse.const_get("CODE_TO_OBJ").keys.collect{|key| key.to_i}.include?(expected_code)
|
17
|
-
raise ArgumentError.new
|
17
|
+
raise ArgumentError.new("#{expected_code} not a valid response code")
|
18
18
|
end
|
19
19
|
self.code.to_i == expected_code
|
20
20
|
end
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: responsalizr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Nat Ritmeyer
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-11 00:00:00 +01:00
|
18
19
|
default_executable:
|
19
20
|
dependencies: []
|
20
21
|
|