odata-model 0.6.5 → 0.6.6

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: dff3290f12485c6eae7e06b16f00dd9308391212
4
- data.tar.gz: 926fc3373017940520e3e081ff1b5429ee9ae0c3
3
+ metadata.gz: 42afeea8024b07520aa806548a55546735cda5fc
4
+ data.tar.gz: 8b79b9fc2185902dff6ebb1f79b49ae09438a621
5
5
  SHA512:
6
- metadata.gz: 68d352b1e9e3ac3a5f82f86b4967617628e5d558c56add6f6c10499944baf4d087a9167ee218e3e2cca3c274518733b8a1a177c80c75ac75b9c6424ea1d218b9
7
- data.tar.gz: 53a9ff4d5ac12e695996cd069f2bc90de78ac5ce0c27e59b4af133ab12f91f97a0611103cf719c00e5d7cfc9171274fa34ac4dd6f980b6e95c0dcb7ef8ccef6c
6
+ metadata.gz: dc2d58b8c32689dce5e74fd491149af9d100424ff199ef792e08265a34ba96f9238a80e365acf5734b9df722024bcc44badb42661218d8fb52ff3d1cbb353429
7
+ data.tar.gz: 06107450d1d6ca79ea42ed4f820c0c374f595b949715d11e881424d8312c01a0954d84e5f4265036b74d69ef15b8c0473453ccf6bd4f3de76e1e597f2b21a539
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.6.6
4
+
5
+ * Added OData::Model::QueryProxy#empty?
6
+
3
7
  ## 0.6.5
4
8
 
5
9
  * Updated implementation of OData::Model::QueryProxy#is.
@@ -92,6 +92,12 @@ module OData
92
92
  query.count
93
93
  end
94
94
 
95
+ # Indicates whether the query will return any results
96
+ # @return [Boolean]
97
+ def empty?
98
+ query.count > 0
99
+ end
100
+
95
101
  # Executes the query and returns each instance of the target model in
96
102
  # turn.
97
103
  def each(&block)
@@ -1,5 +1,5 @@
1
1
  module OData
2
2
  module Model
3
- VERSION = '0.6.5'
3
+ VERSION = '0.6.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: odata-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Thompson