restful_controller 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/restful/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +326 -0
- metadata +24 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96495291f7c6fc588ba0ab6b78abbd2f4bb770d9
|
4
|
+
data.tar.gz: 29039ed3b70521b5300936d3f315416d97cb9263
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17227ee0aa864e192759081eb36a00e3e874bfd7b46736a90a9c3a9faf41fef4e6f491423bc6bfd972bdb43e082121def309d670b98aeac605cd4a918d156a72
|
7
|
+
data.tar.gz: 089528b0ea4dd812e6d89d50dfa24603cb0216821605ccf9ba13da65ec599de698d61d67d86e6013501e0a4ce97ea0e48fa384005e92568b000faf702e360baf
|
data/lib/restful/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -89436,6 +89436,332 @@ Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.2ms)
|
|
89436
89436
|
---------------------------------------------------------------------------------
|
89437
89437
|
DocumentsController::base actions::update: test_0003_raise exception on not found
|
89438
89438
|
---------------------------------------------------------------------------------
|
89439
|
+
Processing by DocumentsController#update as HTML
|
89440
|
+
Parameters: {"id"=>"1"}
|
89441
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "1"]]
|
89442
|
+
Completed 404 Not Found in 1ms
|
89443
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
89444
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
89445
|
+
[1m[35m (0.1ms)[0m begin transaction
|
89446
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "documents"[0m
|
89447
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "documents" ("id", "name", "created_at", "updated_at") VALUES (100, 'Sample document', '2013-12-19 21:09:13', '2013-12-19 21:09:13')
|
89448
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
89449
|
+
[1m[35m (0.0ms)[0m begin transaction
|
89450
|
+
---------------------------------------------------------------
|
89451
|
+
AlternatesController::base actions::create: test_0001_redirects
|
89452
|
+
---------------------------------------------------------------
|
89453
|
+
Processing by AlternatesController#create as HTML
|
89454
|
+
Parameters: {"document"=>{"name"=>"New document"}}
|
89455
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
89456
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 19 Dec 2013 21:09:13 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 19 Dec 2013 21:09:13 UTC +00:00]]
|
89457
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
89458
|
+
Redirected to http://test.host/documents
|
89459
|
+
Completed 302 Found in 24ms (ActiveRecord: 1.2ms)
|
89460
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
89461
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
89462
|
+
--------------------------------------------------------------------
|
89463
|
+
AlternatesController::base actions::create: test_0002_display errors
|
89464
|
+
--------------------------------------------------------------------
|
89465
|
+
Processing by AlternatesController#create as HTML
|
89466
|
+
Parameters: {"document"=>{"name"=>""}}
|
89467
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
89468
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
89469
|
+
Completed 200 OK in 23ms (Views: 17.4ms | ActiveRecord: 0.1ms)
|
89470
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
89471
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
89472
|
+
----------------------------------------------------------------
|
89473
|
+
AlternatesController::base actions::destroy: test_0001_redirects
|
89474
|
+
----------------------------------------------------------------
|
89475
|
+
Processing by AlternatesController#destroy as HTML
|
89476
|
+
Parameters: {"id"=>"100"}
|
89477
|
+
[1m[35mDocument Load (0.2ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
|
89478
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
89479
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 100]]
|
89480
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
89481
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
89482
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
89483
|
+
Redirected to http://test.host/documents
|
89484
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
|
89485
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
89486
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
89487
|
+
-----------------------------------------------------------------------------------
|
89488
|
+
AlternatesController::base actions::destroy: test_0002_raise exception on not found
|
89489
|
+
-----------------------------------------------------------------------------------
|
89490
|
+
Processing by AlternatesController#destroy as HTML
|
89491
|
+
Parameters: {"id"=>"1"}
|
89492
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
|
89493
|
+
Completed 404 Not Found in 1ms
|
89494
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
89495
|
+
[1m[35m (0.1ms)[0m begin transaction
|
89496
|
+
---------------------------------------------------------------
|
89497
|
+
AlternatesController::base actions::edit: test_0001_render form
|
89498
|
+
---------------------------------------------------------------
|
89499
|
+
Processing by AlternatesController#edit as HTML
|
89500
|
+
Parameters: {"id"=>"100"}
|
89501
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "100"]]
|
89502
|
+
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
|
89503
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
89504
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
89505
|
+
--------------------------------------------------------------------------------
|
89506
|
+
AlternatesController::base actions::edit: test_0002_raise exception on not found
|
89507
|
+
--------------------------------------------------------------------------------
|
89508
|
+
Processing by AlternatesController#edit as HTML
|
89509
|
+
Parameters: {"id"=>"1"}
|
89510
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
|
89511
|
+
Completed 404 Not Found in 1ms
|
89512
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
89513
|
+
[1m[35m (0.0ms)[0m begin transaction
|
89514
|
+
----------------------------------------------------------------
|
89515
|
+
AlternatesController::base actions::index: test_0001_render list
|
89516
|
+
----------------------------------------------------------------
|
89517
|
+
Processing by AlternatesController#index as HTML
|
89518
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("documents"."updated_at") AS max_id FROM "documents"[0m
|
89519
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents"
|
89520
|
+
Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)
|
89521
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
89522
|
+
[1m[35m (0.1ms)[0m begin transaction
|
89523
|
+
--------------------------------------------------------------
|
89524
|
+
AlternatesController::base actions::new: test_0001_render form
|
89525
|
+
--------------------------------------------------------------
|
89526
|
+
Processing by AlternatesController#new as HTML
|
89527
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
89528
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
89529
|
+
[1m[35m (0.0ms)[0m begin transaction
|
89530
|
+
---------------------------------------------------------------
|
89531
|
+
AlternatesController::base actions::show: test_0001_render view
|
89532
|
+
---------------------------------------------------------------
|
89533
|
+
Processing by AlternatesController#show as HTML
|
89534
|
+
Parameters: {"id"=>"100"}
|
89535
|
+
[1m[36mDocument Load (0.2ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "100"]]
|
89536
|
+
Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)
|
89537
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
89538
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
89539
|
+
--------------------------------------------------------------------------------
|
89540
|
+
AlternatesController::base actions::show: test_0002_raise exception on not found
|
89541
|
+
--------------------------------------------------------------------------------
|
89542
|
+
Processing by AlternatesController#show as HTML
|
89543
|
+
Parameters: {"id"=>"1"}
|
89544
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
|
89545
|
+
Completed 404 Not Found in 1ms
|
89546
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
89547
|
+
[1m[35m (0.0ms)[0m begin transaction
|
89548
|
+
---------------------------------------------------------------
|
89549
|
+
AlternatesController::base actions::update: test_0001_redirects
|
89550
|
+
---------------------------------------------------------------
|
89551
|
+
Processing by AlternatesController#update as HTML
|
89552
|
+
Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"}
|
89553
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "100"]]
|
89554
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
89555
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100[0m [["name", "New document"], ["updated_at", Thu, 19 Dec 2013 21:09:13 UTC +00:00]]
|
89556
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
89557
|
+
Redirected to http://test.host/documents
|
89558
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
|
89559
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
89560
|
+
[1m[35m (0.1ms)[0m begin transaction
|
89561
|
+
--------------------------------------------------------------------
|
89562
|
+
AlternatesController::base actions::update: test_0002_display errors
|
89563
|
+
--------------------------------------------------------------------
|
89564
|
+
Processing by AlternatesController#update as HTML
|
89565
|
+
Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
|
89566
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "100"]]
|
89567
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
89568
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
89569
|
+
Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms)
|
89570
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
89571
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
89572
|
+
----------------------------------------------------------------------------------
|
89573
|
+
AlternatesController::base actions::update: test_0003_raise exception on not found
|
89574
|
+
----------------------------------------------------------------------------------
|
89575
|
+
Processing by AlternatesController#update as HTML
|
89576
|
+
Parameters: {"id"=>"1"}
|
89577
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "1"]]
|
89578
|
+
Completed 404 Not Found in 1ms
|
89579
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
89580
|
+
[1m[35m (0.0ms)[0m begin transaction
|
89581
|
+
--------------------------------------------------
|
89582
|
+
BlocksController: test_0001_has one response block
|
89583
|
+
--------------------------------------------------
|
89584
|
+
Processing by BlocksController#create as HTML
|
89585
|
+
Parameters: {"document"=>{"name"=>"Sample"}}
|
89586
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
89587
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 19 Dec 2013 21:09:13 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 19 Dec 2013 21:09:13 UTC +00:00]]
|
89588
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
89589
|
+
Redirected to http://test.host/
|
89590
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
89591
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
89592
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
89593
|
+
----------------------------------------------------------------
|
89594
|
+
BlocksController: test_0002_has two response blocks with success
|
89595
|
+
----------------------------------------------------------------
|
89596
|
+
Processing by BlocksController#update as HTML
|
89597
|
+
Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"}
|
89598
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
|
89599
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
89600
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 19 Dec 2013 21:09:13 UTC +00:00]]
|
89601
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
89602
|
+
Redirected to http://test.host/
|
89603
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
89604
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
89605
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
89606
|
+
----------------------------------------------------------------
|
89607
|
+
BlocksController: test_0003_has two response blocks with failire
|
89608
|
+
----------------------------------------------------------------
|
89609
|
+
Processing by BlocksController#update as HTML
|
89610
|
+
Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
|
89611
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
|
89612
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
89613
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
89614
|
+
Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)
|
89615
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
89616
|
+
[1m[35m (0.0ms)[0m begin transaction
|
89617
|
+
---------------------------------------------------------------
|
89618
|
+
CustomNoticesController::flash messages: test_0001_has a notice
|
89619
|
+
---------------------------------------------------------------
|
89620
|
+
Processing by CustomNoticesController#create as HTML
|
89621
|
+
Parameters: {"document"=>{"name"=>"Sample"}}
|
89622
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
89623
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 19 Dec 2013 21:09:13 UTC +00:00], ["name", "Sample"], ["updated_at", Thu, 19 Dec 2013 21:09:13 UTC +00:00]]
|
89624
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
89625
|
+
Redirected to http://test.host/
|
89626
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
89627
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
89628
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
89629
|
+
---------------------------------------------------------------
|
89630
|
+
CustomNoticesController::flash messages: test_0002_has an alert
|
89631
|
+
---------------------------------------------------------------
|
89632
|
+
Processing by CustomNoticesController#update as HTML
|
89633
|
+
Parameters: {"document"=>{"name"=>"Sample"}, "id"=>"100"}
|
89634
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
|
89635
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
89636
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "Sample"], ["updated_at", Thu, 19 Dec 2013 21:09:13 UTC +00:00]]
|
89637
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
89638
|
+
Redirected to http://test.host/
|
89639
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
89640
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
89641
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
89642
|
+
--------------------------------------------------------------
|
89643
|
+
DocumentsController::base actions::create: test_0001_redirects
|
89644
|
+
--------------------------------------------------------------
|
89645
|
+
Processing by DocumentsController#create as HTML
|
89646
|
+
Parameters: {"document"=>{"name"=>"New document"}}
|
89647
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
89648
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "documents" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 19 Dec 2013 21:09:13 UTC +00:00], ["name", "New document"], ["updated_at", Thu, 19 Dec 2013 21:09:13 UTC +00:00]]
|
89649
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
89650
|
+
Redirected to http://test.host/documents
|
89651
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
|
89652
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
89653
|
+
[1m[35m (0.0ms)[0m begin transaction
|
89654
|
+
-------------------------------------------------------------------
|
89655
|
+
DocumentsController::base actions::create: test_0002_display errors
|
89656
|
+
-------------------------------------------------------------------
|
89657
|
+
Processing by DocumentsController#create as HTML
|
89658
|
+
Parameters: {"document"=>{"name"=>""}}
|
89659
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
89660
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
89661
|
+
Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.1ms)
|
89662
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
89663
|
+
[1m[35m (0.0ms)[0m begin transaction
|
89664
|
+
---------------------------------------------------------------
|
89665
|
+
DocumentsController::base actions::destroy: test_0001_redirects
|
89666
|
+
---------------------------------------------------------------
|
89667
|
+
Processing by DocumentsController#destroy as HTML
|
89668
|
+
Parameters: {"id"=>"100"}
|
89669
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "100"]]
|
89670
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
89671
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "documents" WHERE "documents"."id" = ?[0m [["id", 100]]
|
89672
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
89673
|
+
Redirected to http://test.host/documents
|
89674
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
89675
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
89676
|
+
[1m[35m (0.1ms)[0m begin transaction
|
89677
|
+
----------------------------------------------------------------------------------
|
89678
|
+
DocumentsController::base actions::destroy: test_0002_raise exception on not found
|
89679
|
+
----------------------------------------------------------------------------------
|
89680
|
+
Processing by DocumentsController#destroy as HTML
|
89681
|
+
Parameters: {"id"=>"1"}
|
89682
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "1"]]
|
89683
|
+
Completed 404 Not Found in 1ms
|
89684
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
89685
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
89686
|
+
--------------------------------------------------------------
|
89687
|
+
DocumentsController::base actions::edit: test_0001_render form
|
89688
|
+
--------------------------------------------------------------
|
89689
|
+
Processing by DocumentsController#edit as HTML
|
89690
|
+
Parameters: {"id"=>"100"}
|
89691
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
|
89692
|
+
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
89693
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
89694
|
+
[1m[35m (0.0ms)[0m begin transaction
|
89695
|
+
-------------------------------------------------------------------------------
|
89696
|
+
DocumentsController::base actions::edit: test_0002_raise exception on not found
|
89697
|
+
-------------------------------------------------------------------------------
|
89698
|
+
Processing by DocumentsController#edit as HTML
|
89699
|
+
Parameters: {"id"=>"1"}
|
89700
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "1"]]
|
89701
|
+
Completed 404 Not Found in 1ms
|
89702
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
89703
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
89704
|
+
---------------------------------------------------------------
|
89705
|
+
DocumentsController::base actions::index: test_0001_render list
|
89706
|
+
---------------------------------------------------------------
|
89707
|
+
Processing by DocumentsController#index as HTML
|
89708
|
+
[1m[35m (0.1ms)[0m SELECT MAX("documents"."updated_at") AS max_id FROM "documents"
|
89709
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents"[0m
|
89710
|
+
Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.2ms)
|
89711
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
89712
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
89713
|
+
-------------------------------------------------------------
|
89714
|
+
DocumentsController::base actions::new: test_0001_render form
|
89715
|
+
-------------------------------------------------------------
|
89716
|
+
Processing by DocumentsController#new as HTML
|
89717
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
89718
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
89719
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
89720
|
+
--------------------------------------------------------------
|
89721
|
+
DocumentsController::base actions::show: test_0001_render view
|
89722
|
+
--------------------------------------------------------------
|
89723
|
+
Processing by DocumentsController#show as HTML
|
89724
|
+
Parameters: {"id"=>"100"}
|
89725
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
|
89726
|
+
Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)
|
89727
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
89728
|
+
[1m[35m (0.1ms)[0m begin transaction
|
89729
|
+
-------------------------------------------------------------------------------
|
89730
|
+
DocumentsController::base actions::show: test_0002_raise exception on not found
|
89731
|
+
-------------------------------------------------------------------------------
|
89732
|
+
Processing by DocumentsController#show as HTML
|
89733
|
+
Parameters: {"id"=>"1"}
|
89734
|
+
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "1"]]
|
89735
|
+
Completed 404 Not Found in 1ms
|
89736
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
89737
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
89738
|
+
--------------------------------------------------------------
|
89739
|
+
DocumentsController::base actions::update: test_0001_redirects
|
89740
|
+
--------------------------------------------------------------
|
89741
|
+
Processing by DocumentsController#update as HTML
|
89742
|
+
Parameters: {"document"=>{"name"=>"New document"}, "id"=>"100"}
|
89743
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
|
89744
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
89745
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "documents" SET "name" = ?, "updated_at" = ? WHERE "documents"."id" = 100 [["name", "New document"], ["updated_at", Thu, 19 Dec 2013 21:09:13 UTC +00:00]]
|
89746
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
89747
|
+
Redirected to http://test.host/documents
|
89748
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
89749
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
89750
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
89751
|
+
-------------------------------------------------------------------
|
89752
|
+
DocumentsController::base actions::update: test_0002_display errors
|
89753
|
+
-------------------------------------------------------------------
|
89754
|
+
Processing by DocumentsController#update as HTML
|
89755
|
+
Parameters: {"document"=>{"name"=>""}, "id"=>"100"}
|
89756
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", "100"]]
|
89757
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
89758
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
89759
|
+
Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms)
|
89760
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
89761
|
+
[1m[35m (0.1ms)[0m begin transaction
|
89762
|
+
---------------------------------------------------------------------------------
|
89763
|
+
DocumentsController::base actions::update: test_0003_raise exception on not found
|
89764
|
+
---------------------------------------------------------------------------------
|
89439
89765
|
Processing by DocumentsController#update as HTML
|
89440
89766
|
Parameters: {"id"=>"1"}
|
89441
89767
|
[1m[36mDocument Load (0.1ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", "1"]]
|
metadata
CHANGED
@@ -1,97 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restful_controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mario Alberto Chavez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 4.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 4.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sqlite3
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: flog
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: flay
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: minitest-rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 0.9.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 0.9.0
|
97
97
|
description: Restful helps you to remove duplicated code from controllers were their
|
@@ -102,20 +102,22 @@ executables: []
|
|
102
102
|
extensions: []
|
103
103
|
extra_rdoc_files: []
|
104
104
|
files:
|
105
|
+
- MIT-LICENSE
|
106
|
+
- README.rdoc
|
107
|
+
- Rakefile
|
108
|
+
- lib/restful.rb
|
105
109
|
- lib/restful/actions.rb
|
106
110
|
- lib/restful/base.rb
|
107
111
|
- lib/restful/dummy_responder.rb
|
108
112
|
- lib/restful/version.rb
|
109
|
-
- lib/restful.rb
|
110
113
|
- lib/tasks/resourceful_tasks.rake
|
111
|
-
- MIT-LICENSE
|
112
|
-
- Rakefile
|
113
|
-
- README.rdoc
|
114
114
|
- test/actions_definition_test.rb
|
115
115
|
- test/alternates_controller_test.rb
|
116
116
|
- test/base_controller_test.rb
|
117
117
|
- test/blocks_controller_test.rb
|
118
118
|
- test/custom_notices_controller_test.rb
|
119
|
+
- test/dummy/README.rdoc
|
120
|
+
- test/dummy/Rakefile
|
119
121
|
- test/dummy/app/assets/javascripts/application.js
|
120
122
|
- test/dummy/app/assets/stylesheets/application.css
|
121
123
|
- test/dummy/app/controllers/alternates_controller.rb
|
@@ -135,6 +137,7 @@ files:
|
|
135
137
|
- test/dummy/bin/bundle
|
136
138
|
- test/dummy/bin/rails
|
137
139
|
- test/dummy/bin/rake
|
140
|
+
- test/dummy/config.ru
|
138
141
|
- test/dummy/config/application.rb
|
139
142
|
- test/dummy/config/boot.rb
|
140
143
|
- test/dummy/config/database.yml
|
@@ -152,7 +155,6 @@ files:
|
|
152
155
|
- test/dummy/config/initializers/wrap_parameters.rb
|
153
156
|
- test/dummy/config/locales/en.yml
|
154
157
|
- test/dummy/config/routes.rb
|
155
|
-
- test/dummy/config.ru
|
156
158
|
- test/dummy/db/development.sqlite3
|
157
159
|
- test/dummy/db/migrate/20130703024719_create_documents.rb
|
158
160
|
- test/dummy/db/schema.rb
|
@@ -163,8 +165,6 @@ files:
|
|
163
165
|
- test/dummy/public/422.html
|
164
166
|
- test/dummy/public/500.html
|
165
167
|
- test/dummy/public/favicon.ico
|
166
|
-
- test/dummy/Rakefile
|
167
|
-
- test/dummy/README.rdoc
|
168
168
|
- test/dummy/test/fixtures/documents.yml
|
169
169
|
- test/dummy/test/models/document_test.rb
|
170
170
|
- test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
@@ -186,17 +186,17 @@ require_paths:
|
|
186
186
|
- lib
|
187
187
|
required_ruby_version: !ruby/object:Gem::Requirement
|
188
188
|
requirements:
|
189
|
-
- -
|
189
|
+
- - ">="
|
190
190
|
- !ruby/object:Gem::Version
|
191
191
|
version: '0'
|
192
192
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
193
|
requirements:
|
194
|
-
- -
|
194
|
+
- - ">="
|
195
195
|
- !ruby/object:Gem::Version
|
196
196
|
version: '0'
|
197
197
|
requirements: []
|
198
198
|
rubyforge_project:
|
199
|
-
rubygems_version: 2.0
|
199
|
+
rubygems_version: 2.2.0
|
200
200
|
signing_key:
|
201
201
|
specification_version: 4
|
202
202
|
summary: Restful helps to keep Controllers DRY, removing repetitive code from basic
|