pagy 0.19.0 → 0.19.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8687d221589df328c1fc7a367ee8b1e1a1e3da87c83cbe92800af0ac514b603
4
- data.tar.gz: b6327ed3bb6aae4daedbfb92c472f136283746be36012951a9da3ff96ec1ad1e
3
+ metadata.gz: 49b0fb6295766ee5a4272b21ac33cba767e8f2b0b0aa9b419f9ce436b4b2cd9a
4
+ data.tar.gz: 1036ef5fc880a856423baf0442bb16ef6e21d8dc91696182aebbf9a4eae77ecb
5
5
  SHA512:
6
- metadata.gz: 43f6881f9d58f5f4a30d1d4b97829dd2915072477d8b84d64b3f49417f6c9b04a72bcbf8e6fca90d085c04d4161952e12fdbebb81d2fa553e239b29b629246ec
7
- data.tar.gz: e23a969cc2414b7291f48d60b0b6e55e8fe7e0ade2657243b595b24a03d7567fc7d4ebe87fdf825f2c6676360251e5f048188d799dc1ba3c458cab1c48c5c95d
6
+ metadata.gz: a8259eade988ebec0c2d0c7edba17721e7b88c9238ecbcd84213be41a97c7570f7b4a6b29c2f9f20cdacd7f20d43076d70cb87b6575ded375b447aa5e9821ddf
7
+ data.tar.gz: 0b7796b7e7b673c11696990ec90cf9b62d454e5a21696ab0116ca0372ccbc3cc503f6d03ab55837af382bc6f8b50c2c3ee50531a335d92f8851fab80bae3ba6a
@@ -41,11 +41,11 @@
41
41
  # See https://ddnexus.github.io/pagy/extras/materialize
42
42
  # require 'pagy/extras/materialize'
43
43
 
44
- # Semantic: Nav helper for Semantic UI pagination
44
+ # Semantic: Nav, responsive and compact helpers for Semantic UI pagination
45
45
  # See https://ddnexus.github.io/pagy/extras/semantic
46
46
  # require 'pagy/extras/semantic'
47
47
 
48
- # Breakoints var used by the responsive nav helpers
48
+ # Breakpoints var used by the responsive nav helpers
49
49
  # See https://ddnexus.github.io/pagy/extras/navs#breakpoints
50
50
  # Pagy::VARS[:breakpoints] = { 0 => [1,2,2,1], 350 => [2,3,3,2], 550 => [3,4,4,3] } # example of width/size pairs
51
51
 
@@ -23,6 +23,29 @@ en:
23
23
  items:
24
24
  show: "Show"
25
25
  items: "items per page"
26
+ es:
27
+ pagy:
28
+ nav:
29
+ prev: "‹ Prev"
30
+ next: "Siguiente ›"
31
+ gap: "…"
32
+ current: "Estás en la página"
33
+ info:
34
+ single_page:
35
+ zero: "Sin resultados"
36
+ one: "Mostrando 1 %{item_name}"
37
+ other: "Mostrando %{count} %{item_name}"
38
+ multiple_pages: "Mostrando %{item_name}s %{from}-%{to} de %{count} en total"
39
+ item_name:
40
+ zero: "ítems"
41
+ one: "ítem"
42
+ other: "ítems"
43
+ compact:
44
+ page: "Página"
45
+ of: "de"
46
+ items:
47
+ show: "Mostrar"
48
+ items: "ítems por página"
26
49
  tr:
27
50
  pagy:
28
51
  nav:
@@ -3,7 +3,7 @@
3
3
 
4
4
  require 'pathname'
5
5
 
6
- class Pagy ; VERSION = '0.19.0'
6
+ class Pagy ; VERSION = '0.19.1'
7
7
 
8
8
  class OutOfRangeError < StandardError; attr_reader :pagy; def initialize(pagy) @pagy = pagy end; end
9
9
 
@@ -6,6 +6,7 @@ require 'pagy/extras/shared'
6
6
  class Pagy
7
7
  module Frontend
8
8
 
9
+ # Pagination for Bulma: it returns the html with the series of links to the pages
9
10
  def pagy_nav_bulma(pagy)
10
11
  html, link, p_prev, p_next = +'', pagy_link_proc(pagy), pagy.prev, pagy.next
11
12
 
@@ -6,7 +6,7 @@ require 'pagy/extras/shared'
6
6
  class Pagy
7
7
  module Frontend
8
8
 
9
- # Pagination for foundation: it returns the html with the series of links to the pages
9
+ # Pagination for Foundation: it returns the html with the series of links to the pages
10
10
  def pagy_nav_foundation(pagy)
11
11
  html, link, p_prev, p_next = +'', pagy_link_proc(pagy), pagy.prev, pagy.next
12
12
 
@@ -23,7 +23,7 @@ class Pagy
23
23
  %(<nav class="pagy-nav-foundation" role="navigation" aria-label="Pagination"><ul class="pagination">#{html}</ul></nav>)
24
24
  end
25
25
 
26
- # Compact pagination for foundation: it returns the html with the series of links to the pages
26
+ # Compact pagination for Foundation: it returns the html with the series of links to the pages
27
27
  # we use a numeric input tag to set the page and the Pagy.compact javascript to navigate
28
28
  def pagy_nav_compact_foundation(pagy, id=caller(1,1)[0].hash)
29
29
  html, link, p_prev, p_next, p_page, p_pages = +'', pagy_link_proc(pagy), pagy.prev, pagy.next, pagy.page, pagy.pages
@@ -5,7 +5,7 @@ class Pagy
5
5
 
6
6
  module Frontend
7
7
 
8
- # boolean used by the compact extra
8
+ # boolean used by the compact navs
9
9
  TRIM = true
10
10
 
11
11
  def pagy_trim_url(url, param_string)
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: 0.19.0
4
+ version: 0.19.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: 2018-08-20 00:00:00.000000000 Z
11
+ date: 2018-09-17 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,