gettext_i18n_rails_js 1.0.4 → 1.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
  SHA1:
3
- metadata.gz: 51e1a1b94026798a925925c54bfb7d293f95565c
4
- data.tar.gz: aaef6c498343a5a99743c094dc0ddc214b587dee
3
+ metadata.gz: 5e795e764b0f9c03e5df55d3f15c39fee423e319
4
+ data.tar.gz: fbcb7ededb2689c4df43bb3ca1eaf3f1b9cc6d41
5
5
  SHA512:
6
- metadata.gz: 534dd004d25c63d600c0cd8e2bb84f96ee7fe309a18bf7ac8bcb23389cb3ff7e94fce0c22b83f0bc14665163e56fd35976da58b01a8d81b352f5e0b0435a5e76
7
- data.tar.gz: 408a65e8ea88a8987049c0c409906a825d21d9e2d2ceb6fe79ade5ee5149e00f8da0bd3130e886cb373a4f016665a7919eaafe4e90011a25f5581bc461134c40
6
+ metadata.gz: f66745cfff9918b085078838d02c5f8dbb55ec79de17cf37a8e7307cd8bdbbdcce99796296bbf77c6b0e7639640eacc94146463d0036fac4668e135c67951bc1
7
+ data.tar.gz: ec293d9348999985d8c693fca283264143e559e6b7de242ccfc374a7c7ee71a9edbab4f3dc232805b84be97557b235fab1b5b529a5db964f3d4ddd6162fc54e0
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.1.0](https://github.com/webhippie/gettext_i18n_rails_js/releases/tag/v1.1.0) - 2016-06-02
4
+
5
+ * Replace hyphens with underscores in locale var from DOM (@filib)
6
+
3
7
  ## [1.0.4](https://github.com/webhippie/gettext_i18n_rails_js/releases/tag/v1.0.4) - 2016-05-31
4
8
 
5
9
  * Support ES2015 template strings (@bradbarrow)
@@ -34,6 +34,8 @@
34
34
  return;
35
35
  }
36
36
 
37
+ locale = locale.replace(/-/g, "_");
38
+
37
39
  var i18n = new Jed(locales[locale] || {});
38
40
 
39
41
  window.__ = function() {
@@ -26,8 +26,8 @@
26
26
  module GettextI18nRailsJs
27
27
  class Version
28
28
  MAJOR = 1
29
- MINOR = 0
30
- PATCH = 4
29
+ MINOR = 1
30
+ PATCH = 0
31
31
 
32
32
  PRE = nil
33
33
 
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.0.4
4
+ version: 1.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: 2016-05-31 00:00:00.000000000 Z
12
+ date: 2016-06-03 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
  version: '0'
179
179
  requirements: []
180
180
  rubyforge_project:
181
- rubygems_version: 2.2.5
181
+ rubygems_version: 2.5.1
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.js
188
- - spec/fixtures/example.handlebars
189
187
  - spec/fixtures/example.coffee
190
- - spec/support/with_file.rb
191
- - spec/gettext_i18n_rails_js/parser/javascript_spec.rb
188
+ - spec/fixtures/example.handlebars
189
+ - spec/fixtures/example.js
192
190
  - spec/gettext_i18n_rails_js/parser/handlebars_spec.rb
191
+ - spec/gettext_i18n_rails_js/parser/javascript_spec.rb
193
192
  - spec/gettext_i18n_rails_js_spec.rb
194
193
  - spec/spec_helper.rb
194
+ - spec/support/with_file.rb
195
195
  has_rdoc: