i18n_screwdriver 12.0.0 → 12.1.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: 6ec4e2dd6e5595792c6bf93b84187267f6faead77feeac773a3a73cd609c1f43
4
- data.tar.gz: 6aca0ad64a1846c7cd7c7c4bb81a6ff4597d4baa187e0085881d6b9adf25893c
3
+ metadata.gz: 8937b8c32adcdbba9b064772d37c7a8d3de9dbb30c85ede88a2cd51b05510640
4
+ data.tar.gz: e028cdbf6b7d5a2c29c44c194be466836b1a149f42cdb8d71d4cfbc1a4d33517
5
5
  SHA512:
6
- metadata.gz: 07ff3bcc9e61cd4e782571faaab9b6c3ad5360f366f2bfc3b9027288c2588f5af60531cba4ccf65c678850deacd4ac7bb0824f3db265861e57022375230d855f
7
- data.tar.gz: 20dfca1aae885335538e290470521e698b23b67ea754df489fefacd13aadb08bc6d03b772a37187a4e4340966893a7ca1045254521ea5a070daf1138413b27db
6
+ metadata.gz: 2f154c5bab402124e89d3eb7267df2c2a2f0362a0a5664f876b6d813e3e49a166b3da07fb51ce7f4a5cf54251eb44932046ebb94479801a31f1aba29cf6565b4
7
+ data.tar.gz: 269f8c922afe8a9dbda6e1b06419417f0ecb110da7c9b5e832f519eb8471564e9ffb1a1406a7c6dd4f58ff5cc51a439dc57785c8b15d0dd807e88d6450f89cec
data/Gemfile.lock CHANGED
@@ -1,41 +1,41 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- i18n_screwdriver (12.0.0)
4
+ i18n_screwdriver (12.1.0)
5
5
  rails (>= 3.0.0)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- actioncable (7.1.5)
11
- actionpack (= 7.1.5)
12
- activesupport (= 7.1.5)
10
+ actioncable (7.1.5.1)
11
+ actionpack (= 7.1.5.1)
12
+ activesupport (= 7.1.5.1)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
15
15
  zeitwerk (~> 2.6)
16
- actionmailbox (7.1.5)
17
- actionpack (= 7.1.5)
18
- activejob (= 7.1.5)
19
- activerecord (= 7.1.5)
20
- activestorage (= 7.1.5)
21
- activesupport (= 7.1.5)
16
+ actionmailbox (7.1.5.1)
17
+ actionpack (= 7.1.5.1)
18
+ activejob (= 7.1.5.1)
19
+ activerecord (= 7.1.5.1)
20
+ activestorage (= 7.1.5.1)
21
+ activesupport (= 7.1.5.1)
22
22
  mail (>= 2.7.1)
23
23
  net-imap
24
24
  net-pop
25
25
  net-smtp
26
- actionmailer (7.1.5)
27
- actionpack (= 7.1.5)
28
- actionview (= 7.1.5)
29
- activejob (= 7.1.5)
30
- activesupport (= 7.1.5)
26
+ actionmailer (7.1.5.1)
27
+ actionpack (= 7.1.5.1)
28
+ actionview (= 7.1.5.1)
29
+ activejob (= 7.1.5.1)
30
+ activesupport (= 7.1.5.1)
31
31
  mail (~> 2.5, >= 2.5.4)
32
32
  net-imap
33
33
  net-pop
34
34
  net-smtp
35
35
  rails-dom-testing (~> 2.2)
36
- actionpack (7.1.5)
37
- actionview (= 7.1.5)
38
- activesupport (= 7.1.5)
36
+ actionpack (7.1.5.1)
37
+ actionview (= 7.1.5.1)
38
+ activesupport (= 7.1.5.1)
39
39
  nokogiri (>= 1.8.5)
40
40
  racc
41
41
  rack (>= 2.2.4)
@@ -43,35 +43,35 @@ GEM
43
43
  rack-test (>= 0.6.3)
44
44
  rails-dom-testing (~> 2.2)
45
45
  rails-html-sanitizer (~> 1.6)
46
- actiontext (7.1.5)
47
- actionpack (= 7.1.5)
48
- activerecord (= 7.1.5)
49
- activestorage (= 7.1.5)
50
- activesupport (= 7.1.5)
46
+ actiontext (7.1.5.1)
47
+ actionpack (= 7.1.5.1)
48
+ activerecord (= 7.1.5.1)
49
+ activestorage (= 7.1.5.1)
50
+ activesupport (= 7.1.5.1)
51
51
  globalid (>= 0.6.0)
