trample_search 0.18.4 → 0.18.5

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: 471a63ed2945fb11fc356b666baa380ed98c483c
4
- data.tar.gz: 17e4c3bca0292dbfa47d536717427b970a552e0b
3
+ metadata.gz: 67a7d9c65e5c362724e5bd607a3625070dc9dd7a
4
+ data.tar.gz: a57574d842864208bd081334648803d6f8fffa23
5
5
  SHA512:
6
- metadata.gz: b98aa1c9f482913616d2a5df88624a8d6fa30dd23a120b3ec88243226f40eb1321b1a35f8eda850754f67fb625c4e41d5b8a55baa4eed3b6ad472ac0e2b5a0d1
7
- data.tar.gz: 4d2fbd7cf5570ae5ffa822704b6d28c70421c259cf9c4278b1108751999bd4547c3b37384b1f68fa4e1f6d7654f4e33ecc254447282ec08d4de40887246eba09
6
+ metadata.gz: 1715b6ee0422f92e38c4b71e78e0e69167e097264e9b5e41a7886096483a7d55dcc2c916be2539d6926469b117fa4d98ced09b1fc6ef8f5baacb5b3588555adf
7
+ data.tar.gz: 1916b31e63db6953c92a5cd463abf9c210e670193a2e47723ccabc3cab517faa0bb0e5efeab7dd03ef079908004f3efe9568372ae176dc5cde5507810a69cd0e
@@ -51,6 +51,16 @@ module Trample
51
51
  self
52
52
  end
53
53
 
54
+ def page(current_page)
55
+ metadata.pagination.current_page = current_page
56
+ self
57
+ end
58
+
59
+ def per(per_page)
60
+ metadata.pagination.per_page = per_page
61
+ self
62
+ end
63
+
54
64
  def sort(*fields)
55
65
  return self if fields.empty?
56
66
 
@@ -1,3 +1,3 @@
1
1
  module Trample
2
- VERSION = "0.18.4"
2
+ VERSION = "0.18.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trample_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.4
4
+ version: 0.18.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - richmolj