phonelib 0.2.1 → 0.2.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.
- data/README.rdoc +1 -1
- data/lib/phonelib/core.rb +2 -1
- data/lib/phonelib/version.rb +1 -1
- data/test/dummy/app/assets/javascripts/application.js +0 -2
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +630 -0
- data/test/phonelib_test.rb +6 -0
- metadata +14 -14
data/README.rdoc
CHANGED
@@ -17,7 +17,7 @@ http://rubydoc.info/gems/phonelib/frames
|
|
17
17
|
|
18
18
|
=== Bug reports
|
19
19
|
|
20
|
-
If you discover a problem with
|
20
|
+
If you discover a problem with Phonelib gem, let us know about it.
|
21
21
|
https://github.com/daddyz/phonelib/issues
|
22
22
|
|
23
23
|
=== Example application
|
data/lib/phonelib/core.rb
CHANGED
@@ -93,7 +93,8 @@ module Phonelib
|
|
93
93
|
load_data
|
94
94
|
|
95
95
|
country = country_or_default_country(passed_country)
|
96
|
-
if country.nil?
|
96
|
+
if phone.nil? || country.nil?
|
97
|
+
# has to return instance of Phonelib::Phone even if no phone passed
|
97
98
|
Phonelib::Phone.new(phone, @@phone_data)
|
98
99
|
else
|
99
100
|
detected = detect_and_parse_by_country(phone, country)
|
data/lib/phonelib/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -1510,3 +1510,633 @@ Processing by PhonesController#update as HTML
|
|
1510
1510
|
Redirected to http://test.host/phones/450723037
|
1511
1511
|
Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
|
1512
1512
|
[1m[35m (0.0ms)[0m rollback transaction
|
1513
|
+
Connecting to database specified by database.yml
|
1514
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1515
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "phones"
|
1516
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '972541234567', '2013-10-01 06:36:26', '2013-10-01 06:36:26', 450723037)[0m
|
1517
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('wrong', '2013-10-01 06:36:26', '2013-10-01 06:36:26', 667262234)
|
1518
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:36:26', '2013-10-01 06:36:26', 512636273)[0m
|
1519
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "phones" ("possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:36:26', '2013-10-01 06:36:26', 23760034)
|
1520
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', 'wrong', '2013-10-01 06:36:26', '2013-10-01 06:36:26', 703612349)[0m
|
1521
|
+
[1m[35m (8.2ms)[0m commit transaction
|
1522
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1523
|
+
[1m[35mPhone Load (1.5ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 512636273]]
|
1524
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1525
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1526
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1527
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1528
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1529
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1530
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1531
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1532
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1533
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 01 Oct 2013 06:36:26 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Tue, 01 Oct 2013 06:36:26 UTC +00:00]]
|
1534
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1535
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1536
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1537
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1538
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1539
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1540
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1541
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1542
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 23760034]]
|
1543
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1544
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1545
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1546
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1547
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 667262234]]
|
1548
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1549
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1550
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1551
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1552
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 703612349]]
|
1553
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1554
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1555
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1556
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1557
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1558
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
1559
|
+
Processing by PhonesController#create as HTML
|
1560
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}}
|
1561
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1562
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Tue, 01 Oct 2013 06:36:26 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Tue, 01 Oct 2013 06:36:26 UTC +00:00]]
|
1563
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1564
|
+
Redirected to http://test.host/phones/703612350
|
1565
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
1566
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
1567
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1568
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1569
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1570
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
1571
|
+
Processing by PhonesController#destroy as HTML
|
1572
|
+
Parameters: {"id"=>"450723037"}
|
1573
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
1574
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1575
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "phones" WHERE "phones"."id" = ? [["id", 450723037]]
|
1576
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1577
|
+
Redirected to http://test.host/phones
|
1578
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
|
1579
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "phones"
|
1580
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1581
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1582
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
1583
|
+
Processing by PhonesController#edit as HTML
|
1584
|
+
Parameters: {"id"=>"450723037"}
|
1585
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
1586
|
+
Rendered phones/_form.html.erb (1.8ms)
|
1587
|
+
Completed 200 OK in 27ms (Views: 26.5ms | ActiveRecord: 0.0ms)
|
1588
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1589
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1590
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
1591
|
+
Processing by PhonesController#index as HTML
|
1592
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones"
|
1593
|
+
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
|
1594
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1595
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1596
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
1597
|
+
Processing by PhonesController#new as HTML
|
1598
|
+
Rendered phones/_form.html.erb (1.1ms)
|
1599
|
+
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
|
1600
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1601
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1602
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1603
|
+
Processing by PhonesController#show as HTML
|
1604
|
+
Parameters: {"id"=>"450723037"}
|
1605
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
1606
|
+
Completed 200 OK in 18ms (Views: 17.3ms | ActiveRecord: 0.0ms)
|
1607
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1608
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1609
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1610
|
+
Processing by PhonesController#update as HTML
|
1611
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}, "id"=>"450723037"}
|
1612
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
1613
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1614
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1615
|
+
Redirected to http://test.host/phones/450723037
|
1616
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
|
1617
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1618
|
+
Connecting to database specified by database.yml
|
1619
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1620
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "phones"
|
1621
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '972541234567', '2013-10-01 06:37:20', '2013-10-01 06:37:20', 450723037)[0m
|
1622
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('wrong', '2013-10-01 06:37:20', '2013-10-01 06:37:20', 667262234)
|
1623
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:37:20', '2013-10-01 06:37:20', 512636273)[0m
|
1624
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "phones" ("possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:37:20', '2013-10-01 06:37:20', 23760034)
|
1625
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', 'wrong', '2013-10-01 06:37:20', '2013-10-01 06:37:20', 703612349)[0m
|
1626
|
+
[1m[35m (6.2ms)[0m commit transaction
|
1627
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1628
|
+
[1m[35mPhone Load (0.7ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 512636273]]
|
1629
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1630
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1631
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1632
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1633
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1634
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1635
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1636
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1637
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1638
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 01 Oct 2013 06:37:21 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Tue, 01 Oct 2013 06:37:21 UTC +00:00]]
|
1639
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1640
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1641
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1642
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1643
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1644
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1645
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1646
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1647
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 23760034]]
|
1648
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1649
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1650
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1651
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1652
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 667262234]]
|
1653
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1654
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1655
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1656
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1657
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 703612349]]
|
1658
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1659
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1660
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1661
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1662
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1663
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
1664
|
+
Processing by PhonesController#create as HTML
|
1665
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}}
|
1666
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1667
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Tue, 01 Oct 2013 06:37:21 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Tue, 01 Oct 2013 06:37:21 UTC +00:00]]
|
1668
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1669
|
+
Redirected to http://test.host/phones/703612350
|
1670
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
1671
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
1672
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1673
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1674
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1675
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
1676
|
+
Processing by PhonesController#destroy as HTML
|
1677
|
+
Parameters: {"id"=>"450723037"}
|
1678
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
1679
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1680
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "phones" WHERE "phones"."id" = ? [["id", 450723037]]
|
1681
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1682
|
+
Redirected to http://test.host/phones
|
1683
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
|
1684
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "phones"
|
1685
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1686
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1687
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
1688
|
+
Processing by PhonesController#edit as HTML
|
1689
|
+
Parameters: {"id"=>"450723037"}
|
1690
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
1691
|
+
Rendered phones/_form.html.erb (1.9ms)
|
1692
|
+
Completed 200 OK in 29ms (Views: 28.7ms | ActiveRecord: 0.0ms)
|
1693
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1694
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1695
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
1696
|
+
Processing by PhonesController#index as HTML
|
1697
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones"
|
1698
|
+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
|
1699
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1700
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1701
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
1702
|
+
Processing by PhonesController#new as HTML
|
1703
|
+
Rendered phones/_form.html.erb (1.1ms)
|
1704
|
+
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
|
1705
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1706
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1707
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1708
|
+
Processing by PhonesController#show as HTML
|
1709
|
+
Parameters: {"id"=>"450723037"}
|
1710
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
1711
|
+
Completed 200 OK in 18ms (Views: 17.4ms | ActiveRecord: 0.0ms)
|
1712
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1713
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1714
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1715
|
+
Processing by PhonesController#update as HTML
|
1716
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}, "id"=>"450723037"}
|
1717
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
1718
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1719
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1720
|
+
Redirected to http://test.host/phones/450723037
|
1721
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
|
1722
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1723
|
+
Connecting to database specified by database.yml
|
1724
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1725
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "phones"
|
1726
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '972541234567', '2013-10-01 06:37:55', '2013-10-01 06:37:55', 450723037)[0m
|
1727
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('wrong', '2013-10-01 06:37:55', '2013-10-01 06:37:55', 667262234)
|
1728
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:37:55', '2013-10-01 06:37:55', 512636273)[0m
|
1729
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "phones" ("possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:37:55', '2013-10-01 06:37:55', 23760034)
|
1730
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', 'wrong', '2013-10-01 06:37:55', '2013-10-01 06:37:55', 703612349)[0m
|
1731
|
+
[1m[35m (4.1ms)[0m commit transaction
|
1732
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1733
|
+
[1m[35mPhone Load (1.4ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 512636273]]
|
1734
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1735
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1736
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1737
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1738
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1739
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1740
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1741
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1742
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1743
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 01 Oct 2013 06:37:55 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Tue, 01 Oct 2013 06:37:55 UTC +00:00]]
|
1744
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1745
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1746
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1747
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1748
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1749
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1750
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1751
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1752
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 23760034]]
|
1753
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1754
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1755
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1756
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1757
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 667262234]]
|
1758
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1759
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1760
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1761
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1762
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 703612349]]
|
1763
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1764
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1765
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1766
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1767
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1768
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
1769
|
+
Processing by PhonesController#create as HTML
|
1770
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}}
|
1771
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1772
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Tue, 01 Oct 2013 06:37:55 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Tue, 01 Oct 2013 06:37:55 UTC +00:00]]
|
1773
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1774
|
+
Redirected to http://test.host/phones/703612350
|
1775
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
1776
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
1777
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1778
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1779
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1780
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
1781
|
+
Processing by PhonesController#destroy as HTML
|
1782
|
+
Parameters: {"id"=>"450723037"}
|
1783
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
1784
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1785
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "phones" WHERE "phones"."id" = ? [["id", 450723037]]
|
1786
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1787
|
+
Redirected to http://test.host/phones
|
1788
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
|
1789
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "phones"
|
1790
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1791
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1792
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
1793
|
+
Processing by PhonesController#edit as HTML
|
1794
|
+
Parameters: {"id"=>"450723037"}
|
1795
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
1796
|
+
Rendered phones/_form.html.erb (1.9ms)
|
1797
|
+
Completed 200 OK in 27ms (Views: 26.3ms | ActiveRecord: 0.0ms)
|
1798
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1799
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1800
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
1801
|
+
Processing by PhonesController#index as HTML
|
1802
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones"
|
1803
|
+
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
|
1804
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1805
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1806
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
1807
|
+
Processing by PhonesController#new as HTML
|
1808
|
+
Rendered phones/_form.html.erb (1.1ms)
|
1809
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
|
1810
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1811
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1812
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1813
|
+
Processing by PhonesController#show as HTML
|
1814
|
+
Parameters: {"id"=>"450723037"}
|
1815
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
1816
|
+
Completed 200 OK in 19ms (Views: 18.4ms | ActiveRecord: 0.0ms)
|
1817
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1818
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1819
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1820
|
+
Processing by PhonesController#update as HTML
|
1821
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}, "id"=>"450723037"}
|
1822
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
1823
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1824
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1825
|
+
Redirected to http://test.host/phones/450723037
|
1826
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
|
1827
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1828
|
+
Connecting to database specified by database.yml
|
1829
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1830
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "phones"
|
1831
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '972541234567', '2013-10-01 06:38:36', '2013-10-01 06:38:36', 450723037)[0m
|
1832
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('wrong', '2013-10-01 06:38:36', '2013-10-01 06:38:36', 667262234)
|
1833
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:38:36', '2013-10-01 06:38:36', 512636273)[0m
|
1834
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "phones" ("possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:38:36', '2013-10-01 06:38:36', 23760034)
|
1835
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', 'wrong', '2013-10-01 06:38:36', '2013-10-01 06:38:36', 703612349)[0m
|
1836
|
+
[1m[35m (2.6ms)[0m commit transaction
|
1837
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1838
|
+
[1m[35mPhone Load (1.5ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 512636273]]
|
1839
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1840
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1841
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1842
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1843
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1844
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1845
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1846
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1847
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1848
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 01 Oct 2013 06:38:37 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Tue, 01 Oct 2013 06:38:37 UTC +00:00]]
|
1849
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1850
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1851
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1852
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1853
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1854
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1855
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1856
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1857
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 23760034]]
|
1858
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1859
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1860
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1861
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1862
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 667262234]]
|
1863
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1864
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1865
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1866
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1867
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 703612349]]
|
1868
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1869
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1870
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1871
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1872
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1873
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
1874
|
+
Processing by PhonesController#create as HTML
|
1875
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}}
|
1876
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1877
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Tue, 01 Oct 2013 06:38:37 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Tue, 01 Oct 2013 06:38:37 UTC +00:00]]
|
1878
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1879
|
+
Redirected to http://test.host/phones/703612350
|
1880
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
1881
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
1882
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1883
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1884
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1885
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
1886
|
+
Processing by PhonesController#destroy as HTML
|
1887
|
+
Parameters: {"id"=>"450723037"}
|
1888
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
1889
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1890
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "phones" WHERE "phones"."id" = ? [["id", 450723037]]
|
1891
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1892
|
+
Redirected to http://test.host/phones
|
1893
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
|
1894
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "phones"
|
1895
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1896
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1897
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
1898
|
+
Processing by PhonesController#edit as HTML
|
1899
|
+
Parameters: {"id"=>"450723037"}
|
1900
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
1901
|
+
Rendered phones/_form.html.erb (1.9ms)
|
1902
|
+
Completed 200 OK in 27ms (Views: 26.5ms | ActiveRecord: 0.0ms)
|
1903
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1904
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1905
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
1906
|
+
Processing by PhonesController#index as HTML
|
1907
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones"
|
1908
|
+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
|
1909
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1910
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1911
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
1912
|
+
Processing by PhonesController#new as HTML
|
1913
|
+
Rendered phones/_form.html.erb (1.1ms)
|
1914
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
|
1915
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1916
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1917
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1918
|
+
Processing by PhonesController#show as HTML
|
1919
|
+
Parameters: {"id"=>"450723037"}
|
1920
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
1921
|
+
Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
1922
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1923
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1924
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1925
|
+
Processing by PhonesController#update as HTML
|
1926
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}, "id"=>"450723037"}
|
1927
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
1928
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1929
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1930
|
+
Redirected to http://test.host/phones/450723037
|
1931
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
|
1932
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1933
|
+
Connecting to database specified by database.yml
|
1934
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1935
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "phones"
|
1936
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '972541234567', '2013-10-01 06:39:48', '2013-10-01 06:39:48', 450723037)[0m
|
1937
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('wrong', '2013-10-01 06:39:48', '2013-10-01 06:39:48', 667262234)
|
1938
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:39:48', '2013-10-01 06:39:48', 512636273)[0m
|
1939
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "phones" ("possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:39:48', '2013-10-01 06:39:48', 23760034)
|
1940
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', 'wrong', '2013-10-01 06:39:48', '2013-10-01 06:39:48', 703612349)[0m
|
1941
|
+
[1m[35m (10.4ms)[0m commit transaction
|
1942
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1943
|
+
[1m[35mPhone Load (1.5ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 512636273]]
|
1944
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1945
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1946
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1947
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1948
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1949
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1950
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1951
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1952
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1953
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 01 Oct 2013 06:39:48 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Tue, 01 Oct 2013 06:39:48 UTC +00:00]]
|
1954
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1955
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1956
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1957
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1958
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1959
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1960
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1961
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1962
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 23760034]]
|
1963
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1964
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1965
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1966
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1967
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 667262234]]
|
1968
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1969
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1970
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1971
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1972
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 703612349]]
|
1973
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1974
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1975
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1976
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1977
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1978
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
1979
|
+
Processing by PhonesController#create as HTML
|
1980
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}}
|
1981
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1982
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Tue, 01 Oct 2013 06:39:48 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Tue, 01 Oct 2013 06:39:48 UTC +00:00]]
|
1983
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1984
|
+
Redirected to http://test.host/phones/703612350
|
1985
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
1986
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
1987
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1988
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1989
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
1990
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
1991
|
+
Processing by PhonesController#destroy as HTML
|
1992
|
+
Parameters: {"id"=>"450723037"}
|
1993
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
1994
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1995
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "phones" WHERE "phones"."id" = ? [["id", 450723037]]
|
1996
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1997
|
+
Redirected to http://test.host/phones
|
1998
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
|
1999
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "phones"
|
2000
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2001
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2002
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
2003
|
+
Processing by PhonesController#edit as HTML
|
2004
|
+
Parameters: {"id"=>"450723037"}
|
2005
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
2006
|
+
Rendered phones/_form.html.erb (1.9ms)
|
2007
|
+
Completed 200 OK in 28ms (Views: 27.0ms | ActiveRecord: 0.0ms)
|
2008
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2009
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2010
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
2011
|
+
Processing by PhonesController#index as HTML
|
2012
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones"
|
2013
|
+
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
|
2014
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2015
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2016
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
2017
|
+
Processing by PhonesController#new as HTML
|
2018
|
+
Rendered phones/_form.html.erb (1.2ms)
|
2019
|
+
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
|
2020
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2021
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2022
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
2023
|
+
Processing by PhonesController#show as HTML
|
2024
|
+
Parameters: {"id"=>"450723037"}
|
2025
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
2026
|
+
Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
2027
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2028
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2029
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
2030
|
+
Processing by PhonesController#update as HTML
|
2031
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}, "id"=>"450723037"}
|
2032
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
2033
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2034
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2035
|
+
Redirected to http://test.host/phones/450723037
|
2036
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
|
2037
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2038
|
+
Connecting to database specified by database.yml
|
2039
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2040
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "phones"
|
2041
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '972541234567', '2013-10-01 06:41:13', '2013-10-01 06:41:13', 450723037)[0m
|
2042
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('wrong', '2013-10-01 06:41:13', '2013-10-01 06:41:13', 667262234)
|
2043
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:41:13', '2013-10-01 06:41:13', 512636273)[0m
|
2044
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "phones" ("possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:41:13', '2013-10-01 06:41:13', 23760034)
|
2045
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "phones" ("number", "possible_number", "created_at", "updated_at", "id") VALUES ('972541234567', 'wrong', '2013-10-01 06:41:13', '2013-10-01 06:41:13', 703612349)[0m
|
2046
|
+
[1m[35m (6.4ms)[0m commit transaction
|
2047
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2048
|
+
[1m[35mPhone Load (1.5ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 512636273]]
|
2049
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2050
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2051
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2052
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2053
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2054
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2055
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2056
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2057
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2058
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 01 Oct 2013 06:41:13 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Tue, 01 Oct 2013 06:41:13 UTC +00:00]]
|
2059
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2060
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2061
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2062
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
2063
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2064
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2065
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2066
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2067
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 23760034]]
|
2068
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2069
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2070
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2071
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2072
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 667262234]]
|
2073
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2074
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2075
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2076
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2077
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 703612349]]
|
2078
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2079
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2080
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2081
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2082
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
2083
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
2084
|
+
Processing by PhonesController#create as HTML
|
2085
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}}
|
2086
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2087
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "phones" ("created_at", "number", "possible_number", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Tue, 01 Oct 2013 06:41:13 UTC +00:00], ["number", "972541234567"], ["possible_number", nil], ["updated_at", Tue, 01 Oct 2013 06:41:13 UTC +00:00]]
|
2088
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2089
|
+
Redirected to http://test.host/phones/703612350
|
2090
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
2091
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
2092
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2093
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2094
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
2095
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "phones" [0m
|
2096
|
+
Processing by PhonesController#destroy as HTML
|
2097
|
+
Parameters: {"id"=>"450723037"}
|
2098
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
2099
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2100
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "phones" WHERE "phones"."id" = ? [["id", 450723037]]
|
2101
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2102
|
+
Redirected to http://test.host/phones
|
2103
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
|
2104
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "phones"
|
2105
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2106
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2107
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
2108
|
+
Processing by PhonesController#edit as HTML
|
2109
|
+
Parameters: {"id"=>"450723037"}
|
2110
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
|
2111
|
+
Rendered phones/_form.html.erb (2.0ms)
|
2112
|
+
Completed 200 OK in 27ms (Views: 26.4ms | ActiveRecord: 0.0ms)
|
2113
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2114
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2115
|
+
[1m[36mPhone Load (0.1ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
2116
|
+
Processing by PhonesController#index as HTML
|
2117
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones"
|
2118
|
+
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
|
2119
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2120
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2121
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", 450723037]]
|
2122
|
+
Processing by PhonesController#new as HTML
|
2123
|
+
Rendered phones/_form.html.erb (1.2ms)
|
2124
|
+
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
|
2125
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2126
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2127
|
+
[1m[35mPhone Load (0.0ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
2128
|
+
Processing by PhonesController#show as HTML
|
2129
|
+
Parameters: {"id"=>"450723037"}
|
2130
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
2131
|
+
Completed 200 OK in 18ms (Views: 17.3ms | ActiveRecord: 0.0ms)
|
2132
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2133
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2134
|
+
[1m[35mPhone Load (0.1ms)[0m SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
|
2135
|
+
Processing by PhonesController#update as HTML
|
2136
|
+
Parameters: {"phone"=>{"number"=>"972541234567"}, "id"=>"450723037"}
|
2137
|
+
[1m[36mPhone Load (0.0ms)[0m [1mSELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1[0m [["id", "450723037"]]
|
2138
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2139
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2140
|
+
Redirected to http://test.host/phones/450723037
|
2141
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
|
2142
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
data/test/phonelib_test.rb
CHANGED
@@ -197,5 +197,11 @@ class PhonelibTest < Test::Unit::TestCase
|
|
197
197
|
phone = Phonelib.parse('972541234567')
|
198
198
|
assert phone.valid?
|
199
199
|
end
|
200
|
+
|
201
|
+
should 'not fail when no phone passed and default country set' do
|
202
|
+
Phonelib.default_country = :UA
|
203
|
+
phone = Phonelib.parse(nil)
|
204
|
+
assert phone.invalid?
|
205
|
+
end
|
200
206
|
end
|
201
207
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &10515400 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.1.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *10515400
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sqlite3
|
27
|
-
requirement: &
|
27
|
+
requirement: &10527580 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *10527580
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: nokogiri
|
38
|
-
requirement: &
|
38
|
+
requirement: &10525920 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *10525920
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: pry
|
49
|
-
requirement: &
|
49
|
+
requirement: &10525160 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *10525160
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: shoulda-context
|
60
|
-
requirement: &
|
60
|
+
requirement: &10524140 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *10524140
|
69
69
|
description: Google libphonenumber library was taken as a basis for this gem. Gem
|
70
70
|
uses its data file for validations and number formatting.
|
71
71
|
email:
|
@@ -151,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
151
151
|
version: '0'
|
152
152
|
segments:
|
153
153
|
- 0
|
154
|
-
hash:
|
154
|
+
hash: 3493638002510029503
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
156
|
none: false
|
157
157
|
requirements:
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
version: '0'
|
161
161
|
segments:
|
162
162
|
- 0
|
163
|
-
hash:
|
163
|
+
hash: 3493638002510029503
|
164
164
|
requirements: []
|
165
165
|
rubyforge_project:
|
166
166
|
rubygems_version: 1.8.17
|