globalize 7.1.1 → 7.1.2

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: bac7118054ca9e095efdac8769ba6fefc7e23c30ed8bc0c38c180535405a2727
4
- data.tar.gz: adf233097d8c63070127f866237d480a4279500308bd7a2d6cc20874897bda47
3
+ metadata.gz: '08d909471578cec5c599f18faa1b62f079184a03c8c43d3b0a301a28fe7c2a7e'
4
+ data.tar.gz: 0edf7d3fd98c04e567afc9e561fd75a956bb05ed360c123a94954317837bb87f
5
5
  SHA512:
6
- metadata.gz: 3d4f9f8157cd2ff6659006bfdc1f8744b40dce6087f18191cc0a3a8952c92c51fecc6253dec0ceea032139fb6477e673be860007dc78bf80642b631c42fc1863
7
- data.tar.gz: bc24395950b2d4812bae2ed3c15d8259fa6a6146a47e15f1b123381e93a47b771b6977035a3b443750cf5ad2ccf5bc71fb2d457c835e58276d8138613fcab792
6
+ metadata.gz: c9be4caffe64bb10858fc472c761348714cc234a7218a03af4877afe5c70e562c7b3c541432dbbd62c93db0161796c968ff360751ef66118d262055b73236c58
7
+ data.tar.gz: b12a6e83badfe3e5195079713824e676ba8d8ff736e7c237fb983f9ff89375a3dcd0ad009efed169c96cb0ad9d106dcb2cd6eb3544489c069e31dd5c2d87b0d2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Globalize Changelog
2
2
 
