odata 0.6.5 → 0.6.6

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: 6459e019ac7dc963e23c2a945147be22a665f096
4
- data.tar.gz: c5e2a4082dce77e6b69b7d6653f5c9d44c771361
3
+ metadata.gz: 7bcb409923afacd4cbe61f5529778a48095d8bfa
4
+ data.tar.gz: 1e9717542f01cebe59d94f7cc96eaecc41105a5f
5
5
  SHA512:
6
- metadata.gz: 6099596a293348cc4cc9e51f6fa83fc48d2e03ce263b5f6e0b662d2bb36f2c1509c0c5daffc0311cd82eeec991c14175bcb50c4359aab51eba44b9fba4463f0e
7
- data.tar.gz: 79e1d33b7e16f9ca45ea6f7e2c1d8d5d0db55b3842a866cac1c5e2c22cc7cd67209bf38c58fa8fcfbb4ee5eda74ea7342783ae76b1523c5b2c355b5daf85e8fc
6
+ metadata.gz: 6bdf2a6ff80565a48c9c013d4bfacdd6d2051f7917c4cf2bbd708aa553fb2e2179e0d8943f53691e230c8fcb0e030bc6d6426a93ff4851e2e292060ee401cb98
7
+ data.tar.gz: 89ffb30a578f9dc4e66c3181f4f30598a0fca8499e101420cd80c1f5722c6eb0b57698a2e030ff00b8ad51257f562aa05c9af3d16cc5a82a3fd05fbb24006025
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.6.6
4
+
5
+ * Updated OData::EntitySet#setup_entity_post_request to properly format primary
6
+ key values when posting an entity.
7
+
3
8
  ## 0.6.5
4
9
 
5
10
  * Fixed problem in OData::ComplexType#to_xml implementation.
@@ -149,7 +149,8 @@ module OData
149
149
  end
150
150
 
151
151
  def setup_entity_post_request(entity)
152
- chunk = entity.is_new? ? name : "#{name}(#{entity[entity.primary_key]})"
152
+ primary_key = entity.send(:properties)[entity.primary_key].url_value
153
+ chunk = entity.is_new? ? name : "#{name}(#{primary_key})"
153
154
  options = {
154
155
  method: :post,
155
156
  body: entity.to_xml.gsub(/\n\s+/, ''),
data/lib/odata/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module OData
2
- VERSION = '0.6.5'
2
+ VERSION = '0.6.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: odata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Thompson