odata-model 0.5.18 → 0.5.19

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: 1ae5400c97d82391f59ffcab1411c2f14407dae7
4
- data.tar.gz: 823547446b0e86673b988279df81dc4924e09e0a
3
+ metadata.gz: 0b1fc0e7232a9bde95d4e1c592c57e4b05b4b43b
4
+ data.tar.gz: 36660af2ef6abd05cab7d7db9e091d43fa15f01a
5
5
  SHA512:
6
- metadata.gz: c874f1b14ecddd0bfedb0f17b9f3149e20e8970148bef49814862f3199104a1408e27f0afd63f00c4a62bea1d0bcc5356f81e60bd342ff534fecc64947503f72
7
- data.tar.gz: 7273bb545963b8160e9213fa29ae0feb47cd19286f6302f64de25f0cb03e4a0ae498a727e549eb369aea33da445fe7e8d253f4e24f14c6ed2962c98168e3177f
6
+ metadata.gz: 644e307c8f9d1eb859b842d7e5b7caddd8f7ffb2c6cfc031f2e3cd6d06e58b49f5aa0a4374b5dbd059e586a4a154cbf88d29e29b1c81c5f9cec473f5f1bae18c
7
+ data.tar.gz: 34e0b3fc78a6a57e08c753921cefcc03cbc4784f3c319d52b708628b176aaa363507928d66eb0c223ee0a041e59ad098ef0703da9a8276c2b5b478034a18fb62
@@ -82,6 +82,12 @@ module OData
82
82
  self
83
83
  end
84
84
 
85
+ # Provides a faster implementation of Enumerable#count
86
+ # @return [Integer]
87
+ def count
88
+ query.count
89
+ end
90
+
85
91
  # Executes the query and returns each instance of the target model in
86
92
  # turn.
87
93
  def each(&block)
@@ -1,5 +1,5 @@
1
1
  module OData
2
2
  module Model
3
- VERSION = '0.5.18'
3
+ VERSION = '0.5.19'
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.18
4
+ version: 0.5.19
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-25 00:00:00.000000000 Z
11
+ date: 2014-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler