translatable_routes 1.4.0 → 4.0.0.2

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 (59) hide show
  1. checksums.yaml +4 -4
  2. metadata +14 -140
  3. data/MIT-LICENSE +0 -20
  4. data/README.md +0 -66
  5. data/Rakefile +0 -32
  6. data/lib/translatable_routes/action_dispatch/mapper.rb +0 -91
  7. data/lib/translatable_routes/action_dispatch/named_route_collection.rb +0 -35
  8. data/lib/translatable_routes/railtie.rb +0 -16
  9. data/lib/translatable_routes/version.rb +0 -5
  10. data/lib/translatable_routes.rb +0 -6
  11. data/test/dummy/README.rdoc +0 -28
  12. data/test/dummy/Rakefile +0 -6
  13. data/test/dummy/app/assets/javascripts/application.js +0 -13
  14. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  15. data/test/dummy/app/controllers/application_controller.rb +0 -5
  16. data/test/dummy/app/controllers/namespace/pages_controller.rb +0 -6
  17. data/test/dummy/app/controllers/namespace/resources_controller.rb +0 -6
  18. data/test/dummy/app/controllers/nesteds_controller.rb +0 -6
  19. data/test/dummy/app/controllers/pages_controller.rb +0 -12
  20. data/test/dummy/app/controllers/resources_controller.rb +0 -6
  21. data/test/dummy/app/helpers/application_helper.rb +0 -2
  22. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  23. data/test/dummy/bin/bundle +0 -3
  24. data/test/dummy/bin/rails +0 -4
  25. data/test/dummy/bin/rake +0 -4
  26. data/test/dummy/config/application.rb +0 -22
  27. data/test/dummy/config/boot.rb +0 -5
  28. data/test/dummy/config/database.yml +0 -25
  29. data/test/dummy/config/environment.rb +0 -5
  30. data/test/dummy/config/environments/development.rb +0 -29
  31. data/test/dummy/config/environments/production.rb +0 -84
  32. data/test/dummy/config/environments/test.rb +0 -44
  33. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  34. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  35. data/test/dummy/config/initializers/inflections.rb +0 -16
  36. data/test/dummy/config/initializers/mime_types.rb +0 -5
  37. data/test/dummy/config/initializers/secret_token.rb +0 -13
  38. data/test/dummy/config/initializers/session_store.rb +0 -3
  39. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  40. data/test/dummy/config/locales/en.yml +0 -10
  41. data/test/dummy/config/locales/es.yml +0 -10
  42. data/test/dummy/config/routes.rb +0 -70
  43. data/test/dummy/config.ru +0 -4
  44. data/test/dummy/db/schema.rb +0 -16
  45. data/test/dummy/log/development.log +0 -0
  46. data/test/dummy/log/test.log +0 -324
  47. data/test/dummy/public/404.html +0 -58
  48. data/test/dummy/public/422.html +0 -58
  49. data/test/dummy/public/500.html +0 -57
  50. data/test/dummy/public/favicon.ico +0 -0
  51. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  52. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  53. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  54. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  55. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  56. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  57. data/test/helpers_test.rb +0 -60
  58. data/test/routes_test.rb +0 -59
  59. data/test/test_helper.rb +0 -21
