fishbans 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/fishbans.rb +4 -3
- 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: 20aabf428819fc6d0e2f63b183101ee57c026271
|
4
|
+
data.tar.gz: 7256f0174fddaf8481d99b61330ffa2ad7d0e34d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 717cfcadbc596bd3a9cca44295ea184f58dda3f7b45afe1ba4ae77910de91f375df57bb1645dc6afda08f3a4363e9d347ad723ecffad5dc8b7b4346de75cf626
|
7
|
+
data.tar.gz: d224e2e877e3fd75750a4f8fe3f1625e2ec66b37ac9ece33d66cfa9589b86418805b1cd6ee34d7498717a1cc2bf3a2c2a4a4f9438971147677e465bbb0c1e722
|
data/CHANGELOG.md
CHANGED
data/lib/fishbans.rb
CHANGED
@@ -116,10 +116,11 @@ module Fishbans
|
|
116
116
|
url = URI.encode(url)
|
117
117
|
uri = URI.parse(url)
|
118
118
|
response = @client.get(uri)
|
119
|
-
|
120
|
-
|
119
|
+
json = JSON.parse(response.body)
|
120
|
+
if json['success']
|
121
|
+
return json
|
121
122
|
else
|
122
|
-
return
|
123
|
+
return json['error']
|
123
124
|
end
|
124
125
|
end
|
125
126
|
|