gettext_column_mapping 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gettext_column_mapping}
8
- s.version = "0.2.4"
8
+ s.version = "0.2.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["hallelujah"]
@@ -74,22 +74,22 @@ Gem::Specification.new do |s|
74
74
  s.rubygems_version = %q{1.3.7}
75
75
  s.summary = %q{Translate your database columns with gettext}
76
76
  s.test_files = [
77
- "test/gettext_column_mapping_test.rb",
78
- "test/fast_gettext_helper.rb",
79
- "test/test_helper.rb",
80
- "test/static/pluralization.rb",
77
+ "test/helper.rb",
81
78
  "test/static/data.rb",
82
- "test/models/rubrique.rb",
83
- "test/models/utilisateur.rb",
84
- "test/models/categorie.rb",
85
- "test/db/migrate/002_create_rubriques.rb",
86
- "test/db/migrate/001_create_utilisateurs.rb",
87
- "test/db/migrate/003_create_categories.rb",
88
- "test/gettext_helper.rb",
89
- "test/helper.rb",
79
+ "test/static/pluralization.rb",
90
80
  "test/activerecord_test.rb",
91
81
  "test/mapper_test.rb",
92
- "test/extend_lib_path.rb"
82
+ "test/fast_gettext_helper.rb",
83
+ "test/gettext_column_mapping_test.rb",
84
+ "test/extend_lib_path.rb",
85
+ "test/gettext_helper.rb",
86
+ "test/db/migrate/001_create_utilisateurs.rb",
87
+ "test/db/migrate/003_create_categories.rb",
88
+ "test/db/migrate/002_create_rubriques.rb",
89
+ "test/models/categorie.rb",
90
+ "test/models/rubrique.rb",
91
+ "test/models/utilisateur.rb",
92
+ "test/test_helper.rb"
93
93
  ]
94
94
 
95
95
  if s.respond_to? :specification_version then
@@ -28,7 +28,7 @@ module GettextColumnMapping
28
28
  end
29
29
 
30
30
  def to_mapping
31
- Gettext.mapper.class_mapping(self)
31
+ GettextColumnMapping.mapper.class_mapping(self)
32
32
  rescue
33
33
  name.underscore
34
34
  end
data/test/mapper_test.rb CHANGED
@@ -43,5 +43,11 @@ class UtilisateurTest < ActiveSupport::TestCase
43
43
  assert_equal 'Pomme', ns_("Fruits|Apple","Apples",1)
44
44
  end
45
45
 
46
+
47
+ def test_class_mapping
48
+ assert_equal 'Division', GettextColumnMapping.mapper.class_mapping(Rubrique)
49
+ assert_equal 'Division', Rubrique.to_mapping
50
+ end
51
+
46
52
  end
47
53
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 4
9
- version: 0.2.4
8
+ - 5
9
+ version: 0.2.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - hallelujah
@@ -111,19 +111,19 @@ signing_key:
111
111
  specification_version: 3
112
112
  summary: Translate your database columns with gettext
113
113
  test_files:
114
- - test/gettext_column_mapping_test.rb
115
- - test/fast_gettext_helper.rb
116
- - test/test_helper.rb
117
- - test/static/pluralization.rb
118
- - test/static/data.rb
119
- - test/models/rubrique.rb
120
- - test/models/utilisateur.rb
121
- - test/models/categorie.rb
122
- - test/db/migrate/002_create_rubriques.rb
123
- - test/db/migrate/001_create_utilisateurs.rb
124
- - test/db/migrate/003_create_categories.rb
125
- - test/gettext_helper.rb
126
114
  - test/helper.rb
115
+ - test/static/data.rb
116
+ - test/static/pluralization.rb
127
117
  - test/activerecord_test.rb
128
118
  - test/mapper_test.rb
119
+ - test/fast_gettext_helper.rb
120
+ - test/gettext_column_mapping_test.rb
129
121
  - test/extend_lib_path.rb
122
+ - test/gettext_helper.rb
123
+ - test/db/migrate/001_create_utilisateurs.rb
124
+ - test/db/migrate/003_create_categories.rb
125
+ - test/db/migrate/002_create_rubriques.rb
126
+ - test/models/categorie.rb
127
+ - test/models/rubrique.rb
128
+ - test/models/utilisateur.rb
129
+ - test/test_helper.rb