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 +4 -4
- data/lib/api_access/version.rb +1 -1
- data/lib/api_access.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: e44b7fe192e9cf3d33e7553e46ec365d51280cd4
|
4
|
+
data.tar.gz: 964939332a36c8d2a28bfc8f8709d509b28dba14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d53131771eca6ad584ff94fc968048cccc778fb91abf111bdf978d635eac55d53364f20707458e920caf286a5ef427ebb06e4c654cf36ec94a2791d6554d9109
|
7
|
+
data.tar.gz: 81c554f9d95b726d15b2c0887146bdc0a638be212e6c77aacd8779d876d600300baa34b40d2d4a76677cbe527a191c7341c19d6c2397044ee37cd70c82c06957
|
data/lib/api_access/version.rb
CHANGED
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?
|
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)
|