translation_engine 0.0.8 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/translation_engine/backend.rb +2 -2
- data/lib/translation_engine/version.rb +1 -1
- metadata +33 -35
- data/test/dummy/log/test.log +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56c507d1510239faa143eebb8ee3fc350838b89e752ade64eabb2eb29ba744d4
|
4
|
+
data.tar.gz: ed3aa9700cf740cffe558a81760cb589f53312bb89a1ef42174aa6d57e45ff6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dffd883dd889cb1125f96fd018c8466cb761f96eceadbd40fc7d37df2cfa4554a27d574db43e3de6845cc68d6e194375656fa7feeffb9f26494174ed7c4e2fc
|
7
|
+
data.tar.gz: ce760583ae6c6e176950e7b230be2ee66d4054c3992dd3661d85fb77dead5d3412fc43ab208e61323f5d7949e0af9618df927d22f38303a6f878a8e93c2bab12
|
@@ -56,10 +56,10 @@ class TranslationEngine::Backend < I18n::Backend::Simple
|
|
56
56
|
result = catch(:exception) do
|
57
57
|
case subject
|
58
58
|
when Symbol
|
59
|
-
I18n.translate(subject, options.merge(:locale => locale, :throw => true))
|
59
|
+
I18n.translate(subject, **options.merge(:locale => locale, :throw => true))
|
60
60
|
when Proc
|
61
61
|
date_or_time = options.delete(:object) || object
|
62
|
-
resolve(locale, object, subject.call(date_or_time, options))
|
62
|
+
resolve(locale, object, subject.call(date_or_time, **options))
|
63
63
|
when nil
|
64
64
|
nil
|
65
65
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: translation_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondrej Bartas
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -145,7 +145,6 @@ files:
|
|
145
145
|
- test/dummy/config/locales/en.yml
|
146
146
|
- test/dummy/config/routes.rb
|
147
147
|
- test/dummy/config/secrets.yml
|
148
|
-
- test/dummy/log/test.log
|
149
148
|
- test/dummy/public/404.html
|
150
149
|
- test/dummy/public/422.html
|
151
150
|
- test/dummy/public/500.html
|
@@ -157,7 +156,7 @@ homepage: http://blueberry.cz
|
|
157
156
|
licenses:
|
158
157
|
- MIT
|
159
158
|
metadata: {}
|
160
|
-
post_install_message:
|
159
|
+
post_install_message:
|
161
160
|
rdoc_options: []
|
162
161
|
require_paths:
|
163
162
|
- lib
|
@@ -172,52 +171,51 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
171
|
- !ruby/object:Gem::Version
|
173
172
|
version: '0'
|
174
173
|
requirements: []
|
175
|
-
rubygems_version: 3.
|
176
|
-
signing_key:
|
174
|
+
rubygems_version: 3.3.7
|
175
|
+
signing_key:
|
177
176
|
specification_version: 4
|
178
177
|
summary: Connects Rails application to Translation Server
|
179
178
|
test_files:
|
180
|
-
- test/
|
181
|
-
- test/dummy/
|
182
|
-
- test/dummy/app/controllers/root_controller.rb
|
183
|
-
- test/dummy/app/views/layouts/application.html.erb
|
184
|
-
- test/dummy/app/views/root/index.html.erb
|
185
|
-
- test/dummy/app/assets/javascripts/root.js
|
179
|
+
- test/dummy/README.rdoc
|
180
|
+
- test/dummy/Rakefile
|
186
181
|
- test/dummy/app/assets/javascripts/application.js
|
182
|
+
- test/dummy/app/assets/javascripts/root.js
|
187
183
|
- test/dummy/app/assets/stylesheets/application.css
|
188
184
|
- test/dummy/app/assets/stylesheets/root.css
|
189
|
-
- test/dummy/app/
|
185
|
+
- test/dummy/app/controllers/application_controller.rb
|
186
|
+
- test/dummy/app/controllers/root_controller.rb
|
190
187
|
- test/dummy/app/helpers/application_helper.rb
|
191
|
-
- test/dummy/
|
192
|
-
- test/dummy/
|
193
|
-
- test/dummy/
|
188
|
+
- test/dummy/app/helpers/root_helper.rb
|
189
|
+
- test/dummy/app/views/layouts/application.html.erb
|
190
|
+
- test/dummy/app/views/root/index.html.erb
|
194
191
|
- test/dummy/bin/bundle
|
195
192
|
- test/dummy/bin/rails
|
196
|
-
- test/dummy/
|
197
|
-
- test/dummy/
|
198
|
-
- test/dummy/config/locales/en.yml
|
199
|
-
- test/dummy/config/environments/production.rb
|
200
|
-
- test/dummy/config/environments/development.rb
|
201
|
-
- test/dummy/config/environments/test.rb
|
202
|
-
- test/dummy/config/environment.rb
|
193
|
+
- test/dummy/bin/rake
|
194
|
+
- test/dummy/bin/setup
|
203
195
|
- test/dummy/config/application.rb
|
204
|
-
- test/dummy/config/database.yml
|
205
196
|
- test/dummy/config/boot.rb
|
197
|
+
- test/dummy/config/database.yml
|
198
|
+
- test/dummy/config/environment.rb
|
199
|
+
- test/dummy/config/environments/development.rb
|
200
|
+
- test/dummy/config/environments/production.rb
|
201
|
+
- test/dummy/config/environments/test.rb
|
202
|
+
- test/dummy/config/initializers/assets.rb
|
206
203
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
207
|
-
- test/dummy/config/initializers/
|
208
|
-
- test/dummy/config/initializers/mime_types.rb
|
204
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
209
205
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
206
|
+
- test/dummy/config/initializers/inflections.rb
|
207
|
+
- test/dummy/config/initializers/mime_types.rb
|
210
208
|
- test/dummy/config/initializers/session_store.rb
|
209
|
+
- test/dummy/config/initializers/translation_engine.rb
|
211
210
|
- test/dummy/config/initializers/wrap_parameters.rb
|
212
|
-
- test/dummy/config/
|
213
|
-
- test/dummy/config/
|
214
|
-
- test/dummy/config/
|
211
|
+
- test/dummy/config/locales/en.yml
|
212
|
+
- test/dummy/config/routes.rb
|
213
|
+
- test/dummy/config/secrets.yml
|
215
214
|
- test/dummy/config.ru
|
216
|
-
- test/dummy/
|
217
|
-
- test/dummy/public/favicon.ico
|
215
|
+
- test/dummy/public/404.html
|
218
216
|
- test/dummy/public/422.html
|
219
217
|
- test/dummy/public/500.html
|
220
|
-
- test/dummy/public/
|
221
|
-
- test/dummy/
|
222
|
-
- test/dummy/README.rdoc
|
218
|
+
- test/dummy/public/favicon.ico
|
219
|
+
- test/dummy/test/controllers/root_controller_test.rb
|
223
220
|
- test/test_helper.rb
|
221
|
+
- test/translation_engine_test.rb
|
data/test/dummy/log/test.log
DELETED
File without changes
|