serializer 1.0.1 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79f683b0aca9341fa79622cfad34a14c34ed7b32
4
- data.tar.gz: dc9cb49677ec6096bcc4dce59217bded728cb0ae
3
+ metadata.gz: ff8311bbf03db9d48ec444a7dde198d4918d14ec
4
+ data.tar.gz: aab9708c9a05ed86b94ffcd4d73fbc1170051efd
5
5
  SHA512:
6
- metadata.gz: 020e1ea80fb70fa52df033501a414c335d9757d83debf209b249966387c5c81047b950727aca923c0f9f056adb028e62669136ced2205e7b47fd52306bda3228
7
- data.tar.gz: b6ab927a4e6e765d454d7ce3f243b9fbedca2d67008d74436fb1a4e5a664e14bfea5e1b1cf8a528534d2e32e3968c9d7ecfaf64fdfea39fe27c377fac74d0149
6
+ metadata.gz: 48ba714976fbf5a45de927749794a3d3e83693093fe148716f60f7279bcc0eabb3880b44777957f4d6f03897bdcd4977123f126b9d50c43b519489480ea64023
7
+ data.tar.gz: c22a9fe596b24b4b722cc2cf0a26fa635e190e0c14c5012cb79377c8cd786535e9cf85b3a103da08612e95b9126be16f24985cafa02babe4452de6fe8026c9cb
@@ -1,3 +1,3 @@
1
1
  module Serializer
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
Binary file
@@ -13321,3 +13321,392 @@ WARNING: Can't mass-assign protected attributes for User: id, account_id, settin
13321
13321
  Redirected to http://test.host/users/593363170
13322
13322
  Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
13323
13323
   (0.3ms) rollback transaction
