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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bac0c5021223506bae2ee4da7e235a390b7faaff
4
- data.tar.gz: 7cdb16253de2e8a4e0ac836be8191bee3e36f287
3
+ metadata.gz: dff3290f12485c6eae7e06b16f00dd9308391212
4
+ data.tar.gz: 926fc3373017940520e3e081ff1b5429ee9ae0c3
5
5
  SHA512:
6
- metadata.gz: 481fe15aa2fb418a246ee275cc7d2c1a385ff4fbf9476dd13a4272031a768cd1c1da036f3bb4a76ca4a489e23b99437f98ae367794f48c0dfb5aa37ba72d9fdc
7
- data.tar.gz: e0130559ce0f9ddc1250ba034f0b821457b5477c13e3d45aa97da344e017c36a36f0d05034b6912dd85fbdecb68152d78c450f46a09ca53ea3a549278b6099af
6
+ metadata.gz: 68d352b1e9e3ac3a5f82f86b4967617628e5d558c56add6f6c10499944baf4d087a9167ee218e3e2cca3c274518733b8a1a177c80c75ac75b9c6424ea1d218b9
7
+ data.tar.gz: 53a9ff4d5ac12e695996cd069f2bc90de78ac5ce0c27e59b4af133ab12f91f97a0611103cf719c00e5d7cfc9171274fa34ac4dd6f980b6e95c0dcb7ef8ccef6c
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.6.5
4
+
5
+ * Updated implementation of OData::Model::QueryProxy#is.
6
+
3
7
  ## 0.6.4
4
8
 
5
9
  * Fixed bug in OData::Model::Associations.create_association_accessors.
@@ -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 = query[property.name].send(operator.to_sym, value)
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
@@ -1,5 +1,5 @@
1
1
  module OData
2
2
  module Model
3
- VERSION = '0.6.4'
3
+ VERSION = '0.6.5'
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.4
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-08 00:00:00.000000000 Z
11
+ date: 2014-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler