girlscout 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/girlscout/resource.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6631188c9d44571018f2a29082d045fe24efe1a7
|
4
|
+
data.tar.gz: acc7eeb019a7b52441cbbc2325821e9d60ff0cef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 009002c2b7a752e27935587badf757cf561297400eb231e01dd7d335c59855f810737358a17109e3fd761babc6802b0916e765f1b987f54906df033a6f61d2e7
|
7
|
+
data.tar.gz: 8d234f74f0ace0ef49788e242e81a72ee090790d2c3100b39269403178de50bcb90f7e86720b523c9150d9867bb4e8751234fd3c3e8c48737b5c2dc3543172fb
|
data/lib/girlscout/resource.rb
CHANGED
@@ -35,7 +35,7 @@ module GirlScout
|
|
35
35
|
def request(options={})
|
36
36
|
auth = { user: Config.api_key, password: 'X' }
|
37
37
|
response = Excon.new(url, auth).request(options)
|
38
|
-
if response.status
|
38
|
+
if 400 <= response.status && response.status < 600
|
39
39
|
raise GirlScout::Error.new(JSON.parse(response.body))
|
40
40
|
end
|
41
41
|
|