endow 0.3.0 → 0.4.0

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: 51449dcbb3b335ba58d88fa1c84ce1fddabcebb7
4
- data.tar.gz: 2bd8bb6c5962367c08d799597ba5d15f9ad11251
3
+ metadata.gz: 8ce425c07362e27278f0e15f99b72a30c0b02db8
4
+ data.tar.gz: 482562cab81333c6221983a151b931713c03d724
5
5
  SHA512:
6
- metadata.gz: efe2dcf1bfc3eabcd1fd7e27eaa090f3d7127eeb3db0f653e3d98710085bd383a3d6103b25c65ef302be8fc762f56e445a27820706e10cf03bda4c384f76a504
7
- data.tar.gz: a483eb4e9173f04acbc86295c8f13fd4c260184571e118b5506158f093b298e39f366de71a8b7586efc2fe5a60d1edc89f4ec00e30faf1bae4f326504d4543ef
6
+ metadata.gz: dba3dd3dc1a8ab943d5853160bc066e91012564decf09a30a9a0c19a0e3b451dc4074044a7d528468e817d5f6cd024d000fa0bf44b1be2307407257a0c7f4648
7
+ data.tar.gz: 918e820b543532ed00a19f660ce2f17f9b57036aef175763538730c648841d2841bc0f09c3cd097b6d7e1d5b6e08f3641edb326d269be1089ede574879a2de4a
@@ -23,7 +23,7 @@ module Endow
23
23
  attempt += 1
24
24
  log_connection( self, attempt )
25
25
 
26
- if success_error_codes.include?( response.code )
26
+ if success?
27
27
  handle_successful_response
28
28
  else
29
29
  _handle_unsuccessful_response
@@ -32,6 +32,14 @@ module Endow
32
32
  end
33
33
  end
34
34
 
35
+ def success?
36
+ success_error_codes.include?( response.code )
37
+ end
38
+
39
+ def failure?
40
+ !success?
41
+ end
42
+
35
43
  def request_url
36
44
  request.url
37
45
  end
data/lib/endow/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Endow
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: endow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Harrelson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-13 00:00:00.000000000 Z
11
+ date: 2014-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport