api_access 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0391303d1bec824cf17ccb708840bc71ac964fe
4
- data.tar.gz: 8507a8843b1e3c0340b4dc1fc7db68f0de979363
3
+ metadata.gz: e44b7fe192e9cf3d33e7553e46ec365d51280cd4
4
+ data.tar.gz: 964939332a36c8d2a28bfc8f8709d509b28dba14
5
5
  SHA512:
6
- metadata.gz: d129c01eacb0e9cb761099f3825a2876879a4fe89f9c8abbaa9a67f6768e6cf875b515893240710515a75d277ce2ef9ea9b33038726d0580733e36d709d6f398
7
- data.tar.gz: 05653cad70f6fc05d20f6303274b5ed857a5bab834bd880e31bd0b2f9df3edf17696e28389662616c99f9b6ad5e64aa21855de1e067dac92f7780f9272f676c1
6
+ metadata.gz: d53131771eca6ad584ff94fc968048cccc778fb91abf111bdf978d635eac55d53364f20707458e920caf286a5ef427ebb06e4c654cf36ec94a2791d6554d9109
7
+ data.tar.gz: 81c554f9d95b726d15b2c0887146bdc0a638be212e6c77aacd8779d876d600300baa34b40d2d4a76677cbe527a191c7341c19d6c2397044ee37cd70c82c06957
@@ -1,3 +1,3 @@
1
1
  class ApiAccess
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/api_access.rb CHANGED
@@ -20,7 +20,7 @@ class ApiAccess
20
20
  uri = URI(url)
21
21
  klass = (uri.scheme == 'https' ? Net::HTTPS : Net::HTTP)
22
22
  if method == 'get'
23
- uri.query = (uri.query.nil? : '' ? (uri.query + "&")) + URI.encode_www_form(request_params)
23
+ uri.query = (uri.query.nil? ? '' : (uri.query + "&")) + URI.encode_www_form(request_params)
24
24
  response = klass.get_response(uri)
25
25
  else
26
26
  response = klass.post_form(uri, request_params)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_access
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - binz