pagy 3.11.0 → 3.12.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5cadf66aafed63e69474727fab67e77da2038ad95e9a1430d5546da2b5f9d1a2
4
- data.tar.gz: 6a716cef53d59459b3406e0e330d44536b8f5ec738d0661140d3fd805ef613ec
3
+ metadata.gz: 579eed5284017d67002b2def3cc82fab990b416c9b89226bdea2ec210677a014
4
+ data.tar.gz: b4fd177fbae68205121d79437dda967646aa593e45569934142a35546224c87e
5
5
  SHA512:
6
- metadata.gz: 563e233579eab779aa3210751143c617369d3e0f34bd5365a7e50ed6bd07346b1aa052a3a2fec8b25b375dbc6d837836639915ab01160aff857938fbac515412
7
- data.tar.gz: 02a8a1d45a18b5ea644e24c3fa50b6d4cdb48c3fd27fb135ece5fd981ea246da568759427f1daba2cf29705fe1dbcaf6e52f97f8cca84744fd285bee0cca4338
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.11.0)
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
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  function Pagy(){}
4
4
 
5
- Pagy.version = '3.11.0';
5
+ Pagy.version = '3.12.0';
6
6
 
7
7
  Pagy.init = function(arg){
8
8
  var target = arg instanceof Event || arg === undefined ? document : arg,
@@ -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"
@@ -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: "&lsaquo;&nbsp;Prethodna"
14
+ next: "Sljedeća &nbsp;&rsaquo;"
15
+ gap: "&hellip;"
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"
@@ -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: "&lsaquo;&nbsp;Претходна"
13
+ next: "Следећa &nbsp;&rsaquo;"
14
+ gap: "&hellip;"
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и"
@@ -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
@@ -4,7 +4,7 @@
4
4
 
5
5
  require 'pathname'
6
6
 
7
- class Pagy ; VERSION = '3.11.0'
7
+ class Pagy ; VERSION = '3.12.0'
8
8
 
9
9
  # Root pathname to get the path of Pagy files like templates or dictionaries
10
10
  def self.root; @root ||= Pathname.new(__FILE__).dirname.freeze end
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' # rubocop:disable Gemspec/RequiredRubyVersion
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.11.0
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-02-14 00:00:00.000000000 Z
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.2
122
+ rubygems_version: 3.1.4
117
123
  signing_key:
118
124
  specification_version: 4
119
125
  summary: The Ultimate Pagination Ruby Gem