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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ab326162602b66ba040e58caf4f70bb47ab86534a4b6af2c8db0b80ed8476e7
4
- data.tar.gz: aeedf1ab2bf77d3714997cd245c20678ff2ac704597d9c166e5d92f20c8cdd49
3
+ metadata.gz: 9cd0ee56c107323990e0443d19e1ec5f3fa4e9cdacf550f04044d4b26655cb47
4
+ data.tar.gz: e798b854c293e2e9d21a39eee3d7b265864702d85ab9fe4bb98131d2ceb5c369
5
5
  SHA512:
6
- metadata.gz: '0943368677d65bf340f39226d4b63772f7d34034727b47e2c61d185ad0eeb8108da68662029977a5c43bf4732fe277122cab99efc8f898f5fac7e1b9448edb7d'
7
- data.tar.gz: 648ff70f6cc5366b2093775df8f4fc2dc6a922696f858f590b0abd4cff9e5d7e8ffb8380229aeeb17dfecae48bdc3ec95f709d0ddcdf045624cfd93aaf7744cf
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
@@ -27,7 +27,7 @@
27
27
  module GettextI18nRailsJs
28
28
  class Version
29
29
  MAJOR = 2
30
- MINOR = 0
30
+ MINOR = 1
31
31
  PATCH = 0
32
32
 
33
33
  PRE = nil
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.0.0
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: 2023-07-20 00:00:00.000000000 Z
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.1.2
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