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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b593856a0ac24b60c2f01c85f77e5bd678f62774
4
- data.tar.gz: 7cfce3596d854804aad17b1857395ea17048a991
3
+ metadata.gz: 6231b02f47237f50d3329096bd0240415b126f04
4
+ data.tar.gz: 1cf393de14d5ab9c485cd608ff96f20500f19996
5
5
  SHA512:
6
- metadata.gz: 981d3b23315dcb20e171dd5af998b34770f76bae6bd5ac29e78e5db602f9f0c05a2ef2f686f4cfe9a242f785ce1ea7c9154e1111971437668a7a1fc089c8c763
7
- data.tar.gz: df371da2fec76144a2ebf8c0f3e500e766113bbe4e974dfeda63658667421fa51b47aa2d9c8fe47fa16a4acfbef9284466bedaedd41672cd605ecc259f4d5ebd
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
- http.get("#{uri}?#{params}")
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
@@ -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.2"
8
+ s.version = "0.2.4"
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.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Asmuth, Babu