liquid_queries 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/liquid_queries/collection_methods.rb +12 -0
- data/lib/liquid_queries/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: 983006524eddd51fe1dabd25e6da1f80690e6c63
|
4
|
+
data.tar.gz: 5fd9791dd758b2bac6e94d959740d810ff8889c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d645b90384227008dfb9b5319a84a24218be4356a4be8c30094beb0b06dbbd8d183b77741b8ca883530737aece793563d512c0c530fd111ea6e91d247f58f81
|
7
|
+
data.tar.gz: da281e03a667dced09aa0ec49b53fe455039074987ecedd326b64baa80c889e5c9ece3bf071efcb74cd1c1e083848c57c659845b1535fe38e2a9a305b5893c05
|
@@ -7,6 +7,10 @@ module LiquidQueries::CollectionMethods
|
|
7
7
|
collection.any?
|
8
8
|
end
|
9
9
|
|
10
|
+
def current_page
|
11
|
+
collection.current_page
|
12
|
+
end
|
13
|
+
|
10
14
|
def empty?
|
11
15
|
collection.empty?
|
12
16
|
end
|
@@ -38,4 +42,12 @@ module LiquidQueries::CollectionMethods
|
|
38
42
|
def shift
|
39
43
|
collection.shift
|
40
44
|
end
|
45
|
+
|
46
|
+
def total_entries
|
47
|
+
collection.total_entries
|
48
|
+
end
|
49
|
+
|
50
|
+
def total_pages
|
51
|
+
collection.total_pages
|
52
|
+
end
|
41
53
|
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.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kaspernj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|