aitch 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38aa9fc2ad29df790bc7fd40ce355bf708daf1d6
4
- data.tar.gz: f175d33a07de066ba73d913462adbc5fd5e9cd7e
3
+ metadata.gz: 9fe92f9a37fda506090a65c10f58d0f1c404de82
4
+ data.tar.gz: e4802e77177c7b5da355d90861648c457af07baf
5
5
  SHA512:
6
- metadata.gz: 924cd3596df55c55b2be570715eaf1770874f45524557ef6a3a4f037c21ab07e0e8fe97a42445c15719074c8308caee0b1f24f9e8c810db9c7a37c02df97d927
7
- data.tar.gz: 0f08930e4e9e0fe574020b8ef7bb4456caeb4fced990efebd65d5f22eda7980beaf7dee225c6afdebebc9ed524e0d902f1786959c29deec9ca3893a08dde163c
6
+ metadata.gz: 8a30b1ca7591ba25d71ee744500f8aee14bb53b518b3f00011eed86fec098b5f3d10d79992a692cc777233e787acc5b599b0d5050bcd640e2262309eb5032d97
7
+ data.tar.gz: 86f02583bf0a48e299115d5c4724e8f098074e4244c6ff0693cf56cbdcfbc8e3f88398b3a8f71e54bc20636a1925de7db399aed5d2266ccc6c926dd18952cff9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aitch (0.2.0)
4
+ aitch (0.2.1)
5
5
  activesupport
6
6
  nokogiri (>= 1.6.0)
7
7
 
@@ -28,6 +28,7 @@ module Aitch
28
28
  def success?
29
29
  code >= 200 && code <= 399
30
30
  end
31
+ alias_method :ok?, :success?
31
32
 
32
33
  def redirect?
33
34
  code >= 300 && code <= 399
@@ -1,3 +1,3 @@
1
1
  module Aitch
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -82,7 +82,9 @@ describe Aitch::Response do
82
82
  it "detects as successful response" do
83
83
  FakeWeb.register_uri(:get, "http://example.org/", status: 301)
84
84
  response = Aitch.get("http://example.org/")
85
+
85
86
  expect(response).to be_success
87
+ expect(response).to be_ok
86
88
  end
87
89
 
88
90
  it "detects as redirect" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-28 00:00:00.000000000 Z
11
+ date: 2013-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri