po_to_json 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/po_to_json.rb +3 -3
  2. metadata +3 -3
data/lib/po_to_json.rb CHANGED
@@ -26,12 +26,12 @@ class PoToJson
26
26
  @parsed ||= self.parse
27
27
 
28
28
  @parsed['']['lang'] = language_code
29
- @parsed['']['domain'] = 'messages'
29
+ @parsed['']['domain'] = 'app'
30
30
  @parsed['']['plural_forms'] ||= @parsed['']['Plural-Forms']
31
31
 
32
32
  jed_json = {
33
- domain: 'messages',
34
- locale_data: @parsed
33
+ domain: 'app',
34
+ locale_data: { app: @parsed }
35
35
  }
36
36
 
37
37
  "var locales = locales || {}; locales['#{language_code}'] = #{jed_json.to_json};"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: po_to_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2012-07-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
17
- requirement: &70319579385560 !ruby/object:Gem::Requirement
17
+ requirement: &70164234852820 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,7 +22,7 @@ dependencies:
22
22
  version: 1.7.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70319579385560
25
+ version_requirements: *70164234852820
26
26
  description: Convert gettext PO files to json to use in your javascript app, based
27
27
  po2json.pl (by DuckDuckGo, Inc. http://duckduckgo.com/, Torsten Raudssus <torsten@raudss.us>.)
28
28
  email: nubis@woobiz.com.ar