gettext_activerecord 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,5 +1,9 @@
1
+ = gettext_activerecord-2.0.4 (2009-05-23)
2
+ * Updated version/dependencies.
3
+
1
4
  = gettext_activerecord-2.0.3 (2009-05-09)
2
5
  * Fixed the dependencies. [Reported by Hans de Graaff]
6
+ * Add the test task to Rakefile.
3
7
 
4
8
  = gettext_activerecord-2.0.2 (2009-05-07)
5
9
 
data/Rakefile CHANGED
@@ -64,7 +64,7 @@ spec = Gem::Specification.new do |s|
64
64
  s.rubyforge_project = "gettext"
65
65
  s.files = FileList['**/*'].to_a.select{|v| v !~ /pkg|git/}
66
66
  s.require_path = 'lib'
67
- s.add_dependency('gettext', '>= 2.0.3')
67
+ s.add_dependency('gettext', '>= 2.0.4')
68
68
  s.add_dependency('activerecord', '>= 2.3.2')
69
69
  s.has_rdoc = true
70
70
  s.description = 'Localization support for ActiveRecord by Ruby-GetText-Package.'
@@ -97,7 +97,7 @@ Rake::RDocTask.new { |rdoc|
97
97
  }
98
98
 
99
99
  desc "Publish the release files to RubyForge."
100
- task :release => [ :package ] do
100
+ task :release => [:makemo, :package ] do
101
101
  require 'rubyforge'
102
102
 
103
103
  rubyforge = RubyForge.new
@@ -108,3 +108,12 @@ task :release => [ :package ] do
108
108
  "pkg/gettext_activerecord-#{PKG_VERSION}.gem",
109
109
  "pkg/gettext_activerecord-#{PKG_VERSION}.tar.gz")
110
110
  end
111
+
112
+ # Run the unit tests
113
+ task :test do
114
+ cd "test"
115
+ Dir.glob("test_*.rb").each do |v|
116
+ ruby "-Ilib:../../locale/lib:../../gettext/lib #{v}"
117
+ end
118
+ cd ".."
119
+ end
@@ -8,5 +8,5 @@
8
8
  =end
9
9
  module GetTextActiveRecord
10
10
  RAILS_VERSION = "2.3.2"
11
- VERSION = "2.0.3"
11
+ VERSION = "2.0.4"
12
12
  end
data/test/Rakefile CHANGED
@@ -1,7 +1,9 @@
1
1
  $LOAD_PATH.unshift "../lib"
2
2
  require 'rubygems'
3
3
 
4
+ locale_path = File.join(ENV["LOCALE_PATH"] || "../../locale/", "lib")
4
5
  gettext_path = File.join(ENV["GETTEXT_PATH"] || "../../gettext/", "lib")
6
+ $LOAD_PATH.unshift locale_path
5
7
  $LOAD_PATH.unshift gettext_path
6
8
 
7
9
  task :default => :test
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gettext_activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masao Mutoh
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-09 00:00:00 +09:00
12
+ date: 2009-05-23 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 2.0.3
23
+ version: 2.0.4
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activerecord
@@ -114,6 +114,10 @@ files:
114
114
  - test/po/ja/active_record.po
115
115
  - test/po/active_record.pot
116
116
  - test/helper.rb
117
+ - test/locale
118
+ - test/locale/ja
119
+ - test/locale/ja/LC_MESSAGES
120
+ - test/locale/ja/LC_MESSAGES/active_record.mo
117
121
  - test/test_validations.rb
118
122
  - test/db
119
123
  - test/db/sqlite.rb