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 +4 -4
- data/lib/endow/endpoint.rb +9 -1
- data/lib/endow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ce425c07362e27278f0e15f99b72a30c0b02db8
|
4
|
+
data.tar.gz: 482562cab81333c6221983a151b931713c03d724
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dba3dd3dc1a8ab943d5853160bc066e91012564decf09a30a9a0c19a0e3b451dc4074044a7d528468e817d5f6cd024d000fa0bf44b1be2307407257a0c7f4648
|
7
|
+
data.tar.gz: 918e820b543532ed00a19f660ce2f17f9b57036aef175763538730c648841d2841bc0f09c3cd097b6d7e1d5b6e08f3641edb326d269be1089ede574879a2de4a
|
data/lib/endow/endpoint.rb
CHANGED
@@ -23,7 +23,7 @@ module Endow
|
|
23
23
|
attempt += 1
|
24
24
|
log_connection( self, attempt )
|
25
25
|
|
26
|
-
if
|
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
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.
|
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-
|
11
|
+
date: 2014-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|