odata 0.6.13 → 0.6.14
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/odata/association/proxy.rb +10 -1
- data/lib/odata/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 943ab749473103096ac1e3112bd58a3cac8ef453
|
|
4
|
+
data.tar.gz: aff62045213d7722a951bad6d8f2bdb014f6868a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 39c5d5f35616c5fac44c53eb8a7ad4f1bfb2e3820e4af4f9b15221c3ef4a9414207bc91c463e0f4db6b15e4e88b61d7b0fd332011201c7022ed1a44fb4e6f5a6
|
|
7
|
+
data.tar.gz: 816272d9977ae762154bc288067b89d3c28c46c8813ff0577bb03c5b63051e7a9c6f3d57a00de7b49e9c2403e0365aee6ac2acf003cd76dd9afd226c34a769ae
|
data/CHANGELOG.md
CHANGED
|
@@ -6,8 +6,17 @@ module OData
|
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
def [](association_name)
|
|
9
|
-
if
|
|
9
|
+
if associations[association_name].nil?
|
|
10
10
|
raise ArgumentError, "unknown association: #{association_name}"
|
|
11
|
+
elsif entity.links[association_name].nil?
|
|
12
|
+
association = associations[association_name]
|
|
13
|
+
association_end = association.ends.select {|details| details.entity_type != "#{namespace}.#{entity_type}"}.first
|
|
14
|
+
raise RuntimeError, 'association ends undefined' if association_end.nil?
|
|
15
|
+
if association_end.multiplicity == :many
|
|
16
|
+
[]
|
|
17
|
+
else
|
|
18
|
+
nil
|
|
19
|
+
end
|
|
11
20
|
end
|
|
12
21
|
|
|
13
22
|
association_results(association_name)
|
data/lib/odata/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.6.14
|
|
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-
|
|
11
|
+
date: 2014-10-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|