gettext_i18n_rails_js 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Readme.md CHANGED
@@ -18,7 +18,7 @@ It requires rails 3.2 or later, any version of 'gettext_i18n_rails' will do thou
18
18
 
19
19
  This will reconstruct the `locale/<lang>/app.po` structure as javascript files inside `app/assets/javascripts/locale/<lang>/app.js`
20
20
 
21
- ## Using this translations in your javascript
21
+ ## Using translations in your javascript
22
22
 
23
23
  The gem provides the Jed library to use the generated javascript files. (http://slexaxton.github.com/Jed/some)
24
24
  It also provides a global `__` function that maps to `Jed#gettext`.
@@ -1,9 +1,4 @@
1
- require 'gettext/utils'
2
- begin
3
- require 'gettext/tools/rgettext'
4
- rescue LoadError #version prior to 2.0
5
- require 'gettext/rgettext'
6
- end
1
+ require 'gettext/tools/xgettext'
7
2
 
8
3
  module GettextI18nRailsJs
9
4
  class JsAndCoffeeParser
@@ -69,4 +64,5 @@ module GettextI18nRailsJs
69
64
  end
70
65
  end
71
66
 
72
- GetText::RGetText.add_parser(GettextI18nRailsJs::JsAndCoffeeParser)
67
+ require 'gettext_i18n_rails/gettext_hooks'
68
+ GettextI18nRails::GettextHooks.add_parser(GettextI18nRailsJs::JsAndCoffeeParser)
@@ -1,3 +1,3 @@
1
1
  module GettextI18nRailsJs
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  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: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-20 00:00:00.000000000 Z
12
+ date: 2012-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70361670650100 !ruby/object:Gem::Requirement
16
+ requirement: &70147763466400 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,32 +21,32 @@ dependencies:
21
21
  version: 3.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70361670650100
24
+ version_requirements: *70147763466400
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: gettext
27
- requirement: &70361670649680 !ruby/object:Gem::Requirement
27
+ requirement: &70147763463880 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
- version: '0'
32
+ version: 2.3.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70361670649680
35
+ version_requirements: *70147763463880
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: gettext_i18n_rails
38
- requirement: &70361670649220 !ruby/object:Gem::Requirement
38
+ requirement: &70147763477920 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
42
42
  - !ruby/object:Gem::Version
43
- version: '0'
43
+ version: 0.7.1
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70361670649220
46
+ version_requirements: *70147763477920
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sqlite3
49
- requirement: &70361670648800 !ruby/object:Gem::Requirement
49
+ requirement: &70147763474740 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70361670648800
57
+ version_requirements: *70147763474740
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec
60
- requirement: &70361670648300 !ruby/object:Gem::Requirement
60
+ requirement: &70147763485780 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '2'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70361670648300
68
+ version_requirements: *70147763485780
69
69
  description: gettext_i18n_rails will find translations inside your .js and .coffee
70
70
  files, then it will create JSON versions of your .PO files and will let you serve
71
71
  them with the rest of your assets, thus letting you access all your translations
@@ -112,3 +112,4 @@ specification_version: 3
112
112
  summary: Extends gettext_i18n_rails making your .po files available to client side
113
113
  javascript as JSON
114
114
  test_files: []
115
+ has_rdoc: