locales_panel 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +46 -0
- data/app/controllers/locales_controller.rb +1 -1
- data/app/views/locales/edit.html.erb +1 -1
- data/lib/locales_panel/version.rb +1 -1
- metadata +46 -107
- data/test/dummy/README.rdoc +0 -28
- data/test/dummy/Rakefile +0 -6
- data/test/dummy/app/assets/javascripts/application.js +0 -13
- data/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/test/dummy/app/controllers/application_controller.rb +0 -5
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/bin/bundle +0 -3
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/bin/setup +0 -29
- data/test/dummy/config/application.rb +0 -29
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -38
- data/test/dummy/config/environments/production.rb +0 -76
- data/test/dummy/config/environments/test.rb +0 -42
- data/test/dummy/config/initializers/assets.rb +0 -11
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/mime_types.rb +0 -4
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -9
- data/test/dummy/config/locales/en.yml +0 -2
- data/test/dummy/config/locales/pl.yml +0 -2
- data/test/dummy/config/routes.rb +0 -56
- data/test/dummy/config/secrets.yml +0 -22
- data/test/dummy/config.ru +0 -4
- data/test/dummy/log/development.log +0 -837
- data/test/dummy/log/test.log +0 -338
- data/test/dummy/public/404.html +0 -67
- data/test/dummy/public/422.html +0 -67
- data/test/dummy/public/500.html +0 -66
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/integration/locales/en.yml +0 -2
- data/test/integration/locales/pl.yml +0 -2
- data/test/integration/locales_test.rb +0 -32
- data/test/test_helper.rb +0 -18
data/test/dummy/log/test.log
DELETED
@@ -1,338 +0,0 @@
|
|
1
|
-
----------------------------
|
2
|
-
LocalesPanelTest: test_truth
|
3
|
-
----------------------------
|
4
|
-
---------------------------------
|
5
|
-
LocalesPanelTest: test_show_panel
|
6
|
-
---------------------------------
|
7
|
-
---------------------------------
|
8
|
-
LocalesPanelTest: test_show_panel
|
9
|
-
---------------------------------
|
10
|
-
---------------------------------
|
11
|
-
LocalesPanelTest: test_show_panel
|
12
|
-
---------------------------------
|
13
|
-
---------------------------------
|
14
|
-
LocalesPanelTest: test_show_panel
|
15
|
-
---------------------------------
|
16
|
-
Started GET "/locales_panel" for 127.0.0.1 at 2015-04-01 14:04:02 +0200
|
17
|
-
---------------------------------
|
18
|
-
LocalesPanelTest: test_show_panel
|
19
|
-
---------------------------------
|
20
|
-
Started GET "/locales_panel" for 127.0.0.1 at 2015-04-01 14:06:54 +0200
|
21
|
-
---------------------------------
|
22
|
-
LocalesPanelTest: test_show_panel
|
23
|
-
---------------------------------
|
24
|
-
Started GET "/locales_panel" for 127.0.0.1 at 2015-04-01 14:07:05 +0200
|
25
|
-
---------------------------------
|
26
|
-
LocalesPanelTest: test_show_panel
|
27
|
-
---------------------------------
|
28
|
-
Started GET "/locales_panel" for 127.0.0.1 at 2015-04-01 14:07:31 +0200
|
29
|
-
Processing by LocalesPanelsController#show as HTML
|
30
|
-
Rendered text template (0.0ms)
|
31
|
-
Completed 200 OK in 14ms (Views: 13.7ms)
|
32
|
-
---------------------------------
|
33
|
-
LocalesPanelTest: test_show_panel
|
34
|
-
---------------------------------
|
35
|
-
Started GET "/locales_panel" for 127.0.0.1 at 2015-04-01 14:23:07 +0200
|
36
|
-
Processing by LocalesPanelsController#show as HTML
|
37
|
-
Rendered text template (0.6ms)
|
38
|
-
Completed 200 OK in 1453ms (Views: 14.8ms)
|
39
|
-
---------------------------------
|
40
|
-
LocalesPanelTest: test_show_panel
|
41
|
-
---------------------------------
|
42
|
-
Started GET "/locales_panel" for 127.0.0.1 at 2015-04-01 14:23:11 +0200
|
43
|
-
Processing by LocalesPanelsController#show as HTML
|
44
|
-
Rendered text template (0.3ms)
|
45
|
-
Completed 200 OK in 30550ms (Views: 11.2ms)
|
46
|
-
---------------------------------
|
47
|
-
LocalesPanelTest: test_show_panel
|
48
|
-
---------------------------------
|
49
|
-
Started GET "/locales_panel" for 127.0.0.1 at 2015-04-01 14:26:32 +0200
|
50
|
-
Processing by LocalesPanelsController#show as HTML
|
51
|
-
Rendered text template (0.2ms)
|
52
|
-
Completed 200 OK in 1452853ms (Views: 9.4ms)
|
53
|
-
---------------------------------
|
54
|
-
LocalesPanelTest: test_show_panel
|
55
|
-
---------------------------------
|
56
|
-
Started GET "/locales_panel" for 127.0.0.1 at 2015-04-01 14:50:48 +0200
|
57
|
-
Processing by LocalesPanelsController#show as HTML
|
58
|
-
Rendered text template (0.3ms)
|
59
|
-
Completed 200 OK in 16973ms (Views: 8.5ms)
|
60
|
-
---------------------------------
|
61
|
-
LocalesPanelTest: test_show_panel
|
62
|
-
---------------------------------
|
63
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 15:09:09 +0200
|
64
|
-
---------------------------------
|
65
|
-
LocalesPanelTest: test_show_panel
|
66
|
-
---------------------------------
|
67
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 15:10:23 +0200
|
68
|
-
Processing by LocalesController#edit as HTML
|
69
|
-
Rendered text template (0.0ms)
|
70
|
-
Completed 200 OK in 5ms (Views: 4.7ms)
|
71
|
-
---------------------------------
|
72
|
-
LocalesPanelTest: test_show_panel
|
73
|
-
---------------------------------
|
74
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 15:37:20 +0200
|
75
|
-
Processing by LocalesController#edit as HTML
|
76
|
-
Rendered text template (0.0ms)
|
77
|
-
Completed 200 OK in 5ms (Views: 4.3ms)
|
78
|
-
---------------------------------
|
79
|
-
LocalesPanelTest: test_show_panel
|
80
|
-
---------------------------------
|
81
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 15:42:26 +0200
|
82
|
-
Processing by LocalesController#edit as HTML
|
83
|
-
Rendered text template (0.0ms)
|
84
|
-
Completed 200 OK in 4ms (Views: 4.3ms)
|
85
|
-
---------------------------------
|
86
|
-
LocalesPanelTest: test_show_panel
|
87
|
-
---------------------------------
|
88
|
-
---------------------------------
|
89
|
-
LocalesPanelTest: test_show_panel
|
90
|
-
---------------------------------
|
91
|
-
-------------------------------
|
92
|
-
NavigationTest: test_show_panel
|
93
|
-
-------------------------------
|
94
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 15:50:50 +0200
|
95
|
-
Processing by LocalesController#edit as HTML
|
96
|
-
Rendered text template (0.0ms)
|
97
|
-
Completed 200 OK in 5ms (Views: 4.9ms)
|
98
|
-
-------------------------------
|
99
|
-
NavigationTest: test_show_panel
|
100
|
-
-------------------------------
|
101
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 15:51:02 +0200
|
102
|
-
Processing by LocalesController#edit as HTML
|
103
|
-
Rendered text template (0.0ms)
|
104
|
-
Completed 200 OK in 7ms (Views: 7.0ms)
|
105
|
-
----------------------
|
106
|
-
LocalesTest: test_edit
|
107
|
-
----------------------
|
108
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 15:52:50 +0200
|
109
|
-
Processing by LocalesController#edit as HTML
|
110
|
-
Rendered text template (0.0ms)
|
111
|
-
Completed 200 OK in 6ms (Views: 6.0ms)
|
112
|
-
----------------------
|
113
|
-
LocalesTest: test_edit
|
114
|
-
----------------------
|
115
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 15:56:20 +0200
|
116
|
-
Processing by LocalesController#edit as HTML
|
117
|
-
Rendered text template (0.0ms)
|
118
|
-
Completed 200 OK in 6ms (Views: 5.5ms)
|
119
|
-
----------------------
|
120
|
-
LocalesTest: test_edit
|
121
|
-
----------------------
|
122
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 18:06:05 +0200
|
123
|
-
Processing by LocalesController#edit as HTML
|
124
|
-
Rendered text template (0.0ms)
|
125
|
-
Completed 200 OK in 6ms (Views: 6.0ms)
|
126
|
-
----------------------
|
127
|
-
LocalesTest: test_edit
|
128
|
-
----------------------
|
129
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 18:07:58 +0200
|
130
|
-
Processing by LocalesController#edit as HTML
|
131
|
-
Rendered text template (0.0ms)
|
132
|
-
Completed 200 OK in 4ms (Views: 4.3ms)
|
133
|
-
----------------------
|
134
|
-
LocalesTest: test_edit
|
135
|
-
----------------------
|
136
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 18:08:16 +0200
|
137
|
-
Processing by LocalesController#edit as HTML
|
138
|
-
Rendered text template (0.2ms)
|
139
|
-
Completed 200 OK in 4ms (Views: 4.2ms)
|
140
|
-
----------------------
|
141
|
-
LocalesTest: test_edit
|
142
|
-
----------------------
|
143
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 18:38:06 +0200
|
144
|
-
Processing by LocalesController#edit as HTML
|
145
|
-
Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (1.5ms)
|
146
|
-
Completed 200 OK in 30ms (Views: 30.0ms)
|
147
|
-
------------------------
|
148
|
-
LocalesTest: test_update
|
149
|
-
------------------------
|
150
|
-
----------------------
|
151
|
-
LocalesTest: test_edit
|
152
|
-
----------------------
|
153
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 18:55:16 +0200
|
154
|
-
Processing by LocalesController#edit as HTML
|
155
|
-
Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (2.6ms)
|
156
|
-
Completed 200 OK in 15ms (Views: 14.7ms)
|
157
|
-
------------------------
|
158
|
-
LocalesTest: test_update
|
159
|
-
------------------------
|
160
|
-
----------------------
|
161
|
-
LocalesTest: test_edit
|
162
|
-
----------------------
|
163
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 20:41:57 +0200
|
164
|
-
Processing by LocalesController#edit as HTML
|
165
|
-
Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (1.5ms)
|
166
|
-
Completed 200 OK in 20ms (Views: 19.4ms)
|
167
|
-
------------------------
|
168
|
-
LocalesTest: test_update
|
169
|
-
------------------------
|
170
|
-
Started POST "/locales" for 127.0.0.1 at 2015-04-01 20:41:57 +0200
|
171
|
-
----------------------
|
172
|
-
LocalesTest: test_edit
|
173
|
-
----------------------
|
174
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 20:44:15 +0200
|
175
|
-
Processing by LocalesController#edit as HTML
|
176
|
-
Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (1.8ms)
|
177
|
-
Completed 200 OK in 14ms (Views: 13.9ms)
|
178
|
-
------------------------
|
179
|
-
LocalesTest: test_update
|
180
|
-
------------------------
|
181
|
-
Started PUT "/locales" for 127.0.0.1 at 2015-04-01 20:44:43 +0200
|
182
|
-
Processing by LocalesController#update as HTML
|
183
|
-
Parameters: {"files"=>[{"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/en.yml", "content"=>"en:\\r\\n hello: \"Edited\""}, {"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/pl.yml", "content"=>"en:\\r\\n hello: \"Zmienione\""}]}
|
184
|
-
Completed 500 Internal Server Error in 7ms
|
185
|
-
------------------------
|
186
|
-
LocalesTest: test_update
|
187
|
-
------------------------
|
188
|
-
----------------------
|
189
|
-
LocalesTest: test_edit
|
190
|
-
----------------------
|
191
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 20:57:54 +0200
|
192
|
-
Processing by LocalesController#edit as HTML
|
193
|
-
Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (5.5ms)
|
194
|
-
Completed 200 OK in 33ms (Views: 32.6ms)
|
195
|
-
----------------------
|
196
|
-
LocalesTest: test_edit
|
197
|
-
----------------------
|
198
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 20:58:37 +0200
|
199
|
-
Processing by LocalesController#edit as HTML
|
200
|
-
Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (1.6ms)
|
201
|
-
Completed 200 OK in 18ms (Views: 18.1ms)
|
202
|
-
------------------------
|
203
|
-
LocalesTest: test_update
|
204
|
-
------------------------
|
205
|
-
----------------------
|
206
|
-
LocalesTest: test_edit
|
207
|
-
----------------------
|
208
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 21:00:05 +0200
|
209
|
-
Processing by LocalesController#edit as HTML
|
210
|
-
Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (1.5ms)
|
211
|
-
Completed 200 OK in 13ms (Views: 13.0ms)
|
212
|
-
------------------------
|
213
|
-
LocalesTest: test_update
|
214
|
-
------------------------
|
215
|
-
----------------------
|
216
|
-
LocalesTest: test_edit
|
217
|
-
----------------------
|
218
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 21:01:09 +0200
|
219
|
-
Processing by LocalesController#edit as HTML
|
220
|
-
Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (1.8ms)
|
221
|
-
Completed 200 OK in 20ms (Views: 19.9ms)
|
222
|
-
------------------------
|
223
|
-
LocalesTest: test_update
|
224
|
-
------------------------
|
225
|
-
----------------------
|
226
|
-
LocalesTest: test_edit
|
227
|
-
----------------------
|
228
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 21:01:39 +0200
|
229
|
-
Processing by LocalesController#edit as HTML
|
230
|
-
Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (1.4ms)
|
231
|
-
Completed 200 OK in 15ms (Views: 14.6ms)
|
232
|
-
------------------------
|
233
|
-
LocalesTest: test_update
|
234
|
-
------------------------
|
235
|
-
Started POST "/locales" for 127.0.0.1 at 2015-04-01 21:01:39 +0200
|
236
|
-
----------------------
|
237
|
-
LocalesTest: test_edit
|
238
|
-
----------------------
|
239
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 21:01:53 +0200
|
240
|
-
Processing by LocalesController#edit as HTML
|
241
|
-
Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (1.7ms)
|
242
|
-
Completed 200 OK in 13ms (Views: 12.9ms)
|
243
|
-
------------------------
|
244
|
-
LocalesTest: test_update
|
245
|
-
------------------------
|
246
|
-
Started PUT "/locales" for 127.0.0.1 at 2015-04-01 21:01:53 +0200
|
247
|
-
Processing by LocalesController#update as HTML
|
248
|
-
Parameters: {"files"=>[{"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/en.yml", "content"=>"en:\\r\\n hello: \"Edited\""}, {"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/pl.yml", "content"=>"en:\\r\\n hello: \"Zmienione\""}]}
|
249
|
-
Completed 500 Internal Server Error in 7ms
|
250
|
-
----------------------
|
251
|
-
LocalesTest: test_edit
|
252
|
-
----------------------
|
253
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 22:36:16 +0200
|
254
|
-
Processing by LocalesController#edit as HTML
|
255
|
-
Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (2.1ms)
|
256
|
-
Completed 200 OK in 21ms (Views: 20.2ms)
|
257
|
-
------------------------
|
258
|
-
LocalesTest: test_update
|
259
|
-
------------------------
|
260
|
-
Started PUT "/locales" for 127.0.0.1 at 2015-04-01 22:36:16 +0200
|
261
|
-
Processing by LocalesController#update as HTML
|
262
|
-
Parameters: {"files"=>[{"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/en.yml", "content"=>"en:\\r\\n hello: \"Edited\""}, {"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/pl.yml", "content"=>"en:\\r\\n hello: \"Zmienione\""}]}
|
263
|
-
Completed 500 Internal Server Error in 16855ms
|
264
|
-
----------------------
|
265
|
-
LocalesTest: test_edit
|
266
|
-
----------------------
|
267
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 22:36:49 +0200
|
268
|
-
Processing by LocalesController#edit as HTML
|
269
|
-
Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (1.8ms)
|
270
|
-
Completed 200 OK in 13ms (Views: 12.5ms)
|
271
|
-
------------------------
|
272
|
-
LocalesTest: test_update
|
273
|
-
------------------------
|
274
|
-
Started PUT "/locales" for 127.0.0.1 at 2015-04-01 22:36:49 +0200
|
275
|
-
Processing by LocalesController#update as HTML
|
276
|
-
Parameters: {"files"=>[{"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/en.yml", "content"=>"en:\\r\\n hello: \"Edited\""}, {"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/pl.yml", "content"=>"en:\\r\\n hello: \"Zmienione\""}]}
|
277
|
-
Redirected to
|
278
|
-
Completed 500 Internal Server Error in 5ms
|
279
|
-
----------------------
|
280
|
-
LocalesTest: test_edit
|
281
|
-
----------------------
|
282
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 22:37:08 +0200
|
283
|
-
Processing by LocalesController#edit as HTML
|
284
|
-
Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (1.5ms)
|
285
|
-
Completed 200 OK in 14ms (Views: 13.7ms)
|
286
|
-
------------------------
|
287
|
-
LocalesTest: test_update
|
288
|
-
------------------------
|
289
|
-
Started PUT "/locales" for 127.0.0.1 at 2015-04-01 22:37:08 +0200
|
290
|
-
Processing by LocalesController#update as HTML
|
291
|
-
Parameters: {"files"=>[{"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/en.yml", "content"=>"en:\\r\\n hello: \"Edited\""}, {"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/pl.yml", "content"=>"en:\\r\\n hello: \"Zmienione\""}]}
|
292
|
-
Redirected to http://www.example.com/locales/edit
|
293
|
-
Completed 302 Found in 1ms
|
294
|
-
----------------------
|
295
|
-
LocalesTest: test_edit
|
296
|
-
----------------------
|
297
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 22:38:56 +0200
|
298
|
-
Processing by LocalesController#edit as HTML
|
299
|
-
Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (4.0ms)
|
300
|
-
Completed 200 OK in 17ms (Views: 17.0ms)
|
301
|
-
------------------------
|
302
|
-
LocalesTest: test_update
|
303
|
-
------------------------
|
304
|
-
Started PUT "/locales" for 127.0.0.1 at 2015-04-01 22:38:56 +0200
|
305
|
-
Processing by LocalesController#update as HTML
|
306
|
-
Parameters: {"files"=>[{"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/en.yml", "content"=>"en:\\r\\n hello: \"Edited\""}, {"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/pl.yml", "content"=>"en:\\r\\n hello: \"Zmienione\""}]}
|
307
|
-
Redirected to http://www.example.com/locales/edit
|
308
|
-
Completed 302 Found in 1ms
|
309
|
-
----------------------
|
310
|
-
LocalesTest: test_edit
|
311
|
-
----------------------
|
312
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-01 22:42:02 +0200
|
313
|
-
Processing by LocalesController#edit as HTML
|
314
|
-
Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (1.6ms)
|
315
|
-
Completed 200 OK in 13ms (Views: 12.7ms)
|
316
|
-
------------------------
|
317
|
-
LocalesTest: test_update
|
318
|
-
------------------------
|
319
|
-
Started PUT "/locales" for 127.0.0.1 at 2015-04-01 22:42:02 +0200
|
320
|
-
Processing by LocalesController#update as HTML
|
321
|
-
Parameters: {"files"=>[{"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/en.yml", "content"=>"en:\r\n hello: \"Edited\""}, {"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/pl.yml", "content"=>"pl:\r\n hello: \"Zmienione\""}]}
|
322
|
-
Redirected to http://www.example.com/locales/edit
|
323
|
-
Completed 302 Found in 1ms
|
324
|
-
----------------------
|
325
|
-
LocalesTest: test_edit
|
326
|
-
----------------------
|
327
|
-
Started GET "/locales/edit" for 127.0.0.1 at 2015-04-02 18:46:46 +0200
|
328
|
-
Processing by LocalesController#edit as HTML
|
329
|
-
Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (2.0ms)
|
330
|
-
Completed 200 OK in 17ms (Views: 16.7ms)
|
331
|
-
------------------------
|
332
|
-
LocalesTest: test_update
|
333
|
-
------------------------
|
334
|
-
Started PUT "/locales" for 127.0.0.1 at 2015-04-02 18:46:46 +0200
|
335
|
-
Processing by LocalesController#update as HTML
|
336
|
-
Parameters: {"files"=>[{"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/en.yml", "content"=>"en:\r\n hello: \"Edited\""}, {"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/pl.yml", "content"=>"pl:\r\n hello: \"Zmienione\""}]}
|
337
|
-
Redirected to http://www.example.com/locales/edit
|
338
|
-
Completed 302 Found in 1ms
|
data/test/dummy/public/404.html
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
body {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body>
|
58
|
-
<!-- This file lives in public/404.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
-
</div>
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
65
|
-
</div>
|
66
|
-
</body>
|
67
|
-
</html>
|
data/test/dummy/public/422.html
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The change you wanted was rejected (422)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
body {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body>
|
58
|
-
<!-- This file lives in public/422.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>The change you wanted was rejected.</h1>
|
62
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
-
</div>
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
65
|
-
</div>
|
66
|
-
</body>
|
67
|
-
</html>
|
data/test/dummy/public/500.html
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>We're sorry, but something went wrong (500)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
body {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body>
|
58
|
-
<!-- This file lives in public/500.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>We're sorry, but something went wrong.</h1>
|
62
|
-
</div>
|
63
|
-
<p>If you are the application owner check the logs for more information.</p>
|
64
|
-
</div>
|
65
|
-
</body>
|
66
|
-
</html>
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,32 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class LocalesTest < ActionDispatch::IntegrationTest
|
4
|
-
DUMMY_CONFIG_DIR = File.expand_path('../../dummy/config', __FILE__)
|
5
|
-
|
6
|
-
def backup_dummy_locales
|
7
|
-
FileUtils.rm_rf DUMMY_CONFIG_DIR+'/locales_backup'
|
8
|
-
FileUtils.cp_r DUMMY_CONFIG_DIR+'/locales', DUMMY_CONFIG_DIR+'/locales_backup'
|
9
|
-
end
|
10
|
-
|
11
|
-
def restore_dummy_locales
|
12
|
-
FileUtils.rm_rf DUMMY_CONFIG_DIR+'/locales'
|
13
|
-
FileUtils.cp_r DUMMY_CONFIG_DIR+'/locales_backup', DUMMY_CONFIG_DIR+'/locales'
|
14
|
-
FileUtils.rm_rf DUMMY_CONFIG_DIR+'/locales_backup'
|
15
|
-
end
|
16
|
-
|
17
|
-
test "edit" do
|
18
|
-
get edit_locales_path
|
19
|
-
assert response.body['en']
|
20
|
-
assert response.body['Hello world']
|
21
|
-
assert response.body['pl']
|
22
|
-
assert response.body['Witaj świecie']
|
23
|
-
end
|
24
|
-
|
25
|
-
test "update" do
|
26
|
-
backup_dummy_locales
|
27
|
-
put locales_path, files: [{path: DUMMY_CONFIG_DIR+'/locales/en.yml', content: "en:\r\n hello: \"Edited\""}, {path: DUMMY_CONFIG_DIR+'/locales/pl.yml', content: "pl:\r\n hello: \"Zmienione\""}]
|
28
|
-
assert_equal "en:\r\n hello: \"Edited\"", File.read(DUMMY_CONFIG_DIR+'/locales/en.yml')
|
29
|
-
assert_equal "pl:\r\n hello: \"Zmienione\"", File.read(DUMMY_CONFIG_DIR+'/locales/pl.yml')
|
30
|
-
restore_dummy_locales
|
31
|
-
end
|
32
|
-
end
|
data/test/test_helper.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# Configure Rails Environment
|
2
|
-
ENV["RAILS_ENV"] = "test"
|
3
|
-
|
4
|
-
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
5
|
-
require "rails/test_help"
|
6
|
-
|
7
|
-
# Filter out Minitest backtrace while allowing backtrace from other libraries
|
8
|
-
# to be shown.
|
9
|
-
Minitest.backtrace_filter = Minitest::BacktraceFilter.new
|
10
|
-
|
11
|
-
# Load support files
|
12
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
13
|
-
|
14
|
-
# Load fixtures from the engine
|
15
|
-
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
|
16
|
-
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
17
|
-
ActiveSupport::TestCase.fixtures :all
|
18
|
-
end
|