phonelib 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/phonelib/core.rb +1 -1
- data/lib/phonelib/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +525 -0
- data/test/phonelib_test.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25bc0907fba6780f76bc3a992f5be7aab3707984
|
4
|
+
data.tar.gz: f7113d05fb5638f49c3f108b9f7e1822e1000447
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8ff5d16a7db82997b3135eb3423e95945a2f29309ecb3d133b50bed832e660c67c2ece8cb062db0329fcc3c4774738866fbd861a4e38d61cbef11c910367da2
|
7
|
+
data.tar.gz: f445aabafa29908c7e5e1eeb5afcbe4f7796d4c2292c88981b213c114ee8795477a6afd99fce4cdbdd11a5978ca9b4dec7ac51d077709820ea1ec7308a4f7110
|
data/lib/phonelib/core.rb
CHANGED
@@ -98,7 +98,7 @@ module Phonelib
|
|
98
98
|
Phonelib::Phone.new(phone, @@phone_data)
|
99
99
|
else
|
100
100
|
detected = detect_and_parse_by_country(phone, country)
|
101
|
-
if passed_country.nil? && @@default_country && detected.
|
101
|
+
if passed_country.nil? && @@default_country && detected.invalid?
|
102
102
|
Phonelib::Phone.new(phone, @@phone_data)
|
103
103
|
else
|
104
104
|
detected
|
data/lib/phonelib/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -5446,3 +5446,528 @@ Processing by PhonesController#update as HTML
|
|
5446
5446
|
Redirected to http://test.host/phones/450723037
|
5447
5447
|
Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
|
5448
5448
|
[1m[35m (0.1ms)[0m rollback transaction
|
5449
|
+
Connecting to database specified by database.yml
|
5450
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
5451
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "phones"
|
5452
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '972541234567', '2013-10-14 10:49:14', '2013-10-14 10:49:14', 450723037)[0m
|
5453
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('wrong', '2013-10-14 10:49:14', '2013-10-14 10:49:14', 667262234)
|
5454
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-14 10:49:14', '2013-10-14 10:49:14', 512636273)[0m
|
5455
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "phones" ("possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-14 10:49:14', '2013-10-14 10:49:14', 23760034)
|
5456
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', 'wrong', '2013-10-14 10:49:14', '2013-10-14 10:49:14', 703612349)[0m
|
5457
|
+
[1m[35m (4.3ms)[0m commit transaction
|
5458
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5459
|
+
[1m[35mPhone Load (0.5ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 512636273]]
|
5460
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5461
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5462
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5463
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5464
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5465
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5466
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5467
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5468
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5469
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 14 Oct 2013 10:49:14 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Mon, 14 Oct 2013 10:49:14 UTC +00:00]]
|
5470
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5471
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5472
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5473
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5474
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5475
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5476
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5477
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5478
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 23760034]]
|
5479
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5480
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5481
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5482
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5483
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 667262234]]
|
5484
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5485
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5486
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5487
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5488
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 703612349]]
|
5489
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5490
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5491
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5492
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5493
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5494
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
5495
|
+
Processing by PhonesController#create as HTML
|
5496
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}}
|
5497
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5498
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 14 Oct 2013 10:49:14 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Mon, 14 Oct 2013 10:49:14 UTC +00:00]]
|
5499
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5500
|
+
Redirected to http://test.host/phones/703612350
|
5501
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
|
5502
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
5503
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5504
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5505
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5506
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
5507
|
+
Processing by PhonesController#destroy as HTML
|
5508
|
+
Parameters: {"id"=>"450723037"}
|
5509
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
5510
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5511
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "phones" WHERE "phones"."id" = ? [["id", 450723037]]
|
5512
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5513
|
+
Redirected to http://test.host/phones
|
5514
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
5515
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "phones"
|
5516
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5517
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5518
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
5519
|
+
Processing by PhonesController#edit as HTML
|
5520
|
+
Parameters: {"id"=>"450723037"}
|
5521
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
5522
|
+
Rendered phones/_form.html.erb (2.9ms)
|
5523
|
+
Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.1ms)
|
5524
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5525
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5526
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
5527
|
+
Processing by PhonesController#index as HTML
|
5528
|
+
[1m[35mPhone Load (0.2ms)[0m SELECT "phones".* FROM "phones"
|
5529
|
+
Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms)
|
5530
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5531
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5532
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
5533
|
+
Processing by PhonesController#new as HTML
|
5534
|
+
Rendered phones/_form.html.erb (1.9ms)
|
5535
|
+
Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms)
|
5536
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5537
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5538
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5539
|
+
Processing by PhonesController#show as HTML
|
5540
|
+
Parameters: {"id"=>"450723037"}
|
5541
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
5542
|
+
Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)
|
5543
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5544
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5545
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5546
|
+
Processing by PhonesController#update as HTML
|
5547
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}, "id"=>"450723037"}
|
5548
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
5549
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5550
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5551
|
+
Redirected to http://test.host/phones/450723037
|
5552
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
|
5553
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5554
|
+
Connecting to database specified by database.yml
|
5555
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
5556
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "phones"
|
5557
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '972541234567', '2013-10-16 15:35:45', '2013-10-16 15:35:45', 450723037)[0m
|
5558
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('wrong', '2013-10-16 15:35:45', '2013-10-16 15:35:45', 667262234)
|
5559
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-16 15:35:45', '2013-10-16 15:35:45', 512636273)[0m
|
5560
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "phones" ("possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-16 15:35:45', '2013-10-16 15:35:45', 23760034)
|
5561
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', 'wrong', '2013-10-16 15:35:45', '2013-10-16 15:35:45', 703612349)[0m
|
5562
|
+
[1m[35m (12.3ms)[0m commit transaction
|
5563
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5564
|
+
[1m[35mPhone Load (0.6ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 512636273]]
|
5565
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5566
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5567
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5568
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5569
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5570
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5571
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5572
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5573
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5574
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 16 Oct 2013 15:35:45 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Wed, 16 Oct 2013 15:35:45 UTC +00:00]]
|
5575
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5576
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5577
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5578
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5579
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5580
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5581
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5582
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5583
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 23760034]]
|
5584
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5585
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5586
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5587
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5588
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 667262234]]
|
5589
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5590
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5591
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5592
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5593
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 703612349]]
|
5594
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5595
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5596
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5597
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5598
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5599
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
5600
|
+
Processing by PhonesController#create as HTML
|
5601
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}}
|
5602
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5603
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 16 Oct 2013 15:35:45 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Wed, 16 Oct 2013 15:35:45 UTC +00:00]]
|
5604
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5605
|
+
Redirected to http://test.host/phones/703612350
|
5606
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
|
5607
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
5608
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5609
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5610
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5611
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
5612
|
+
Processing by PhonesController#destroy as HTML
|
5613
|
+
Parameters: {"id"=>"450723037"}
|
5614
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
5615
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5616
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "phones" WHERE "phones"."id" = ? [["id", 450723037]]
|
5617
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5618
|
+
Redirected to http://test.host/phones
|
5619
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
|
5620
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "phones"
|
5621
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5622
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5623
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
5624
|
+
Processing by PhonesController#edit as HTML
|
5625
|
+
Parameters: {"id"=>"450723037"}
|
5626
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
5627
|
+
Rendered phones/_form.html.erb (3.3ms)
|
5628
|
+
Completed 200 OK in 18ms (Views: 16.4ms | ActiveRecord: 0.1ms)
|
5629
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5630
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5631
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
5632
|
+
Processing by PhonesController#index as HTML
|
5633
|
+
[1m[35mPhone Load (0.2ms)[0m SELECT "phones".* FROM "phones"
|
5634
|
+
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.2ms)
|
5635
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5636
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5637
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
5638
|
+
Processing by PhonesController#new as HTML
|
5639
|
+
Rendered phones/_form.html.erb (2.3ms)
|
5640
|
+
Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms)
|
5641
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5642
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5643
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5644
|
+
Processing by PhonesController#show as HTML
|
5645
|
+
Parameters: {"id"=>"450723037"}
|
5646
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
5647
|
+
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)
|
5648
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5649
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5650
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5651
|
+
Processing by PhonesController#update as HTML
|
5652
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}, "id"=>"450723037"}
|
5653
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
5654
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5655
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5656
|
+
Redirected to http://test.host/phones/450723037
|
5657
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
|
5658
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5659
|
+
Connecting to database specified by database.yml
|
5660
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
5661
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "phones"
|
5662
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '972541234567', '2013-10-16 15:35:57', '2013-10-16 15:35:57', 450723037)[0m
|
5663
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('wrong', '2013-10-16 15:35:57', '2013-10-16 15:35:57', 667262234)
|
5664
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-16 15:35:57', '2013-10-16 15:35:57', 512636273)[0m
|
5665
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "phones" ("possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-16 15:35:57', '2013-10-16 15:35:57', 23760034)
|
5666
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', 'wrong', '2013-10-16 15:35:57', '2013-10-16 15:35:57', 703612349)[0m
|
5667
|
+
[1m[35m (5.5ms)[0m commit transaction
|
5668
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5669
|
+
[1m[35mPhone Load (0.4ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 512636273]]
|
5670
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5671
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5672
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5673
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5674
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5675
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5676
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5677
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5678
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5679
|
+
[1m[35mSQL (1.6ms)[0m INSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 16 Oct 2013 15:35:58 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Wed, 16 Oct 2013 15:35:58 UTC +00:00]]
|
5680
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5681
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
5682
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5683
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5684
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5685
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
5686
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5687
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5688
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 23760034]]
|
5689
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5690
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5691
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5692
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5693
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 667262234]]
|
5694
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5695
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5696
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5697
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5698
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 703612349]]
|
5699
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5700
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5701
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5702
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5703
|
+
[1m[35mPhone Load (0.2ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5704
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
5705
|
+
Processing by PhonesController#create as HTML
|
5706
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}}
|
5707
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5708
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 16 Oct 2013 15:35:58 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Wed, 16 Oct 2013 15:35:58 UTC +00:00]]
|
5709
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5710
|
+
Redirected to http://test.host/phones/703612350
|
5711
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
|
5712
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
5713
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
5714
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5715
|
+
[1m[35mPhone Load (0.2ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5716
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
5717
|
+
Processing by PhonesController#destroy as HTML
|
5718
|
+
Parameters: {"id"=>"450723037"}
|
5719
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
5720
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5721
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "phones" WHERE "phones"."id" = ? [["id", 450723037]]
|
5722
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5723
|
+
Redirected to http://test.host/phones
|
5724
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
|
5725
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "phones"
|
5726
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
5727
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5728
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
5729
|
+
Processing by PhonesController#edit as HTML
|
5730
|
+
Parameters: {"id"=>"450723037"}
|
5731
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
5732
|
+
Rendered phones/_form.html.erb (5.3ms)
|
5733
|
+
Completed 200 OK in 27ms (Views: 24.8ms | ActiveRecord: 0.1ms)
|
5734
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5735
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5736
|
+
[1m[36mPhone Load (0.2ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
5737
|
+
Processing by PhonesController#index as HTML
|
5738
|
+
[1m[35mPhone Load (0.3ms)[0m SELECT "phones".* FROM "phones"
|
5739
|
+
Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 0.3ms)
|
5740
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5741
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5742
|
+
[1m[36mPhone Load (0.2ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
5743
|
+
Processing by PhonesController#new as HTML
|
5744
|
+
Rendered phones/_form.html.erb (4.1ms)
|
5745
|
+
Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms)
|
5746
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5747
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5748
|
+
[1m[35mPhone Load (0.2ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5749
|
+
Processing by PhonesController#show as HTML
|
5750
|
+
Parameters: {"id"=>"450723037"}
|
5751
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
5752
|
+
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.1ms)
|
5753
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5754
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5755
|
+
[1m[35mPhone Load (0.2ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5756
|
+
Processing by PhonesController#update as HTML
|
5757
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}, "id"=>"450723037"}
|
5758
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
5759
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5760
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5761
|
+
Redirected to http://test.host/phones/450723037
|
5762
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
|
5763
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5764
|
+
Connecting to database specified by database.yml
|
5765
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
5766
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "phones"
|
5767
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '972541234567', '2013-10-16 15:44:32', '2013-10-16 15:44:32', 450723037)[0m
|
5768
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('wrong', '2013-10-16 15:44:32', '2013-10-16 15:44:32', 667262234)
|
5769
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-16 15:44:32', '2013-10-16 15:44:32', 512636273)[0m
|
5770
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "phones" ("possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-16 15:44:32', '2013-10-16 15:44:32', 23760034)
|
5771
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', 'wrong', '2013-10-16 15:44:32', '2013-10-16 15:44:32', 703612349)[0m
|
5772
|
+
[1m[35m (4.4ms)[0m commit transaction
|
5773
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5774
|
+
[1m[35mPhone Load (0.5ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 512636273]]
|
5775
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5776
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5777
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5778
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5779
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5780
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5781
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5782
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5783
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5784
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 16 Oct 2013 15:44:32 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Wed, 16 Oct 2013 15:44:32 UTC +00:00]]
|
5785
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5786
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5787
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5788
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5789
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5790
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5791
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5792
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5793
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 23760034]]
|
5794
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5795
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5796
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5797
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5798
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 667262234]]
|
5799
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5800
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5801
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5802
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5803
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 703612349]]
|
5804
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5805
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5806
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5807
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5808
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5809
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
5810
|
+
Processing by PhonesController#create as HTML
|
5811
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}}
|
5812
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5813
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 16 Oct 2013 15:44:32 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Wed, 16 Oct 2013 15:44:32 UTC +00:00]]
|
5814
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5815
|
+
Redirected to http://test.host/phones/703612350
|
5816
|
+
Completed 302 Found in 43ms (ActiveRecord: 0.5ms)
|
5817
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
5818
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
5819
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5820
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5821
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
5822
|
+
Processing by PhonesController#destroy as HTML
|
5823
|
+
Parameters: {"id"=>"450723037"}
|
5824
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
5825
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5826
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "phones" WHERE "phones"."id" = ? [["id", 450723037]]
|
5827
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5828
|
+
Redirected to http://test.host/phones
|
5829
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
5830
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "phones"
|
5831
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5832
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5833
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
5834
|
+
Processing by PhonesController#edit as HTML
|
5835
|
+
Parameters: {"id"=>"450723037"}
|
5836
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
5837
|
+
Rendered phones/_form.html.erb (3.5ms)
|
5838
|
+
Completed 200 OK in 16ms (Views: 14.4ms | ActiveRecord: 0.1ms)
|
5839
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5840
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5841
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
5842
|
+
Processing by PhonesController#index as HTML
|
5843
|
+
[1m[35mPhone Load (0.2ms)[0m SELECT "phones".* FROM "phones"
|
5844
|
+
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.2ms)
|
5845
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5846
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5847
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
5848
|
+
Processing by PhonesController#new as HTML
|
5849
|
+
Rendered phones/_form.html.erb (2.5ms)
|
5850
|
+
Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)
|
5851
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5852
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5853
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5854
|
+
Processing by PhonesController#show as HTML
|
5855
|
+
Parameters: {"id"=>"450723037"}
|
5856
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
5857
|
+
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
|
5858
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5859
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5860
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5861
|
+
Processing by PhonesController#update as HTML
|
5862
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}, "id"=>"450723037"}
|
5863
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
5864
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5865
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5866
|
+
Redirected to http://test.host/phones/450723037
|
5867
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.2ms)
|
5868
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5869
|
+
Connecting to database specified by database.yml
|
5870
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
5871
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "phones"
|
5872
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '972541234567', '2013-10-16 15:45:51', '2013-10-16 15:45:51', 450723037)[0m
|
5873
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('wrong', '2013-10-16 15:45:51', '2013-10-16 15:45:51', 667262234)
|
5874
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-16 15:45:51', '2013-10-16 15:45:51', 512636273)[0m
|
5875
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "phones" ("possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-16 15:45:51', '2013-10-16 15:45:51', 23760034)
|
5876
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', 'wrong', '2013-10-16 15:45:51', '2013-10-16 15:45:51', 703612349)[0m
|
5877
|
+
[1m[35m (3.6ms)[0m commit transaction
|
5878
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5879
|
+
[1m[35mPhone Load (0.3ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 512636273]]
|
5880
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5881
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5882
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5883
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5884
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5885
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5886
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5887
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5888
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5889
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 16 Oct 2013 15:45:51 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Wed, 16 Oct 2013 15:45:51 UTC +00:00]]
|
5890
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5891
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5892
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5893
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5894
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5895
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5896
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5897
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5898
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 23760034]]
|
5899
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5900
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5901
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5902
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5903
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 667262234]]
|
5904
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5905
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5906
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5907
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5908
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 703612349]]
|
5909
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5910
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5911
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5912
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5913
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5914
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
5915
|
+
Processing by PhonesController#create as HTML
|
5916
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}}
|
5917
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5918
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 16 Oct 2013 15:45:51 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Wed, 16 Oct 2013 15:45:51 UTC +00:00]]
|
5919
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5920
|
+
Redirected to http://test.host/phones/703612350
|
5921
|
+
Completed 302 Found in 43ms (ActiveRecord: 0.5ms)
|
5922
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
5923
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
5924
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5925
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5926
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
5927
|
+
Processing by PhonesController#destroy as HTML
|
5928
|
+
Parameters: {"id"=>"450723037"}
|
5929
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
5930
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5931
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "phones" WHERE "phones"."id" = ? [["id", 450723037]]
|
5932
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5933
|
+
Redirected to http://test.host/phones
|
5934
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
5935
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "phones"
|
5936
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5937
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5938
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
5939
|
+
Processing by PhonesController#edit as HTML
|
5940
|
+
Parameters: {"id"=>"450723037"}
|
5941
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
5942
|
+
Rendered phones/_form.html.erb (3.4ms)
|
5943
|
+
Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.1ms)
|
5944
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5945
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5946
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
5947
|
+
Processing by PhonesController#index as HTML
|
5948
|
+
[1m[35mPhone Load (0.2ms)[0m SELECT "phones".* FROM "phones"
|
5949
|
+
Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.2ms)
|
5950
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5951
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5952
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
5953
|
+
Processing by PhonesController#new as HTML
|
5954
|
+
Rendered phones/_form.html.erb (2.3ms)
|
5955
|
+
Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
|
5956
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5957
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5958
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5959
|
+
Processing by PhonesController#show as HTML
|
5960
|
+
Parameters: {"id"=>"450723037"}
|
5961
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
5962
|
+
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)
|
5963
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5964
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5965
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
5966
|
+
Processing by PhonesController#update as HTML
|
5967
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}, "id"=>"450723037"}
|
5968
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
5969
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5970
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5971
|
+
Redirected to http://test.host/phones/450723037
|
5972
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
|
5973
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
data/test/phonelib_test.rb
CHANGED
@@ -208,5 +208,11 @@ class PhonelibTest < Test::Unit::TestCase
|
|
208
208
|
phone = Phonelib.parse(nil)
|
209
209
|
assert phone.invalid?
|
210
210
|
end
|
211
|
+
|
212
|
+
should 'be valid when number invalid for default country' do
|
213
|
+
Phonelib.default_country = :CN
|
214
|
+
phone = Phonelib.parse('+41 44 668 18 00')
|
215
|
+
assert phone.valid?
|
216
|
+
end
|
211
217
|
end
|
212
218
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phonelib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vadim Senderovich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|