pagy 3.13.0 → 4.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/config/pagy.rb +36 -25
- data/lib/javascripts/pagy.js +60 -56
- data/lib/locales/utils/i18n.rb +3 -11
- data/lib/locales/utils/loader.rb +7 -10
- data/lib/locales/utils/p11n.rb +24 -20
- data/lib/pagy.rb +51 -40
- data/lib/pagy/backend.rb +5 -3
- data/lib/pagy/countless.rb +13 -10
- data/lib/pagy/deprecation.rb +27 -0
- data/lib/pagy/exceptions.rb +7 -5
- data/lib/pagy/extras/arel.rb +4 -3
- data/lib/pagy/extras/array.rb +4 -3
- data/lib/pagy/extras/bootstrap.rb +62 -30
- data/lib/pagy/extras/bulma.rb +61 -38
- data/lib/pagy/extras/countless.rb +7 -8
- data/lib/pagy/extras/elasticsearch_rails.rb +28 -17
- data/lib/pagy/extras/foundation.rb +62 -32
- data/lib/pagy/extras/headers.rb +13 -9
- data/lib/pagy/extras/i18n.rb +8 -11
- data/lib/pagy/extras/items.rb +21 -34
- data/lib/pagy/extras/materialize.rb +59 -35
- data/lib/pagy/extras/metadata.rb +27 -21
- data/lib/pagy/extras/navs.rb +45 -20
- data/lib/pagy/extras/overflow.rb +50 -48
- data/lib/pagy/extras/searchkick.rb +27 -16
- data/lib/pagy/extras/semantic.rb +56 -30
- data/lib/pagy/extras/shared.rb +12 -13
- data/lib/pagy/extras/standalone.rb +71 -0
- data/lib/pagy/extras/support.rb +20 -11
- data/lib/pagy/extras/trim.rb +12 -11
- data/lib/pagy/extras/uikit.rb +64 -34
- data/lib/pagy/frontend.rb +62 -33
- metadata +5 -7
- data/lib/pagy/extras/pagy_search.rb +0 -18
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:
|
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-
|
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.
|
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
|