gettext_i18n_rails_js 2.0.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 +4 -0
- data/lib/gettext_i18n_rails_js/parser.rb +3 -4
- data/lib/gettext_i18n_rails_js/version.rb +1 -1
- metadata +8 -8
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,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
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
|
+
|
3
7
|
## [2.0.0](https://github.com/webhippie/gettext_i18n_rails_js/releases/tag/v2.0.0) - 2023-07-20
|
4
8
|
|
5
9
|
* Upgrade to latest po_to_json which fixes double quotes within msgid (@tboerger)
|
@@ -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: 2.
|
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
|
@@ -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
193
|
- spec/gettext_i18n_rails_js_spec.rb
|
191
|
-
- spec/fixtures/example.coffee
|
192
|
-
- spec/fixtures/example.vue
|
193
|
-
- spec/fixtures/example.js
|
194
|
-
- spec/fixtures/example.handlebars
|
195
194
|
- spec/spec_helper.rb
|
195
|
+
- spec/support/with_file.rb
|