httparty 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of httparty might be problematic. Click here for more details.

data/History CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.2 2008-12-08
2
+ * 1 bug fix
3
+ * Added the missing core extension hash method to_xml_attributes
4
+
1
5
  == 0.2.1 2008-12-08
2
6
  * 1 bug fix
3
7
  * Fixed that HTTParty was borking ActiveSupport and as such Rails (thanks to Rob Sanheim)
data/httparty.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{httparty}
5
- s.version = "0.2.1"
5
+ s.version = "0.2.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["John Nunemaker"]
@@ -333,4 +333,15 @@ class Hash
333
333
 
334
334
  param
335
335
  end
336
+
337
+ # @return <String> The hash as attributes for an XML tag.
338
+ #
339
+ # @example
340
+ # { :one => 1, "two"=>"TWO" }.to_xml_attributes
341
+ # #=> 'one="1" two="TWO"'
342
+ def to_xml_attributes
343
+ map do |k,v|
344
+ %{#{k.to_s.snake_case.sub(/^(.{1,1})/) { |m| m.downcase }}="#{v}"}
345
+ end.join(' ')
346
+ end
336
347
  end
@@ -1,3 +1,3 @@
1
1
  module HTTParty
2
- Version = '0.2.1'
2
+ Version = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httparty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker