api_access 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 349a56b15fd8a60f0c903439ab55a937f7687f8e
4
- data.tar.gz: b31593c374661ba44f638005e4aca43b9b6b4796
3
+ metadata.gz: 0816860bb6c67087f825ec611e4851e7d2cb9961
4
+ data.tar.gz: 4cab6bbb59b0f55b463a950229d7c2c0e612d826
5
5
  SHA512:
6
- metadata.gz: e02e408d1bb1f083b79a7440a8a16963003e442b48220c533b534006dbc313ff986e27e4f137eacc9b6827456e8707b51d27826bbc0da634195530aacf6bf1d0
7
- data.tar.gz: bfc80b85e47b0895f9908f1f21ad5e8bcc8d2ec168e7367ee706f19a467e0e4e4526c96c33876c311be58b84596f37d868a258b7559d201a5a4bd6c95570876e
6
+ metadata.gz: 2c6ff660e4eec29a3c0d722fb7275e08897038417adb429a43d35e035de2bbb959cc013a3aa1a5017e88ce088cf7f0ee00283828de910c3cc03862b11ea8f900
7
+ data.tar.gz: 05098533fa2d99a8b44a26ba9a27461836e627f2accb0205a90890227786544b462b566a408d87a46edc8168a220ee2b2d240c7f86cce47f29a20898446945cb
@@ -1,3 +1,3 @@
1
1
  class ApiAccess
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
data/lib/api_access.rb CHANGED
@@ -44,7 +44,7 @@ class ApiAccess
44
44
  response = klass.post_form(uri, request_params)
45
45
  end
46
46
  if response.kind_of? Net::HTTPSuccess
47
- format == 'JSON' ? JSON.parse(response.body) : response.body
47
+ format == 'json' ? JSON.parse(response.body) : response.body
48
48
  else
49
49
  nil
50
50
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_access
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - binz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-20 00:00:00.000000000 Z
11
+ date: 2014-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler