i18n_screwdriver 12.0.0 → 12.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +76 -73
- data/lib/i18n_screwdriver/version.rb +1 -1
- data/lib/i18n_screwdriver.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05aaf7ca5ff02f062cb0647e74017de3fdaca3b7fc38b73cbdaf4c2c4d53ed10
|
4
|
+
data.tar.gz: a4c4bf18d3c4f5d6317d8b94ad84b402788ceaebbf64352ab76c055cd79e0729
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae833ac1921bfc08952d204f71a842a5deec12eaabdef2d3709e3c1cb9011920a910a0dc0f548d9401b65825cb84f916979901151e256630807a2ebbdd9be7e3
|
7
|
+
data.tar.gz: 267af9014f6ece7300ad7d6ced01de29f106f3dfaffac0d7e2c8f5bd687ce953fb1970b564c74310c5a659cdc894bd522ab54eccc7e8e2ecd5fc272ceb3866ba
|
data/Gemfile.lock
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
i18n_screwdriver (12.
|
4
|
+
i18n_screwdriver (12.1.1)
|
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.
|
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.
|
93
|
+
connection_pool (2.5.0)
|
94
94
|
crass (1.0.6)
|
95
|
-
date (3.4.
|
95
|
+
date (3.4.1)
|
96
96
|
diff-lcs (1.4.4)
|
97
97
|
drb (2.2.1)
|
98
|
-
erubi (1.13.
|
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.
|
104
|
-
irb (1.14.
|
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.
|
108
|
-
loofah (2.
|
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.
|
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.
|
131
|
+
nokogiri (1.15.7)
|
132
132
|
mini_portile2 (~> 2.8.2)
|
133
133
|
racc (~> 1.4)
|
134
|
-
psych (5.2.
|
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.
|
139
|
+
rack-session (2.1.0)
|
140
|
+
base64 (>= 0.1.0)
|
139
141
|
rack (>= 3.0.0)
|
140
|
-
rack-test (2.
|
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.
|
164
|
+
rails-html-sanitizer (1.6.2)
|
163
165
|
loofah (~> 2.21)
|
164
|
-
nokogiri (
|
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.
|
176
|
+
rdoc (6.10.0)
|
175
177
|
psych (>= 4.0.0)
|
176
|
-
reline (0.
|
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.
|
196
|
+
timeout (0.4.3)
|
195
197
|
tzinfo (2.0.6)
|
196
198
|
concurrent-ruby (~> 1.0)
|
197
|
-
websocket-driver (0.7.
|
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)
|
data/lib/i18n_screwdriver.rb
CHANGED
@@ -176,7 +176,13 @@ module I18nScrewdriver
|
|
176
176
|
end
|
177
177
|
|
178
178
|
def self.translate(string, **options)
|
179
|
-
|
179
|
+
escaped_options = options.transform_values do |value|
|
180
|
+
next value unless value.is_a?(String)
|
181
|
+
|
182
|
+
value.gsub("|", "<PIPE/>")
|
183
|
+
end
|
184
|
+
|
185
|
+
I18n.translate!(generate_key(string), **escaped_options).split("|").last.gsub("<PIPE/>", "|")
|
180
186
|
rescue I18n::MissingTranslationData
|
181
187
|
I18n.translate(string, **options)
|
182
188
|
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.
|
4
|
+
version: 12.1.1
|
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:
|
12
|
+
date: 2025-01-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|