text_helpers 1.1.1 → 1.2.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: af6ec054fd5d8245c92d4cb73518c2a54237f2a0be69c409eacb3c3a1fb258d5
4
- data.tar.gz: 705a6cb053a6497f473d0a50a8782c5f3ffa00352c82a3ae050406e87b8bcec8
3
+ metadata.gz: 196566e88af14d22f2703223fcb8a334f44d0bc6162b2a90e92ea722840da6a6
4
+ data.tar.gz: bdf313faa479139cac2acf301b8c80e28f83448de3da1d1e8145b1408c91cdaa
5
5
  SHA512:
6
- metadata.gz: '0282c042d36297f1d3a7e60db481cfd0253645da0791112a58f89f1b289420e717d66f7e20a6d9a8b6d512720700470c7b452ad889a3f5e816929291c729c7b6'
7
- data.tar.gz: 8ad38d3fe70e5ad3f33dbc871f8f5cb2d19c890d76609908bf397db2de7487baa27b4eddd5c8db924f553bdc3adcac7ce6126c64c0d7ade904f1d7b0f7f846ba
6
+ metadata.gz: 95e9ff9a22f917aa08ff7b227c922abc56f0285d29ef581e0b43402a26777c98979737364da42cf015f1719f64f992e8b48caa6f3f7d9dd58468c689a8801285
7
+ data.tar.gz: 4346400f3ffb3a02404d899fe28ebea2b57e3481afd65a13321215e91e16a04a6d788141486a7893c37c3f9d38993312ed9b67363c2b45e4c16bc96e9a6e23ee
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## [1.2.0] - 2022-01-05
4
+
5
+ ### Changes
6
+
7
+ - Add support for Rails 7 (thanks to @boatrite)
8
+
3
9
  ## [1.1.1] - 2021-02-02
4
10
 
5
11
  ### Changes
@@ -8,13 +14,13 @@
8
14
 
9
15
  ## [1.1.0] - 2020-12-02
10
16
 
11
- ### New Features
17
+ ### New Features
12
18
 
13
19
  - Add `rel=noopener` to external links (thanks to @n00dle)
14
20
 
15
21
  ## [1.0.1] - 2020-12-02
16
22
 
17
- ### Changes
23
+ ### Changes
18
24
 
19
25
  - Support cascading backends by default
20
26
 
@@ -81,6 +87,7 @@
81
87
 
82
88
  - Add RSpec helpers (thanks to @gabrielg)
83
89
 
90
+ [1.2.0]: https://github.com/ahorner/text-helpers/compare/v1.1.1...v1.2.0
84
91
  [1.1.1]: https://github.com/ahorner/text-helpers/compare/v1.1.0...v1.1.1
85
92
  [1.1.0]: https://github.com/ahorner/text-helpers/compare/v1.0.1...v1.1.0
86
93
  [1.0.1]: https://github.com/ahorner/text-helpers/compare/v1.0.0...v1.0.1
@@ -65,8 +65,14 @@ module TextHelpers
65
65
  initializer "text_helpers.setup_exception_handling", after: 'after_initialize' do
66
66
  next unless config.text_helpers.raise_on_missing_translations
67
67
 
68
- if config.respond_to?(:action_view)
69
- config.action_view.raise_on_missing_translations = true
68
+ if Rails::VERSION::MAJOR >= 7
69
+ if config.respond_to?(:i18n)
70
+ config.i18n.raise_on_missing_translations = true
71
+ end
72
+ else
73
+ if config.respond_to?(:action_view)
74
+ config.action_view.raise_on_missing_translations = true
75
+ end
70
76
  end
71
77
 
72
78
  TextHelpers.install_i18n_exception_handler
@@ -1,3 +1,3 @@
1
1
  module TextHelpers
2
- VERSION = "1.1.1"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: text_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Horner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-03 00:00:00.000000000 Z
11
+ date: 2022-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubygems_version: 3.1.4
127
+ rubygems_version: 3.2.32
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: TextHelpers is a gem which supplies some basic utilities for text localization