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 +4 -4
- data/ChangeLog.md +8 -1
- data/README.md +3 -0
- data/lib/sinatra/r18n/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7dc8abda2e8097f6fb85551fad223e12cdabeab62db222c749c0ed1cf83e407
|
4
|
+
data.tar.gz: aa179204398b8dfdda4cd9f02a9cb2bcfa274120cfda76bbeff4f88fc97880b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/sinatra/r18n/version.rb
CHANGED
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.
|
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-
|
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.
|
215
|
-
documentation_uri: http://www.rubydoc.info/gems/sinatra-r18n/5.0.
|
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:
|