liquid_queries 0.0.7 → 0.0.8

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: 426ac2d5f3e15dbcc920690b8b9e9c535fa8ffb6
4
- data.tar.gz: d4a95b463920e8af665c5c8dcabcffaae1be24bc
3
+ metadata.gz: 6a872b98ae8ce9ff7b7adb9c0a3c20c5037a978e
4
+ data.tar.gz: dd30e6d4a10c3a1bb3bfa2741a2f1daa0be18c23
5
5
  SHA512:
6
- metadata.gz: b6a2858f8bd2ac231cf469840774f10d6c40d5baacf3052e152c424d35260566e0770af8138e59ae14de34c719d2f99d3e76d4ffb3e7b4b72fa53d0be08efb3d
7
- data.tar.gz: 7704e6890d711709366ac145cf572838a3cfe07b3a1cc527d5848d55a937f3add0f0d8b796942dff4c2db2c46bc2c11708f2aee3fe484b8378e2a791695e1c2a
6
+ metadata.gz: 6b65d84c3d850696a21d1fc533c3d64c5f05bf4a0e12569fb7db58b3532858d1826fa0256bc28160b9a1002f2d4f33607806b32b0e8d782e0b51f75e675c7147
7
+ data.tar.gz: 33619cd136eb8731f800d59dfd0a73eeeb7605b66514b166bfb36d3d69bc184aa84fbf612d0d99e713bd6d93e8e196126a7df34fcaee15827ee4d10b571eefea
@@ -7,6 +7,10 @@ module LiquidQueries::CollectionMethods
7
7
  collection.any?
8
8
  end
9
9
 
10
+ def count
11
+ collection.count
12
+ end
13
+
10
14
  def current_page
11
15
  collection.current_page
12
16
  end
@@ -23,12 +27,16 @@ module LiquidQueries::CollectionMethods
23
27
  collection.last
24
28
  end
25
29
 
30
+ def length
31
+ collection.length
32
+ end
33
+
26
34
  def order
27
35
  ::LiquidQueries::OrderQuery.new(collection: collection)
28
36
  end
29
37
 
30
38
  def pop
31
- collection.pop
39
+ to_a.pop
32
40
  end
33
41
 
34
42
  def ransack
@@ -39,12 +47,16 @@ module LiquidQueries::CollectionMethods
39
47
  ::LiquidQueries::Collection.new(collection: collection.reverse_order)
40
48
  end
41
49
 
50
+ def size
51
+ collection.size
52
+ end
53
+
42
54
  def shift
43
- collection.shift
55
+ to_a.shift
44
56
  end
45
57
 
46
58
  def to_a
47
- collection.to_a
59
+ @_to_a ||= collection.to_a
48
60
  end
49
61
 
50
62
  def total_entries
@@ -1,3 +1,3 @@
1
1
  module LiquidQueries
2
- VERSION = "0.0.7".freeze
2
+ VERSION = "0.0.8".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquid_queries
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaspernj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-31 00:00:00.000000000 Z
11
+ date: 2017-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails