translation_engine 0.0.8 → 0.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: ac95cf9c6d16b490a19aaeedae0ea1caa3c6243c97cb4d9ed2ba9f7106b8988b
4
- data.tar.gz: 5510294287f26bdf0abe67d12b28c65013e1633e0b2b478bbffd1fba5fe10947
3
+ metadata.gz: 56c507d1510239faa143eebb8ee3fc350838b89e752ade64eabb2eb29ba744d4
4
+ data.tar.gz: ed3aa9700cf740cffe558a81760cb589f53312bb89a1ef42174aa6d57e45ff6c
5
5
  SHA512:
6
- metadata.gz: 9f1ba7e2297b1a93bc783cd2f8009d49cb8666af916801c75593a1fb5ee582d4c3a60e2902f0110ccaebd3271ed69d390dc7f5f6cd261ee381dda4a3f8eb4796
7
- data.tar.gz: 647279a4752922e40ed772171597f234caf4a630f45d576c88902bef29eb5db942c2b213a211485d21ac9b545b0129272b38af77f325687013893e616c476819
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
@@ -1,3 +1,3 @@
1
1
  module TranslationEngine
2
- VERSION = "0.0.8"
2
+ VERSION = "0.1.0"
3
3
  end
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.8
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: 2019-08-30 00:00:00.000000000 Z
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.0.1
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/translation_engine_test.rb
181
- - test/dummy/app/controllers/application_controller.rb
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/helpers/root_helper.rb
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/test/controllers/root_controller_test.rb
192
- - test/dummy/bin/rake
193
- - test/dummy/bin/setup
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/config/secrets.yml
197
- - test/dummy/config/routes.rb
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/translation_engine.rb
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/initializers/assets.rb
213
- - test/dummy/config/initializers/cookies_serializer.rb
214
- - test/dummy/config/initializers/inflections.rb
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/Rakefile
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/404.html
221
- - test/dummy/log/test.log
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
File without changes