13324
+  (0.3ms) begin transaction
13325
+ Fixture Delete (0.2ms) DELETE FROM "accounts"
13326
+ Fixture Insert (0.1ms) INSERT INTO "accounts" ("name", "created_at", "updated_at", "id") VALUES ('Awesome', '2013-11-01 06:31:10', '2013-11-01 06:31:10', 593363170)
13327
+ Fixture Delete (0.1ms) DELETE FROM "users"
13328
+ Fixture Insert (0.1ms) INSERT INTO "users" ("name", "email", "settings", "created_at", "updated_at", "id", "account_id") VALUES ('Kevin', 'info@example.com', '---
13329
+ :fb_share: true
13330
+ :tw_share: true
13331
+ ', '2013-11-01 06:31:10', '2013-11-01 06:31:10', 593363170, 593363170)
13332
+ Fixture Insert (0.0ms) INSERT INTO "users" ("name", "email", "created_at", "updated_at", "id") VALUES ('Kevin', 'info@example.com', '2013-11-01 06:31:10', '2013-11-01 06:31:10', 815823836)
13333
+  (3.6ms) commit transaction
13334
+  (0.1ms) begin transaction
13335
+ ---------------------------------------------------------------
13336
+ AccountTest: test_accepts_nested_attributes_for_users_on_create
13337
+ ---------------------------------------------------------------
13338
+  (0.1ms) SAVEPOINT active_record_1
13339
+ SQL (2.2ms) INSERT INTO "accounts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["name", "Personal"], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00]]
13340
+ SQL (0.2ms) INSERT INTO "users" ("account_id", "created_at", "settings", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 593363171], ["created_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["settings", "---\n:tw_share: false\n:fb_share: false\n:tb_share: true\n"], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00]]
13341
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13342
+ Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? ORDER BY "accounts"."id" ASC LIMIT 1 [["id", 593363171]]
13343
+  (0.6ms) rollback transaction
13344
+  (0.1ms) begin transaction
13345
+ ---------------------------------------------------------------
13346
+ AccountTest: test_accepts_nested_attributes_for_users_on_update
13347
+ ---------------------------------------------------------------
13348
+  (0.1ms) SAVEPOINT active_record_1
13349
+ SQL (0.4ms) INSERT INTO "accounts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["name", "Personal"], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00]]
13350
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13351
+  (0.0ms) SAVEPOINT active_record_1
13352
+ SQL (1.5ms) INSERT INTO "users" ("account_id", "created_at", "settings", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 593363171], ["created_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00]]
13353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13354
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."account_id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["account_id", 593363171]]
13355
+  (0.0ms) SAVEPOINT active_record_1
13356
+ SQL (0.2ms) UPDATE "users" SET "account_id" = ?, "updated_at" = ?, "settings" = ? WHERE "users"."id" = 815823837 [["account_id", nil], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["settings", "--- {}\n"]]
13357
+ SQL (0.1ms) INSERT INTO "users" ("account_id", "created_at", "settings", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 593363171], ["created_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["settings", "---\n:tw_share: true\n:fb_share: false\n:tb_share: true\n"], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00]]
13358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13359
+  (0.4ms) rollback transaction
13360
+  (0.0ms) begin transaction
13361
+ -----------------------------------------
13362
+ MainControllerTest: test_should_get_index
13363
+ -----------------------------------------
13364
+ Processing by MainController#index as HTML
13365
+ Rendered main/index.html.haml within layouts/application (1.9ms)
13366
+ Completed 200 OK in 13ms (Views: 13.0ms | ActiveRecord: 0.0ms)
13367
+  (0.1ms) rollback transaction
13368
+  (0.0ms) begin transaction
13369
+ -------------------------------------------
13370
+ SerializerTest: test_serializer_is_a_module
13371
+ -------------------------------------------
13372
+  (0.0ms) rollback transaction
13373
+  (0.0ms) begin transaction
13374
+ ------------------------------------------------------------------------------------
13375
+ SubscriptionTest: test_accepts_nested_attributes_from_belongs_to_side_of_association
13376
+ ------------------------------------------------------------------------------------
13377
+  (0.0ms) SAVEPOINT active_record_1
13378
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "settings", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00]]
13379
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13380
+  (0.2ms) SAVEPOINT active_record_1
13381
+ SQL (0.4ms) INSERT INTO "subscriptions" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["user_id", 815823837]]
13382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13383
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."user_id" = ? ORDER BY "subscriptions"."id" ASC LIMIT 1 [["user_id", 815823837]]
13384
+  (0.0ms) SAVEPOINT active_record_1
13385
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 815823837]]
13386
+ SQL (0.1ms) UPDATE "users" SET "settings" = ?, "updated_at" = ? WHERE "users"."id" = 815823837 [["settings", "---\n:notifications: true\n"], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00]]
13387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13388
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 815823837]]
13389
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."user_id" = ? ORDER BY "subscriptions"."id" ASC LIMIT 1 [["user_id", 815823837]]
13390
+  (0.0ms) SAVEPOINT active_record_1
13391
+ SQL (0.1ms) UPDATE "users" SET "settings" = ?, "updated_at" = ? WHERE "users"."id" = 815823837 [["settings", "---\n:notifications: false\n"], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00]]
13392
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13393
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 815823837]]
13394
+  (0.4ms) rollback transaction
13395
+  (0.0ms) begin transaction
13396
+ --------------------------------
13397
+ UserCreateTest: test_create_user
13398
+ --------------------------------
13399
+ Started GET "/users/new" for 127.0.0.1 at 2013-10-31 23:31:10 -0700
13400
+ Processing by UsersController#new as HTML
13401
+ Rendered users/_fields.html.haml (7.2ms)
13402
+ Rendered users/_form.html.haml (13.8ms)
13403
+ Completed 200 OK in 20ms (Views: 19.9ms | ActiveRecord: 0.0ms)
13404
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]]
13405
+ Started POST "/users" for 127.0.0.1 at 2013-10-31 23:31:11 -0700
13406
+ Processing by UsersController#create as HTML
13407
+ Parameters: {"name"=>"Kevin", "email"=>"info@example.com", "fb_share"=>"0", "tw_share"=>"0", "tb_share"=>"false"}
13408
+  (0.0ms) SAVEPOINT active_record_1
13409
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "settings", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]]
13410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13411
+ Redirected to http://www.example.com/users/815823837
13412
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
13413
+ Started GET "/users/815823837" for 127.0.0.1 at 2013-10-31 23:31:11 -0700
13414
+ Processing by UsersController#show as HTML
13415
+ Parameters: {"id"=>"815823837"}
13416
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "815823837"]]
13417
+ Rendered users/_user.html.haml (2.0ms)
13418
+ Completed 200 OK in 21ms (Views: 19.4ms | ActiveRecord: 0.1ms)
13419
+  (0.4ms) rollback transaction
13420
+  (0.0ms) begin transaction
13421
+ --------------------------------
13422
+ UserTest: test_a_missing_default
13423
+ --------------------------------
13424
+  (0.0ms) SAVEPOINT active_record_1
13425
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "kevin@example.com"], ["name", "Kevin"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]]
13426
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13427
+  (0.3ms) rollback transaction
13428
+  (0.1ms) begin transaction
13429
+ -----------------------------
13430
+ UserTest: test_a_missing_type
13431
+ -----------------------------
13432
+  (0.1ms) SAVEPOINT active_record_1
13433
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "kevin@example.com"], ["name", "Kevin"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]]
13434
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13435
+  (0.4ms) rollback transaction
13436
+  (0.1ms) begin transaction
13437
+ ----------------------------------------------------
13438
+ UserTest: test_configuring_array_and_hash_attributes
13439
+ ----------------------------------------------------
13440
+  (0.0ms) SAVEPOINT active_record_1
13441
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "alpha@example.com"], ["name", "Alpha"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]]
13442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13443
+  (0.0ms) SAVEPOINT active_record_1
13444
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "omega@example.com"], ["name", "Omega"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]]
13445
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13446
+  (0.4ms) rollback transaction
13447
+  (0.0ms) begin transaction
13448
+ --------------------------------------------
13449
+ UserTest: test_configuring_string_attributes
13450
+ --------------------------------------------
13451
+  (0.0ms) SAVEPOINT active_record_1
13452
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "alpha@example.com"], ["name", "Alpha"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]]
13453
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13454
+  (0.0ms) SAVEPOINT active_record_1
13455
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "omega@example.com"], ["name", "Omega"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]]
13456
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13457
+  (0.4ms) rollback transaction
13458
+  (0.0ms) begin transaction
13459
+ --------------------------------------------
13460
+ UserTest: test_configuring_symbol_attributes
13461
+ --------------------------------------------
13462
+  (0.0ms) SAVEPOINT active_record_1
13463
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "kevin@example.com"], ["name", "Kevin"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]]
13464
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13465
+  (0.3ms) rollback transaction
13466
+  (0.0ms) begin transaction
13467
+ -----------------------
13468
+ UserTest: test_defaults
13469
+ -----------------------
13470
+  (0.0ms) SAVEPOINT active_record_1
13471
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "kevin@example.com"], ["name", "Kevin"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]]
13472
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13473
+  (0.3ms) rollback transaction
13474
+  (0.0ms) begin transaction
13475
+ -----------------------------------------------
13476
+ UserTest: test_falsify_then_truthify_attributes
13477
+ -----------------------------------------------
13478
+  (0.0ms) SAVEPOINT active_record_1
13479
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "kevin@example.com"], ["name", "Kevin"], ["settings", "---\n:fb_share: false\n:tw_share: false\n:tb_share: false\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]]
13480
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13481
+  (0.0ms) SAVEPOINT active_record_1
13482
+ SQL (0.2ms) UPDATE "users" SET "settings" = ?, "updated_at" = ? WHERE "users"."id" = 815823837 [["settings", "---\n:fb_share: true\n:tw_share: true\n:tb_share: true\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]]
13483
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13484
+  (0.3ms) rollback transaction
13485
+  (0.0ms) begin transaction
13486
+ -------------------------------
13487
+ UserTest: test_missing_settings
13488
+ -------------------------------
13489
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 815823836]]
13490
+  (0.0ms) SAVEPOINT active_record_1
13491
+ SQL (0.2ms) UPDATE "users" SET "settings" = ?, "updated_at" = ? WHERE "users"."id" = 815823836 [["settings", "---\n:fb_share: false\n:tw_share: false\n:tb_share: false\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]]
13492
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13493
+  (0.3ms) rollback transaction
13494
+  (0.0ms) begin transaction
13495
+ -----------------------------------------------
13496
+ UserTest: test_truthify_then_falsify_attributes
13497
+ -----------------------------------------------
13498
+  (0.0ms) SAVEPOINT active_record_1
13499
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "kevin@example.com"], ["name", "Kevin"], ["settings", "---\n:fb_share: true\n:tw_share: true\n:tb_share: true\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]]
13500
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13501
+  (0.0ms) SAVEPOINT active_record_1
13502
+ SQL (0.2ms) UPDATE "users" SET "settings" = ?, "updated_at" = ? WHERE "users"."id" = 815823837 [["settings", "---\n:fb_share: false\n:tw_share: false\n:tb_share: false\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]]
13503
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13504
+  (0.3ms) rollback transaction
13505
+  (0.0ms) begin transaction
13506
+ --------------------------------
13507
+ UserUpdateTest: test_update_user
13508
+ --------------------------------
13509
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]]
13510
+ Started GET "/users/593363170/edit" for 127.0.0.1 at 2013-10-31 23:31:11 -0700
13511
+ Processing by UsersController#edit as HTML
13512
+ Parameters: {"id"=>"593363170"}
13513
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "593363170"]]
13514
+ Rendered users/_fields.html.haml (1.0ms)
13515
+ Rendered users/_form.html.haml (2.4ms)
13516
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
13517
+ Started POST "/users" for 127.0.0.1 at 2013-10-31 23:31:11 -0700
13518
+ Processing by UsersController#create as HTML
13519
+ Parameters: {"name"=>"Kevin", "email"=>"info@example.com", "fb_share"=>"0", "tw_share"=>"0", "tb_share"=>"true"}
13520
+  (0.1ms) SAVEPOINT active_record_1
13521
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "settings", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]]
13522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13523
+ Redirected to http://www.example.com/users/815823837
13524
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
13525
+ Started GET "/users/815823837" for 127.0.0.1 at 2013-10-31 23:31:11 -0700
13526
+ Processing by UsersController#show as HTML
13527
+ Parameters: {"id"=>"815823837"}
13528
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "815823837"]]
13529
+ Rendered users/_user.html.haml (0.2ms)
13530
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
13531
+  (0.4ms) rollback transaction
13532
+  (0.1ms) begin transaction
13533
+ --------------------------------------------
13534
+ UsersControllerTest: test_should_create_user
13535
+ --------------------------------------------
13536
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]]
13537
+  (0.1ms) SELECT COUNT(*) FROM "users"
13538
+ Processing by UsersController#create as HTML
13539
+ Parameters: {"user"=>{"id"=>"593363170", "account_id"=>"593363170", "name"=>"Kevin", "email"=>"info@example.com", "settings"=>{"fb_share"=>true, "tw_share"=>true}, "created_at"=>"2013-11-01 06:31:10 UTC", "updated_at"=>"2013-11-01 06:31:10 UTC"}}
13540
+ WARNING: Can't mass-assign protected attributes for User: id, account_id, settings, created_at, updated_at
13541
+ protected_attributes (1.0.3) lib/active_model/mass_assignment_security/sanitizer.rb:47:in `block in process_removed_attributes'
13542
+ /Users/kevin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/logger.rb:376:in `add'
13543
+ /Users/kevin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/logger.rb:447:in `warn'
13544
+ protected_attributes (1.0.3) lib/active_model/mass_assignment_security/sanitizer.rb:45:in `process_removed_attributes'
13545
+ protected_attributes (1.0.3) lib/active_model/mass_assignment_security/sanitizer.rb:10:in `sanitize'
13546
+ protected_attributes (1.0.3) lib/active_model/mass_assignment_security.rb:346:in `sanitize_for_mass_assignment'
13547
+ protected_attributes (1.0.3) lib/active_record/mass_assignment_security/attribute_assignment.rb:58:in `assign_attributes'
13548
+ protected_attributes (1.0.3) lib/active_record/mass_assignment_security/core.rb:16:in `initialize'
13549
+ activerecord (4.0.0) lib/active_record/inheritance.rb:27:in `new'
13550
+ activerecord (4.0.0) lib/active_record/inheritance.rb:27:in `new'
13551
+ protected_attributes (1.0.3) lib/active_record/mass_assignment_security/persistence.rb:45:in `create'
13552
+ app/controllers/users_controller.rb:35:in `create'
13553
+ actionpack (4.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
13554
+ actionpack (4.0.0) lib/abstract_controller/base.rb:189:in `process_action'
13555
+ actionpack (4.0.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
13556
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
13557
+ activesupport (4.0.0) lib/active_support/callbacks.rb:383:in `_run__3705253993169237033__process_action__callbacks'
13558
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
13559
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:17:in `process_action'
13560
+ actionpack (4.0.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
13561
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
13562
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `block in instrument'
13563
+ activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
13564
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `instrument'
13565
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
13566
+ actionpack (4.0.0) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
13567
+ activerecord (4.0.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
13568
+ actionpack (4.0.0) lib/abstract_controller/base.rb:136:in `process'
13569
+ actionpack (4.0.0) lib/abstract_controller/rendering.rb:44:in `process'
13570
+ actionpack (4.0.0) lib/action_controller/test_case.rb:569:in `process'
13571
+ actionpack (4.0.0) lib/action_controller/test_case.rb:64:in `process'
13572
+ actionpack (4.0.0) lib/action_controller/test_case.rb:475:in `post'
13573
+ test/functional/users_controller_test.rb:24:in `block (2 levels) in <class:UsersControllerTest>'
13574
+ activesupport (4.0.0) lib/active_support/testing/assertions.rb:71:in `assert_difference'
13575
+ test/functional/users_controller_test.rb:23:in `block in <class:UsersControllerTest>'
13576
+ minitest (4.7.5) lib/minitest/unit.rb:1258:in `run'
13577
+ minitest (4.7.5) lib/minitest/unit.rb:933:in `block in _run_suite'
13578
+ minitest (4.7.5) lib/minitest/unit.rb:926:in `map'
13579
+ minitest (4.7.5) lib/minitest/unit.rb:926:in `_run_suite'
13580
+ minitest (4.7.5) lib/minitest/parallel_each.rb:71:in `block in _run_suites'
13581
+ minitest (4.7.5) lib/minitest/parallel_each.rb:71:in `map'
13582
+ minitest (4.7.5) lib/minitest/parallel_each.rb:71:in `_run_suites'
13583
+ minitest (4.7.5) lib/minitest/unit.rb:877:in `_run_anything'
13584
+ minitest (4.7.5) lib/minitest/unit.rb:1085:in `run_tests'
13585
+ minitest (4.7.5) lib/minitest/unit.rb:1072:in `block in _run'
13586
+ minitest (4.7.5) lib/minitest/unit.rb:1071:in `each'
13587
+ minitest (4.7.5) lib/minitest/unit.rb:1071:in `_run'
13588
+ minitest (4.7.5) lib/minitest/unit.rb:1059:in `run'
13589
+ minitest (4.7.5) lib/minitest/unit.rb:795:in `block in autorun'
13590
+  (0.1ms) SAVEPOINT active_record_1
13591
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "info@example.com"], ["name", "Kevin"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]]
13592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13593
+ Redirected to http://test.host/users/815823837
13594
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
13595
+  (0.1ms) SELECT COUNT(*) FROM "users"
13596
+  (0.4ms) rollback transaction
13597
+  (0.0ms) begin transaction
13598
+ ---------------------------------------------
13599
+ UsersControllerTest: test_should_destroy_user
13600
+ ---------------------------------------------
13601
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]]
13602
+  (0.1ms) SELECT COUNT(*) FROM "users"
13603
+ Processing by UsersController#destroy as HTML
13604
+ Parameters: {"id"=>"593363170"}
13605
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "593363170"]]
13606
+  (0.0ms) SAVEPOINT active_record_1
13607
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 593363170]]
13608
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13609
+ Redirected to http://test.host/users
13610
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
13611
+  (0.1ms) SELECT COUNT(*) FROM "users"
13612
+  (0.3ms) rollback transaction
13613
+  (0.1ms) begin transaction
13614
+ -----------------------------------------
13615
+ UsersControllerTest: test_should_get_edit
13616
+ -----------------------------------------
13617
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]]
13618
+ Processing by UsersController#edit as HTML
13619
+ Parameters: {"id"=>"593363170"}
13620
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "593363170"]]
13621
+ Rendered users/_fields.html.haml (1.3ms)
13622
+ Rendered users/_form.html.haml (2.9ms)
13623
+ Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)
13624
+  (0.1ms) rollback transaction
13625
+  (0.0ms) begin transaction
13626
+ ------------------------------------------
13627
+ UsersControllerTest: test_should_get_index
13628
+ ------------------------------------------
13629
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]]
13630
+ Processing by UsersController#index as HTML
13631
+ User Load (0.1ms) SELECT "users".* FROM "users"
13632
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)
13633
+  (0.0ms) rollback transaction
13634
+  (0.0ms) begin transaction
13635
+ ----------------------------------------
13636
+ UsersControllerTest: test_should_get_new
13637
+ ----------------------------------------
13638
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]]
13639
+ Processing by UsersController#new as HTML
13640
+ Rendered users/_fields.html.haml (1.0ms)
13641
+ Rendered users/_form.html.haml (2.2ms)
13642
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
13643
+  (0.1ms) rollback transaction
13644
+  (0.0ms) begin transaction
13645
+ ------------------------------------------
13646
+ UsersControllerTest: test_should_show_user
13647
+ ------------------------------------------
13648
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]]
13649
+ Processing by UsersController#show as HTML
13650
+ Parameters: {"id"=>"593363170"}
13651
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "593363170"]]
13652
+ Rendered users/_user.html.haml (0.3ms)
13653
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
13654
+  (0.1ms) rollback transaction
13655
+  (0.0ms) begin transaction
13656
+ --------------------------------------------
13657
+ UsersControllerTest: test_should_update_user
13658
+ --------------------------------------------
13659
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]]
13660
+ Processing by UsersController#update as HTML
13661
+ Parameters: {"user"=>{"id"=>"593363170", "account_id"=>"593363170", "name"=>"Kevin", "email"=>"info@example.com", "settings"=>{"fb_share"=>true, "tw_share"=>true}, "created_at"=>"2013-11-01 06:31:10 UTC", "updated_at"=>"2013-11-01 06:31:10 UTC"}, "id"=>"593363170"}
13662
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "593363170"]]
13663
+ WARNING: Can't mass-assign protected attributes for User: id, account_id, settings, created_at, updated_at
13664
+ protected_attributes (1.0.3) lib/active_model/mass_assignment_security/sanitizer.rb:47:in `block in process_removed_attributes'
13665
+ /Users/kevin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/logger.rb:376:in `add'
13666
+ /Users/kevin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/logger.rb:447:in `warn'
13667
+ protected_attributes (1.0.3) lib/active_model/mass_assignment_security/sanitizer.rb:45:in `process_removed_attributes'
13668
+ protected_attributes (1.0.3) lib/active_model/mass_assignment_security/sanitizer.rb:10:in `sanitize'
13669
+ protected_attributes (1.0.3) lib/active_model/mass_assignment_security.rb:346:in `sanitize_for_mass_assignment'
13670
+ activerecord (4.0.0) lib/active_record/attribute_assignment.rb:21:in `assign_attributes'
13671
+ app/controllers/users_controller.rb:43:in `update'
13672
+ actionpack (4.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
13673
+ actionpack (4.0.0) lib/abstract_controller/base.rb:189:in `process_action'
13674
+ actionpack (4.0.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
13675
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
13676
+ activesupport (4.0.0) lib/active_support/callbacks.rb:383:in `_run__3705253993169237033__process_action__callbacks'
13677
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
13678
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:17:in `process_action'
13679
+ actionpack (4.0.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
13680
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
13681
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `block in instrument'
13682
+ activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
13683
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `instrument'
13684
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
13685
+ actionpack (4.0.0) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
13686
+ activerecord (4.0.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
13687
+ actionpack (4.0.0) lib/abstract_controller/base.rb:136:in `process'
13688
+ actionpack (4.0.0) lib/abstract_controller/rendering.rb:44:in `process'
13689
+ actionpack (4.0.0) lib/action_controller/test_case.rb:569:in `process'
13690
+ actionpack (4.0.0) lib/action_controller/test_case.rb:64:in `process'
13691
+ actionpack (4.0.0) lib/action_controller/test_case.rb:487:in `put'
13692
+ test/functional/users_controller_test.rb:41:in `block in <class:UsersControllerTest>'
13693
+ minitest (4.7.5) lib/minitest/unit.rb:1258:in `run'
13694
+ minitest (4.7.5) lib/minitest/unit.rb:933:in `block in _run_suite'
13695
+ minitest (4.7.5) lib/minitest/unit.rb:926:in `map'
13696
+ minitest (4.7.5) lib/minitest/unit.rb:926:in `_run_suite'
13697
+ minitest (4.7.5) lib/minitest/parallel_each.rb:71:in `block in _run_suites'
13698
+ minitest (4.7.5) lib/minitest/parallel_each.rb:71:in `map'
13699
+ minitest (4.7.5) lib/minitest/parallel_each.rb:71:in `_run_suites'
13700
+ minitest (4.7.5) lib/minitest/unit.rb:877:in `_run_anything'
13701
+ minitest (4.7.5) lib/minitest/unit.rb:1085:in `run_tests'
13702
+ minitest (4.7.5) lib/minitest/unit.rb:1072:in `block in _run'
13703
+ minitest (4.7.5) lib/minitest/unit.rb:1071:in `each'
13704
+ minitest (4.7.5) lib/minitest/unit.rb:1071:in `_run'
13705
+ minitest (4.7.5) lib/minitest/unit.rb:1059:in `run'
13706
+ minitest (4.7.5) lib/minitest/unit.rb:795:in `block in autorun'
13707
+  (0.0ms) SAVEPOINT active_record_1
13708
+ SQL (0.2ms) UPDATE "users" SET "updated_at" = ?, "settings" = ? WHERE "users"."id" = 593363170 [["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["settings", "---\n:fb_share: true\n:tw_share: true\n"]]
13709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13710
+ Redirected to http://test.host/users/593363170
13711
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
13712
+  (0.3ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre