pagy 3.13.0 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagy
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.13.0
4
+ version: 4.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Domizio Demichelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-20 00:00:00.000000000 Z
11
+ date: 2021-04-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'Agnostic pagination in plain ruby: it works with any framework, ORM
14
14
  and DB type, with all kinds of collections, even pre-paginated, scopes, Arrays,
@@ -57,6 +57,7 @@ files:
57
57
  - lib/pagy.rb
58
58
  - lib/pagy/backend.rb
59
59
  - lib/pagy/countless.rb
60
+ - lib/pagy/deprecation.rb
60
61
  - lib/pagy/exceptions.rb
61
62
  - lib/pagy/extras/arel.rb
62
63
  - lib/pagy/extras/array.rb
@@ -72,10 +73,10 @@ files:
72
73
  - lib/pagy/extras/metadata.rb
73
74
  - lib/pagy/extras/navs.rb
74
75
  - lib/pagy/extras/overflow.rb
75
- - lib/pagy/extras/pagy_search.rb
76
76
  - lib/pagy/extras/searchkick.rb
77
77
  - lib/pagy/extras/semantic.rb
78
78
  - lib/pagy/extras/shared.rb
79
+ - lib/pagy/extras/standalone.rb
79
80
  - lib/pagy/extras/support.rb
80
81
  - lib/pagy/extras/trim.rb
81
82
  - lib/pagy/extras/uikit.rb
@@ -106,9 +107,6 @@ require_paths:
106
107
  required_ruby_version: !ruby/object:Gem::Requirement
107
108
  requirements:
108
109
  - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '1.9'
111
- - - "<"
112
110
  - !ruby/object:Gem::Version
113
111
  version: '3.0'
114
112
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -117,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
115
  - !ruby/object:Gem::Version
118
116
  version: '0'
119
117
  requirements: []
120
- rubygems_version: 3.1.6
118
+ rubygems_version: 3.2.15
121
119
  signing_key:
122
120
  specification_version: 4
123
121
  summary: The Ultimate Pagination Ruby Gem
@@ -1,18 +0,0 @@
1
- # Support module to capture search calls
2
- # encoding: utf-8
3
- # frozen_string_literal: true
4
-
5
- class Pagy
6
- module Search
7
- # returns an array used to delay the call of #search
8
- # after the pagination variables are merged to the options
9
- # it also pushes to the same array an eventually called method and arguments
10
- # the last search argument must be a hash option
11
- def pagy_search(*search_args, &block)
12
- search_args << {} unless search_args[-1].is_a?(Hash)
13
- [self, search_args, block].tap do |args|
14
- args.define_singleton_method(:method_missing){|*a| args += a}
15
- end
16
- end
17
- end
18
- end