openfire_api_ruby 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openfire_api/user_service.rb +4 -2
- data/openfire_api.gemspec +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: 57518da42be629d2fe1085acd97050ae34f2ad62
|
4
|
+
data.tar.gz: 1d0c932693bd4a5f57d4c00c010390ece99d1be7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2f3e88a7a2ce9a065b690c0b61c6554ac577c3fc51af713352fe8a2c16e5f0a4f375b3eef5a0256f9e52314108ed496b9000d32cae5c3ee1a6084d5fa161cce
|
7
|
+
data.tar.gz: 48ce8e6d2b33dea7dd3b03e6a6a462d540ca7c6eaed601e6b64e29883b075e18d34109a3c5f38b5aafd9a232b22676f8c27542073b808609eac9a15429eee7d4
|
@@ -57,11 +57,13 @@ private
|
|
57
57
|
parse_response(data)
|
58
58
|
end
|
59
59
|
|
60
|
-
def submit_http_request(uri,
|
60
|
+
def submit_http_request(uri, params_as_string)
|
61
61
|
#res = Net::HTTP.start(uri.host, uri.port) do |http|
|
62
62
|
# http.get("#{uri}?#{params}")
|
63
63
|
#end
|
64
|
-
res = Net::HTTP.get(uri.host, "#{uri.path}?#{params}",uri.port)
|
64
|
+
#res = Net::HTTP.get(uri.host, "#{uri.path}?#{params}",uri.port)
|
65
|
+
uri.query = URI.encode(params_as_string)
|
66
|
+
res = Net::HTTP.get_response(uri)
|
65
67
|
|
66
68
|
return res.body
|
67
69
|
rescue Exception => e
|
data/openfire_api.gemspec
CHANGED