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.
Files changed (5) hide show
  1. data/History +4 -0
  2. data/VERSION.yml +2 -2
  3. data/crack.gemspec +4 -4
  4. data/lib/crack/xml.rb +2 -5
  5. metadata +3 -3
data/History CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.1.5 2009-08-14
2
+ * 1 minor patch
3
+ * Parsing an array element with extra attributes stores them in the "attributes" attribute (mdub)
4
+
1
5
  == 0.1.3 2009-06-22
2
6
  * 1 minor patch
3
7
  * Parsing a text node with attributes stores them in the attributes method (tamalw)
@@ -1,4 +1,4 @@
1
1
  ---
2
- :major: 0
3
2
  :minor: 1
4
- :patch: 4
3
+ :patch: 5
4
+ :major: 0
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{crack}
5
- s.version = "0.1.4"
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-07-19}
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.1}
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 = 2
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
@@ -82,11 +82,8 @@ class REXMLUtilityNode #:nodoc:
82
82
 
83
83
  if @text
84
84
  t = typecast_value( unnormalize_xml_entities( inner_html ) )
85
- begin
86
- t.extend(Crack::HasAttributes)
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
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-07-19 00:00:00 -07:00
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: 2
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