52
52
  nokogiri (>= 1.8.5)
53
- actionview (7.1.5)
54
- activesupport (= 7.1.5)
53
+ actionview (7.1.5.1)
54
+ activesupport (= 7.1.5.1)
55
55
  builder (~> 3.1)
56
56
  erubi (~> 1.11)
57
57
  rails-dom-testing (~> 2.2)
58
58
  rails-html-sanitizer (~> 1.6)
59
- activejob (7.1.5)
60
- activesupport (= 7.1.5)
59
+ activejob (7.1.5.1)
60
+ activesupport (= 7.1.5.1)
61
61
  globalid (>= 0.3.6)
62
- activemodel (7.1.5)
63
- activesupport (= 7.1.5)
64
- activerecord (7.1.5)
65
- activemodel (= 7.1.5)
66
- activesupport (= 7.1.5)
62
+ activemodel (7.1.5.1)
63
+ activesupport (= 7.1.5.1)
64
+ activerecord (7.1.5.1)
65
+ activemodel (= 7.1.5.1)
66
+ activesupport (= 7.1.5.1)
67
67
  timeout (>= 0.4.0)
68
- activestorage (7.1.5)
69
- actionpack (= 7.1.5)
70
- activejob (= 7.1.5)
71
- activerecord (= 7.1.5)
72
- activesupport (= 7.1.5)
68
+ activestorage (7.1.5.1)
69
+ actionpack (= 7.1.5.1)
70
+ activejob (= 7.1.5.1)
71
+ activerecord (= 7.1.5.1)
72
+ activesupport (= 7.1.5.1)
73
73
  marcel (~> 1.0)
74
- activesupport (7.1.5)
74
+ activesupport (7.1.5.1)
75
75
  base64
76
76
  benchmark (>= 0.3)
77
77
  bigdecimal
@@ -86,26 +86,26 @@ GEM
86
86
  tzinfo (~> 2.0)
87
87
  base64 (0.2.0)
88
88
  benchmark (0.4.0)
89
- bigdecimal (3.1.8)
89
+ bigdecimal (3.1.9)
90
90
  builder (3.3.0)
91
91
  byebug (11.1.3)
92
92
  concurrent-ruby (1.3.4)
93
- connection_pool (2.4.1)
93
+ connection_pool (2.5.0)
94
94
  crass (1.0.6)
95
- date (3.4.0)
95
+ date (3.4.1)
96
96
  diff-lcs (1.4.4)
97
97
  drb (2.2.1)
98
- erubi (1.13.0)
98
+ erubi (1.13.1)
99
99
  globalid (1.2.1)
100
100
  activesupport (>= 6.1)
101
101
  i18n (1.14.6)
102
102
  concurrent-ruby (~> 1.0)
103
- io-console (0.7.2)
104
- irb (1.14.1)
103
+ io-console (0.8.0)
104
+ irb (1.14.3)
105
105
  rdoc (>= 4.0.0)
106
106
  reline (>= 0.4.2)
107
- logger (1.6.1)
108
- loofah (2.23.1)
107
+ logger (1.6.4)
108
+ loofah (2.24.0)
109
109
  crass (~> 1.0.2)
110
110
  nokogiri (>= 1.12.0)
111
111
  mail (2.8.1)
@@ -116,7 +116,7 @@ GEM
116
116
  marcel (1.0.4)
117
117
  mini_mime (1.1.5)
118
118
  mini_portile2 (2.8.8)
119
- minitest (5.25.1)
119
+ minitest (5.25.4)
120
120
  mutex_m (0.3.0)
121
121
  net-imap (0.4.18)
122
122
  date
@@ -128,52 +128,54 @@ GEM
128
128
  net-smtp (0.5.0)
129
129
  net-protocol
130
130
  nio4r (2.7.4)
131
- nokogiri (1.15.6)
131
+ nokogiri (1.15.7)
132
132
  mini_portile2 (~> 2.8.2)
133
133
  racc (~> 1.4)
134
- psych (5.2.0)
134
+ psych (5.2.2)
135
+ date
135
136
  stringio
136
137
  racc (1.8.1)
