pagy 3.11.0 → 3.12.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 +1 -1
- data/lib/javascripts/pagy.js +1 -1
- data/lib/locales/bs.yml +24 -0
- data/lib/locales/hr.yml +24 -0
- data/lib/locales/sr.yml +23 -0
- data/lib/locales/utils/p11n.rb +3 -0
- data/lib/pagy.rb +1 -1
- data/pagy.gemspec +1 -1
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 579eed5284017d67002b2def3cc82fab990b416c9b89226bdea2ec210677a014
|
4
|
+
data.tar.gz: b4fd177fbae68205121d79437dda967646aa593e45569934142a35546224c87e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5eba45292ec4f0c25047830e9c761aa081b6365e95be4ba09e5917c52ca59e9d956fccf376e6c7fb821fc318363a5078ce72abbfa83b6d11603a13953d3a476
|
7
|
+
data.tar.gz: b25ac2fcc23d996ff77f14b6f539d34e972a3c41178a790dc0697c92082243ec33fafe834639c4fce8acf3bfa11c77f78ca725d2f2b01f91665af9f2def43b6b
|
data/lib/config/pagy.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
-
# Pagy initializer file (3.
|
4
|
+
# Pagy initializer file (3.12.0)
|
5
5
|
# Customize only what you really need and notice that Pagy works also without any of the following lines.
|
6
6
|
# Should you just cherry pick part of this file, please maintain the require-order of the extras
|
7
7
|
|
data/lib/javascripts/pagy.js
CHANGED
data/lib/locales/bs.yml
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# :east_slavic pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
|
2
|
+
|
3
|
+
bs:
|
4
|
+
pagy:
|
5
|
+
|
6
|
+
item_name:
|
7
|
+
one: "stavka"
|
8
|
+
few: "stavke"
|
9
|
+
many: "stavki"
|
10
|
+
other: "stavki"
|
11
|
+
|
12
|
+
nav:
|
13
|
+
prev: "‹ Prethodna"
|
14
|
+
next: "Sljedeća ›"
|
15
|
+
gap: "…"
|
16
|
+
|
17
|
+
info:
|
18
|
+
no_items: "Nije pronađena %{item_name}"
|
19
|
+
single_page: "Prikazuje se <b>%{count}</b> %{item_name}"
|
20
|
+
multiple_pages: "Prikaz %{item_name} <b>%{from}-%{to}</b> od <b>%{count}</b> ukupno"
|
21
|
+
|
22
|
+
combo_nav_js: "Stranica %{page_input} od %{pages}"
|
23
|
+
|
24
|
+
items_selector_js: "Prikaži %{items_input} %{item_name} po stranici"
|
data/lib/locales/hr.yml
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# :east_slavic pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
|
2
|
+
|
3
|
+
hr:
|
4
|
+
pagy:
|
5
|
+
|
6
|
+
item_name:
|
7
|
+
one: "stavka"
|
8
|
+
few: "stavke"
|
9
|
+
many: "stavki"
|
10
|
+
other: "stavki"
|
11
|
+
|
12
|
+
nav:
|
13
|
+
prev: "‹ Prethodna"
|
14
|
+
next: "Sljedeća ›"
|
15
|
+
gap: "…"
|
16
|
+
|
17
|
+
info:
|
18
|
+
no_items: "Nije pronađena %{item_name}"
|
19
|
+
single_page: "Prikazuje se <b>%{count}</b> %{item_name}"
|
20
|
+
multiple_pages: "Prikaz %{item_name} <b>%{from}-%{to}</b> od <b>%{count}</b> ukupno"
|
21
|
+
|
22
|
+
combo_nav_js: "Stranica %{page_input} od %{pages}"
|
23
|
+
|
24
|
+
items_selector_js: "Prikaži %{items_input} %{item_name} po stranici"
|
data/lib/locales/sr.yml
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# :east_slavic pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
|
2
|
+
|
3
|
+
sr:
|
4
|
+
pagy:
|
5
|
+
item_name:
|
6
|
+
one: "ставка"
|
7
|
+
few: "ставкe"
|
8
|
+
many: "ставки"
|
9
|
+
other: "ставки"
|
10
|
+
|
11
|
+
nav:
|
12
|
+
prev: "‹ Претходна"
|
13
|
+
next: "Следећa ›"
|
14
|
+
gap: "…"
|
15
|
+
|
16
|
+
info:
|
17
|
+
no_items: "Нema пронађених %{item_name}"
|
18
|
+
single_page: "Приказује се <b>%{count}</b> %{item_name}"
|
19
|
+
multiple_pages: "Приказ %{item_name} <b>%{from}-%{to}</b> од <b>%{count}</b> укупно"
|
20
|
+
|
21
|
+
combo_nav_js: "Страниca %{page_input} од %{pages}"
|
22
|
+
|
23
|
+
items_selector_js: "Прикажи %{items_input} %{item_name} по страниcи"
|
data/lib/locales/utils/p11n.rb
CHANGED
@@ -67,14 +67,17 @@ p11n = {
|
|
67
67
|
# The default pluralization for locales not explicitly listed here
|
68
68
|
# is the :one_other pluralization proc (used for English)
|
69
69
|
plurals = Hash.new(p11n[:one_other]).tap do |hash|
|
70
|
+
hash['bs'] = p11n[:east_slavic]
|
70
71
|
hash['cs'] = p11n[:west_slavic]
|
71
72
|
hash['id'] = p11n[:other]
|
72
73
|
hash['fr'] = p11n[:one_upto_two_other]
|
74
|
+
hash['hr'] = p11n[:east_slavic]
|
73
75
|
hash['ja'] = p11n[:other]
|
74
76
|
hash['km'] = p11n[:other]
|
75
77
|
hash['ko'] = p11n[:other]
|
76
78
|
hash['pl'] = p11n[:polish]
|
77
79
|
hash['ru'] = p11n[:east_slavic]
|
80
|
+
hash['sr'] = p11n[:east_slavic]
|
78
81
|
hash['sv'] = p11n[:one_two_other]
|
79
82
|
hash['sv-SE'] = p11n[:one_two_other]
|
80
83
|
hash['tr'] = p11n[:other]
|
data/lib/pagy.rb
CHANGED
data/pagy.gemspec
CHANGED
@@ -12,5 +12,5 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.homepage = 'https://github.com/ddnexus/pagy'
|
13
13
|
s.license = 'MIT'
|
14
14
|
s.files = `git ls-files -z`.split("\x0").select{|f| f.start_with?('lib', 'pagy.gemspec', 'LICENSE') }
|
15
|
-
s.required_ruby_version = '>= 1.9'
|
15
|
+
s.required_ruby_version = ['>= 1.9', '< 3.0']
|
16
16
|
end
|
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.
|
4
|
+
version: 3.12.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-
|
11
|
+
date: 2021-03-12 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,
|
@@ -24,6 +24,7 @@ files:
|
|
24
24
|
- lib/javascripts/pagy.js
|
25
25
|
- lib/locales/README.md
|
26
26
|
- lib/locales/bg.yml
|
27
|
+
- lib/locales/bs.yml
|
27
28
|
- lib/locales/ca.yml
|
28
29
|
- lib/locales/cs.yml
|
29
30
|
- lib/locales/da.yml
|
@@ -31,6 +32,7 @@ files:
|
|
31
32
|
- lib/locales/en.yml
|
32
33
|
- lib/locales/es.yml
|
33
34
|
- lib/locales/fr.yml
|
35
|
+
- lib/locales/hr.yml
|
34
36
|
- lib/locales/id.yml
|
35
37
|
- lib/locales/it.yml
|
36
38
|
- lib/locales/ja.yml
|
@@ -42,6 +44,7 @@ files:
|
|
42
44
|
- lib/locales/pt-BR.yml
|
43
45
|
- lib/locales/pt.yml
|
44
46
|
- lib/locales/ru.yml
|
47
|
+
- lib/locales/sr.yml
|
45
48
|
- lib/locales/sv-SE.yml
|
46
49
|
- lib/locales/sv.yml
|
47
50
|
- lib/locales/sw.yml
|
@@ -107,13 +110,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
107
110
|
- - ">="
|
108
111
|
- !ruby/object:Gem::Version
|
109
112
|
version: '1.9'
|
113
|
+
- - "<"
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '3.0'
|
110
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
117
|
requirements:
|
112
118
|
- - ">="
|
113
119
|
- !ruby/object:Gem::Version
|
114
120
|
version: '0'
|
115
121
|
requirements: []
|
116
|
-
rubygems_version: 3.1.
|
122
|
+
rubygems_version: 3.1.4
|
117
123
|
signing_key:
|
118
124
|
specification_version: 4
|
119
125
|
summary: The Ultimate Pagination Ruby Gem
|