odata-model 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/odata/model/query_proxy.rb +5 -1
- data/lib/odata/model/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: dff3290f12485c6eae7e06b16f00dd9308391212
|
4
|
+
data.tar.gz: 926fc3373017940520e3e081ff1b5429ee9ae0c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68d352b1e9e3ac3a5f82f86b4967617628e5d558c56add6f6c10499944baf4d087a9167ee218e3e2cca3c274518733b8a1a177c80c75ac75b9c6424ea1d218b9
|
7
|
+
data.tar.gz: 53a9ff4d5ac12e695996cd069f2bc90de78ac5ce0c27e59b4af133ab12f91f97a0611103cf719c00e5d7cfc9171274fa34ac4dd6f980b6e95c0dcb7ef8ccef6c
|
data/CHANGELOG.md
CHANGED
@@ -44,7 +44,11 @@ module OData
|
|
44
44
|
raise ArgumentError 'can only accept Hash argument' unless arguments.is_a?(Hash)
|
45
45
|
property = last_criteria.property
|
46
46
|
arguments.each do |operator, value|
|
47
|
-
@last_criteria =
|
47
|
+
@last_criteria = if property.respond_to?(:name)
|
48
|
+
query[property.name].send(operator.to_sym, value)
|
49
|
+
else
|
50
|
+
query[property].send(operator.to_sym, value)
|
51
|
+
end
|
48
52
|
query.where(last_criteria)
|
49
53
|
end
|
50
54
|
self
|
data/lib/odata/model/version.rb
CHANGED
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.
|
4
|
+
version: 0.6.5
|
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
|