responsalizr 1.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +5 -2
  2. data/Rakefile +1 -1
  3. data/lib/responsalizr.rb +1 -1
  4. metadata +4 -3
data/README CHANGED
@@ -1,3 +1,6 @@
1
- == responsalizr
1
+ Responsalizr
2
+ - Test HTTP Response Codes in Ruby
2
3
 
3
- You should document your project here.
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
@@ -8,7 +8,7 @@ require 'spec/rake/spectask'
8
8
 
9
9
  spec = Gem::Specification.new do |s|
10
10
  s.name = 'responsalizr'
11
- s.version = '1.0'
11
+ s.version = '1.0.1'
12
12
  s.has_rdoc = false
13
13
  s.extra_rdoc_files = ['README', 'LICENSE']
14
14
  s.summary = 'Test HTTP responses in ruby'
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 "#{expected_code} not a valid response code"
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: 15
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- version: "1.0"
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-06 00:00:00 +01:00
18
+ date: 2010-09-11 00:00:00 +01:00
18
19
  default_executable:
19
20
  dependencies: []
20
21