pagy-govuk 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e847855109a6f48dd9d561fdd8c44d12d8f80ea6f5524009f0b23b1dd1d19a1
4
- data.tar.gz: 36a616016d09f0b51915f55e3f9c70b154abb1b58a7c660ff3f386bc660a8054
3
+ metadata.gz: a8bc99f5eefdf00b78cc17207d55abcd2ddcee21c45dcf37d33fd82bbfb73778
4
+ data.tar.gz: 21b8fe6a76490675b55dbae515583f49b6a566c41bed445c0da26ba322188fba
5
5
  SHA512:
6
- metadata.gz: 8946fd6cdcd3aa0550a52948fa4d969972c2ab3951de7f7d42515942df649b730f96b674ce61d512a83e1adf43acc6755bd8b4eb722264a33c489593acdc2a71
7
- data.tar.gz: b390d2895f138fec9b77f27ddc1b479f47055d0f1c47b6481a7b057d3e24a8d6ea697df64086d011b43bcf12c4bb16fe9cbdbb0fb9195f8e51d5314cdb95ab38
6
+ metadata.gz: f57eac0448c7abb18701baa00fcea672edd39a0d8d27bc415ed5e7911e2a4df61eff41d6841c4429d4d613e1efa96fc6be39ad62ac43f578372bc44a92322e96
7
+ data.tar.gz: 452abb1bc22275dc431f2ace86da1e30d4d69fff3a82f6116470c8f92ac1df004403796d0347ed9cedde1c16ca37a98d5668209bf835558917a6d7a7496b6759
data/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
- ## [Unreleased]
1
+ ## [0.1.1] - 2024-06-26
2
+
3
+ - Fix I18n load_path addition error
2
4
 
3
5
  ## [0.1.0] - 2024-06-26
4
6
 
data/README.md CHANGED
@@ -12,7 +12,10 @@ that already serves Bootstrap, Bulma et al
12
12
  ```ruby
13
13
  # in your setup, e.g. config/initializers/pagy.rb for a Rails app
14
14
  require 'pagy/extras/govuk'
15
-
15
+ # Adds default GOV.UK SVG arrows and aria labels.
16
+ # Override these pagy keys using this gem's en.yml as a template.
17
+ Pagy::GovukExtra.add_default_i18n_load_path
18
+
16
19
  # in your controller, assign a pagy instance as normal
17
20
  def index
18
21
  @pagy, @posts = pagy(BlogPost.all, items: 10)
@@ -9,7 +9,7 @@ class Pagy # :nodoc:
9
9
  module GovukExtra
10
10
  # Add default English translations to the I18n load_path. Copy the keys if you don't need this
11
11
  def self.add_default_i18n_load_path
12
- ::I18n.load_path << Dir[File.join(File.dirname(__FILE__), '../../../config/locales', '**', '*.{rb,yml}')]
12
+ ::I18n.load_path += Dir[File.join(File.dirname(__FILE__), '../../../config/locales', '**', '*.{rb,yml}')]
13
13
  end
14
14
 
15
15
  # Pagination for GOV.UK adapted from Pagy's Bootstrap: it returns the html with the series of links to the pages
@@ -2,6 +2,6 @@
2
2
 
3
3
  class Pagy
4
4
  module Govuk
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagy-govuk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Russell Garner