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 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.2"
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.2}
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm-httpclient
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - pedro gutierrez