mdub-crack 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History +4 -0
- data/VERSION.yml +2 -2
- data/crack.gemspec +4 -4
- data/lib/crack/xml.rb +2 -5
- metadata +3 -3
data/History
CHANGED
data/VERSION.yml
CHANGED
data/crack.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{crack}
|
|
5
|
-
s.version = "0.1.
|
|
5
|
+
s.version = "0.1.5"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["John Nunemaker"]
|
|
9
|
-
s.date = %q{2009-
|
|
9
|
+
s.date = %q{2009-08-14}
|
|
10
10
|
s.email = %q{nunemaker@gmail.com}
|
|
11
11
|
s.extra_rdoc_files = [
|
|
12
12
|
"LICENSE",
|
|
@@ -38,7 +38,7 @@ Gem::Specification.new do |s|
|
|
|
38
38
|
s.rdoc_options = ["--charset=UTF-8"]
|
|
39
39
|
s.require_paths = ["lib"]
|
|
40
40
|
s.rubyforge_project = %q{crack}
|
|
41
|
-
s.rubygems_version = %q{1.3.
|
|
41
|
+
s.rubygems_version = %q{1.3.2}
|
|
42
42
|
s.summary = %q{Really simple JSON and XML parsing, ripped from Merb and Rails.}
|
|
43
43
|
s.test_files = [
|
|
44
44
|
"test/crack_test.rb",
|
|
@@ -51,7 +51,7 @@ Gem::Specification.new do |s|
|
|
|
51
51
|
|
|
52
52
|
if s.respond_to? :specification_version then
|
|
53
53
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
54
|
-
s.specification_version =
|
|
54
|
+
s.specification_version = 3
|
|
55
55
|
|
|
56
56
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
|
57
57
|
else
|
data/lib/crack/xml.rb
CHANGED
|
@@ -82,11 +82,8 @@ class REXMLUtilityNode #:nodoc:
|
|
|
82
82
|
|
|
83
83
|
if @text
|
|
84
84
|
t = typecast_value( unnormalize_xml_entities( inner_html ) )
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
t.attributes = attributes
|
|
88
|
-
rescue TypeError => e
|
|
89
|
-
end
|
|
85
|
+
t.class.send(:include, Crack::HasAttributes)
|
|
86
|
+
t.attributes = attributes
|
|
90
87
|
return { name => t }
|
|
91
88
|
else
|
|
92
89
|
#change repeating groups into an array
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mdub-crack
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Nunemaker
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-
|
|
12
|
+
date: 2009-08-14 00:00:00 -07:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
@@ -67,7 +67,7 @@ requirements: []
|
|
|
67
67
|
rubyforge_project: crack
|
|
68
68
|
rubygems_version: 1.3.5
|
|
69
69
|
signing_key:
|
|
70
|
-
specification_version:
|
|
70
|
+
specification_version: 3
|
|
71
71
|
summary: Really simple JSON and XML parsing, ripped from Merb and Rails.
|
|
72
72
|
test_files:
|
|
73
73
|
- test/crack_test.rb
|