137
138
  rack (3.1.8)
138
- rack-session (2.0.0)
139
+ rack-session (2.1.0)
140
+ base64 (>= 0.1.0)
139
141
  rack (>= 3.0.0)
140
- rack-test (2.1.0)
142
+ rack-test (2.2.0)
141
143
  rack (>= 1.3)
142
144
  rackup (2.2.1)
143
145
  rack (>= 3)
144
- rails (7.1.5)
145
- actioncable (= 7.1.5)
146
- actionmailbox (= 7.1.5)
147
- actionmailer (= 7.1.5)
148
- actionpack (= 7.1.5)
149
- actiontext (= 7.1.5)
150
- actionview (= 7.1.5)
151
- activejob (= 7.1.5)
152
- activemodel (= 7.1.5)
153
- activerecord (= 7.1.5)
154
- activestorage (= 7.1.5)
155
- activesupport (= 7.1.5)
146
+ rails (7.1.5.1)
147
+ actioncable (= 7.1.5.1)
148
+ actionmailbox (= 7.1.5.1)
149
+ actionmailer (= 7.1.5.1)
150
+ actionpack (= 7.1.5.1)
151
+ actiontext (= 7.1.5.1)
152
+ actionview (= 7.1.5.1)
153
+ activejob (= 7.1.5.1)
154
+ activemodel (= 7.1.5.1)
155
+ activerecord (= 7.1.5.1)
156
+ activestorage (= 7.1.5.1)
157
+ activesupport (= 7.1.5.1)
156
158
  bundler (>= 1.15.0)
157
- railties (= 7.1.5)
159
+ railties (= 7.1.5.1)
158
160
  rails-dom-testing (2.2.0)
159
161
  activesupport (>= 5.0.0)
160
162
  minitest
161
163
  nokogiri (>= 1.6)
162
- rails-html-sanitizer (1.6.0)
164
+ rails-html-sanitizer (1.6.2)
163
165
  loofah (~> 2.21)
164
- nokogiri (~> 1.14)
165
- railties (7.1.5)
166
- actionpack (= 7.1.5)
167
- activesupport (= 7.1.5)
166
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
167
+ railties (7.1.5.1)
168
+ actionpack (= 7.1.5.1)
169
+ activesupport (= 7.1.5.1)
168
170
  irb
169
171
  rackup (>= 1.0.0)
170
172
  rake (>= 12.2)
171
173
  thor (~> 1.0, >= 1.2.2)
172
174
  zeitwerk (~> 2.6)
173
175
  rake (13.2.1)
174
- rdoc (6.8.1)
176
+ rdoc (6.10.0)
175
177
  psych (>= 4.0.0)
176
- reline (0.5.11)
178
+ reline (0.6.0)
177
179
  io-console (~> 0.5)
178
180
  rspec (3.10.0)
179
181
  rspec-core (~> 3.10.0)
@@ -191,10 +193,11 @@ GEM
191
193
  securerandom (0.3.2)
192
194
  stringio (3.1.2)
193
195
  thor (1.3.2)
194
- timeout (0.4.2)
196
+ timeout (0.4.3)
195
197
  tzinfo (2.0.6)
196
198
  concurrent-ruby (~> 1.0)
197
- websocket-driver (0.7.6)
199
+ websocket-driver (0.7.7)
200
+ base64
198
201
  websocket-extensions (>= 0.1.0)
199
202
  websocket-extensions (0.1.5)
200
203
  zeitwerk (2.6.18)
@@ -1,3 +1,3 @@
1
1
  module I18nScrewdriver
2
- VERSION = "12.0.0"
2
+ VERSION = "12.1.0"
3
3
  end
@@ -176,7 +176,8 @@ module I18nScrewdriver
176
176
  end
177
177
 
178
178
  def self.translate(string, **options)
179
- I18n.translate!(generate_key(string), **options).split("|").last
179
+ escaped_options = options.transform_values { |v| v.gsub("|", "<PIPE/>") }
180
+ I18n.translate!(generate_key(string), **escaped_options).split("|").last.gsub("<PIPE/>", "|")
180
181
  rescue I18n::MissingTranslationData
181
182
  I18n.translate(string, **options)
182
183
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_screwdriver
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.0.0
4
+ version: 12.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Miesel
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-11-20 00:00:00.000000000 Z
12
+ date: 2025-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec