sinatra-r18n 5.0.1 → 5.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7585a5baa2539e4a9021f66455bccaafa2cf9e6419aca964ad502e6f7a794460
4
- data.tar.gz: 7d644a6dbcf2124f7e4c1d03fd4d880a254c4df43e51914e97444998e963486c
3
+ metadata.gz: b7dc8abda2e8097f6fb85551fad223e12cdabeab62db222c749c0ed1cf83e407
4
+ data.tar.gz: aa179204398b8dfdda4cd9f02a9cb2bcfa274120cfda76bbeff4f88fc97880b8
5
5
  SHA512:
6
- metadata.gz: 8ffabe28f22bcf44833c2a7ddcfbbeedc1613d496e05213aec7d04ac20b61c26c598b57b931b729020913948a83f7d8c1bff57221c31f10ab141d37cef6b20e7
7
- data.tar.gz: 9104c73ce5025eaea4237947e39c33346fd8a89a142a99cff19b43c2d246e0b46241841ec98c367e8d22b29c5428e12f829ccbdd4acb72fb999c2800321f2081
6
+ metadata.gz: 9f3985088673d23f7f049d1c66d0067a9226c84cc94a1eaaed161bfc45ca49d04bcae7b73627979aa31ef3b42e0bbefcbf053d4155ea576b6576ca12ff75388d
7
+ data.tar.gz: 81deb2062e6a4477a2eac243545e73ccd94f84f42581466c56d0bd47cab359a10e3f236789b01e792b33e824f2e4db64549f6eccd4cc107ee8f57ed593bbd7f3
data/ChangeLog.md CHANGED
@@ -2,11 +2,18 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
- ## 5.0.1 (2021-03-04)
5
+ ## 5.0.2 (2021-04-02)
6
+
7
+ ## 5.0.1 (Ą) (2021-03-04)
8
+
9
+ * Update version 5 ChangeLog to more complete and actual.
6
10
 
7
11
  ## 5.0.0 (Warszawa) (2021-03-04)
8
12
 
9
13
  * Take out `sinatra-r18n` gem from mono-repository.
14
+ * Change lazy R18n initialization to immediate
15
+ Now all hooks for R18n have to be before its registration.
16
+ See #3.
10
17
  * Drop Ruby 2.4 support.
11
18
  * Support Ruby 3.
12
19
  * Avoid Ruby 4 in gem specs.
data/README.md CHANGED
@@ -71,6 +71,9 @@ for more information.
71
71
  end
72
72
  ```
73
73
 
74
+ **Warning**: such hooks have to be before `register Sinatra::R18n` since R18n version 5
75
+ has no more lazy evaluation and initializes immediately. See #3 or specs / test application.
76
+
74
77
  5. Use translation messages in views. For example in HAML:
75
78
  ```haml
76
79
  %p= t.post.friends
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sinatra
4
4
  module R18n
5
- VERSION = '5.0.1'
5
+ VERSION = '5.0.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-r18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Sitnik
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-03-03 00:00:00.000000000 Z
12
+ date: 2021-04-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: r18n-core
@@ -211,8 +211,8 @@ licenses:
211
211
  - LGPL-3.0
212
212
  metadata:
213
213
  bug_tracker_uri: https://github.com/r18n/sinatra-r18n/issues
214
- changelog_uri: https://github.com/r18n/sinatra-r18n/blob/5.0.1/ChangeLog.md
215
- documentation_uri: http://www.rubydoc.info/gems/sinatra-r18n/5.0.1
214
+ changelog_uri: https://github.com/r18n/sinatra-r18n/blob/5.0.2/ChangeLog.md
215
+ documentation_uri: http://www.rubydoc.info/gems/sinatra-r18n/5.0.2
216
216
  homepage_uri: https://github.com/r18n/sinatra-r18n
217
217
  source_code_uri: https://github.com/r18n/sinatra-r18n
218
218
  post_install_message: