caren-api 0.6.3 → 0.6.4

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 (4) hide show
  1. data/VERSION +1 -1
  2. data/caren-api.gemspec +1 -1
  3. data/lib/caren/base.rb +4 -2
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.3
1
+ 0.6.4
data/caren-api.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "caren-api"
8
- s.version = "0.6.3"
8
+ s.version = "0.6.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andre Foeken"]
data/lib/caren/base.rb CHANGED
@@ -73,8 +73,10 @@ class Caren::Base
73
73
  end
74
74
 
75
75
  # Convert this object to XML
76
- def to_xml options={}
77
- self.as_xml.to_xml(options.merge( :root => (self.node_root || self.class.node_root) ))
76
+ def to_xml options={}, action=nil
77
+ base_hash = self.as_xml
78
+ base_hash = base_hash.merge( :action => action ) if action
79
+ base_hash.to_xml(options.merge( :root => (self.node_root || self.class.node_root) ))
78
80
  end
79
81
 
80
82
  # Overridable hash of attributes that is used for converting to XML.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caren-api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 3
10
- version: 0.6.3
9
+ - 4
10
+ version: 0.6.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andre Foeken