gettext_json 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,14 +20,17 @@ To install the GettextJson files in your application use the following generator
20
20
 
21
21
  ./script/generate gettext_json
22
22
 
23
- It will create two files :
23
+ It will create three files :
24
24
 
25
25
  public/javascripts/gettext_json.js
26
26
  lib/js_parser.rb
27
+ lib/tasks/gettext_json.rake
27
28
 
28
29
  `gettext_json.js` is the GetText micro library for javascript. To use gettext_json you have to call this file from your layout.
29
30
 
30
- `lib/js_parser.rb` is a Javascript gettext parser. To use it, require the file inn your rake tasks for gettext.
31
+ `lib/js_parser.rb` is a Javascript gettext parser. To use it, require the file inn your rake tasks for gettext.
32
+
33
+ `lib/tasks/gettext_json.rake` contains the `makemo:json` rake task.
31
34
 
32
35
  For more informations, see [GetText micro library](http://wiki.github.com/simonc/rails_gettext_json/gettext-micro-library)
33
36
  and [Javascript parser](http://wiki.github.com/simonc/rails_gettext_json/javascript-parser) in the wiki.
@@ -49,7 +52,7 @@ To translate strings in your scripts, simply use the GetText micro library API :
49
52
 
50
53
  var str = GetText.t('Hello World');
51
54
  //=> "Bonjour le Monde"
52
-
55
+
53
56
  ## Copyright
54
57
 
55
58
  Copyright (c) 2009 Simon COURTOIS, released under the MIT license
data/Rakefile CHANGED
@@ -34,7 +34,7 @@ PKG_FILES = FileList[
34
34
 
35
35
  spec = Gem::Specification.new do |s|
36
36
  s.name = "gettext_json"
37
- s.version = "0.0.1"
37
+ s.version = "0.0.2"
38
38
  s.author = "Simon COURTOIS"
39
39
  s.email = "happynoff@free.fr"
40
40
  s.homepage = "http://github.com/simonc/rails_gettext_json"
@@ -9,6 +9,8 @@ class GettextJsonGenerator < Rails::Generator::Base
9
9
  m.template 'gettext_json.js', File.join('public/javascripts', 'gettext_json.js')
10
10
  m.directory 'lib'
11
11
  m.template 'js_parser.rb', File.join('lib', 'js_parser.rb')
12
+ m.directory 'lib/tasks'
13
+ m.template 'gettext_json.rake', File.join('lib/tasks', 'gettext_json.rake')
12
14
  end
13
15
  end
14
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gettext_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon COURTOIS
@@ -30,10 +30,10 @@ files:
30
30
  - uninstall.rb
31
31
  - generators/gettext_json/gettext_json_generator.rb
32
32
  - generators/gettext_json/templates/gettext_json.js
33
+ - generators/gettext_json/templates/gettext_json.rake
33
34
  - generators/gettext_json/templates/js_parser.rb
34
35
  - generators/gettext_json/USAGE
35
36
  - lib/gettext_json.rb
36
- - tasks/gettext_json_tasks.rake
37
37
  has_rdoc: true
38
38
  homepage: http://github.com/simonc/rails_gettext_json
39
39
  licenses: []