locale_rails 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +56 -0
- data/ChangeLog +8 -0
- data/README.rdoc +5 -2
- data/Rakefile +1 -1
- data/lib/locale_rails/action_controller.rb +1 -1
- data/lib/locale_rails/action_controller/base.rb +2 -5
- data/lib/locale_rails/action_controller/caching.rb +8 -6
- data/lib/locale_rails/action_controller/test_process.rb +1 -1
- data/lib/locale_rails/action_view.rb +2 -2
- data/lib/locale_rails/i18n.rb +1 -2
- data/lib/locale_rails/version.rb +2 -2
- data/sample/config/environment.rb +1 -1
- data/sample/db/development.sqlite3 +0 -0
- data/sample/log/development.log +128 -0
- data/test/app/controllers/articles_controller.rb +5 -0
- data/test/config/environment.rb +1 -1
- data/test/config/routes.rb +2 -1
- data/test/db/development.sqlite3 +0 -0
- data/test/db/test.sqlite3 +0 -0
- data/test/log/development.log +172 -0
- data/test/log/test.log +4016 -0
- data/test/test/functional/articles_controller_test.rb +5 -0
- metadata +100 -136
@@ -129,6 +129,11 @@ class ArticlesControllerTest < ActionController::TestCase
|
|
129
129
|
st = File.stat(path)
|
130
130
|
assert_equal last_modified_ja, [st.ctime, st.mtime]
|
131
131
|
assert_equal "list:ja", @response.body.chop
|
132
|
+
|
133
|
+
# expire test
|
134
|
+
assert_equal 2, Dir.glob(cache_path + "/**/*.cache").size
|
135
|
+
get :expire_cache, :lang => "ja"
|
136
|
+
assert_equal [], Dir.glob(cache_path + "/**/*.cache")
|
132
137
|
end
|
133
138
|
|
134
139
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locale_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
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-
|
12
|
+
date: 2009-11-14 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,9 +20,9 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 2.0.
|
23
|
+
version: 2.0.5
|
24
24
|
version:
|
25
|
-
description: Ruby-Locale for Ruby on Rails is the pure ruby library which provides basic functions for localization
|
25
|
+
description: " Ruby-Locale for Ruby on Rails is the pure ruby library which provides basic functions for localization.\n"
|
26
26
|
email: mutomasa at gmail.com
|
27
27
|
executables: []
|
28
28
|
|
@@ -31,172 +31,136 @@ extensions: []
|
|
31
31
|
extra_rdoc_files: []
|
32
32
|
|
33
33
|
files:
|
34
|
-
- ChangeLog
|
35
|
-
- lib
|
36
34
|
- lib/locale_rails.rb
|
37
|
-
- lib/locale_rails
|
38
|
-
- lib/locale_rails/action_controller
|
35
|
+
- lib/locale_rails/i18n.rb
|
39
36
|
- lib/locale_rails/action_controller/base.rb
|
40
37
|
- lib/locale_rails/action_controller/test_process.rb
|
41
38
|
- lib/locale_rails/action_controller/caching.rb
|
39
|
+
- lib/locale_rails/action_view.rb
|
42
40
|
- lib/locale_rails/action_controller.rb
|
43
41
|
- lib/locale_rails/version.rb
|
44
|
-
- lib/locale_rails/action_view.rb
|
45
|
-
- lib/locale_rails/i18n.rb
|
46
|
-
- README.rdoc
|
47
|
-
- test
|
48
|
-
- test/script
|
49
|
-
- test/script/plugin
|
50
42
|
- test/script/about
|
51
|
-
- test/script/
|
52
|
-
- test/script/
|
43
|
+
- test/script/plugin
|
44
|
+
- test/script/destroy
|
53
45
|
- test/script/performance/profiler
|
54
46
|
- test/script/performance/benchmarker
|
55
|
-
- test/script/server
|
56
|
-
- test/script/console
|
57
|
-
- test/script/runner
|
58
|
-
- test/script/destroy
|
59
47
|
- test/script/dbconsole
|
60
|
-
- test/
|
61
|
-
- test/
|
62
|
-
- test/
|
48
|
+
- test/script/runner
|
49
|
+
- test/script/generate
|
50
|
+
- test/script/console
|
51
|
+
- test/script/server
|
52
|
+
- test/test/performance/browsing_test.rb
|
53
|
+
- test/test/functional/articles_controller_test.rb
|
54
|
+
- test/test/test_helper.rb
|
55
|
+
- test/Rakefile
|
56
|
+
- test/db/test.sqlite3
|
57
|
+
- test/db/development.sqlite3
|
58
|
+
- test/db/schema.rb
|
59
|
+
- test/app/controllers/application_controller.rb
|
60
|
+
- test/app/controllers/articles_controller.rb
|
61
|
+
- test/app/views/articles/list.html.erb
|
62
|
+
- test/app/views/articles/index_ja.html.erb
|
63
|
+
- test/app/views/articles/index_fr_FR.html.erb
|
64
|
+
- test/app/views/articles/index_de.html.erb
|
65
|
+
- test/app/views/articles/index.html.erb
|
66
|
+
- test/app/helpers/application_helper.rb
|
67
|
+
- test/log/development.log
|
68
|
+
- test/log/test.log
|
69
|
+
- test/README
|
70
|
+
- test/public/422.html
|
63
71
|
- test/public/index.html
|
64
|
-
- test/public/images
|
65
|
-
- test/public/images/rails.png
|
66
|
-
- test/public/robots.txt
|
67
|
-
- test/public/favicon.ico
|
68
|
-
- test/public/500.html
|
69
72
|
- test/public/404.html
|
70
|
-
- test/public/
|
71
|
-
- test/public/
|
73
|
+
- test/public/favicon.ico
|
74
|
+
- test/public/robots.txt
|
72
75
|
- test/public/javascripts/effects.js
|
73
|
-
- test/public/javascripts/application.js
|
74
|
-
- test/public/javascripts/prototype.js
|
75
|
-
- test/public/javascripts/controls.js
|
76
76
|
- test/public/javascripts/dragdrop.js
|
77
|
-
- test/
|
78
|
-
- test/
|
79
|
-
- test/
|
80
|
-
- test/
|
81
|
-
- test/
|
82
|
-
- test/
|
83
|
-
- test/test/test_helper.rb
|
84
|
-
- test/test/performance
|
85
|
-
- test/test/performance/browsing_test.rb
|
86
|
-
- test/config
|
87
|
-
- test/config/locales
|
77
|
+
- test/public/javascripts/controls.js
|
78
|
+
- test/public/javascripts/prototype.js
|
79
|
+
- test/public/javascripts/application.js
|
80
|
+
- test/public/images/rails.png
|
81
|
+
- test/public/500.html
|
82
|
+
- test/doc/README_FOR_APP
|
88
83
|
- test/config/locales/en.yml
|
89
|
-
- test/config/
|
90
|
-
- test/config/
|
84
|
+
- test/config/environments/development.rb
|
85
|
+
- test/config/environments/test.rb
|
86
|
+
- test/config/environments/production.rb
|
87
|
+
- test/config/routes.rb
|
88
|
+
- test/config/boot.rb
|
91
89
|
- test/config/initializers/backtrace_silencers.rb
|
90
|
+
- test/config/initializers/new_rails_defaults.rb
|
91
|
+
- test/config/initializers/session_store.rb
|
92
92
|
- test/config/initializers/mime_types.rb
|
93
93
|
- test/config/initializers/inflections.rb
|
94
|
-
- test/config/initializers/new_rails_defaults.rb
|
95
|
-
- test/config/boot.rb
|
96
|
-
- test/config/routes.rb
|
97
94
|
- test/config/environment.rb
|
98
95
|
- test/config/database.yml
|
99
|
-
-
|
100
|
-
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
- test/app
|
104
|
-
- test/app/helpers
|
105
|
-
- test/app/helpers/application_helper.rb
|
106
|
-
- test/app/views
|
107
|
-
- test/app/views/articles
|
108
|
-
- test/app/views/articles/index_fr_FR.html.erb
|
109
|
-
- test/app/views/articles/index_de.html.erb
|
110
|
-
- test/app/views/articles/list.html.erb
|
111
|
-
- test/app/views/articles/index_ja.html.erb
|
112
|
-
- test/app/views/articles/index.html.erb
|
113
|
-
- test/app/controllers
|
114
|
-
- test/app/controllers/application_controller.rb
|
115
|
-
- test/app/controllers/articles_controller.rb
|
116
|
-
- test/Rakefile
|
117
|
-
- sample
|
118
|
-
- sample/script
|
119
|
-
- sample/script/plugin
|
96
|
+
- Rakefile
|
97
|
+
- README.rdoc
|
98
|
+
- ChangeLog
|
99
|
+
- COPYING
|
120
100
|
- sample/script/about
|
121
|
-
- sample/script/
|
122
|
-
- sample/script/
|
123
|
-
- sample/script/process/inspector
|
124
|
-
- sample/script/process/spawner
|
125
|
-
- sample/script/process/reaper
|
126
|
-
- sample/script/performance
|
101
|
+
- sample/script/plugin
|
102
|
+
- sample/script/destroy
|
127
103
|
- sample/script/performance/request
|
128
104
|
- sample/script/performance/profiler
|
129
105
|
- sample/script/performance/benchmarker
|
130
|
-
- sample/script/server
|
131
|
-
- sample/script/console
|
132
|
-
- sample/script/runner
|
133
|
-
- sample/script/destroy
|
134
106
|
- sample/script/dbconsole
|
135
|
-
- sample/
|
136
|
-
- sample/
|
137
|
-
- sample/
|
138
|
-
- sample/
|
139
|
-
- sample/
|
140
|
-
- sample/
|
141
|
-
- sample/
|
142
|
-
- sample/
|
107
|
+
- sample/script/runner
|
108
|
+
- sample/script/generate
|
109
|
+
- sample/script/console
|
110
|
+
- sample/script/process/spawner
|
111
|
+
- sample/script/process/inspector
|
112
|
+
- sample/script/process/reaper
|
113
|
+
- sample/script/server
|
114
|
+
- sample/test/performance/browsing_test.rb
|
115
|
+
- sample/test/test_helper.rb
|
116
|
+
- sample/Rakefile
|
117
|
+
- sample/db/development.sqlite3
|
118
|
+
- sample/db/schema.rb
|
119
|
+
- sample/app/controllers/application.rb
|
120
|
+
- sample/app/controllers/samples_controller.rb
|
121
|
+
- sample/app/views/layouts/samples.html.erb
|
122
|
+
- sample/app/views/samples/index_uz_UZ.html.erb
|
123
|
+
- sample/app/views/samples/_part.html.erb
|
124
|
+
- sample/app/views/samples/cached_action.html.erb
|
125
|
+
- sample/app/views/samples/_part_nl.html.erb
|
126
|
+
- sample/app/views/samples/index.pt.html.erb
|
127
|
+
- sample/app/views/samples/index.html.erb
|
128
|
+
- sample/app/helpers/application_helper.rb
|
129
|
+
- sample/log/development.log
|
130
|
+
- sample/README
|
131
|
+
- sample/public/stylesheets/locale.css
|
132
|
+
- sample/public/stylesheets/scaffold.css
|
143
133
|
- sample/public/dispatch.fcgi
|
144
|
-
- sample/public/500.html
|
145
|
-
- sample/public/404.html
|
146
134
|
- sample/public/422.html
|
147
|
-
- sample/public/
|
135
|
+
- sample/public/404.html
|
136
|
+
- sample/public/favicon.ico
|
137
|
+
- sample/public/robots.txt
|
138
|
+
- sample/public/dispatch.cgi
|
148
139
|
- sample/public/javascripts/effects.js
|
149
|
-
- sample/public/javascripts/application.js
|
150
|
-
- sample/public/javascripts/prototype.js
|
151
|
-
- sample/public/javascripts/controls.js
|
152
140
|
- sample/public/javascripts/dragdrop.js
|
153
|
-
- sample/public/
|
154
|
-
- sample/public/
|
155
|
-
- sample/public/
|
156
|
-
- sample/public/
|
157
|
-
- sample/
|
158
|
-
- sample/
|
159
|
-
- sample/
|
160
|
-
- sample/test
|
161
|
-
- sample/test/test_helper.rb
|
162
|
-
- sample/test/performance
|
163
|
-
- sample/test/performance/browsing_test.rb
|
164
|
-
- sample/config
|
165
|
-
- sample/config/locales
|
166
|
-
- sample/config/locales/ja.yml
|
141
|
+
- sample/public/javascripts/controls.js
|
142
|
+
- sample/public/javascripts/prototype.js
|
143
|
+
- sample/public/javascripts/application.js
|
144
|
+
- sample/public/images/rails.png
|
145
|
+
- sample/public/500.html
|
146
|
+
- sample/public/dispatch.rb
|
147
|
+
- sample/doc/README_FOR_APP
|
167
148
|
- sample/config/locales/en.yml
|
168
|
-
- sample/config/
|
149
|
+
- sample/config/locales/ja.yml
|
150
|
+
- sample/config/environments/development.rb
|
151
|
+
- sample/config/environments/test.rb
|
152
|
+
- sample/config/environments/production.rb
|
153
|
+
- sample/config/routes.rb
|
154
|
+
- sample/config/boot.rb
|
155
|
+
- sample/config/initializers/new_rails_defaults.rb
|
169
156
|
- sample/config/initializers/mime_types.rb
|
170
157
|
- sample/config/initializers/inflections.rb
|
171
|
-
- sample/config/initializers/new_rails_defaults.rb
|
172
|
-
- sample/config/boot.rb
|
173
|
-
- sample/config/routes.rb
|
174
158
|
- sample/config/environment.rb
|
175
159
|
- sample/config/database.yml
|
176
|
-
- sample/config/environments
|
177
|
-
- sample/config/environments/test.rb
|
178
|
-
- sample/config/environments/development.rb
|
179
|
-
- sample/config/environments/production.rb
|
180
|
-
- sample/app
|
181
|
-
- sample/app/helpers
|
182
|
-
- sample/app/helpers/application_helper.rb
|
183
|
-
- sample/app/views
|
184
|
-
- sample/app/views/samples
|
185
|
-
- sample/app/views/samples/index_uz_UZ.html.erb
|
186
|
-
- sample/app/views/samples/index.pt.html.erb
|
187
|
-
- sample/app/views/samples/_part_nl.html.erb
|
188
|
-
- sample/app/views/samples/cached_action.html.erb
|
189
|
-
- sample/app/views/samples/_part.html.erb
|
190
|
-
- sample/app/views/samples/index.html.erb
|
191
|
-
- sample/app/views/layouts
|
192
|
-
- sample/app/views/layouts/samples.html.erb
|
193
|
-
- sample/app/controllers
|
194
|
-
- sample/app/controllers/samples_controller.rb
|
195
|
-
- sample/app/controllers/application.rb
|
196
|
-
- sample/Rakefile
|
197
|
-
- Rakefile
|
198
160
|
has_rdoc: true
|
199
161
|
homepage: http://locale.rubyforge.org/
|
162
|
+
licenses: []
|
163
|
+
|
200
164
|
post_install_message:
|
201
165
|
rdoc_options: []
|
202
166
|
|
@@ -217,9 +181,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
181
|
requirements: []
|
218
182
|
|
219
183
|
rubyforge_project: locale
|
220
|
-
rubygems_version: 1.3.
|
184
|
+
rubygems_version: 1.3.5
|
221
185
|
signing_key:
|
222
|
-
specification_version:
|
186
|
+
specification_version: 3
|
223
187
|
summary: Ruby-Locale for Ruby on Rails is the pure ruby library which provides basic functions for localization based on Ruby-Locale.
|
224
188
|
test_files: []
|
225
189
|
|