rails_tasks 0.0.1 → 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.
- checksums.yaml +4 -4
- data/lib/rails_tasks.rb +1 -5
- data/lib/rails_tasks/version.rb +1 -1
- data/test/dummy/log/test.log +64 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a3ae61d545a2e4fdf009b78c7ebd8f9dc3d589f
|
4
|
+
data.tar.gz: 2799522212c4b411c7dd656ba7875ade48f143c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a662a381dd47c07569ecdb8325376dd3e01fb9863b957d79a7918f82201be6c50e084c2400ad41008b21290714882fcedec6069e33cd7ef01f6bf52dd58f84a
|
7
|
+
data.tar.gz: 6e12f38784489760c73895db4ee0b3b754c140141cdb532bd72af186c69f9e83a55d37018fc092a6a02eebdfef61791b68e6135302899c6ee77125f4d844b8de
|
data/lib/rails_tasks.rb
CHANGED
@@ -10,11 +10,7 @@ module RailsTasks
|
|
10
10
|
const_name = "#{controller.to_s.camelize}Controller"
|
11
11
|
controller = ActiveSupport::Dependencies.constantize(const_name)
|
12
12
|
|
13
|
-
new_env = env.dup
|
14
|
-
new_env["action_dispatch.request.path_parameters"] ||= {}
|
15
|
-
new_env["rack.input"] ||= Rack::RewindableInput.new($stdin)
|
16
|
-
new_env["REQUEST_METHOD"] ||= 'GET'
|
17
|
-
|
13
|
+
new_env = request.env.dup
|
18
14
|
new_env["action_dispatch.request.path_parameters"].merge! options
|
19
15
|
|
20
16
|
s, h, r = controller.action(options[:action]).call(new_env)
|
data/lib/rails_tasks/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -194,5 +194,69 @@ Completed 200 OK in 15ms (Views: 14.7ms | ActiveRecord: 0.0ms)
|
|
194
194
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
195
195
|
--------------------------
|
196
196
|
RailsTasksTest: test_truth
|
197
|
+
--------------------------
|
198
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
199
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
200
|
+
-----------------------------------------
|
201
|
+
InnerControllerTest: test_should_get_show
|
202
|
+
-----------------------------------------
|
203
|
+
Processing by InnerController#show as HTML
|
204
|
+
Rendered inner/show.html.erb within layouts/inner (1.4ms)
|
205
|
+
Completed 200 OK in 39ms (Views: 39.0ms | ActiveRecord: 0.0ms)
|
206
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
207
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
208
|
+
-----------------------------------------
|
209
|
+
OuterControllerTest: test_should_get_show
|
210
|
+
-----------------------------------------
|
211
|
+
Processing by OuterController#show as HTML
|
212
|
+
Processing by InnerController#show as HTML
|
213
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
214
|
+
Completed 200 OK in 32ms (Views: 31.6ms | ActiveRecord: 0.0ms)
|
215
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
216
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
217
|
+
--------------------------
|
218
|
+
RailsTasksTest: test_truth
|
219
|
+
--------------------------
|
220
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
221
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
222
|
+
-----------------------------------------
|
223
|
+
InnerControllerTest: test_should_get_show
|
224
|
+
-----------------------------------------
|
225
|
+
Processing by InnerController#show as HTML
|
226
|
+
Rendered inner/show.html.erb within layouts/inner (1.0ms)
|
227
|
+
Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
|
228
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
229
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
230
|
+
-----------------------------------------
|
231
|
+
OuterControllerTest: test_should_get_show
|
232
|
+
-----------------------------------------
|
233
|
+
Processing by OuterController#show as HTML
|
234
|
+
Completed 500 Internal Server Error in 20ms
|
235
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
236
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
237
|
+
--------------------------
|
238
|
+
RailsTasksTest: test_truth
|
239
|
+
--------------------------
|
240
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
241
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
242
|
+
-----------------------------------------
|
243
|
+
InnerControllerTest: test_should_get_show
|
244
|
+
-----------------------------------------
|
245
|
+
Processing by InnerController#show as HTML
|
246
|
+
Rendered inner/show.html.erb within layouts/inner (0.9ms)
|
247
|
+
Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)
|
248
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
249
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
250
|
+
-----------------------------------------
|
251
|
+
OuterControllerTest: test_should_get_show
|
252
|
+
-----------------------------------------
|
253
|
+
Processing by OuterController#show as HTML
|
254
|
+
Processing by InnerController#show as HTML
|
255
|
+
Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
256
|
+
Completed 200 OK in 15ms (Views: 14.9ms | ActiveRecord: 0.0ms)
|
257
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
258
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
259
|
+
--------------------------
|
260
|
+
RailsTasksTest: test_truth
|
197
261
|
--------------------------
|
198
262
|
[1m[35m (0.1ms)[0m rollback transaction
|