gettext_column_mapping 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/.gitignore +5 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +102 -0
  4. data/Rakefile +67 -0
  5. data/VERSION +1 -0
  6. data/examples/config/column_mapping.yml +9 -0
  7. data/examples/config/gettext_db_extract.yml +8 -0
  8. data/gettext_column_mapping.gemspec +104 -0
  9. data/init.rb +10 -0
  10. data/install.rb +7 -0
  11. data/lib/gettext_column_mapping/backends/base.rb +78 -0
  12. data/lib/gettext_column_mapping/backends/gettext_activerecord.rb +29 -0
  13. data/lib/gettext_column_mapping/backends/gettext_i18n_rails.rb +34 -0
  14. data/lib/gettext_column_mapping/initializer.rb +64 -0
  15. data/lib/gettext_column_mapping/mapper.rb +53 -0
  16. data/lib/gettext_column_mapping/model_attributes_finder.rb +93 -0
  17. data/lib/gettext_column_mapping/parent_level/attr_methods.rb +45 -0
  18. data/lib/gettext_column_mapping/parent_level.rb +78 -0
  19. data/lib/gettext_column_mapping/parser/yaml.rb +11 -0
  20. data/lib/gettext_column_mapping/parser.rb +38 -0
  21. data/lib/gettext_column_mapping/railtie.rb +21 -0
  22. data/lib/gettext_column_mapping/tasks.rb +147 -0
  23. data/lib/gettext_column_mapping.rb +46 -0
  24. data/tasks/gettext_column_mapping.rake +132 -0
  25. data/test/.gitignore +1 -0
  26. data/test/activerecord_test.rb +43 -0
  27. data/test/config/column_mapping.yml +16 -0
  28. data/test/config/database.yml +9 -0
  29. data/test/config/parent_level_column_mapping.yml +6 -0
  30. data/test/db/fixtures/categories.yml +19 -0
  31. data/test/db/fixtures/rubriques.yml +7 -0
  32. data/test/db/migrate/001_create_utilisateurs.rb +16 -0
  33. data/test/db/migrate/002_create_rubriques.rb +15 -0
  34. data/test/db/migrate/003_create_categories.rb +16 -0
  35. data/test/extend_lib_path.rb +3 -0
  36. data/test/fast_gettext_helper.rb +13 -0
  37. data/test/gettext_column_mapping_test.rb +24 -0
  38. data/test/gettext_helper.rb +10 -0
  39. data/test/helper.rb +39 -0
  40. data/test/log/.gitkeep +0 -0
  41. data/test/mapper_test.rb +42 -0
  42. data/test/models/categorie.rb +3 -0
  43. data/test/models/rubrique.rb +3 -0
  44. data/test/models/utilisateur.rb +4 -0
  45. data/test/po/fr/gettext_column_mapping.po +70 -0
  46. data/test/po/gettext_column_mapping.pot +71 -0
  47. data/test/static/data.rb +15 -0
  48. data/test/static/pluralization.rb +2 -0
  49. data/test/test_helper.rb +17 -0
  50. data/uninstall.rb +2 -0
  51. metadata +128 -0
