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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0aa406868a4177d24ad9ff8097b0c5616962d8f2
4
- data.tar.gz: 827f00d4077093a95d85416f1fa3a4b0fd3a12e2
3
+ metadata.gz: 57518da42be629d2fe1085acd97050ae34f2ad62
4
+ data.tar.gz: 1d0c932693bd4a5f57d4c00c010390ece99d1be7
5
5
  SHA512:
6
- metadata.gz: 800dfde4abd56a0539d84f10d78f1df836a2b30202432a60b7c90da48469e4006b322ea5581176cbe94cec9f36f9a8662a25571dd312814cb85b408a0c110162
7
- data.tar.gz: 07bfcc96860df3f1f944eb693622830a4c28f645a3e4df4973f24a790909f410b2a93e5dd801997fae6efee35a25c52667b83b019b6f7091e183f9aa000bb168
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, params)
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{openfire_api_ruby}
8
- s.version = "0.2.8"
8
+ s.version = "0.2.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paul Asmuth, Babu"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openfire_api_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Asmuth, Babu