10to1-crack 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/crack/xml.rb +2 -2
  3. metadata +1 -1
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 1
3
- :patch: 2
3
+ :patch: 3
4
4
  :major: 0
data/lib/crack/xml.rb CHANGED
@@ -74,9 +74,9 @@ class REXMLUtilityNode #:nodoc:
74
74
  end
75
75
 
76
76
  if @text
77
- out = { name => {'text' => typecast_value( translate_xml_entities( inner_html ) ) } }
77
+ out = {'text' => typecast_value( translate_xml_entities( inner_html ) ) }
78
78
  out.merge! attributes unless attributes.empty?
79
- return out
79
+ return { name => out }
80
80
  else
81
81
  #change repeating groups into an array
82
82
  groups = @children.inject({}) { |s,e| (s[e.name] ||= []) << e; s }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: 10to1-crack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker