pagy 2.0.0 → 2.0.1
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.
- checksums.yaml +4 -4
- data/lib/config/pagy.rb +3 -2
- data/lib/locales/pt-br.yml +2 -2
- data/lib/pagy.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8d2f8c701f3ddef6d2c1d5ab7c75084a3bb070069806a992a07f85010d8bde15
|
|
4
|
+
data.tar.gz: e7a939c71093a97ada5592096ea48de3898b290d597e80fff15e27cf49c7eb78
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 92295ab476345a4288261439e23b3fedbacdda8dcc8ec6123773d2389c002e1120bb61f17f003d920fb9cd78693d7029a13fda1735c29cc765593130e3cc742a
|
|
7
|
+
data.tar.gz: d67740ca65974f122c358496f734b83670656ae229d0e5985dbcac0b2006738d4c2f8f1e1dd53ad9f17b01033ed4c1bd3d6a5881c9c41fb772281e7b7cc9f641
|
data/lib/config/pagy.rb
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
# require 'pagy/extras/countless'
|
|
21
21
|
# Pagy::VARS[:cycle] = false # default
|
|
22
22
|
|
|
23
|
-
# Elasticsearch Rails extra: Paginate `ElasticsearchRails::Results` objects
|
|
23
|
+
# Elasticsearch Rails extra: Paginate `ElasticsearchRails::Results` objects
|
|
24
24
|
# See https://ddnexus.github.io/pagy/extras/elasticsearch_rails
|
|
25
25
|
# require 'pagy/extras/elasticsearch_rails'
|
|
26
26
|
|
|
27
|
-
# Searchkick extra: Paginate `Searchkick::Results` objects
|
|
27
|
+
# Searchkick extra: Paginate `Searchkick::Results` objects
|
|
28
28
|
# See https://ddnexus.github.io/pagy/extras/searchkick
|
|
29
29
|
# require 'pagy/extras/searchkick'
|
|
30
30
|
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
|
|
77
77
|
# Overflow extra: Allow for easy handling of overflowing pages
|
|
78
78
|
# See https://ddnexus.github.io/pagy/extras/overflow
|
|
79
|
+
# require 'pagy/extras/overflow'
|
|
79
80
|
# Pagy::VARS[:overflow] = :last_page # default (other options: :empty_page and :exception)
|
|
80
81
|
|
|
81
82
|
# Trim extra: Remove the page=1 param from links
|
data/lib/locales/pt-br.yml
CHANGED
|
@@ -9,12 +9,12 @@ pt-br:
|
|
|
9
9
|
zero: "Sem resultados"
|
|
10
10
|
one: "Mostrando 1 %{item_name}"
|
|
11
11
|
other: "Mostrando %{count} %{item_name}"
|
|
12
|
-
multiple_pages: "Mostrando %{item_name} %{from}-%{to}
|
|
12
|
+
multiple_pages: "Mostrando %{item_name} %{from}-%{to} do total de %{count}"
|
|
13
13
|
item_name:
|
|
14
14
|
zero: "itens"
|
|
15
15
|
one: "item"
|
|
16
16
|
other: "itens"
|
|
17
17
|
compact: "Página %{page_input} de %{pages}"
|
|
18
18
|
items:
|
|
19
|
-
one: "Mostrar %{items_input}
|
|
19
|
+
one: "Mostrar %{items_input} item por página"
|
|
20
20
|
other: "Mostrar %{items_input} itens por página"
|
data/lib/pagy.rb
CHANGED
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: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Domizio Demichelis
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-03-06 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,
|