liquid_queries 0.0.3 → 0.0.4
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 +9 -1
- data/lib/liquid_queries/order_query.rb +11 -0
- data/lib/liquid_queries/ransack_query.rb +1 -1
- data/lib/liquid_queries/ransack_query_value.rb +1 -1
- data/lib/liquid_queries/version.rb +1 -1
- data/lib/liquid_queries.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ed2186c51888e888496a15618d15deba591da68
|
4
|
+
data.tar.gz: 8682b6aa196f2aac8f61a55a8a5b8fde7b3fe7cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a10a2d2c46bd727daf07a0c32a2fe1e4219070720ea827469aa1c6edba033ff3f27827985a17231ffd9f410931beaba664e90ad83388dc74e9968b706b49da3
|
7
|
+
data.tar.gz: 58eb1cd76fc49dc7be217af88877586b82f9d25fef225882bf68ac17f7bbe372e90d2b949abef6d6a466ccd5c2bacb6322ec49b4ca121c8b9ef7686639c56ede
|
@@ -19,12 +19,20 @@ module LiquidQueries::CollectionMethods
|
|
19
19
|
collection.last
|
20
20
|
end
|
21
21
|
|
22
|
+
def order
|
23
|
+
::LiquidQueries::OrderQuery.new(collection: collection)
|
24
|
+
end
|
25
|
+
|
22
26
|
def pop
|
23
27
|
collection.pop
|
24
28
|
end
|
25
29
|
|
26
30
|
def ransack
|
27
|
-
LiquidQueries::RansackQuery.new(collection: collection)
|
31
|
+
::LiquidQueries::RansackQuery.new(collection: collection)
|
32
|
+
end
|
33
|
+
|
34
|
+
def reverse_order
|
35
|
+
::LiquidQueries::Collection.new(collection: collection.reverse_order)
|
28
36
|
end
|
29
37
|
|
30
38
|
def shift
|
data/lib/liquid_queries.rb
CHANGED
@@ -3,6 +3,7 @@ module LiquidQueries
|
|
3
3
|
|
4
4
|
autoload :Collection, "#{path}/collection"
|
5
5
|
autoload :CollectionMethods, "#{path}/collection_methods"
|
6
|
+
autoload :OrderQuery, "#{path}/order_query"
|
6
7
|
autoload :RansackQuery, "#{path}/ransack_query"
|
7
8
|
autoload :RansackQueryValue, "#{path}/ransack_query_value"
|
8
9
|
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.4
|
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-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- lib/liquid_queries/collection.rb
|
55
55
|
- lib/liquid_queries/collection_methods.rb
|
56
56
|
- lib/liquid_queries/engine.rb
|
57
|
+
- lib/liquid_queries/order_query.rb
|
57
58
|
- lib/liquid_queries/ransack_query.rb
|
58
59
|
- lib/liquid_queries/ransack_query_value.rb
|
59
60
|
- lib/liquid_queries/version.rb
|