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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: daae36f91fe3d18ef004de9c310dfecd375cfcdc374324fd94955b0284b88d0c
4
- data.tar.gz: 53fcf1bf4c8aeb76f669b71b71f61b816da23d011b62fb17bcf2e0b3cc73fa92
3
+ metadata.gz: 9cd0ee56c107323990e0443d19e1ec5f3fa4e9cdacf550f04044d4b26655cb47
4
+ data.tar.gz: e798b854c293e2e9d21a39eee3d7b265864702d85ab9fe4bb98131d2ceb5c369
5
5
  SHA512:
6
- metadata.gz: d8c598c772c463cb2330b8932ff9630165a8ce8913b7cfc2c64bae8b78403987cc5c1d0052d7f1beaaae05866db2a7d49bb1ec3b8d4c9f63fdbff4401e46b25b
7
- data.tar.gz: 44a48ac7b393f1320c092c273d9f17dca2e1d7b9bfa8b0a38073150a1a7af64299e09dab295f5615a388c7110e849273f0392497706cf080c149bf360d446481
6
+ metadata.gz: 2ba4ea422a5eac878e723c65274631d028c944c31e9b6f82895035448a08fefab1a98112a70f02910c40fb1c563809c0b6bb1cb3e179c118bb24f1ee7c39ae74
7
+ data.tar.gz: 59b72564bf71526cea9762434da70fdad36259048aa05273ceb26b445bf487cab1e5af74cf4140e8790db64cc88fe8c4bde17d17e25ec0ca23593358832ff1eb
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # Changelog
2
2
 
3
- ## [1.4.0](https://github.com/webhippie/gettext_i18n_rails_js/releases/tag/v1.4.0) - 2024-05-01
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", "~> 1.2"
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", "~> 1.2"
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
@@ -26,8 +26,8 @@
26
26
 
27
27
  module GettextI18nRailsJs
28
28
  class Version
29
- MAJOR = 1
30
- MINOR = 4
29
+ MAJOR = 2
30
+ MINOR = 1
31
31
  PATCH = 0
32
32
 
33
33
  PRE = nil
@@ -27,7 +27,7 @@
27
27
  gem "rails", version: ">= 3.2.0"
28
28
  gem "gettext", version: ">= 3.0.2"
29
29
  gem "gettext_i18n_rails", version: ">= 0.7.1"
30
- gem "po_to_json", version: ">= 0.1.0"
30
+ gem "po_to_json", version: ">= 2.0.0"
31
31
 
32
32
  require "rails"
33
33
  require "gettext"
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.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-05-01 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
@@ -101,14 +101,14 @@ dependencies:
101
101
  requirements:
102
102
  - - ">="
103
103
  - !ruby/object:Gem::Version
104
- version: 1.0.0
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: 1.0.0
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.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
- - spec/spec_helper.rb
191
193
  - spec/gettext_i18n_rails_js_spec.rb
192
- - spec/fixtures/example.js
193
- - spec/fixtures/example.vue
194
- - spec/fixtures/example.handlebars
195
- - spec/fixtures/example.coffee
194
+ - spec/spec_helper.rb
195
+ - spec/support/with_file.rb