odata-model 0.6.1 → 0.6.2

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: 020be93a49670fde2d76fcd4383404740c85d18d
4
- data.tar.gz: 0cfddee7c63aca2e5a1779b260ff65e38522ec5b
3
+ metadata.gz: 348ee88a34cbf023b7ccd2fe90b04cbc287fbf8f
4
+ data.tar.gz: 81edf1ccc1fbe3eeead2e7e56206a1a33c0fa77b
5
5
  SHA512:
6
- metadata.gz: bf02e889c5318df600d166eb83257130053b2a96dde54d71b413216c6ceaf784af4e3dda4451ee97c0f0bb2517f7573edab981144e1ce8931c32dd18b44ec231
7
- data.tar.gz: 7c15b9b21ab724a549f00a1cd09af2cdc611751e54f2dd2e39966ecfd0db78a33c7a1201aa7226bd7c32db61ff77f9f63f0977453b1f6e4ba1d0ec5bb1825e5c
6
+ metadata.gz: f3d07826032fe6bd687325450a73c153824ec9ec0372aa7ae94e70cfa7c830fd09e295a8649fc9b7d679e24c55050d6f31fe9e3fa74a1bf4ba720e6521a6ed54
7
+ data.tar.gz: e57cc7621bbc4bacdf7a4bb8577aaeeba2857ee5d2d7c4aab6bf627a08e2d5dfb51b6a4aa692f7a51eb28210593d98d6c395f1a8581e9baa5ae6a12e4f8ae1e9
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.6.2
4
+
5
+ * Fixed issue in OData::Model::Persistence#save not calling underlying OData
6
+ service correctly.
7
+
3
8
  ## 0.6.1
4
9
 
5
10
  * Added support for declaring association class_name as a string.
@@ -35,7 +35,7 @@ module OData
35
35
 
36
36
  # Save the current model.
37
37
  def save
38
- odata_service[odata_entity_set_name] << odata_entity
38
+ self.class.odata_service[odata_entity_set_name] << odata_entity
39
39
  instance_variable_set(:@persisted, true)
40
40
  changes_applied
41
41
  end
@@ -43,7 +43,7 @@ module OData
43
43
  # Reload the model from OData
44
44
  def reload!
45
45
  # TODO reload OData entity
46
- reset_changes
46
+ #reset_changes
47
47
  end
48
48
 
49
49
  # Methods mixed in at the class level.
@@ -1,5 +1,5 @@
1
1
  module OData
2
2
  module Model
3
- VERSION = '0.6.1'
3
+ VERSION = '0.6.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: odata-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
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