odata-model 0.5.14 → 0.5.15

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: d5564ad29bff3ed9359278ef62b8d6f43bb10893
4
- data.tar.gz: 44f1e42fc5e847fb1409c967b67c501261c6d01f
3
+ metadata.gz: daf0d3e0301711dd16f05d1c7b9fcb29661ad8d0
4
+ data.tar.gz: dc1dd7e060dd3e0a266087a93ebd3af7f0762ab3
5
5
  SHA512:
6
- metadata.gz: 38bc7a851dd538c7afbbe1291bf854e56018716259e94bc9b02bf5150f0ff2295047ed76fd6fec4899d85c4320e1ed3e2058921c607c3d6d5a75a840b5c523ca
7
- data.tar.gz: ccba6c73319579ddd483fb0e1f431ce0ffa934c32433d94f49a062db60fc1ce7d5a065731fd495856796d578e5c59c41b0042ba46234aa6ef78680be1c3a3785
6
+ metadata.gz: e3b0fad1dadabc01cd4ee52ce597cb8189e582f00c054a385888a1acc13c7cfb0be1b94454d809f6c34f54e36195d62abd6142fafdaf0f54a98d2b0926a88e42
7
+ data.tar.gz: 582349ba8daee47b23e8d12c87cecda58237dcdaf5ff3e0130af8fbf49a6775cfa8248c7dcc99958b5ff595a9c5a16746ba3909b520aa607b79cd2b2dcfc1819
@@ -55,6 +55,7 @@ module OData
55
55
  # @return [OData::Model,nil]
56
56
  def [](primary_key_value)
57
57
  entity = odata_entity_set[primary_key_value]
58
+ return entity if entity.nil?
58
59
  model = self.new
59
60
  model.instance_variable_set(:@odata_entity, entity)
60
61
  model
@@ -1,5 +1,5 @@
1
1
  module OData
2
2
  module Model
3
- VERSION = '0.5.14'
3
+ VERSION = '0.5.15'
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.5.14
4
+ version: 0.5.15
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-09-15 00:00:00.000000000 Z
11
+ date: 2014-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler