gettext_activerecord 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,4 +1,8 @@
1
+ = gettext_activerecord-2.0.1 (2009-04-18)
2
+
3
+ * parser.rb: skip anonymous classes by TieTew.
4
+
1
5
  = gettext_activerecord-2.0.0 (2009-03-22)
2
6
 
3
- * Separated from Ruby-GetText-Package-1.93.0.
4
- * Support activerecord-2.3.2.
7
+ * Separated from Ruby-GetText-Package-1.93.0.
8
+ * Support activerecord-2.3.2.
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.0')
67
+ s.add_dependency('gettext', '>= 2.0.1')
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.'
@@ -91,13 +91,13 @@ Rake::RDocTask.new { |rdoc|
91
91
  rdoc.rdoc_dir = 'doc'
92
92
  rdoc.title = "gettext_activerecord API Reference"
93
93
  rdoc.options << '--line-numbers' << '--inline-source'
94
- rdoc.rdoc_files.include('README', 'ChangeLog')
94
+ rdoc.rdoc_files.include('README.rdoc', 'ChangeLog')
95
95
  rdoc.rdoc_files.include('lib/**/*.rb')
96
96
  rdoc.template = allison if allison.size > 0
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
@@ -22,7 +22,7 @@ ActiveRecord::Base.instance_eval do
22
22
 
23
23
  def inherited(subclass)
24
24
  puts "registering an ActiveRecord model for later processing: #{subclass}" if $DEBUG
25
- active_record_classes_list << "#{subclass}"
25
+ active_record_classes_list << "#{subclass}" unless subclass.name.empty?
26
26
  inherited_without_log(subclass)
27
27
  end
28
28
 
@@ -8,5 +8,5 @@
8
8
  =end
9
9
  module GetTextActiveRecord
10
10
  RAILS_VERSION = "2.3.2"
11
- VERSION = "2.0.0"
11
+ VERSION = "2.0.1"
12
12
  end
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.0
4
+ version: 2.0.1
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-03-22 00:00:00 +09:00
12
+ date: 2009-04-19 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.0
23
+ version: 2.0.1
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activerecord
@@ -42,12 +42,10 @@ extra_rdoc_files: []
42
42
 
43
43
  files:
44
44
  - po
45
- - po/test.rb
46
45
  - po/es
47
46
  - po/es/gettext_activerecord.po
48
47
  - po/el
49
48
  - po/el/gettext_activerecord.po
50
- - po/sv
51
49
  - po/cs
52
50
  - po/cs/gettext_activerecord.po
53
51
  - po/ko
@@ -95,8 +93,6 @@ files:
95
93
  - po/gettext_activerecord.pot
96
94
  - po/ca
97
95
  - po/ca/gettext_activerecord.po
98
- - test.rb
99
- - replace.rb
100
96
  - ChangeLog
101
97
  - COPYING
102
98
  - lib
@@ -118,10 +114,6 @@ files:
118
114
  - test/po/ja/active_record.po
119
115
  - test/po/active_record.pot
120
116
  - test/helper.rb
121
- - test/locale
122
- - test/locale/ja
123
- - test/locale/ja/LC_MESSAGES
124
- - test/locale/ja/LC_MESSAGES/active_record.mo
125
117
  - test/test_validations.rb
126
118
  - test/db
127
119
  - test/db/sqlite.rb
@@ -144,21 +136,11 @@ files:
144
136
  - sample/po/ja/sample_ar.po
145
137
  - sample/book.rb
146
138
  - sample/sample.rb
147
- - sample/locale
148
- - sample/locale/ja
149
- - sample/locale/ja/LC_MESSAGES
150
- - sample/locale/ja/LC_MESSAGES/sample_ar.mo
151
139
  - sample/db
152
140
  - sample/db/schema.rb
153
- - sample/db/development.sqlite3
154
141
  - sample/README.rdoc
155
142
  - sample/config
156
143
  - sample/config/database.yml
157
- - sample/data
158
- - sample/data/locale
159
- - sample/data/locale/ja
160
- - sample/data/locale/ja/LC_MESSAGES
161
- - sample/data/locale/ja/LC_MESSAGES/sample_ar.mo
162
144
  - sample/Rakefile
163
145
  - data
164
146
  - data/locale
data/po/test.rb DELETED
@@ -1,8 +0,0 @@
1
- ARGV.each do |v|
2
- s = open(v).read
3
- ret = s.gsub(/%\{fn\}/, "%{attribute}").gsub(/%d/, "%{count}")
4
- open(v, "w") do |out|
5
- out.write(ret)
6
- end
7
- end
8
-
data/replace.rb DELETED
@@ -1,21 +0,0 @@
1
- Dir.glob("**/*") do |v|
2
- lines = []
3
- changed = false
4
- next if File.directory? v
5
- IO.foreach(v) {|line|
6
- if line =~ /mutoh(at|@)highway.ne.jp/
7
- lines << line.gsub(/mutoh( at |@)highway.ne.jp/, "mutomasa at gmail.com")
8
- changed = true
9
- else
10
- lines << line
11
- end
12
- }
13
- if changed
14
- out = open(v, "w")
15
- lines.each {|l|
16
- out.write l
17
- }
18
- out.close
19
- end
20
- end
21
-
Binary file
data/test.rb DELETED
@@ -1,2 +0,0 @@
1
- `af`
2
- p $?.status