locale_rails 0.1.0

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.
Files changed (89) hide show
  1. data/ChangeLog +7 -0
  2. data/NEWS +7 -0
  3. data/README +33 -0
  4. data/Rakefile +72 -0
  5. data/doc/classes/ActionController/Base.html +442 -0
  6. data/doc/classes/ActionController/Caching.html +348 -0
  7. data/doc/classes/ActionController/Caching/Fragments.html +424 -0
  8. data/doc/classes/ActionView/Base.html +422 -0
  9. data/doc/classes/I18n.html +492 -0
  10. data/doc/classes/Locale.html +364 -0
  11. data/doc/created.rid +1 -0
  12. data/doc/files/ChangeLog.html +355 -0
  13. data/doc/files/README.html +409 -0
  14. data/doc/files/lib/locale_rails/action_controller_rb.html +349 -0
  15. data/doc/files/lib/locale_rails/action_view_rb.html +349 -0
  16. data/doc/files/lib/locale_rails/i18n_rb.html +342 -0
  17. data/doc/files/lib/locale_rails/version_rb.html +342 -0
  18. data/doc/files/lib/locale_rails_rb.html +349 -0
  19. data/doc/fr_class_index.html +7 -0
  20. data/doc/fr_file_index.html +8 -0
  21. data/doc/fr_method_index.html +11 -0
  22. data/doc/index.html +1 -0
  23. data/doc/rdoc-style.css +320 -0
  24. data/lib/locale_rails.rb +18 -0
  25. data/lib/locale_rails/action_controller.rb +141 -0
  26. data/lib/locale_rails/action_view.rb +43 -0
  27. data/lib/locale_rails/i18n.rb +56 -0
  28. data/lib/locale_rails/version.rb +4 -0
  29. data/locale_rails-0.1.0.gem +0 -0
  30. data/sample/README +22 -0
  31. data/sample/Rakefile +10 -0
  32. data/sample/app/controllers/application.rb +41 -0
  33. data/sample/app/controllers/samples_controller.rb +30 -0
  34. data/sample/app/helpers/application_helper.rb +3 -0
  35. data/sample/app/views/layouts/samples.html.erb +20 -0
  36. data/sample/app/views/samples/#cookie.rb# +3 -0
  37. data/sample/app/views/samples/_part.html.erb +68 -0
  38. data/sample/app/views/samples/_part_nl.html.erb +2 -0
  39. data/sample/app/views/samples/cached_action.html.erb +6 -0
  40. data/sample/app/views/samples/index.html.erb +24 -0
  41. data/sample/app/views/samples/index_uz_UZ.html.erb +15 -0
  42. data/sample/config/boot.rb +109 -0
  43. data/sample/config/database.yml +22 -0
  44. data/sample/config/environment.rb +25 -0
  45. data/sample/config/environments/development.rb +17 -0
  46. data/sample/config/environments/production.rb +24 -0
  47. data/sample/config/environments/test.rb +22 -0
  48. data/sample/config/initializers/inflections.rb +10 -0
  49. data/sample/config/initializers/mime_types.rb +5 -0
  50. data/sample/config/initializers/new_rails_defaults.rb +17 -0
  51. data/sample/config/routes.rb +13 -0
  52. data/sample/db/development.sqlite3 +0 -0
  53. data/sample/db/production.sqlite3 +0 -0
  54. data/sample/doc/README_FOR_APP +2 -0
  55. data/sample/log/development.log +2573 -0
  56. data/sample/log/production.log +80 -0
  57. data/sample/public/404.html +30 -0
  58. data/sample/public/422.html +30 -0
  59. data/sample/public/500.html +33 -0
  60. data/sample/public/dispatch.cgi +10 -0
  61. data/sample/public/dispatch.fcgi +24 -0
  62. data/sample/public/dispatch.rb +10 -0
  63. data/sample/public/favicon.ico +0 -0
  64. data/sample/public/images/rails.png +0 -0
  65. data/sample/public/javascripts/application.js +2 -0
  66. data/sample/public/javascripts/controls.js +963 -0
  67. data/sample/public/javascripts/dragdrop.js +972 -0
  68. data/sample/public/javascripts/effects.js +1120 -0
  69. data/sample/public/javascripts/prototype.js +4221 -0
  70. data/sample/public/robots.txt +5 -0
  71. data/sample/public/stylesheets/locale.css +81 -0
  72. data/sample/public/stylesheets/scaffold.css +74 -0
  73. data/sample/script/about +4 -0
  74. data/sample/script/console +3 -0
  75. data/sample/script/dbconsole +3 -0
  76. data/sample/script/destroy +3 -0
  77. data/sample/script/generate +3 -0
  78. data/sample/script/performance/benchmarker +3 -0
  79. data/sample/script/performance/profiler +3 -0
  80. data/sample/script/performance/request +3 -0
  81. data/sample/script/plugin +3 -0
  82. data/sample/script/process/inspector +3 -0
  83. data/sample/script/process/reaper +3 -0
  84. data/sample/script/process/spawner +3 -0
  85. data/sample/script/runner +3 -0
  86. data/sample/script/server +3 -0
  87. data/sample/test/performance/browsing_test.rb +9 -0
  88. data/sample/test/test_helper.rb +38 -0
  89. metadata +195 -0
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-Agent: *
5
+ # Disallow: /
@@ -0,0 +1,81 @@
1
+ /*
2
+ CSS for Ruby-Locale
3
+ by Masao Mutoh.
4
+ */
5
+
6
+ body {
7
+ margin: 0px;
8
+ padding: 0px;
9
+ color: #000;
10
+ background-color: #fff;
11
+ line-height: 1.5em;
12
+ }
13
+
14
+ h1 {
15
+ color: #002288;
16
+ text-align: center;
17
+ clear: both;
18
+ padding: 1em;
19
+ margin: 5px;
20
+ border: solid;
21
+ background-color: #eeeeff;
22
+ border-color: #9999ff;
23
+ border-top-width: 1px;
24
+ border-right-width: 1px;
25
+ border-bottom-width: 1px;
26
+ border-left-width: 1px;
27
+ }
28
+ h2 {
29
+ margin: 0px;
30
+ padding: 0.3em;
31
+ margin-top: 1em;
32
+ margin-left: 1.5em;
33
+ margin-right: 10px;
34
+ margin-bottom:0.8em;
35
+ border: solid thin;
36
+ border-left: solid;
37
+ border-color: #9999ff;
38
+ border-top-width: 0px;
39
+ border-right-width: 0px;
40
+ border-bottom-width: 1px;
41
+ border-left-width: 15px;
42
+
43
+ }
44
+
45
+ h3 {
46
+ font-weight: bold;
47
+ padding: 0em;
48
+ margin: 0em;
49
+ margin-left: 3em;
50
+ margin-top: 1em;
51
+ }
52
+
53
+ .result {
54
+ color: #181;
55
+ clear: both;
56
+ padding: 0.5em;
57
+ margin: 5em;
58
+ margin-top: 0px;
59
+ margin-bottom: 0.5em;
60
+ border: solid;
61
+ background-color: #ffffee;
62
+ border-color: #ffff99;
63
+ border-width: 1px;
64
+ }
65
+
66
+ p, ol, table {
67
+ margin-left: 5em;
68
+ margin-right: 5em;
69
+ margin-top: 0.5em;
70
+ margin-bottom: 0.5em;
71
+ }
72
+
73
+ .copyright {
74
+ text-align: right;
75
+ margin-top: 3em;
76
+ margin-right: 3em;
77
+ }
78
+
79
+ th {
80
+ background-color: #eeffee;
81
+ }
@@ -0,0 +1,74 @@
1
+ body { background-color: #fff; color: #333; }
2
+
3
+ body, p, ol, ul, td {
4
+ font-family: verdana, arial, helvetica, sans-serif;
5
+ font-size: 13px;
6
+ line-height: 18px;
7
+ }
8
+
9
+ pre {
10
+ background-color: #eee;
11
+ padding: 10px;
12
+ font-size: 11px;
13
+ }
14
+
15
+ a { color: #000; }
16
+ a:visited { color: #666; }
17
+ a:hover { color: #fff; background-color:#000; }
18
+
19
+ .fieldWithErrors {
20
+ padding: 2px;
21
+ background-color: red;
22
+ display: table;
23
+ }
24
+
25
+ #errorExplanation {
26
+ width: 400px;
27
+ border: 2px solid red;
28
+ padding: 7px;
29
+ padding-bottom: 12px;
30
+ margin-bottom: 20px;
31
+ background-color: #f0f0f0;
32
+ }
33
+
34
+ #errorExplanation h2 {
35
+ text-align: left;
36
+ font-weight: bold;
37
+ padding: 5px 5px 5px 15px;
38
+ font-size: 12px;
39
+ margin: -7px;
40
+ background-color: #c00;
41
+ color: #fff;
42
+ }
43
+
44
+ #errorExplanation p {
45
+ color: #333;
46
+ margin-bottom: 0;
47
+ padding: 5px;
48
+ }
49
+
50
+ #errorExplanation ul li {
51
+ font-size: 12px;
52
+ list-style: square;
53
+ }
54
+
55
+ div.uploadStatus {
56
+ margin: 5px;
57
+ }
58
+
59
+ div.progressBar {
60
+ margin: 5px;
61
+ }
62
+
63
+ div.progressBar div.border {
64
+ background-color: #fff;
65
+ border: 1px solid gray;
66
+ width: 100%;
67
+ }
68
+
69
+ div.progressBar div.background {
70
+ background-color: #333;
71
+ height: 18px;
72
+ width: 0%;
73
+ }
74
+
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info"
4
+ require 'commands/about'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/console'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/dbconsole'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/destroy'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/generate'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/benchmarker'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/profiler'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/request'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/plugin'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/inspector'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/reaper'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/spawner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/runner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/server'
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+ require 'performance_test_help'
3
+
4
+ # Profiling results for each test method are written to tmp/performance.
5
+ class BrowsingTest < ActionController::PerformanceTest
6
+ def test_homepage
7
+ get '/'
8
+ end
9
+ end
@@ -0,0 +1,38 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3
+ require 'test_help'
4
+
5
+ class Test::Unit::TestCase
6
+ # Transactional fixtures accelerate your tests by wrapping each test method
7
+ # in a transaction that's rolled back on completion. This ensures that the
8
+ # test database remains unchanged so your fixtures don't have to be reloaded
9
+ # between every test method. Fewer database queries means faster tests.
10
+ #
11
+ # Read Mike Clark's excellent walkthrough at
12
+ # http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
13
+ #
14
+ # Every Active Record database supports transactions except MyISAM tables
15
+ # in MySQL. Turn off transactional fixtures in this case; however, if you
16
+ # don't care one way or the other, switching from MyISAM to InnoDB tables
17
+ # is recommended.
18
+ #
19
+ # The only drawback to using transactional fixtures is when you actually
20
+ # need to test transactions. Since your test is bracketed by a transaction,
21
+ # any transactions started in your code will be automatically rolled back.
22
+ self.use_transactional_fixtures = true
23
+
24
+ # Instantiated fixtures are slow, but give you @david where otherwise you
25
+ # would need people(:david). If you don't want to migrate your existing
26
+ # test cases which use the @david style and don't mind the speed hit (each
27
+ # instantiated fixtures translates to a database query per test method),
28
+ # then set this back to true.
29
+ self.use_instantiated_fixtures = false
30
+
31
+ # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
32
+ #
33
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
34
+ # -- they do not yet inherit this setting
35
+ fixtures :all
36
+
37
+ # Add more helper methods to be used by all tests here...
38
+ end
metadata ADDED
@@ -0,0 +1,195 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: locale_rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Masao Mutoh
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-12-04 00:00:00 +09:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: locale
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 0.9.0
24
+ version:
25
+ description: Ruby-Locale for Ruby on Rails is the pure ruby library which provides basic functions for localization.
26
+ email: mutoh@highway.ne.jp
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files: []
32
+
33
+ files:
34
+ - ChangeLog
35
+ - doc
36
+ - doc/index.html
37
+ - doc/fr_method_index.html
38
+ - doc/created.rid
39
+ - doc/fr_class_index.html
40
+ - doc/classes
41
+ - doc/classes/Locale.html
42
+ - doc/classes/ActionView
43
+ - doc/classes/ActionView/Base.html
44
+ - doc/classes/I18n.html
45
+ - doc/classes/ActionController
46
+ - doc/classes/ActionController/Caching.html
47
+ - doc/classes/ActionController/Caching
48
+ - doc/classes/ActionController/Caching/Fragments.html
49
+ - doc/classes/ActionController/Base.html
50
+ - doc/files
51
+ - doc/files/ChangeLog.html
52
+ - doc/files/lib
53
+ - doc/files/lib/locale_rails_rb.html
54
+ - doc/files/lib/locale_rails
55
+ - doc/files/lib/locale_rails/action_view_rb.html
56
+ - doc/files/lib/locale_rails/version_rb.html
57
+ - doc/files/lib/locale_rails/i18n_rb.html
58
+ - doc/files/lib/locale_rails/action_controller_rb.html
59
+ - doc/files/README.html
60
+ - doc/rdoc-style.css
61
+ - doc/fr_file_index.html
62
+ - NEWS
63
+ - lib
64
+ - lib/locale_rails.rb
65
+ - lib/locale_rails
66
+ - lib/locale_rails/action_controller.rb
67
+ - lib/locale_rails/version.rb
68
+ - lib/locale_rails/action_view.rb
69
+ - lib/locale_rails/i18n.rb
70
+ - README
71
+ - sample
72
+ - sample/script
73
+ - sample/script/plugin
74
+ - sample/script/about
75
+ - sample/script/generate
76
+ - sample/script/process
77
+ - sample/script/process/inspector
78
+ - sample/script/process/spawner
79
+ - sample/script/process/reaper
80
+ - sample/script/performance
81
+ - sample/script/performance/request
82
+ - sample/script/performance/profiler
83
+ - sample/script/performance/benchmarker
84
+ - sample/script/server
85
+ - sample/script/console
86
+ - sample/script/runner
87
+ - sample/script/destroy
88
+ - sample/script/dbconsole
89
+ - sample/doc
90
+ - sample/doc/README_FOR_APP
91
+ - sample/public
92
+ - sample/public/dispatch.rb
93
+ - sample/public/images
94
+ - sample/public/images/rails.png
95
+ - sample/public/robots.txt
96
+ - sample/public/favicon.ico
97
+ - sample/public/dispatch.fcgi
98
+ - sample/public/500.html
99
+ - sample/public/404.html
100
+ - sample/public/422.html
101
+ - sample/public/javascripts
102
+ - sample/public/javascripts/effects.js
103
+ - sample/public/javascripts/application.js
104
+ - sample/public/javascripts/prototype.js
105
+ - sample/public/javascripts/controls.js
106
+ - sample/public/javascripts/dragdrop.js
107
+ - sample/public/stylesheets
108
+ - sample/public/stylesheets/scaffold.css
109
+ - sample/public/stylesheets/locale.css
110
+ - sample/public/dispatch.cgi
111
+ - sample/lib
112
+ - sample/lib/tasks
113
+ - sample/db
114
+ - sample/db/production.sqlite3
115
+ - sample/db/development.sqlite3
116
+ - sample/README
117
+ - sample/test
118
+ - sample/test/fixtures
119
+ - sample/test/functional
120
+ - sample/test/test_helper.rb
121
+ - sample/test/unit
122
+ - sample/test/performance
123
+ - sample/test/performance/browsing_test.rb
124
+ - sample/test/integration
125
+ - sample/log
126
+ - sample/log/production.log
127
+ - sample/log/development.log
128
+ - sample/config
129
+ - sample/config/initializers
130
+ - sample/config/initializers/mime_types.rb
131
+ - sample/config/initializers/inflections.rb
132
+ - sample/config/initializers/new_rails_defaults.rb
133
+ - sample/config/boot.rb
134
+ - sample/config/routes.rb
135
+ - sample/config/environment.rb
136
+ - sample/config/database.yml
137
+ - sample/config/environments
138
+ - sample/config/environments/test.rb
139
+ - sample/config/environments/development.rb
140
+ - sample/config/environments/production.rb
141
+ - sample/app
142
+ - sample/app/helpers
143
+ - sample/app/helpers/application_helper.rb
144
+ - sample/app/views
145
+ - sample/app/views/samples
146
+ - sample/app/views/samples/index_uz_UZ.html.erb
147
+ - sample/app/views/samples/_part_nl.html.erb
148
+ - sample/app/views/samples/cached_action.html.erb
149
+ - sample/app/views/samples/#cookie.rb#
150
+ - sample/app/views/samples/_part.html.erb
151
+ - sample/app/views/samples/index.html.erb
152
+ - sample/app/views/layouts
153
+ - sample/app/views/layouts/samples.html.erb
154
+ - sample/app/models
155
+ - sample/app/controllers
156
+ - sample/app/controllers/samples_controller.rb
157
+ - sample/app/controllers/application.rb
158
+ - sample/vendor
159
+ - sample/vendor/plugins
160
+ - sample/tmp
161
+ - sample/tmp/cache
162
+ - sample/tmp/sockets
163
+ - sample/tmp/sessions
164
+ - sample/tmp/pids
165
+ - sample/Rakefile
166
+ - locale_rails-0.1.0.gem
167
+ - Rakefile
168
+ has_rdoc: true
169
+ homepage: http://locale.rubyforge.org/
170
+ post_install_message:
171
+ rdoc_options: []
172
+
173
+ require_paths:
174
+ - lib
175
+ required_ruby_version: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: "0"
180
+ version:
181
+ required_rubygems_version: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - ">="
184
+ - !ruby/object:Gem::Version
185
+ version: "0"
186
+ version:
187
+ requirements: []
188
+
189
+ rubyforge_project: locale
190
+ rubygems_version: 1.2.0
191
+ signing_key:
192
+ specification_version: 2
193
+ summary: Ruby-Locale for Ruby on Rails is the pure ruby library which provides basic functions for localization based on Ruby-Locale.
194
+ test_files: []
195
+