@@ -0,0 +1,6 @@
1
+ categorie:
2
+ parent:
3
+ association: rubrique
4
+ key: libelle
5
+ columns:
6
+ - libelle
@@ -0,0 +1,19 @@
1
+ "sport-foot":
2
+ libelle: Football
3
+ rubrique_id: 1
4
+ id: 1
5
+
6
+ "sport-wc":
7
+ libelle: World Cup
8
+ rubrique_id: 1
9
+ id: 2
10
+
11
+ "event-foot":
12
+ libelle: Football
13
+ rubrique_id: 2
14
+ id: 3
15
+
16
+ "event-wc":
17
+ libelle: World Cup
18
+ rubrique_id: 2
19
+ id: 4
@@ -0,0 +1,7 @@
1
+ sport:
2
+ libelle: Sport
3
+ id: 1
4
+
5
+ event:
6
+ libelle: Event
7
+ id: 2
@@ -0,0 +1,16 @@
1
+ # coding: utf-8
2
+ class CreateUtilisateurs < ActiveRecord::Migration
3
+ def self.up
4
+ create_table :utilisateurs do |t|
5
+ t.column :prenom, :string, :default => nil, :null => false
6
+ t.column :nom, :string, :default => nil, :null => false
7
+ t.column :age, :integer
8
+ t.column :sexe, :string, :default => nil, :null => false
9
+ end
10
+
11
+ end
12
+
13
+ def self.down
14
+ drop_table :utilisateurs
15
+ end
16
+ end
@@ -0,0 +1,15 @@
1
+ # coding: utf-8
2
+ class CreateRubriques < ActiveRecord::Migration
3
+ def self.up
4
+ create_table :rubriques do |t|
5
+ t.column :libelle, :string, :default => nil, :null => false
6
+ end
7
+
8
+ load_data :rubriques
9
+
10
+ end
11
+
12
+ def self.down
13
+ drop_table :rubriques
14
+ end
15
+ end
@@ -0,0 +1,16 @@
1
+ # coding: utf-8
2
+ class CreateCategories < ActiveRecord::Migration
3
+ def self.up
4
+ create_table :categories do |t|
5
+ t.column :libelle, :string, :default => nil, :null => false
6
+ t.column :rubrique_id, :integer, :default => nil, :null => false
7
+ end
8
+
9
+ load_data(:categories)
10
+
11
+ end
12
+
13
+ def self.down
14
+ drop_table :categories
15
+ end
16
+ end
@@ -0,0 +1,3 @@
1
+ # coding: utf-8
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+ $LOAD_PATH.unshift(File.expand_path('../../lib',__FILE__))
@@ -0,0 +1,13 @@
1
+ # coding: utf-8
2
+ require 'helper'
3
+
4
+ GettextColumnMapping::Initializer.run do |config|
5
+ config.config_file = File.expand_path("../config/column_mapping.yml", __FILE__)
6
+ config.use_parent_level = true
7
+ config.parent_level_file = File.expand_path("../config/parent_level_column_mapping.yml", __FILE__)
8
+ end
9
+
10
+
11
+ FastGettext.add_text_domain 'gettext_column_mapping', :path => File.join($gettext_column_mapping_root,'locale')
12
+ FastGettext.default_available_locales = ['en','fr','es'] #all you want to allow
13
+ FastGettext.default_text_domain = 'gettext_column_mapping'
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ require 'test_helper'
3
+ class GettextColumnMappingTest < Test::Unit::TestCase
4
+
5
+ def test_config
6
+ assert_instance_of ActiveSupport::OrderedOptions, GettextColumnMapping.config
7
+ assert_instance_of GettextColumnMapping::Mapper, GettextColumnMapping.mapper
8
+ assert_equal :yaml, GettextColumnMapping.config.config_parser
9
+ if ENV['GETTEXT']
10
+ assert_equal :gettext_activerecord, GettextColumnMapping.config.backend
11
+ else
12
+ assert_equal :gettext_i18n_rails, GettextColumnMapping.config.backend
13
+ end
14
+ assert_not_nil GettextColumnMapping.config.backend_class
15
+ assert_equal "Model", GettextColumnMapping.config.model_prefix
16
+ assert_equal "Data", GettextColumnMapping.config.data_prefix
17
+
18
+ GettextColumnMapping.config.config_file = File.join($gettext_column_mapping_root, 'config/column_mapping.yml')
19
+ assert_not_nil GettextColumnMapping.config.config_file
20
+
21
+ GettextColumnMapping::Initializer.run
22
+ end
23
+
24
+ end
@@ -0,0 +1,10 @@
1
+ # coding: utf-8
2
+ require 'helper'
3
+ GettextColumnMapping::Initializer.run do |config|
4
+ config.backend = :gettext_activerecord
5
+ config.config_file = File.expand_path("../config/column_mapping.yml", __FILE__)
6
+ config.use_parent_level = true
7
+ config.parent_level_file = File.expand_path("../config/parent_level_column_mapping.yml", __FILE__)
8
+ end
9
+
10
+ GetText.bindtextdomain_to(Object, 'gettext_column_mapping', :path => File.join($gettext_column_mapping_root,'locale'))
data/test/helper.rb ADDED
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+ require 'extend_lib_path'
3
+ require 'rubygems'
4
+ require 'gettext_column_mapping'
5
+ require 'gettext_column_mapping/initializer'
6
+ require 'fileutils'
7
+ configuration = {
8
+ 'database' => 'gettext_column_mapping',
9
+ 'adapter' => 'mysql',
10
+ 'host' => 'localhost',
11
+ 'username' => 'root',
12
+ 'password' => ''
13
+ }.with_indifferent_access
14
+ require 'gettext_column_mapping'
15
+ ActiveRecord::Base.configurations = YAML.load_file(File.expand_path('../config/database.yml',__FILE__))
16
+ ActiveRecord::Base.establish_connection(:test)
17
+ logfile = File.open(File.expand_path('../log/database.log',__FILE__), 'a')
18
+ logfile.sync = true
19
+ require 'active_record/fixtures'
20
+ ActiveRecord::Base.logger = Logger.new(logfile)
21
+ migrator = ActiveRecord::Migrator.new(:up,File.expand_path('../db/migrate',__FILE__),nil)
22
+
23
+ if ! migrator.pending_migrations.blank? || ENV['REMIGRATE']
24
+ ActiveRecord::Base.connection.execute("DROP DATABASE gettext_column_mapping")
25
+ ActiveRecord::Base.connection.execute("CREATE DATABASE gettext_column_mapping")
26
+ ActiveRecord::Base.establish_connection(:test)
27
+
28
+ class ActiveRecord::Migration
29
+ def self.load_data(filename, dir = File.expand_path('../db/fixtures',__FILE__))
30
+ Fixtures.create_fixtures(dir, filename)
31
+ end
32
+ end
33
+
34
+ # Migrate up
35
+ puts "Migrate up"
36
+ ActiveRecord::Migrator.migrate(File.expand_path('../db/migrate',__FILE__),nil)
37
+ end
38
+ $gettext_column_mapping_root = File.dirname(__FILE__)
39
+ FileUtils.mkdir_p(File.join($gettext_column_mapping_root,'locale'))
data/test/log/.gitkeep ADDED
File without changes
@@ -0,0 +1,42 @@
1
+ # coding: utf-8
2
+ require 'test_helper'
3
+ require 'models/utilisateur'
4
+ class UtilisateurTest < Test::Unit::TestCase
5
+
6
+ class NotMapped < ActiveRecord::Base; end
7
+
8
+ def test_to_s_with_gettext
9
+ assert_equal 'Model|User', Utilisateur.to_s_with_gettext
10
+ end
11
+
12
+ def test_translate_key
13
+ assert GettextColumnMapping.mapper.translate_key?(Utilisateur,'sexe')
14
+ assert GettextColumnMapping.mapper.translate_key?(Utilisateur,'nom')
15
+ assert GettextColumnMapping.mapper.translate_key?(Utilisateur,'prenom')
16
+ end
17
+
18
+ def column_translation_for_attribute
19
+ assert_equal 'Model|User|Gender', GettextColumnMapping.mapper.column_translation_for_attribute(Utilisateur,'sexe')
20
+ assert_equal 'Model|User|First name', GettextColumnMapping.mapper.column_translation_for_attribute(Utilisateur,'prenom')
21
+ assert_equal 'Model|User|Last name', GettextColumnMapping.mapper.column_translation_for_attribute(Utilisateur,'nom')
22
+ assert_equal 'Model|User|Age', GettextColumnMapping.mapper.column_translation_for_attribute(Utilisateur,'age')
23
+ end
24
+
25
+ def test_translate_class_name
26
+ assert ! GettextColumnMapping.mapper.translate_class_name?(NotMapped)
27
+ assert GettextColumnMapping.mapper.translate_class_name?(Utilisateur)
28
+ end
29
+
30
+ def test_translation
31
+ GettextColumnMapping.locale = 'en'
32
+ assert_equal 'User', Utilisateur.human_name
33
+ assert_equal 'Apples', ns_("Fruits|Apple","Apples",5)
34
+ assert_equal 'Apple', ns_("Fruits|Apple","Apples",1)
35
+ GettextColumnMapping.locale = 'fr'
36
+ assert_equal 'Utilisateur', Utilisateur.human_name
37
+ assert_equal 'Pommes', ns_("Fruits|Apple","Apples",5)
38
+ assert_equal 'Pomme', ns_("Fruits|Apple","Apples",1)
39
+ end
40
+
41
+ end
42
+
@@ -0,0 +1,3 @@
1
+ class Categorie < ActiveRecord::Base
2
+ belongs_to :rubrique
3
+ end
@@ -0,0 +1,3 @@
1
+ class Rubrique < ActiveRecord::Base
2
+ has_many :categories
3
+ end
@@ -0,0 +1,4 @@
1
+ # coding: utf-8
2
+ class Utilisateur < ActiveRecord::Base
3
+
4
+ end
@@ -0,0 +1,70 @@
1
+ # GettextColumnMapping template L10n file for tests.
2
+ # Copyright (C) 2010 Ramihajamalala Hery <hery@rails-royce.org>
3
+ # This file is distributed under the same license as the gettext_column_mapping package.
4
+ # Ramihajamalala Hery <hery@rails-royce.org>, 2010.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: version 0.0.1\n"
9
+ "POT-Creation-Date: 2010-07-06 10:30+0200\n"
10
+ "PO-Revision-Date: 2010-07-05 11:51+0200\n"
11
+ "Last-Translator: <hery@rails-royce.org>\n"
12
+ "Language-Team: French\n"
13
+ "MIME-Version: 1.0\n"
14
+ "Content-Type: text/plain; charset=UTF-8\n"
15
+ "Content-Transfer-Encoding: 8bit\n"
16
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
17
+
18
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:13
19
+ msgid "Data|Model|Category|Event|Label|Football"
20
+ msgstr "Evènement - Football"
21
+
22
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:14
23
+ msgid "Data|Model|Category|Event|Label|World Cup"
24
+ msgstr "Evènement - Coupe du monde"
25
+
26
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:11
27
+ msgid "Data|Model|Category|Sport|Label|Football"
28
+ msgstr "Sport - Football"
29
+
30
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:12
31
+ msgid "Data|Model|Category|Sport|Label|World Cup"
32
+ msgstr "Sport -Coupe du monde"
33
+
34
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/pluralization.rb:2
35
+ msgid "Fruits|Apple"
36
+ msgid_plural "Apples"
37
+ msgstr[0] "Pomme"
38
+ msgstr[1] "Pommes"
39
+
40
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:3
41
+ msgid "Model|Category"
42
+ msgstr "Catégorie"
43
+
44
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:4
45
+ msgid "Model|Category|Label"
46
+ msgstr "Libellé"
47
+
48
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:5
49
+ msgid "Model|Division"
50
+ msgstr "Rubrique"
51
+
52
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:6
53
+ msgid "Model|Division|Label"
54
+ msgstr "Libellé"
55
+
56
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:7
57
+ msgid "Model|User"
58
+ msgstr "Utilisateur"
59
+
60
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:8
61
+ msgid "Model|User|First name"
62
+ msgstr "Prénom"
63
+
64
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:10
65
+ msgid "Model|User|Gender"
66
+ msgstr "Sexe"
67
+
68
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:9
69
+ msgid "Model|User|Last name"
70
+ msgstr "Nom"
@@ -0,0 +1,71 @@
1
+ # GettextColumnMapping template L10n file for tests.
2
+ # Copyright (C) 2010 Ramihajamalala Hery <hery@rails-royce.org>
3
+ # This file is distributed under the same license as the gettext_column_mapping package.
4
+ # Ramihajamalala Hery <hery@rails-royce.org>, YEAR.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: version 0.0.1\n"
10
+ "POT-Creation-Date: 2010-07-06 10:30+0200\n"
11
+ "PO-Revision-Date: 2010-07-05 11:48+0200\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
18
+
19
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:13
20
+ msgid "Data|Model|Category|Event|Label|Football"
21
+ msgstr ""
22
+
23
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:14
24
+ msgid "Data|Model|Category|Event|Label|World Cup"
25
+ msgstr ""
26
+
27
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:11
28
+ msgid "Data|Model|Category|Sport|Label|Football"
29
+ msgstr ""
30
+
31
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:12
32
+ msgid "Data|Model|Category|Sport|Label|World Cup"
33
+ msgstr ""
34
+
35
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/pluralization.rb:2
36
+ msgid "Fruits|Apple"
37
+ msgid_plural "Apples"
38
+ msgstr[0] ""
39
+ msgstr[1] ""
40
+
41
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:3
42
+ msgid "Model|Category"
43
+ msgstr ""
44
+
45
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:4
46
+ msgid "Model|Category|Label"
47
+ msgstr ""
48
+
49
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:5
50
+ msgid "Model|Division"
51
+ msgstr ""
52
+
53
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:6
54
+ msgid "Model|Division|Label"
55
+ msgstr ""
56
+
57
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:7
58
+ msgid "Model|User"
59
+ msgstr ""
60
+
61
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:8
62
+ msgid "Model|User|First name"
63
+ msgstr ""
64
+
65
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:10
66
+ msgid "Model|User|Gender"
67
+ msgstr ""
68
+
69
+ #: /home/ruby/Devel/Ruby/gettext_column_mapping/test/static/data.rb:9
70
+ msgid "Model|User|Last name"
71
+ msgstr ""
@@ -0,0 +1,15 @@
1
+ # coding: utf-8
2
+ #DO NOT MODIFY! AUTOMATICALLY GENERATED FILE!
3
+ s_('Model|Category')
4
+ s_('Model|Category|Label')
5
+ s_('Model|Division')
6
+ s_('Model|Division|Label')
7
+ s_('Model|User')
8
+ s_('Model|User|First name')
9
+ s_('Model|User|Last name')
10
+ s_('Model|User|Gender')
11
+ s_('Data|Model|Category|Sport|Label|Football')
12
+ s_('Data|Model|Category|Sport|Label|World Cup')
13
+ s_('Data|Model|Category|Event|Label|Football')
14
+ s_('Data|Model|Category|Event|Label|World Cup')
15
+ #DO NOT MODIFY! AUTOMATICALLY GENERATED FILE!
@@ -0,0 +1,2 @@
1
+ # coding: utf-8
2
+ ns_("Fruits|Apple","Apples",1)
@@ -0,0 +1,17 @@
1
+ # coding: utf-8
2
+ if ENV['GETTEXT']
3
+ require 'gettext_helper'
4
+ else
5
+ require 'fast_gettext_helper'
6
+ end
7
+ require 'test/unit'
8
+ require 'active_support/test_case'
9
+ class ActiveSupport::TestCase
10
+ include ActiveRecord::TestFixtures
11
+ self.fixture_path = File.expand_path("../db/fixtures",__FILE__)
12
+ self.use_instantiated_fixtures = false
13
+ self.use_transactional_fixtures = true
14
+ set_fixture_class :categories => 'Categorie'
15
+ end
16
+
17
+
data/uninstall.rb ADDED
@@ -0,0 +1,2 @@
1
+ # coding: utf-8
2
+ # Uninstall hook code here
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gettext_column_mapping
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 2
9
+ version: 0.2.2
10
+ platform: ruby
11
+ authors:
12
+ - hallelujah
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-07-06 00:00:00 +02:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description: Translate your database columns with gettext
22
+ email: hery@rails-royce.org
23
+ executables: []
24
+
25
+ extensions: []
26
+
27
+ extra_rdoc_files:
28
+ - README.rdoc
29
+ files:
30
+ - .gitignore
31
+ - MIT-LICENSE
32
+ - README.rdoc
33
+ - Rakefile
34
+ - VERSION
35
+ - examples/config/column_mapping.yml
36
+ - examples/config/gettext_db_extract.yml
37
+ - gettext_column_mapping.gemspec
38
+ - init.rb
39
+ - install.rb
40
+ - lib/gettext_column_mapping.rb
41
+ - lib/gettext_column_mapping/backends/base.rb
42
+ - lib/gettext_column_mapping/backends/gettext_activerecord.rb
43
+ - lib/gettext_column_mapping/backends/gettext_i18n_rails.rb
44
+ - lib/gettext_column_mapping/initializer.rb
45
+ - lib/gettext_column_mapping/mapper.rb
46
+ - lib/gettext_column_mapping/model_attributes_finder.rb
47
+ - lib/gettext_column_mapping/parent_level.rb
48
+ - lib/gettext_column_mapping/parent_level/attr_methods.rb
49
+ - lib/gettext_column_mapping/parser.rb
50
+ - lib/gettext_column_mapping/parser/yaml.rb
51
+ - lib/gettext_column_mapping/railtie.rb
52
+ - lib/gettext_column_mapping/tasks.rb
53
+ - tasks/gettext_column_mapping.rake
54
+ - test/.gitignore
55
+ - test/activerecord_test.rb
56
+ - test/config/column_mapping.yml
57
+ - test/config/database.yml
58
+ - test/config/parent_level_column_mapping.yml
59
+ - test/db/fixtures/categories.yml
60
+ - test/db/fixtures/rubriques.yml
61
+ - test/db/migrate/001_create_utilisateurs.rb
62
+ - test/db/migrate/002_create_rubriques.rb
63
+ - test/db/migrate/003_create_categories.rb
64
+ - test/extend_lib_path.rb
65
+ - test/fast_gettext_helper.rb
66
+ - test/gettext_column_mapping_test.rb
67
+ - test/gettext_helper.rb
68
+ - test/helper.rb
69
+ - test/log/.gitkeep
70
+ - test/mapper_test.rb
71
+ - test/models/categorie.rb
72
+ - test/models/rubrique.rb
73
+ - test/models/utilisateur.rb
74
+ - test/po/fr/gettext_column_mapping.po
75
+ - test/po/gettext_column_mapping.pot
76
+ - test/static/data.rb
77
+ - test/static/pluralization.rb
78
+ - test/test_helper.rb
79
+ - uninstall.rb
80
+ has_rdoc: true
81
+ homepage: http://github.com/hallelujah/gettext_column_mapping
82
+ licenses: []
83
+
84
+ post_install_message:
85
+ rdoc_options:
86
+ - --charset=UTF-8
87
+ require_paths:
88
+ - lib
89
+ required_ruby_version: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ segments:
95
+ - 0
96
+ version: "0"
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ segments:
103
+ - 0
104
+ version: "0"
105
+ requirements: []
106
+
107
+ rubyforge_project:
108
+ rubygems_version: 1.3.7
109
+ signing_key:
110
+ specification_version: 3
111
+ summary: Translate your database columns with gettext
112
+ test_files:
113
+ - test/helper.rb
114
+ - test/static/data.rb
115
+ - test/static/pluralization.rb
116
+ - test/activerecord_test.rb
117
+ - test/mapper_test.rb
118
+ - test/fast_gettext_helper.rb
119
+ - test/gettext_column_mapping_test.rb
120
+ - test/extend_lib_path.rb
121
+ - test/gettext_helper.rb
122
+ - test/db/migrate/001_create_utilisateurs.rb
123
+ - test/db/migrate/003_create_categories.rb
124
+ - test/db/migrate/002_create_rubriques.rb
125
+ - test/models/categorie.rb
126
+ - test/models/rubrique.rb
127
+ - test/models/utilisateur.rb
128
+ - test/test_helper.rb