cm-httpclient 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/httpclient.gemspec +2 -2
- data/lib/httpclient/httpclient.rb +7 -0
- metadata +1 -1
data/httpclient.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{httpclient}
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["pedro gutierrez"]
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
|
25
25
|
s.require_paths = ["lib"]
|
26
26
|
s.rubyforge_project = %q{cm-httpclient}
|
27
|
-
s.rubygems_version = %q{1.0.
|
27
|
+
s.rubygems_version = %q{1.0.3}
|
28
28
|
s.summary = %q{a simple httpclient}
|
29
29
|
s.add_dependency( %q<json>, [">= 1.1.6"])
|
30
30
|
|
@@ -5,6 +5,7 @@ require 'rexml/document'
|
|
5
5
|
require 'json'
|
6
6
|
|
7
7
|
class Hash
|
8
|
+
|
8
9
|
def to_s
|
9
10
|
s = "{ "
|
10
11
|
self.each{ |k, v| s << "#{k} => #{v}, " }
|
@@ -20,6 +21,12 @@ class Hash
|
|
20
21
|
end
|
21
22
|
self.replace(r)
|
22
23
|
end
|
24
|
+
|
25
|
+
def method_missing( name, *args )
|
26
|
+
return self[name.to_s] if self[name.to_s]
|
27
|
+
super( name, *args )
|
28
|
+
end
|
29
|
+
|
23
30
|
end
|
24
31
|
|
25
32
|
class REXML::Document
|