rich_i18n 1.2.3 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -1
- data/README.textile +56 -29
- data/Rakefile +22 -8
- data/VERSION +1 -1
- data/{lib/app → app}/views/rich_i18n.html.erb +0 -0
- data/{lib/assets → assets}/jzip/jquery/core.jz +0 -0
- data/{lib/assets → assets}/jzip/jquery/extensions/modules.js +0 -0
- data/{lib/assets → assets}/jzip/jquery/seat_holder.js +31 -31
- data/{lib/assets → assets}/jzip/rich.js +0 -0
- data/{lib/assets → assets}/jzip/rich/i18n.js +2 -2
- data/{lib/assets → assets}/jzip/rich_i18n.jz +0 -0
- data/lib/generators/rich.rb +25 -0
- data/lib/generators/rich/translation/templates/migration.rb +18 -0
- data/lib/generators/rich/translation/templates/model.rb +7 -0
- data/lib/generators/rich/translation/translation_generator.rb +59 -0
- data/lib/rich/i18n.rb +2 -2
- data/lib/rich/i18n/actionpack.rb +0 -1
- data/lib/rich/i18n/actionpack/action_controller/base.rb +3 -3
- data/lib/rich/i18n/actionpack/action_view/base.rb +3 -3
- data/lib/rich/i18n/actionpack/action_view/sanitizor.rb +14 -20
- data/lib/rich/i18n/activesupport.rb +1 -0
- data/lib/rich/i18n/activesupport/active_support/dependencies.rb +12 -0
- data/lib/rich/i18n/core/array.rb +0 -2
- data/lib/rich/i18n/core/array/merging.rb +5 -7
- data/lib/rich/i18n/core/enriched_string.rb +68 -25
- data/lib/rich/i18n/core/object.rb +2 -2
- data/lib/rich/i18n/core/object/enriched.rb +16 -0
- data/lib/rich/i18n/core/string.rb +4 -2
- data/lib/rich/i18n/core/{object/output.rb → string/enriched.rb} +8 -8
- data/lib/rich/i18n/core/string/html_safe.rb +18 -0
- data/lib/rich/i18n/core/string/inflections.rb +9 -9
- data/lib/rich/i18n/core/string/internationalization.rb +20 -18
- data/lib/rich/i18n/core/symbol/internationalization.rb +2 -2
- data/lib/rich/i18n/engine.rb +71 -61
- data/lib/rich/i18n/formtastic.rb +15 -13
- data/lib/rich/i18n/rails.rb +1 -0
- data/lib/rich/i18n/rails/engine.rb +5 -0
- data/lib/rich_i18n.rb +3 -3
- data/locales/nl.yml +3 -3
- data/rails_generators/rich_i18n_translation/rich_i18n_translation_generator.rb +3 -3
- data/rails_generators/rich_i18n_translation/templates/migration.rb +1 -1
- data/rails_generators/rich_i18n_translation/templates/model.rb +2 -2
- data/rich_i18n.gemspec +159 -33
- data/test/rails-2/dummy/Gemfile +5 -0
- data/test/rails-2/dummy/Gemfile.lock +50 -0
- data/test/rails-2/dummy/Rakefile +10 -0
- data/test/rails-2/dummy/app/controllers/application_controller.rb +10 -0
- data/test/rails-2/dummy/app/helpers/application_helper.rb +3 -0
- data/test/rails-2/dummy/config/boot.rb +124 -0
- data/test/rails-2/dummy/config/database.yml +22 -0
- data/test/rails-2/dummy/config/environment.rb +41 -0
- data/test/rails-2/dummy/config/environments/development.rb +17 -0
- data/test/rails-2/dummy/config/environments/production.rb +28 -0
- data/test/rails-2/dummy/config/environments/test.rb +28 -0
- data/test/rails-2/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/rails-2/dummy/config/initializers/cookie_verification_secret.rb +7 -0
- data/test/rails-2/dummy/config/initializers/inflections.rb +10 -0
- data/test/rails-2/dummy/config/initializers/mime_types.rb +5 -0
- data/test/rails-2/dummy/config/initializers/new_rails_defaults.rb +21 -0
- data/test/rails-2/dummy/config/initializers/session_store.rb +15 -0
- data/test/rails-2/dummy/config/locales/en.yml +5 -0
- data/test/rails-2/dummy/config/preinitializer.rb +20 -0
- data/test/rails-2/dummy/config/routes.rb +43 -0
- data/test/rails-2/dummy/db/seeds.rb +7 -0
- data/test/rails-2/dummy/db/test.sqlite3 +0 -0
- data/test/rails-2/dummy/log/development.log +0 -0
- data/test/rails-2/dummy/log/production.log +0 -0
- data/test/rails-2/dummy/log/server.log +0 -0
- data/test/rails-2/dummy/log/test.log +0 -0
- data/test/rails-2/dummy/public/404.html +30 -0
- data/test/rails-2/dummy/public/422.html +30 -0
- data/test/rails-2/dummy/public/500.html +30 -0
- data/test/rails-2/dummy/public/favicon.ico +0 -0
- data/test/rails-2/dummy/public/images/rails.png +0 -0
- data/test/rails-2/dummy/public/index.html +275 -0
- data/test/rails-2/dummy/public/javascripts/application.js +2 -0
- data/test/rails-2/dummy/public/javascripts/controls.js +963 -0
- data/test/rails-2/dummy/public/javascripts/dragdrop.js +973 -0
- data/test/rails-2/dummy/public/javascripts/effects.js +1128 -0
- data/test/rails-2/dummy/public/javascripts/prototype.js +4320 -0
- data/test/rails-2/dummy/public/robots.txt +5 -0
- data/test/rails-2/dummy/script/about +4 -0
- data/test/rails-2/dummy/script/console +3 -0
- data/test/rails-2/dummy/script/dbconsole +3 -0
- data/test/rails-2/dummy/script/destroy +3 -0
- data/test/rails-2/dummy/script/generate +3 -0
- data/test/rails-2/dummy/script/performance/benchmarker +3 -0
- data/test/rails-2/dummy/script/performance/profiler +3 -0
- data/test/rails-2/dummy/script/plugin +3 -0
- data/test/rails-2/dummy/script/runner +3 -0
- data/test/rails-2/dummy/script/server +3 -0
- data/test/rails-2/test_helper.rb +5 -0
- data/test/rails-3/dummy/Gemfile +5 -0
- data/test/rails-3/dummy/Gemfile.lock +93 -0
- data/test/rails-3/dummy/Rakefile +7 -0
- data/test/rails-3/dummy/app/controllers/application_controller.rb +3 -0
- data/test/rails-3/dummy/app/helpers/application_helper.rb +2 -0
- data/test/rails-3/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/rails-3/dummy/config.ru +4 -0
- data/test/rails-3/dummy/config/application.rb +44 -0
- data/test/rails-3/dummy/config/boot.rb +10 -0
- data/test/rails-3/dummy/config/database.yml +22 -0
- data/test/rails-3/dummy/config/environment.rb +5 -0
- data/test/rails-3/dummy/config/environments/development.rb +26 -0
- data/test/rails-3/dummy/config/environments/production.rb +49 -0
- data/test/rails-3/dummy/config/environments/test.rb +35 -0
- data/test/rails-3/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/rails-3/dummy/config/initializers/inflections.rb +10 -0
- data/test/rails-3/dummy/config/initializers/mime_types.rb +5 -0
- data/test/rails-3/dummy/config/initializers/secret_token.rb +7 -0
- data/test/rails-3/dummy/config/initializers/session_store.rb +8 -0
- data/test/rails-3/dummy/config/locales/en.yml +5 -0
- data/test/rails-3/dummy/config/routes.rb +58 -0
- data/test/rails-3/dummy/db/test.sqlite3 +0 -0
- data/test/rails-3/dummy/log/development.log +0 -0
- data/test/rails-3/dummy/log/production.log +0 -0
- data/test/rails-3/dummy/log/server.log +0 -0
- data/test/rails-3/dummy/log/test.log +0 -0
- data/test/rails-3/dummy/public/404.html +26 -0
- data/test/rails-3/dummy/public/422.html +26 -0
- data/test/rails-3/dummy/public/500.html +26 -0
- data/test/rails-3/dummy/public/favicon.ico +0 -0
- data/test/rails-3/dummy/public/javascripts/application.js +2 -0
- data/test/rails-3/dummy/public/javascripts/controls.js +965 -0
- data/test/rails-3/dummy/public/javascripts/dragdrop.js +974 -0
- data/test/rails-3/dummy/public/javascripts/effects.js +1123 -0
- data/test/rails-3/dummy/public/javascripts/prototype.js +6001 -0
- data/test/rails-3/dummy/public/javascripts/rails.js +175 -0
- data/test/rails-3/dummy/public/stylesheets/.gitkeep +0 -0
- data/test/rails-3/dummy/script/rails +6 -0
- data/test/rails-3/test_helper.rb +8 -0
- data/test/tests/core/array/merging_test.rb +14 -0
- data/test/tests/core/enriched_string_test.rb +20 -0
- data/test/tests/core/string/inflections_test.rb +32 -0
- data/test/tests/core/string/merging_test.rb +15 -0
- data/test/tests/locales/nl/internationalization_test.rb +55 -0
- metadata +183 -44
- data/lib/rich/i18n/actionpack/action_controller/dispatcher.rb +0 -12
- data/lib/rich/i18n/core/enumerable/methods.rb +0 -16
- data/lib/rich/i18n/core/hash.rb +0 -6
- data/lib/rich/i18n/core/nil_class.rb +0 -8
- data/lib/rich/i18n/core/string/enrichments.rb +0 -66
- data/test/core/string/inflections_test.rb +0 -42
- data/test/core/string/internationalization_test.rb +0 -23
- data/test/engine_test.rb +0 -20
- data/test/locales/nl/internationalization_test.rb +0 -47
- data/test/setup.rb +0 -14
- data/test/test_helper.rb +0 -5
data/rich_i18n.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rich_i18n}
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Paul Engel"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-11-08}
|
13
13
|
s.description = %q{Rich-i18n is a module of E9s (http://github.com/archan937/e9s) which enriches I18n, Formtastic, the String and Symbol classes. This simplifies internationalization of your Rails application making a Rails developers life much easier.}
|
14
14
|
s.email = %q{paul.engel@holder.nl}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -22,38 +22,43 @@ Gem::Specification.new do |s|
|
|
22
22
|
"README.textile",
|
23
23
|
"Rakefile",
|
24
24
|
"VERSION",
|
25
|
+
"app/views/rich_i18n.html.erb",
|
26
|
+
"assets/jzip/jquery/core.jz",
|
27
|
+
"assets/jzip/jquery/extensions/modules.js",
|
28
|
+
"assets/jzip/jquery/seat_holder.js",
|
29
|
+
"assets/jzip/rich.js",
|
30
|
+
"assets/jzip/rich/i18n.js",
|
31
|
+
"assets/jzip/rich_i18n.jz",
|
25
32
|
"init.rb",
|
26
33
|
"install.rb",
|
27
|
-
"lib/
|
28
|
-
"lib/
|
29
|
-
"lib/
|
30
|
-
"lib/
|
31
|
-
"lib/assets/jzip/rich.js",
|
32
|
-
"lib/assets/jzip/rich/i18n.js",
|
33
|
-
"lib/assets/jzip/rich_i18n.jz",
|
34
|
+
"lib/generators/rich.rb",
|
35
|
+
"lib/generators/rich/translation/templates/migration.rb",
|
36
|
+
"lib/generators/rich/translation/templates/model.rb",
|
37
|
+
"lib/generators/rich/translation/translation_generator.rb",
|
34
38
|
"lib/rich/i18n.rb",
|
35
39
|
"lib/rich/i18n/actionpack.rb",
|
36
40
|
"lib/rich/i18n/actionpack/action_controller/base.rb",
|
37
|
-
"lib/rich/i18n/actionpack/action_controller/dispatcher.rb",
|
38
41
|
"lib/rich/i18n/actionpack/action_view/base.rb",
|
39
42
|
"lib/rich/i18n/actionpack/action_view/sanitizor.rb",
|
43
|
+
"lib/rich/i18n/activesupport.rb",
|
44
|
+
"lib/rich/i18n/activesupport/active_support/dependencies.rb",
|
40
45
|
"lib/rich/i18n/core.rb",
|
41
46
|
"lib/rich/i18n/core/array.rb",
|
42
47
|
"lib/rich/i18n/core/array/merging.rb",
|
43
48
|
"lib/rich/i18n/core/enriched_string.rb",
|
44
|
-
"lib/rich/i18n/core/enumerable/methods.rb",
|
45
|
-
"lib/rich/i18n/core/hash.rb",
|
46
|
-
"lib/rich/i18n/core/nil_class.rb",
|
47
49
|
"lib/rich/i18n/core/object.rb",
|
48
|
-
"lib/rich/i18n/core/object/
|
50
|
+
"lib/rich/i18n/core/object/enriched.rb",
|
49
51
|
"lib/rich/i18n/core/string.rb",
|
50
|
-
"lib/rich/i18n/core/string/
|
52
|
+
"lib/rich/i18n/core/string/enriched.rb",
|
53
|
+
"lib/rich/i18n/core/string/html_safe.rb",
|
51
54
|
"lib/rich/i18n/core/string/inflections.rb",
|
52
55
|
"lib/rich/i18n/core/string/internationalization.rb",
|
53
56
|
"lib/rich/i18n/core/symbol.rb",
|
54
57
|
"lib/rich/i18n/core/symbol/internationalization.rb",
|
55
58
|
"lib/rich/i18n/engine.rb",
|
56
59
|
"lib/rich/i18n/formtastic.rb",
|
60
|
+
"lib/rich/i18n/rails.rb",
|
61
|
+
"lib/rich/i18n/rails/engine.rb",
|
57
62
|
"lib/rich_i18n.rb",
|
58
63
|
"locales/nl.yml",
|
59
64
|
"rails/init.rb",
|
@@ -63,12 +68,99 @@ Gem::Specification.new do |s|
|
|
63
68
|
"rails_generators/rich_i18n_translation/templates/model.rb",
|
64
69
|
"rich_i18n.gemspec",
|
65
70
|
"tasks/rich_i18n_tasks.rake",
|
66
|
-
"test/
|
67
|
-
"test/
|
68
|
-
"test/
|
69
|
-
"test/
|
70
|
-
"test/
|
71
|
-
"test/
|
71
|
+
"test/rails-2/dummy/Gemfile",
|
72
|
+
"test/rails-2/dummy/Gemfile.lock",
|
73
|
+
"test/rails-2/dummy/Rakefile",
|
74
|
+
"test/rails-2/dummy/app/controllers/application_controller.rb",
|
75
|
+
"test/rails-2/dummy/app/helpers/application_helper.rb",
|
76
|
+
"test/rails-2/dummy/config/boot.rb",
|
77
|
+
"test/rails-2/dummy/config/database.yml",
|
78
|
+
"test/rails-2/dummy/config/environment.rb",
|
79
|
+
"test/rails-2/dummy/config/environments/development.rb",
|
80
|
+
"test/rails-2/dummy/config/environments/production.rb",
|
81
|
+
"test/rails-2/dummy/config/environments/test.rb",
|
82
|
+
"test/rails-2/dummy/config/initializers/backtrace_silencers.rb",
|
83
|
+
"test/rails-2/dummy/config/initializers/cookie_verification_secret.rb",
|
84
|
+
"test/rails-2/dummy/config/initializers/inflections.rb",
|
85
|
+
"test/rails-2/dummy/config/initializers/mime_types.rb",
|
86
|
+
"test/rails-2/dummy/config/initializers/new_rails_defaults.rb",
|
87
|
+
"test/rails-2/dummy/config/initializers/session_store.rb",
|
88
|
+
"test/rails-2/dummy/config/locales/en.yml",
|
89
|
+
"test/rails-2/dummy/config/preinitializer.rb",
|
90
|
+
"test/rails-2/dummy/config/routes.rb",
|
91
|
+
"test/rails-2/dummy/db/seeds.rb",
|
92
|
+
"test/rails-2/dummy/db/test.sqlite3",
|
93
|
+
"test/rails-2/dummy/log/development.log",
|
94
|
+
"test/rails-2/dummy/log/production.log",
|
95
|
+
"test/rails-2/dummy/log/server.log",
|
96
|
+
"test/rails-2/dummy/log/test.log",
|
97
|
+
"test/rails-2/dummy/public/404.html",
|
98
|
+
"test/rails-2/dummy/public/422.html",
|
99
|
+
"test/rails-2/dummy/public/500.html",
|
100
|
+
"test/rails-2/dummy/public/favicon.ico",
|
101
|
+
"test/rails-2/dummy/public/images/rails.png",
|
102
|
+
"test/rails-2/dummy/public/index.html",
|
103
|
+
"test/rails-2/dummy/public/javascripts/application.js",
|
104
|
+
"test/rails-2/dummy/public/javascripts/controls.js",
|
105
|
+
"test/rails-2/dummy/public/javascripts/dragdrop.js",
|
106
|
+
"test/rails-2/dummy/public/javascripts/effects.js",
|
107
|
+
"test/rails-2/dummy/public/javascripts/prototype.js",
|
108
|
+
"test/rails-2/dummy/public/robots.txt",
|
109
|
+
"test/rails-2/dummy/script/about",
|
110
|
+
"test/rails-2/dummy/script/console",
|
111
|
+
"test/rails-2/dummy/script/dbconsole",
|
112
|
+
"test/rails-2/dummy/script/destroy",
|
113
|
+
"test/rails-2/dummy/script/generate",
|
114
|
+
"test/rails-2/dummy/script/performance/benchmarker",
|
115
|
+
"test/rails-2/dummy/script/performance/profiler",
|
116
|
+
"test/rails-2/dummy/script/plugin",
|
117
|
+
"test/rails-2/dummy/script/runner",
|
118
|
+
"test/rails-2/dummy/script/server",
|
119
|
+
"test/rails-2/test_helper.rb",
|
120
|
+
"test/rails-3/dummy/Gemfile",
|
121
|
+
"test/rails-3/dummy/Gemfile.lock",
|
122
|
+
"test/rails-3/dummy/Rakefile",
|
123
|
+
"test/rails-3/dummy/app/controllers/application_controller.rb",
|
124
|
+
"test/rails-3/dummy/app/helpers/application_helper.rb",
|
125
|
+
"test/rails-3/dummy/app/views/layouts/application.html.erb",
|
126
|
+
"test/rails-3/dummy/config.ru",
|
127
|
+
"test/rails-3/dummy/config/application.rb",
|
128
|
+
"test/rails-3/dummy/config/boot.rb",
|
129
|
+
"test/rails-3/dummy/config/database.yml",
|
130
|
+
"test/rails-3/dummy/config/environment.rb",
|
131
|
+
"test/rails-3/dummy/config/environments/development.rb",
|
132
|
+
"test/rails-3/dummy/config/environments/production.rb",
|
133
|
+
"test/rails-3/dummy/config/environments/test.rb",
|
134
|
+
"test/rails-3/dummy/config/initializers/backtrace_silencers.rb",
|
135
|
+
"test/rails-3/dummy/config/initializers/inflections.rb",
|
136
|
+
"test/rails-3/dummy/config/initializers/mime_types.rb",
|
137
|
+
"test/rails-3/dummy/config/initializers/secret_token.rb",
|
138
|
+
"test/rails-3/dummy/config/initializers/session_store.rb",
|
139
|
+
"test/rails-3/dummy/config/locales/en.yml",
|
140
|
+
"test/rails-3/dummy/config/routes.rb",
|
141
|
+
"test/rails-3/dummy/db/test.sqlite3",
|
142
|
+
"test/rails-3/dummy/log/development.log",
|
143
|
+
"test/rails-3/dummy/log/production.log",
|
144
|
+
"test/rails-3/dummy/log/server.log",
|
145
|
+
"test/rails-3/dummy/log/test.log",
|
146
|
+
"test/rails-3/dummy/public/404.html",
|
147
|
+
"test/rails-3/dummy/public/422.html",
|
148
|
+
"test/rails-3/dummy/public/500.html",
|
149
|
+
"test/rails-3/dummy/public/favicon.ico",
|
150
|
+
"test/rails-3/dummy/public/javascripts/application.js",
|
151
|
+
"test/rails-3/dummy/public/javascripts/controls.js",
|
152
|
+
"test/rails-3/dummy/public/javascripts/dragdrop.js",
|
153
|
+
"test/rails-3/dummy/public/javascripts/effects.js",
|
154
|
+
"test/rails-3/dummy/public/javascripts/prototype.js",
|
155
|
+
"test/rails-3/dummy/public/javascripts/rails.js",
|
156
|
+
"test/rails-3/dummy/public/stylesheets/.gitkeep",
|
157
|
+
"test/rails-3/dummy/script/rails",
|
158
|
+
"test/rails-3/test_helper.rb",
|
159
|
+
"test/tests/core/array/merging_test.rb",
|
160
|
+
"test/tests/core/enriched_string_test.rb",
|
161
|
+
"test/tests/core/string/inflections_test.rb",
|
162
|
+
"test/tests/core/string/merging_test.rb",
|
163
|
+
"test/tests/locales/nl/internationalization_test.rb",
|
72
164
|
"uninstall.rb"
|
73
165
|
]
|
74
166
|
s.homepage = %q{http://codehero.es/rails_gems_plugins/rich_i18n}
|
@@ -77,12 +169,43 @@ Gem::Specification.new do |s|
|
|
77
169
|
s.rubygems_version = %q{1.3.7}
|
78
170
|
s.summary = %q{Enrichments (e9s) module for internationalization (i18n)}
|
79
171
|
s.test_files = [
|
80
|
-
"test/
|
81
|
-
"test/
|
82
|
-
"test/
|
83
|
-
"test/
|
84
|
-
"test/
|
85
|
-
"test/
|
172
|
+
"test/rails-2/dummy/app/controllers/application_controller.rb",
|
173
|
+
"test/rails-2/dummy/app/helpers/application_helper.rb",
|
174
|
+
"test/rails-2/dummy/config/boot.rb",
|
175
|
+
"test/rails-2/dummy/config/environment.rb",
|
176
|
+
"test/rails-2/dummy/config/environments/development.rb",
|
177
|
+
"test/rails-2/dummy/config/environments/production.rb",
|
178
|
+
"test/rails-2/dummy/config/environments/test.rb",
|
179
|
+
"test/rails-2/dummy/config/initializers/backtrace_silencers.rb",
|
180
|
+
"test/rails-2/dummy/config/initializers/cookie_verification_secret.rb",
|
181
|
+
"test/rails-2/dummy/config/initializers/inflections.rb",
|
182
|
+
"test/rails-2/dummy/config/initializers/mime_types.rb",
|
183
|
+
"test/rails-2/dummy/config/initializers/new_rails_defaults.rb",
|
184
|
+
"test/rails-2/dummy/config/initializers/session_store.rb",
|
185
|
+
"test/rails-2/dummy/config/preinitializer.rb",
|
186
|
+
"test/rails-2/dummy/config/routes.rb",
|
187
|
+
"test/rails-2/dummy/db/seeds.rb",
|
188
|
+
"test/rails-2/test_helper.rb",
|
189
|
+
"test/rails-3/dummy/app/controllers/application_controller.rb",
|
190
|
+
"test/rails-3/dummy/app/helpers/application_helper.rb",
|
191
|
+
"test/rails-3/dummy/config/application.rb",
|
192
|
+
"test/rails-3/dummy/config/boot.rb",
|
193
|
+
"test/rails-3/dummy/config/environment.rb",
|
194
|
+
"test/rails-3/dummy/config/environments/development.rb",
|
195
|
+
"test/rails-3/dummy/config/environments/production.rb",
|
196
|
+
"test/rails-3/dummy/config/environments/test.rb",
|
197
|
+
"test/rails-3/dummy/config/initializers/backtrace_silencers.rb",
|
198
|
+
"test/rails-3/dummy/config/initializers/inflections.rb",
|
199
|
+
"test/rails-3/dummy/config/initializers/mime_types.rb",
|
200
|
+
"test/rails-3/dummy/config/initializers/secret_token.rb",
|
201
|
+
"test/rails-3/dummy/config/initializers/session_store.rb",
|
202
|
+
"test/rails-3/dummy/config/routes.rb",
|
203
|
+
"test/rails-3/test_helper.rb",
|
204
|
+
"test/tests/core/array/merging_test.rb",
|
205
|
+
"test/tests/core/enriched_string_test.rb",
|
206
|
+
"test/tests/core/string/inflections_test.rb",
|
207
|
+
"test/tests/core/string/merging_test.rb",
|
208
|
+
"test/tests/locales/nl/internationalization_test.rb"
|
86
209
|
]
|
87
210
|
|
88
211
|
if s.respond_to? :specification_version then
|
@@ -90,21 +213,24 @@ Gem::Specification.new do |s|
|
|
90
213
|
s.specification_version = 3
|
91
214
|
|
92
215
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
93
|
-
s.add_runtime_dependency(%q<
|
216
|
+
s.add_runtime_dependency(%q<authlogic>, [">= 2.1.2"])
|
217
|
+
s.add_runtime_dependency(%q<formtastic>, [">= 1.1.0"])
|
94
218
|
s.add_runtime_dependency(%q<hpricot>, [">= 0"])
|
95
219
|
s.add_runtime_dependency(%q<i18n>, [">= 0.3.7"])
|
96
|
-
s.add_runtime_dependency(%q<jzip>, [">= 1.0.
|
220
|
+
s.add_runtime_dependency(%q<jzip>, [">= 1.0.11"])
|
97
221
|
else
|
98
|
-
s.add_dependency(%q<
|
222
|
+
s.add_dependency(%q<authlogic>, [">= 2.1.2"])
|
223
|
+
s.add_dependency(%q<formtastic>, [">= 1.1.0"])
|
99
224
|
s.add_dependency(%q<hpricot>, [">= 0"])
|
100
225
|
s.add_dependency(%q<i18n>, [">= 0.3.7"])
|
101
|
-
s.add_dependency(%q<jzip>, [">= 1.0.
|
226
|
+
s.add_dependency(%q<jzip>, [">= 1.0.11"])
|
102
227
|
end
|
103
228
|
else
|
104
|
-
s.add_dependency(%q<
|
229
|
+
s.add_dependency(%q<authlogic>, [">= 2.1.2"])
|
230
|
+
s.add_dependency(%q<formtastic>, [">= 1.1.0"])
|
105
231
|
s.add_dependency(%q<hpricot>, [">= 0"])
|
106
232
|
s.add_dependency(%q<i18n>, [">= 0.3.7"])
|
107
|
-
s.add_dependency(%q<jzip>, [">= 1.0.
|
233
|
+
s.add_dependency(%q<jzip>, [">= 1.0.11"])
|
108
234
|
end
|
109
235
|
end
|
110
236
|
|
@@ -0,0 +1,50 @@
|
|
1
|
+
PATH
|
2
|
+
remote: /Users/paulengel/Sites/e9s-plugins/vendor/plugins/rich_i18n
|
3
|
+
specs:
|
4
|
+
rich_i18n (1.3.0)
|
5
|
+
authlogic (>= 2.1.2)
|
6
|
+
formtastic (>= 1.1.0)
|
7
|
+
hpricot
|
8
|
+
i18n (>= 0.3.7)
|
9
|
+
jzip (>= 1.0.11)
|
10
|
+
|
11
|
+
GEM
|
12
|
+
remote: http://rubygems.org/
|
13
|
+
specs:
|
14
|
+
actionmailer (2.3.8)
|
15
|
+
actionpack (= 2.3.8)
|
16
|
+
actionpack (2.3.8)
|
17
|
+
activesupport (= 2.3.8)
|
18
|
+
rack (~> 1.1.0)
|
19
|
+
activerecord (2.3.8)
|
20
|
+
activesupport (= 2.3.8)
|
21
|
+
activeresource (2.3.8)
|
22
|
+
activesupport (= 2.3.8)
|
23
|
+
activesupport (2.3.8)
|
24
|
+
authlogic (2.1.6)
|
25
|
+
activesupport
|
26
|
+
formtastic (1.1.0)
|
27
|
+
actionpack (>= 2.3.0)
|
28
|
+
activesupport (>= 2.3.0)
|
29
|
+
i18n (>= 0.4.0)
|
30
|
+
hpricot (0.8.2)
|
31
|
+
i18n (0.4.2)
|
32
|
+
jzip (1.0.11)
|
33
|
+
rack (1.1.0)
|
34
|
+
rails (2.3.8)
|
35
|
+
actionmailer (= 2.3.8)
|
36
|
+
actionpack (= 2.3.8)
|
37
|
+
activerecord (= 2.3.8)
|
38
|
+
activeresource (= 2.3.8)
|
39
|
+
activesupport (= 2.3.8)
|
40
|
+
rake (>= 0.8.3)
|
41
|
+
rake (0.8.7)
|
42
|
+
sqlite3-ruby (1.2.5)
|
43
|
+
|
44
|
+
PLATFORMS
|
45
|
+
ruby
|
46
|
+
|
47
|
+
DEPENDENCIES
|
48
|
+
rails (= 2.3.8)
|
49
|
+
rich_i18n!
|
50
|
+
sqlite3-ruby
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
2
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
3
|
+
|
4
|
+
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
|
5
|
+
|
6
|
+
require 'rake'
|
7
|
+
require 'rake/testtask'
|
8
|
+
require 'rake/rdoctask'
|
9
|
+
|
10
|
+
require 'tasks/rails'
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Filters added to this controller apply to all controllers in the application.
|
2
|
+
# Likewise, all the methods added will be available for all controllers.
|
3
|
+
|
4
|
+
class ApplicationController < ActionController::Base
|
5
|
+
helper :all # include all helpers, all the time
|
6
|
+
protect_from_forgery # See ActionController::RequestForgeryProtection for details
|
7
|
+
|
8
|
+
# Scrub sensitive parameters from your log
|
9
|
+
# filter_parameter_logging :password
|
10
|
+
end
|
@@ -0,0 +1,124 @@
|
|
1
|
+
# Don't change this file!
|
2
|
+
# Configure your app in config/environment.rb and config/environments/*.rb
|
3
|
+
|
4
|
+
RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
|
5
|
+
|
6
|
+
module Rails
|
7
|
+
class << self
|
8
|
+
def boot!
|
9
|
+
unless booted?
|
10
|
+
preinitialize
|
11
|
+
pick_boot.run
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def booted?
|
16
|
+
defined? Rails::Initializer
|
17
|
+
end
|
18
|
+
|
19
|
+
def pick_boot
|
20
|
+
(vendor_rails? ? VendorBoot : GemBoot).new
|
21
|
+
end
|
22
|
+
|
23
|
+
def vendor_rails?
|
24
|
+
File.exist?("#{RAILS_ROOT}/vendor/rails")
|
25
|
+
end
|
26
|
+
|
27
|
+
def preinitialize
|
28
|
+
load(preinitializer_path) if File.exist?(preinitializer_path)
|
29
|
+
end
|
30
|
+
|
31
|
+
def preinitializer_path
|
32
|
+
"#{RAILS_ROOT}/config/preinitializer.rb"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
class Boot
|
37
|
+
def run
|
38
|
+
load_initializer
|
39
|
+
Rails::Initializer.run(:set_load_path)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
class VendorBoot < Boot
|
44
|
+
def load_initializer
|
45
|
+
require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
|
46
|
+
Rails::Initializer.run(:install_gem_spec_stubs)
|
47
|
+
Rails::GemDependency.add_frozen_gem_path
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
class GemBoot < Boot
|
52
|
+
def load_initializer
|
53
|
+
self.class.load_rubygems
|
54
|
+
load_rails_gem
|
55
|
+
require 'initializer'
|
56
|
+
end
|
57
|
+
|
58
|
+
def load_rails_gem
|
59
|
+
if version = self.class.gem_version
|
60
|
+
gem 'rails', version
|
61
|
+
else
|
62
|
+
gem 'rails'
|
63
|
+
end
|
64
|
+
rescue Gem::LoadError => load_error
|
65
|
+
$stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
|
66
|
+
exit 1
|
67
|
+
end
|
68
|
+
|
69
|
+
class << self
|
70
|
+
def rubygems_version
|
71
|
+
Gem::RubyGemsVersion rescue nil
|
72
|
+
end
|
73
|
+
|
74
|
+
def gem_version
|
75
|
+
if defined? RAILS_GEM_VERSION
|
76
|
+
RAILS_GEM_VERSION
|
77
|
+
elsif ENV.include?('RAILS_GEM_VERSION')
|
78
|
+
ENV['RAILS_GEM_VERSION']
|
79
|
+
else
|
80
|
+
parse_gem_version(read_environment_rb)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
def load_rubygems
|
85
|
+
min_version = '1.3.2'
|
86
|
+
require 'rubygems'
|
87
|
+
unless rubygems_version >= min_version
|
88
|
+
$stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
|
89
|
+
exit 1
|
90
|
+
end
|
91
|
+
|
92
|
+
rescue LoadError
|
93
|
+
$stderr.puts %Q(Rails requires RubyGems >= #{min_version}. Please install RubyGems and try again: http://rubygems.rubyforge.org)
|
94
|
+
exit 1
|
95
|
+
end
|
96
|
+
|
97
|
+
def parse_gem_version(text)
|
98
|
+
$1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
|
99
|
+
end
|
100
|
+
|
101
|
+
private
|
102
|
+
def read_environment_rb
|
103
|
+
File.read("#{RAILS_ROOT}/config/environment.rb")
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
class Rails::Boot
|
110
|
+
def run
|
111
|
+
load_initializer
|
112
|
+
|
113
|
+
Rails::Initializer.class_eval do
|
114
|
+
def load_gems
|
115
|
+
@bundler_loaded ||= Bundler.require :default, Rails.env
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
Rails::Initializer.run(:set_load_path)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# All that for this:
|
124
|
+
Rails.boot!
|