unhappymapper 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/happymapper.rb +5 -5
  2. metadata +5 -5
data/lib/happymapper.rb CHANGED
@@ -450,7 +450,7 @@ module HappyMapper
450
450
  # Create a tag in the builder that matches the class's tag name and append
451
451
  # any attributes to the element that were defined above.
452
452
  #
453
- builder.send(self.class.tag_name,attributes) do |xml|
453
+ builder.send("#{self.class.tag_name}_",attributes) do |xml|
454
454
 
455
455
  #
456
456
  # Add all the registered namespaces to the root element.
@@ -542,7 +542,7 @@ module HappyMapper
542
542
  # an empty element will be written to the xml
543
543
  #
544
544
  if value.nil? && element.options[:single] && element.options[:state_when_nil]
545
- xml.send(tag,"")
545
+ xml.send("#{tag}_","")
546
546
  end
547
547
 
548
548
  #
@@ -576,9 +576,9 @@ module HappyMapper
576
576
  # When a value exists we should append the value for the tag
577
577
  #
578
578
  if item_namespace
579
- xml[item_namespace].send(tag,item.to_s)
579
+ xml[item_namespace].send("#{tag}_",item.to_s)
580
580
  else
581
- xml.send(tag,item.to_s)
581
+ xml.send("#{tag}_",item.to_s)
582
582
  end
583
583
 
584
584
  else
@@ -587,7 +587,7 @@ module HappyMapper
587
587
  # Normally a nil value would be ignored, however if specified then
588
588
  # an empty element will be written to the xml
589
589
  #
590
- xml.send(tag,"") if element.options[:state_when_nil]
590
+ xml.send("#{tag}_","") if element.options[:state_when_nil]
591
591
 
592
592
  end
593
593
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unhappymapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,7 +18,7 @@ date: 2011-08-22 00:00:00.000000000Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: nokogiri
21
- requirement: &70124690482680 !ruby/object:Gem::Requirement
21
+ requirement: &70120458309660 !ruby/object:Gem::Requirement
22
22
  none: false
23
23
  requirements:
24
24
  - - ~>
@@ -26,10 +26,10 @@ dependencies:
26
26
  version: '1.4'
27
27
  type: :runtime
28
28
  prerelease: false
29
- version_requirements: *70124690482680
29
+ version_requirements: *70120458309660
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rspec
32
- requirement: &70124690482200 !ruby/object:Gem::Requirement
32
+ requirement: &70120458305740 !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
35
  - - ~>
@@ -37,7 +37,7 @@ dependencies:
37
37
  version: 1.3.0
38
38
  type: :development
39
39
  prerelease: false
40
- version_requirements: *70124690482200
40
+ version_requirements: *70120458305740
41
41
  description: Object to XML Mapping Library, using Nokogiri (fork from John Nunemaker's
42
42
  Happymapper)
43
43
  email: franklin.webber@gmail.com