odata 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 038dc613d3085dd5a50fd5449c6789411eac3138
4
- data.tar.gz: bd090a5a7ed6ab96f0cfdf4e0008a49a9ec39df2
3
+ metadata.gz: 41730d574103288a650b5b0a75ac63805f4882c7
4
+ data.tar.gz: 66dacc17716212d8c7a773d1c8b6570a6598bcb1
5
5
  SHA512:
6
- metadata.gz: 3eed9d5f5643e27f62c48d613a4f8a5dedb7fac4ea7d06ac0f0df170b803732b84c3fba57ecb1f1e238f249308c4e90538d206ec75d8791704f002f3437e2f88
7
- data.tar.gz: b301271a9441a899cfbc3ed9890478335fca1e8408b2aba75ec2eb86a8d5ff42826f0d30ac395a2ec8b509d5d07f4ae0033a8860787b014df3787a1591fc5fed
6
+ metadata.gz: 1caeb2f264cb71cb220fe62f6e7da19475259901a350b106568588cb092816511267b33f8f1e11080b2dca1182115f870eb123a20c493ab2c40753e1156fd9e4
7
+ data.tar.gz: ad2dca3eeeb199520eaf5cd6b0057d1f340b85abc2bd9c617d8073a77cc2be65763e272693eb7162d3cc2623d6d10b02b52fbffd4a305dc63f0836d2287bb1c0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.6.3
4
+
5
+ * Added OData::ComplexType#to_xml to make entity saving work correctly.
6
+
3
7
  ## 0.6.1
4
8
 
5
9
  * Made a minor change to internals of OData::Query::Criteria.
@@ -46,6 +46,21 @@ module OData
46
46
  properties[property_name.to_s].value = value
47
47
  end
48
48
 
49
+ # Returns the XML representation of the property to the supplied XML
50
+ # builder.
51
+ # @param xml_builder [Nokogiri::XML::Builder]
52
+ def to_xml(xml_builder)
53
+ attributes = {
54
+ 'metadata:type' => type,
55
+ }
56
+
57
+ xml_builder['data'].send(name.to_sym, attributes) do
58
+ properties.each do |name, property|
59
+ property.to_xml(xml)
60
+ end
61
+ end
62
+ end
63
+
49
64
  private
50
65
 
51
66
  def service
data/lib/odata/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module OData
2
- VERSION = '0.6.2'
2
+ VERSION = '0.6.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: odata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Thompson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-02 00:00:00.000000000 Z
11
+ date: 2014-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler