fishbans 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/lib/fishbans.rb +4 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e807ff54ca15ada567d8e13f472c8b4f31f46700
4
- data.tar.gz: 984f4a9bf3a8f6b01be9110c5ecda6f4cfb6f31c
3
+ metadata.gz: 20aabf428819fc6d0e2f63b183101ee57c026271
4
+ data.tar.gz: 7256f0174fddaf8481d99b61330ffa2ad7d0e34d
5
5
  SHA512:
6
- metadata.gz: f99d58c22d1b7ff441b9bb23fef758cd2a1bf8ae69fe92d122fee37e63cc9ff3959661f0445e11f19705b6381d1bc2918728a287fca115d193054cbbc0d12f13
7
- data.tar.gz: eb9b80e8ac26b4555c8e0acfc46331e4c85875b9525540399460b13e47914856a95cb100acb230aa8ba16c9e2056827c40d52c0588e04ecd6419fd6b7b77bece
6
+ metadata.gz: 717cfcadbc596bd3a9cca44295ea184f58dda3f7b45afe1ba4ae77910de91f375df57bb1645dc6afda08f3a4363e9d347ad723ecffad5dc8b7b4346de75cf626
7
+ data.tar.gz: d224e2e877e3fd75750a4f8fe3f1625e2ec66b37ac9ece33d66cfa9589b86418805b1cd6ee34d7498717a1cc2bf3a2c2a4a4f9438971147677e465bbb0c1e722
@@ -1,4 +1,7 @@
1
1
  # Changelog
2
2
  ## Version 1
3
+ ### Version 1.0.1
4
+ * Fix NoMethodError with get
5
+
3
6
  ### Version 1.0.0
4
7
  * Initial version with all APIs documented on the Fishbans API Docs.
@@ -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
- if response['success']
120
- return JSON.parse(response.body)
119
+ json = JSON.parse(response.body)
120
+ if json['success']
121
+ return json
121
122
  else
122
- return response['error']
123
+ return json['error']
123
124
  end
124
125
  end
125
126
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fishbans
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eli Foster