doggy 2.0.37 → 2.0.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/doggy/model.rb +3 -0
- data/lib/doggy/version.rb +1 -1
- data/lib/doggy.rb +2 -0
- 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: 957f7b3de058a28033615d38adc4cde2592e74c6
|
4
|
+
data.tar.gz: dc8100cfa99575c54904087b55eb01ac97a46d6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6818fabbc4c59ed124504fed8bade0f29c20d11be312640fc04a7a3448bab6cac5de05e54074c1463d6e15afe3e62bba09f16488cc27fc70f902ad9d9eb21438
|
7
|
+
data.tar.gz: f95498183a511ec8cc023426ef8273b1d336a3894b445346a1f2de10775e7be1381daa71e3bf3fc5dd21a0e202c4c48fff30dc84a2d4dd0d0068e512e153e4d6
|
data/lib/doggy/model.rb
CHANGED
@@ -112,6 +112,9 @@ module Doggy
|
|
112
112
|
request.body = body if body
|
113
113
|
|
114
114
|
response = http.request(request)
|
115
|
+
unless response.code =~ /\A[23][0-9]{2}\Z/
|
116
|
+
raise DoggyError, "Unexpected response code #{response.code} for #{url}."
|
117
|
+
end
|
115
118
|
response.body ? JSON.parse(response.body) : nil
|
116
119
|
end
|
117
120
|
|
data/lib/doggy/version.rb
CHANGED
data/lib/doggy.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: doggy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.38
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vlad Gorodetsky
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-02-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|