openfire_api_ruby 0.2.2 → 0.2.4
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 +6 -3
- 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: 6231b02f47237f50d3329096bd0240415b126f04
|
4
|
+
data.tar.gz: 1cf393de14d5ab9c485cd608ff96f20500f19996
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dd5ebfc2a9b104443bf7c567ede9fc3f584888b5a4e62559f3bd7cc0e570ed33ade78d06c77583452ad52093f27ccda972b80452042167380ba84023f3c4883
|
7
|
+
data.tar.gz: 42400fe3bcb599fbcd3298f2d6f0a572700b1578af5722b9e1af2365522d7d9d705a83414a740067cd02f9b7e7bf03c9eb35591fd3b880abe63e84241958c7f5
|
@@ -58,9 +58,12 @@ private
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def submit_http_request(uri, params)
|
61
|
-
res = Net::HTTP.start(uri.host, uri.port) do |http|
|
62
|
-
|
63
|
-
end
|
61
|
+
#res = Net::HTTP.start(uri.host, uri.port) do |http|
|
62
|
+
# http.get("#{uri}?#{params}")
|
63
|
+
#end
|
64
|
+
req = Net::HTTP::Get.new("#{uri.path}?#{params}")
|
65
|
+
res = Net::HTTP.start(uri.host, uri.port) {|http|
|
66
|
+
http.request(req)}
|
64
67
|
return res.body
|
65
68
|
rescue Exception => e
|
66
69
|
raise HTTPException, e.to_s
|
data/openfire_api.gemspec
CHANGED