3
+ ## 7.1.2 (2026-05-18)
4
+
5
+ * Coerce locale to symbol in `Attributes#contains?` [#844](https://github.com/globalize/globalize/pull/844) by [Arkadiy Zabazhanov](https://github.com/pyromaniac)
6
+
3
7
  ## 7.1.1 (2025-12-24)
4
8
 
5
9
  * Fix automatic creation of empty stash entries for unassigned locales [#833](https://github.com/globalize/globalize/pull/833) by [Jules](https://github.com/jules-w2)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- globalize (7.1.1)
4
+ globalize (7.1.2)
5
5
  activemodel (>= 7.0, < 8.2)
6
6
  activerecord (>= 7.0, < 8.2)
7
7
  activesupport (>= 7.0, < 8.2)
@@ -10,13 +10,13 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activemodel (8.1.1)
14
- activesupport (= 8.1.1)
15
- activerecord (8.1.1)
16
- activemodel (= 8.1.1)
17
- activesupport (= 8.1.1)
13
+ activemodel (8.1.3)
14
+ activesupport (= 8.1.3)
15
+ activerecord (8.1.3)
16
+ activemodel (= 8.1.3)
17
+ activesupport (= 8.1.3)
18
18
  timeout (>= 0.4.0)
19
- activesupport (8.1.1)
19
+ activesupport (8.1.3)
20
20
  base64
21
21
  bigdecimal
22
22
  concurrent-ruby (~> 1.0, >= 1.3.1)
@@ -29,13 +29,13 @@ GEM
29
29
  securerandom (>= 0.3)
30
30
  tzinfo (~> 2.0, >= 2.0.5)
31
31
  uri (>= 0.13.1)
32
- ansi (1.5.0)
32
+ ansi (1.6.0)
33
33
  appraisal (2.5.0)
34
34
  bundler
35
35
  rake
36
36
  thor (>= 0.14.0)
37
37
  base64 (0.3.0)
38
- bigdecimal (4.0.1)
38
+ bigdecimal (4.1.2)
39
39
  builder (3.3.0)
40
40
  coderay (1.1.3)
41
41
  concurrent-ruby (1.3.6)
@@ -48,41 +48,46 @@ GEM
48
48
  database_cleaner-core (2.0.1)
49
49
  date (3.5.1)
50
50
  drb (2.2.3)
51
- erb (6.0.1)
51
+ erb (6.0.4)
52
52
  i18n (1.14.8)
53
53
  concurrent-ruby (~> 1.0)
54
- json (2.18.0)
54
+ io-console (0.8.2)
55
+ json (2.19.5)
55
56
  logger (1.7.0)
56
57
  m (1.7.0)
57
58
  rake
58
59
  method_source (1.1.0)
59
- minitest (6.0.0)
60
+ minitest (6.0.6)
61
+ drb (~> 2.0)
60
62
  prism (~> 1.5)
61
- minitest-reporters (1.7.1)
63
+ minitest-reporters (1.8.0)
62
64
  ansi
63
65
  builder
64
- minitest (>= 5.0)
66
+ minitest (>= 5.0, < 7)
65
67
  ruby-progressbar
66
- prism (1.7.0)
67
- pry (0.15.2)
68
+ prism (1.9.0)
69
+ pry (0.16.0)
68
70
  coderay (~> 1.1)
69
71
  method_source (~> 1.0)
72
+ reline (>= 0.6.0)
70
73
  psych (5.3.1)
71
74
  date
72
75
  stringio
73
- rack (3.2.4)
74
- rake (13.3.1)
75
- rdoc (7.0.2)
76
+ rack (3.2.6)
77
+ rake (13.4.2)
78
+ rdoc (7.2.0)
76
79
  erb
77
80
  psych (>= 4.0.0)
78
81
  tsort
82
+ reline (0.6.3)
83
+ io-console (~> 0.5)
79
84
  request_store (1.7.0)
80
85
  rack (>= 1.4)
81
86
  ruby-progressbar (1.13.0)
82
87
  securerandom (0.4.1)
83
88
  stringio (3.2.0)
84
- thor (1.4.0)
85
- timeout (0.6.0)
89
+ thor (1.5.0)
90
+ timeout (0.6.1)
86
91
  tsort (0.2.0)
87
92
  tzinfo (2.0.6)
88
93
  concurrent-ruby (~> 1.0)
@@ -103,5 +108,49 @@ DEPENDENCIES
103
108
  rake
104
109
  rdoc
105
110
 
111
+ CHECKSUMS
112
+ activemodel (8.1.3) sha256=90c05cbe4cef3649b8f79f13016191ea94c4525ce4a5c0fb7ef909c4b91c8219
113
+ activerecord (8.1.3) sha256=8003be7b2466ba0a2a670e603eeb0a61dd66058fccecfc49901e775260ac70ab
114
+ activesupport (8.1.3) sha256=21a5e0dfbd4c3ddd9e1317ec6a4d782fa226e7867dc70b0743acda81a1dca20e
115
+ ansi (1.6.0) sha256=ac9ea0c0ea8d32fb4e271348e609963ac78882f34b73836c2a02b3622e666658
116
+ appraisal (2.5.0) sha256=36989221be127913b0dba8d114da2001e6b2dceea7bd4951200eaba764eed3ce
117
+ base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
118
+ bigdecimal (4.1.2) sha256=53d217666027eab4280346fba98e7d5b66baaae1b9c3c1c0ffe89d48188a3fbd
119
+ builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f
120
+ coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
121
+ concurrent-ruby (1.3.6) sha256=6b56837e1e7e5292f9864f34b69c5a2cbc75c0cf5338f1ce9903d10fa762d5ab
122
+ connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
123
+ database_cleaner (2.1.0) sha256=1dcba26e3b1576da692fc6bac10136a4744da5bcc293d248aae19640c65d89cd
124
+ database_cleaner-active_record (2.2.2) sha256=88296b9f3088c31f7c0d4fcec10f68e4b71c96698043916de59b04debec10388
125
+ database_cleaner-core (2.0.1) sha256=8646574c32162e59ed7b5258a97a208d3c44551b854e510994f24683865d846c
126
+ date (3.5.1) sha256=750d06384d7b9c15d562c76291407d89e368dda4d4fff957eb94962d325a0dc0
127
+ drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
128
+ erb (6.0.4) sha256=38e3803694be357fe2bfe312487c74beaf9fb4e5beb3e22498952fe1645b95d9
129
+ globalize (7.1.2)
130
+ i18n (1.14.8) sha256=285778639134865c5e0f6269e0b818256017e8cde89993fdfcbfb64d088824a5
131
+ io-console (0.8.2) sha256=d6e3ae7a7cc7574f4b8893b4fca2162e57a825b223a177b7afa236c5ef9814cc
132
+ json (2.19.5) sha256=218a18553e4801d579ca7e0f5bc72bafd776d7397238a1fb4e74db5b0a812c59
133
+ logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
134
+ m (1.7.0) sha256=058f793da8150c51353cc59366ffae7774683e868bede3c78f81d920fb9d633a
135
+ method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
136
+ minitest (6.0.6) sha256=153ea36d1d987a62942382b61075745042a2b3123b1cd48f4c3675af9cc7d6f1
137
+ minitest-reporters (1.8.0) sha256=8ce5280fb73ad3178ae525454df169b6f28c1b38b1d088ea91815d3a370ba384
138
+ prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
139
+ pry (0.16.0) sha256=d76c69065698ed1f85e717bd33d7942c38a50868f6b0673c636192b3d1b6054e
140
+ psych (5.3.1) sha256=eb7a57cef10c9d70173ff74e739d843ac3b2c019a003de48447b2963d81b1974
141
+ rack (3.2.6) sha256=5ed78e1f73b2e25679bec7d45ee2d4483cc4146eb1be0264fc4d94cb5ef212c2
142
+ rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701
143
+ rdoc (7.2.0) sha256=8650f76cd4009c3b54955eb5d7e3a075c60a57276766ebf36f9085e8c9f23192
144
+ reline (0.6.3) sha256=1198b04973565b36ec0f11542ab3f5cfeeec34823f4e54cebde90968092b1835
145
+ request_store (1.7.0) sha256=e1b75d5346a315f452242a68c937ef8e48b215b9453a77a6c0acdca2934c88cb
146
+ ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
147
+ securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
148
+ stringio (3.2.0) sha256=c37cb2e58b4ffbd33fe5cd948c05934af997b36e0b6ca6fdf43afa234cf222e1
149
+ thor (1.5.0) sha256=e3a9e55fe857e44859ce104a84675ab6e8cd59c650a49106a05f55f136425e73
150
+ timeout (0.6.1) sha256=78f57368a7e7bbadec56971f78a3f5ecbcfb59b7fcbb0a3ed6ddc08a5094accb
151
+ tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
152
+ tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
153
+ uri (1.1.1) sha256=379fa58d27ffb1387eaada68c749d1426738bd0f654d812fcc07e7568f5c57c6
154
+
106
155
  BUNDLED WITH
107
- 2.6.9
156
+ 4.0.10
@@ -11,6 +11,7 @@ module Globalize
11
11
  end
12
12
 
13
13
  def contains?(locale, name)
14
+ locale = locale.to_sym
14
15
  key?(locale) && self[locale].key?(name.to_s)
15
16
  end
16
17
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Globalize
4
- Version = "7.1.1"
4
+ Version = "7.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: globalize
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.1
4
+ version: 7.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Fuchs
@@ -259,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
259
  - !ruby/object:Gem::Version
260
260
  version: '0'
261
261
  requirements: []
262
- rubygems_version: 3.6.9
262
+ rubygems_version: 4.0.10
263
263
  specification_version: 4
264
264
  summary: Rails I18n de-facto standard library for ActiveRecord model/data translation
265
265
  test_files: []