gettext_i18n_rails_js 1.4.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/README.md +2 -2
- data/lib/gettext_i18n_rails_js/parser.rb +3 -4
- data/lib/gettext_i18n_rails_js/version.rb +2 -2
- data/lib/gettext_i18n_rails_js.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cd0ee56c107323990e0443d19e1ec5f3fa4e9cdacf550f04044d4b26655cb47
|
4
|
+
data.tar.gz: e798b854c293e2e9d21a39eee3d7b265864702d85ab9fe4bb98131d2ceb5c369
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ba4ea422a5eac878e723c65274631d028c944c31e9b6f82895035448a08fefab1a98112a70f02910c40fb1c563809c0b6bb1cb3e179c118bb24f1ee7c39ae74
|
7
|
+
data.tar.gz: 59b72564bf71526cea9762434da70fdad36259048aa05273ceb26b445bf487cab1e5af74cf4140e8790db64cc88fe8c4bde17d17e25ec0ca23593358832ff1eb
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
## [1.
|
3
|
+
## [2.1.0](https://github.com/webhippie/gettext_i18n_rails_js/releases/tag/v2.1.0) - 2024-05-23
|
4
|
+
|
5
|
+
* Autoload parsers only on first usage to reduce memory consumtion (@jrafanie)
|
6
|
+
|
7
|
+
## [2.0.0](https://github.com/webhippie/gettext_i18n_rails_js/releases/tag/v2.0.0) - 2023-07-20
|
8
|
+
|
9
|
+
* Upgrade to latest po_to_json which fixes double quotes within msgid (@tboerger)
|
10
|
+
|
11
|
+
## [1.4.0](https://github.com/webhippie/gettext_i18n_rails_js/releases/tag/v1.4.0) - 2023-05-01
|
4
12
|
|
5
13
|
* Added support for doing conversion for different domains and rails engines (@adamruzicka)
|
6
14
|
|
data/README.md
CHANGED
@@ -17,7 +17,7 @@ look at the [wokflow][workflow].
|
|
17
17
|
## Installation
|
18
18
|
|
19
19
|
```ruby
|
20
|
-
gem "gettext_i18n_rails_js", "~>
|
20
|
+
gem "gettext_i18n_rails_js", "~> 2.0"
|
21
21
|
```
|
22
22
|
|
23
23
|
## Versioning
|
@@ -34,7 +34,7 @@ gem using the [Pessimistic Version Constraint][pvc] with two digits of precision
|
|
34
34
|
For example:
|
35
35
|
|
36
36
|
```ruby
|
37
|
-
spec.add_dependency "gettext_i18n_rails_js", "~>
|
37
|
+
spec.add_dependency "gettext_i18n_rails_js", "~> 2.0"
|
38
38
|
```
|
39
39
|
|
40
40
|
## Usage
|
@@ -24,11 +24,10 @@
|
|
24
24
|
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
25
|
#
|
26
26
|
|
27
|
-
require_relative "parser/base"
|
28
|
-
require_relative "parser/javascript"
|
29
|
-
require_relative "parser/handlebars"
|
30
|
-
|
31
27
|
module GettextI18nRailsJs
|
32
28
|
module Parser
|
29
|
+
autoload(:Base, "gettext_i18n_rails_js/parser/base")
|
30
|
+
autoload(:Javascript, "gettext_i18n_rails_js/parser/javascript")
|
31
|
+
autoload(:Handlebars, "gettext_i18n_rails_js/parser/handlebars")
|
33
32
|
end
|
34
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gettext_i18n_rails_js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Boerger
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-05-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -101,14 +101,14 @@ dependencies:
|
|
101
101
|
requirements:
|
102
102
|
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
104
|
+
version: 2.0.0
|
105
105
|
type: :runtime
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
111
|
+
version: 2.0.0
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: rails
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,18 +178,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
- !ruby/object:Gem::Version
|
179
179
|
version: '0'
|
180
180
|
requirements: []
|
181
|
-
rubygems_version: 3.
|
181
|
+
rubygems_version: 3.3.5
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Extends gettext_i18n_rails making your .po files available to client side
|
185
185
|
javascript as JSON
|
186
186
|
test_files:
|
187
|
+
- spec/fixtures/example.coffee
|
188
|
+
- spec/fixtures/example.handlebars
|
189
|
+
- spec/fixtures/example.js
|
190
|
+
- spec/fixtures/example.vue
|
187
191
|
- spec/gettext_i18n_rails_js/parser/handlebars_spec.rb
|
188
192
|
- spec/gettext_i18n_rails_js/parser/javascript_spec.rb
|
189
|
-
- spec/support/with_file.rb
|
190
|
-
- spec/spec_helper.rb
|
191
193
|
- spec/gettext_i18n_rails_js_spec.rb
|
192
|
-
- spec/
|
193
|
-
- spec/
|
194
|
-
- spec/fixtures/example.handlebars
|
195
|
-
- spec/fixtures/example.coffee
|
194
|
+
- spec/spec_helper.rb
|
195
|
+
- spec/support/with_file.rb
|