@@ -1,324 +0,0 @@
1
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
-  (0.0ms) select sqlite_version(*)
3
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
-  (0.0ms) SELECT version FROM "schema_migrations"
5
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
6
-  (0.1ms) begin transaction
7
- -------------------------
8
- HelpersTest: test_helpers
9
- -------------------------
10
-  (0.0ms) rollback transaction
11
-  (0.0ms) begin transaction
12
- -----------------------
13
- RoutesTest: test_routes
14
- -----------------------
15
-  (0.1ms) rollback transaction
16
-  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
17
-  (0.1ms) select sqlite_version(*)
18
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
19
-  (0.0ms) SELECT version FROM "schema_migrations"
20
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
21
-  (0.1ms) begin transaction
22
- -----------------------
23
- RoutesTest: test_routes
24
- -----------------------
25
-  (0.2ms) rollback transaction
26
-  (0.0ms) begin transaction
27
- -------------------------
28
- HelpersTest: test_helpers
29
- -------------------------
30
-  (0.1ms) rollback transaction
31
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
32
-  (0.0ms) select sqlite_version(*)
33
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
34
-  (0.0ms) SELECT version FROM "schema_migrations"
35
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
36
-  (0.1ms) begin transaction
37
- -----------------------
38
- RoutesTest: test_routes
39
- -----------------------
40
-  (0.1ms) rollback transaction
41
-  (0.0ms) begin transaction
42
- -------------------------
43
- HelpersTest: test_helpers
44
- -------------------------
45
-  (0.0ms) rollback transaction
46
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
47
-  (0.0ms) select sqlite_version(*)
48
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
49
-  (0.0ms) SELECT version FROM "schema_migrations"
50
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
51
-  (0.1ms) begin transaction
52
- -----------------------
53
- RoutesTest: test_routes
54
- -----------------------
55
-  (0.1ms) rollback transaction
56
-  (0.1ms) begin transaction
57
- -------------------------
58
- HelpersTest: test_helpers
59
- -------------------------
60
-  (0.0ms) rollback transaction
61
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
62
-  (0.1ms) select sqlite_version(*)
63
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
64
-  (0.0ms) SELECT version FROM "schema_migrations"
65
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
66
-  (0.1ms) begin transaction
67
- -------------------------
68
- HelpersTest: test_helpers
69
- -------------------------
70
-  (0.0ms) rollback transaction
71
-  (0.0ms) begin transaction
72
- -----------------------
73
- RoutesTest: test_routes
74
- -----------------------
75
-  (0.1ms) rollback transaction
76
-  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
77
-  (0.0ms) select sqlite_version(*)
78
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
79
-  (0.0ms) SELECT version FROM "schema_migrations"
80
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
81
-  (0.1ms) begin transaction
82
- -----------------------
83
- RoutesTest: test_routes
84
- -----------------------
85
-  (0.1ms) rollback transaction
86
-  (0.0ms) begin transaction
87
- -------------------------
88
- HelpersTest: test_helpers
89
- -------------------------
90
-  (0.0ms) rollback transaction
91
-  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
92
-  (0.0ms) select sqlite_version(*)
93
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
94
-  (0.0ms) SELECT version FROM "schema_migrations"
95
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
96
-  (0.1ms) begin transaction
97
- -----------------------
98
- RoutesTest: test_routes
99
- -----------------------
100
-  (0.1ms) rollback transaction
101
-  (0.0ms) begin transaction
102
- -------------------------
103
- HelpersTest: test_helpers
104
- -------------------------
105
-  (0.0ms) rollback transaction
106
-  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
107
-  (0.1ms) select sqlite_version(*)
108
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
109
-  (0.0ms) SELECT version FROM "schema_migrations"
110
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
111
-  (0.1ms) begin transaction
112
- -------------------------
113
- HelpersTest: test_helpers
114
- -------------------------
115
-  (0.0ms) rollback transaction
116
-  (0.0ms) begin transaction
117
- -----------------------
118
- RoutesTest: test_routes
119
- -----------------------
120
-  (0.1ms) rollback transaction
121
-  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
122
-  (0.0ms) select sqlite_version(*)
123
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
124
-  (0.0ms) SELECT version FROM "schema_migrations"
125
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
126
-  (0.1ms) begin transaction
127
- -----------------------
128
- RoutesTest: test_routes
129
- -----------------------
130
-  (0.2ms) rollback transaction
131
-  (0.0ms) begin transaction
132
- -------------------------
133
- HelpersTest: test_helpers
134
- -------------------------
135
-  (0.1ms) rollback transaction
136
-  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
137
-  (0.0ms) select sqlite_version(*)
138
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
139
-  (0.0ms) SELECT version FROM "schema_migrations"
140
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
141
-  (0.1ms) begin transaction
142
- -----------------------
143
- RoutesTest: test_routes
144
- -----------------------
145
-  (0.1ms) rollback transaction
146
-  (0.0ms) begin transaction
147
- -------------------------
148
- HelpersTest: test_helpers
149
- -------------------------
150
-  (0.0ms) rollback transaction
151
-  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
152
-  (0.1ms) select sqlite_version(*)
153
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
154
-  (0.0ms) SELECT version FROM "schema_migrations"
155
-  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
156
-  (0.1ms) begin transaction
157
- -------------------------
158
- HelpersTest: test_helpers
159
- -------------------------
160
-  (0.0ms) rollback transaction
161
-  (0.0ms) begin transaction
162
- -----------------------
163
- RoutesTest: test_routes
164
- -----------------------
165
-  (0.1ms) rollback transaction
166
-  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
167
-  (0.0ms) select sqlite_version(*)
168
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
169
-  (0.0ms) SELECT version FROM "schema_migrations"
170
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
171
-  (0.1ms) begin transaction
172
- -------------------------
173
- HelpersTest: test_helpers
174
- -------------------------
175
-  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
176
-  (0.0ms) select sqlite_version(*)
177
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
178
-  (0.1ms) SELECT version FROM "schema_migrations"
179
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
180
-  (0.1ms) begin transaction
181
- -------------------------
182
- HelpersTest: test_helpers
183
- -------------------------
184
-  (0.1ms) rollback transaction
185
-  (0.0ms) begin transaction
186
- -----------------------
187
- RoutesTest: test_routes
188
- -----------------------
189
-  (0.1ms) rollback transaction
190
-  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
191
-  (0.0ms) select sqlite_version(*)
192
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
193
-  (0.0ms) SELECT version FROM "schema_migrations"
194
-  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
195
-  (0.1ms) begin transaction
196
- -------------------------
197
- HelpersTest: test_helpers
198
- -------------------------
199
-  (0.2ms) rollback transaction
200
-  (0.1ms) begin transaction
201
- -----------------------
202
- RoutesTest: test_routes
203
- -----------------------
204
-  (0.1ms) rollback transaction
205
-  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
206
-  (0.0ms) select sqlite_version(*)
207
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
208
-  (0.0ms) SELECT version FROM "schema_migrations"
209
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
210
-  (0.1ms) begin transaction
211
- -----------------------
212
- RoutesTest: test_routes
213
- -----------------------
214
-  (0.1ms) rollback transaction
215
-  (0.0ms) begin transaction
216
- -------------------------
217
- HelpersTest: test_helpers
218
- -------------------------
219
-  (0.0ms) rollback transaction
220
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
221
-  (0.0ms) select sqlite_version(*)
222
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
223
-  (0.0ms) SELECT version FROM "schema_migrations"
224
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
225
-  (0.1ms) begin transaction
226
- -------------------------
227
- HelpersTest: test_helpers
228
- -------------------------
229
-  (0.1ms) rollback transaction
230
-  (0.1ms) begin transaction
231
- -----------------------
232
- RoutesTest: test_routes
233
- -----------------------
234
-  (0.1ms) rollback transaction
235
-  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
236
-  (0.0ms) select sqlite_version(*)
237
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
238
-  (0.0ms) SELECT version FROM "schema_migrations"
239
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
240
-  (0.1ms) begin transaction
241
- -----------------------
242
- RoutesTest: test_routes
243
- -----------------------
244
-  (0.1ms) rollback transaction
245
-  (0.0ms) begin transaction
246
- -------------------------
247
- HelpersTest: test_helpers
248
- -------------------------
249
-  (0.0ms) rollback transaction
250
-  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
251
-  (0.0ms) select sqlite_version(*)
252
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
253
-  (0.1ms) SELECT version FROM "schema_migrations"
254
-  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
255
-  (0.1ms) begin transaction
256
- -------------------------
257
- HelpersTest: test_helpers
258
- -------------------------
259
-  (0.0ms) rollback transaction
260
-  (0.0ms) begin transaction
261
- -----------------------
262
- RoutesTest: test_routes
263
- -----------------------
264
-  (0.1ms) rollback transaction
265
-  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
266
-  (0.0ms) select sqlite_version(*)
267
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
268
-  (0.0ms) SELECT version FROM "schema_migrations"
269
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
270
-  (0.1ms) begin transaction
271
- -------------------------
272
- HelpersTest: test_helpers
273
- -------------------------
274
-  (0.1ms) rollback transaction
275
-  (0.0ms) begin transaction
276
- -----------------------
277
- RoutesTest: test_routes
278
- -----------------------
279
-  (0.1ms) rollback transaction
280
-  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
281
-  (0.0ms) select sqlite_version(*)
282
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
283
-  (0.0ms) SELECT version FROM "schema_migrations"
284
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
285
-  (1.0ms) begin transaction
286
- -----------------------
287
- RoutesTest: test_routes
288
- -----------------------
289
-  (0.1ms) rollback transaction
290
-  (0.1ms) begin transaction
291
- -------------------------
292
- HelpersTest: test_helpers
293
- -------------------------
294
-  (0.0ms) rollback transaction
295
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
296
-  (0.0ms) select sqlite_version(*)
297
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
298
-  (0.0ms) SELECT version FROM "schema_migrations"
299
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
300
-  (0.1ms) begin transaction
301
- -----------------------
302
- RoutesTest: test_routes
303
- -----------------------
304
-  (0.1ms) rollback transaction
305
-  (0.0ms) begin transaction
306
- -------------------------
307
- HelpersTest: test_helpers
308
- -------------------------
309
-  (0.0ms) rollback transaction
310
-  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
311
-  (0.1ms) select sqlite_version(*)
312
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
313
-  (0.0ms) SELECT version FROM "schema_migrations"
314
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
315
-  (0.1ms) begin transaction
316
- -------------------------
317
- HelpersTest: test_helpers
318
- -------------------------
319
-  (0.1ms) rollback transaction
320
-  (0.1ms) begin transaction
321
- -----------------------
322
- RoutesTest: test_routes
323
- -----------------------
324
-  (0.1ms) rollback transaction
@@ -1,58 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <style>
6
- body {
7
- background-color: #EFEFEF;
8
- color: #2E2F30;
9
- text-align: center;
10
- font-family: arial, sans-serif;
11
- }
12
-
13
- div.dialog {
14
- width: 25em;
15
- margin: 4em auto 0 auto;
16
- border: 1px solid #CCC;
17
- border-right-color: #999;
18
- border-left-color: #999;
19
- border-bottom-color: #BBB;
20
- border-top: #B00100 solid 4px;
21
- border-top-left-radius: 9px;
22
- border-top-right-radius: 9px;
23
- background-color: white;
24
- padding: 7px 4em 0 4em;
25
- }
26
-
27
- h1 {
28
- font-size: 100%;
29
- color: #730E15;
30
- line-height: 1.5em;
31
- }
32
-
33
- body > p {
34
- width: 33em;
35
- margin: 0 auto 1em;
36
- padding: 1em 0;
37
- background-color: #F7F7F7;
38
- border: 1px solid #CCC;
39
- border-right-color: #999;
40
- border-bottom-color: #999;
41
- border-bottom-left-radius: 4px;
42
- border-bottom-right-radius: 4px;
43
- border-top-color: #DADADA;
44
- color: #666;
45
- box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
- }
47
- </style>
48
- </head>
49
-
50
- <body>
51
- <!-- This file lives in public/404.html -->
52
- <div class="dialog">
53
- <h1>The page you were looking for doesn't exist.</h1>
54
- <p>You may have mistyped the address or the page may have moved.</p>
55
- </div>
56
- <p>If you are the application owner check the logs for more information.</p>
57
- </body>
58
- </html>
@@ -1,58 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <style>
6
- body {
7
- background-color: #EFEFEF;
8
- color: #2E2F30;
9
- text-align: center;
10
- font-family: arial, sans-serif;
11
- }
12
-
13
- div.dialog {
14
- width: 25em;
15
- margin: 4em auto 0 auto;
16
- border: 1px solid #CCC;
17
- border-right-color: #999;
18
- border-left-color: #999;
19
- border-bottom-color: #BBB;
20
- border-top: #B00100 solid 4px;
21
- border-top-left-radius: 9px;
22
- border-top-right-radius: 9px;
23
- background-color: white;
24
- padding: 7px 4em 0 4em;
25
- }
26
-
27
- h1 {
28
- font-size: 100%;
29
- color: #730E15;
30
- line-height: 1.5em;
31
- }
32
-
33
- body > p {
34
- width: 33em;
35
- margin: 0 auto 1em;
36
- padding: 1em 0;
37
- background-color: #F7F7F7;
38
- border: 1px solid #CCC;
39
- border-right-color: #999;
40
- border-bottom-color: #999;
41
- border-bottom-left-radius: 4px;
42
- border-bottom-right-radius: 4px;
43
- border-top-color: #DADADA;
44
- color: #666;
45
- box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
- }
47
- </style>
48
- </head>
49
-
50
- <body>
51
- <!-- This file lives in public/422.html -->
52
- <div class="dialog">
53
- <h1>The change you wanted was rejected.</h1>
54
- <p>Maybe you tried to change something you didn't have access to.</p>
55
- </div>
56
- <p>If you are the application owner check the logs for more information.</p>
57
- </body>
58
- </html>
@@ -1,57 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <style>
6
- body {
7
- background-color: #EFEFEF;
8
- color: #2E2F30;
9
- text-align: center;
10
- font-family: arial, sans-serif;
11
- }
12
-
13
- div.dialog {
14
- width: 25em;
15
- margin: 4em auto 0 auto;
16
- border: 1px solid #CCC;
17
- border-right-color: #999;
18
- border-left-color: #999;
19
- border-bottom-color: #BBB;
20
- border-top: #B00100 solid 4px;
21
- border-top-left-radius: 9px;
22
- border-top-right-radius: 9px;
23
- background-color: white;
24
- padding: 7px 4em 0 4em;
25
- }
26
-
27
- h1 {
28
- font-size: 100%;
29
- color: #730E15;
30
- line-height: 1.5em;
31
- }
32
-
33
- body > p {
34
- width: 33em;
35
- margin: 0 auto 1em;
36
- padding: 1em 0;
37
- background-color: #F7F7F7;
38
- border: 1px solid #CCC;
39
- border-right-color: #999;
40
- border-bottom-color: #999;
41
- border-bottom-left-radius: 4px;
42
- border-bottom-right-radius: 4px;
43
- border-top-color: #DADADA;
44
- color: #666;
45
- box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
- }
47
- </style>
48
- </head>
49
-
50
- <body>
51
- <!-- This file lives in public/500.html -->
52
- <div class="dialog">
53
- <h1>We're sorry, but something went wrong.</h1>
54
- </div>
55
- <p>If you are the application owner check the logs for more information.</p>
56
- </body>
57
- </html>
File without changes
data/test/helpers_test.rb DELETED
@@ -1,60 +0,0 @@
1
- require 'test_helper'
2
-
3
- class HelpersTest < ActionView::TestCase
4
- include Rails.application.routes.url_helpers
5
-
6
- test 'helpers' do
7
- I18n.available_locales.each do |locale|
8
- I18n.locale = locale
9
- assert_equal(
10
- "/#{locale}/#{I18n.t('routes.namespace')}/#{I18n.t('routes.nested')}",
11
- namespace_nested_path
12
- )
13
- assert_equal(
14
- "/#{locale}/#{I18n.t('routes.namespace')}/#{I18n.t('routes.resources')}",
15
- namespace_resources_path
16
- )
17
- assert_equal(
18
- "/#{locale}/#{I18n.t('routes.namespace')}/#{I18n.t('routes.resources')}/#{I18n.t('routes.new')}",
19
- new_namespace_resource_path
20
- )
21
- assert_equal(
22
- "/#{locale}/#{I18n.t('routes.namespace')}/#{I18n.t('routes.resources')}/10/#{I18n.t('routes.edit')}",
23
- edit_namespace_resource_path(10)
24
- )
25
- assert_equal(
26
- "/#{locale}/#{I18n.t('routes.simple')}",
27
- simple_path
28
- )
29
- assert_equal(
30
- "/#{locale}/complex/1/2",
31
- complex_path(1, 2)
32
- )
33
- assert_equal(
34
- "/#{locale}/#{I18n.t('routes.resources')}",
35
- resources_path
36
- )
37
- assert_equal(
38
- "/#{locale}/#{I18n.t('routes.resources')}/#{I18n.t('routes.new')}",
39
- new_resource_path
40
- )
41
- assert_equal(
42
- "/#{locale}/#{I18n.t('routes.resources')}/10/#{I18n.t('routes.edit')}",
43
- edit_resource_path(10)
44
- )
45
- assert_equal(
46
- "/#{locale}/#{I18n.t('routes.resources')}/10/#{I18n.t('routes.nesteds')}",
47
- resource_nesteds_path(10)
48
- )
49
- assert_equal(
50
- "/#{locale}/#{I18n.t('routes.resources')}/10/#{I18n.t('routes.nesteds')}/#{I18n.t('routes.new')}",
51
- new_resource_nested_path(10)
52
- )
53
- assert_equal(
54
- "/#{locale}/#{I18n.t('routes.resources')}/10/#{I18n.t('routes.nesteds')}/4/#{I18n.t('routes.edit')}",
55
- edit_resource_nested_path(10, 4)
56
- )
57
- end
58
- end
59
-
60
- end
data/test/routes_test.rb DELETED
@@ -1,59 +0,0 @@
1
- require 'test_helper'
2
-
3
- class RoutesTest < ActionDispatch::IntegrationTest
4
-
5
- test 'routes' do
6
- I18n.available_locales.each do |locale|
7
- I18n.locale = locale
8
- assert_recognizes(
9
- { controller: 'namespace/pages', action: 'nested', locale: locale.to_s },
10
- "/#{locale}/#{I18n.t('routes.namespace')}/#{I18n.t('routes.nested')}"
11
- )
12
- assert_recognizes(
13
- { controller: 'namespace/resources', action: 'index', locale: locale.to_s },
14
- "/#{locale}/#{I18n.t('routes.namespace')}/#{I18n.t('routes.resources')}"
15
- )
16
- assert_recognizes(
17
- { controller: 'namespace/resources', action: 'new', locale: locale.to_s },
18
- "/#{locale}/#{I18n.t('routes.namespace')}/#{I18n.t('routes.resources')}/#{I18n.t('routes.new')}"
19
- )
20
- assert_recognizes(
21
- { controller: 'namespace/resources', action: 'edit', locale: locale.to_s, id: '10' },
22
- "/#{locale}/#{I18n.t('routes.namespace')}/#{I18n.t('routes.resources')}/10/#{I18n.t('routes.edit')}"
23
- )
24
- assert_recognizes(
25
- { controller: 'pages', action: 'simple', locale: locale.to_s },
26
- "/#{locale}/#{I18n.t('routes.simple')}"
27
- )
28
- assert_recognizes(
29
- { controller: 'pages', action: 'complex', locale: locale.to_s, p1: '1', p2: '2' },
30
- "/#{locale}/complex/1/2"
31
- )
32
- assert_recognizes(
33
- { controller: 'resources', action: 'index', locale: locale.to_s },
34
- "/#{locale}/#{I18n.t('routes.resources')}"
35
- )
36
- assert_recognizes(
37
- { controller: 'resources', action: 'new', locale: locale.to_s },
38
- "/#{locale}/#{I18n.t('routes.resources')}/#{I18n.t('routes.new')}"
39
- )
40
- assert_recognizes(
41
- { controller: 'resources', action: 'edit', locale: locale.to_s, id: '10' },
42
- "/#{locale}/#{I18n.t('routes.resources')}/10/#{I18n.t('routes.edit')}"
43
- )
44
- assert_recognizes(
45
- { controller: 'nesteds', action: 'index', locale: locale.to_s, resource_id: '10' },
46
- "/#{locale}/#{I18n.t('routes.resources')}/10/#{I18n.t('routes.nesteds')}"
47
- )
48
- assert_recognizes(
49
- { controller: 'nesteds', action: 'new', locale: locale.to_s, resource_id: '10' },
50
- "/#{locale}/#{I18n.t('routes.resources')}/10/#{I18n.t('routes.nesteds')}/#{I18n.t('routes.new')}"
51
- )
52
- assert_recognizes(
53
- { controller: 'nesteds', action: 'edit', locale: locale.to_s, resource_id: '10', id: '4' },
54
- "/#{locale}/#{I18n.t('routes.resources')}/10/#{I18n.t('routes.nesteds')}/4/#{I18n.t('routes.edit')}"
55
- )
56
- end
57
- end
58
-
59
- end
data/test/test_helper.rb DELETED
@@ -1,21 +0,0 @@
1
- # Configure Rails Environment
2
- ENV['RAILS_ENV'] = 'test'
3
-
4
- require File.expand_path('../dummy/config/environment.rb', __FILE__)
5
- require 'rails/test_help'
6
-
7
- Rails.backtrace_cleaner.remove_silencers!
8
-
9
- # Load support files
10
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
-
12
- # Load fixtures from the engine
13
- if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
- ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
15
- end
16
-
17
- # Load database
18
- config = YAML::load(File.read(File.expand_path('../dummy/config/database.yml', __FILE__)))
19
- config['test']['adapter'] = 'jdbcsqlite3' if RUBY_PLATFORM == 'java'
20
- ActiveRecord::Base.establish_connection(config['test'])
21
- load(File.expand_path('../dummy/db/schema.rb', __FILE__))