phonelib 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
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 Evercookie gem, let us know about it.
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)
@@ -1,4 +1,4 @@
1
1
  module Phonelib
2
2
  # :nodoc:
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
@@ -10,6 +10,4 @@
10
10
  // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
11
  // GO AFTER THE REQUIRES BELOW.
12
12
  //
13
- //= require jquery
14
- //= require jquery_ujs
15
13
  //= require_tree .
Binary file
@@ -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
   (0.0ms) rollback transaction
1513
+ Connecting to database specified by database.yml
1514
+  (0.2ms) begin transaction
1515
+ Fixture Delete (0.1ms) DELETE FROM "phones"
1516
+ Fixture Insert (0.1ms) INSERT 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)
1517
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:36:26', '2013-10-01 06:36:26', 512636273)
1519
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1521
+  (8.2ms) commit transaction
1522
+  (0.1ms) begin transaction
1523
+ Phone Load (1.5ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 512636273]]
1524
+  (0.1ms) SAVEPOINT active_record_1
1525
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1526
+  (0.0ms) rollback transaction
1527
+  (0.0ms) begin transaction
1528
+  (0.0ms) SAVEPOINT active_record_1
1529
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1530
+  (0.0ms) rollback transaction
1531
+  (0.0ms) begin transaction
1532
+  (0.0ms) SAVEPOINT active_record_1
1533
+ SQL (0.7ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1535
+  (0.1ms) rollback transaction
1536
+  (0.0ms) begin transaction
1537
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1538
+  (0.0ms) SAVEPOINT active_record_1
1539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1540
+  (0.0ms) rollback transaction
1541
+  (0.0ms) begin transaction
1542
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 23760034]]
1543
+  (0.0ms) SAVEPOINT active_record_1
1544
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1545
+  (0.0ms) rollback transaction
1546
+  (0.0ms) begin transaction
1547
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 667262234]]
1548
+  (0.0ms) SAVEPOINT active_record_1
1549
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1550
+  (0.0ms) rollback transaction
1551
+  (0.0ms) begin transaction
1552
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 703612349]]
1553
+  (0.0ms) SAVEPOINT active_record_1
1554
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1555
+  (0.0ms) rollback transaction
1556
+  (0.0ms) begin transaction
1557
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1558
+  (0.1ms) SELECT COUNT(*) FROM "phones" 
1559
+ Processing by PhonesController#create as HTML
1560
+ Parameters: {"phone"=>{"number"=>"972541234567"}}
1561
+  (0.0ms) SAVEPOINT active_record_1
1562
+ SQL (0.2ms) 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]]
1563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1564
+ Redirected to http://test.host/phones/703612350
1565
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1566
+  (0.0ms) SELECT COUNT(*) FROM "phones" 
1567
+  (0.1ms) rollback transaction
1568
+  (0.0ms) begin transaction
1569
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1570
+  (0.0ms) SELECT COUNT(*) FROM "phones" 
1571
+ Processing by PhonesController#destroy as HTML
1572
+ Parameters: {"id"=>"450723037"}
1573
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
1574
+  (0.0ms) SAVEPOINT active_record_1
1575
+ SQL (0.1ms) DELETE FROM "phones" WHERE "phones"."id" = ? [["id", 450723037]]
1576
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1577
+ Redirected to http://test.host/phones
1578
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
1579
+  (0.0ms) SELECT COUNT(*) FROM "phones"
1580
+  (0.0ms) rollback transaction
1581
+  (0.0ms) begin transaction
1582
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1583
+ Processing by PhonesController#edit as HTML
1584
+ Parameters: {"id"=>"450723037"}
1585
+ Phone Load (0.0ms) 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
+  (0.1ms) rollback transaction
1589
+  (0.0ms) begin transaction
1590
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1591
+ Processing by PhonesController#index as HTML
1592
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones"
1593
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
1594
+  (0.0ms) rollback transaction
1595
+  (0.0ms) begin transaction
1596
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["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
+  (0.0ms) rollback transaction
1601
+  (0.0ms) begin transaction
1602
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1603
+ Processing by PhonesController#show as HTML
1604
+ Parameters: {"id"=>"450723037"}
1605
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
1606
+ Completed 200 OK in 18ms (Views: 17.3ms | ActiveRecord: 0.0ms)
1607
+  (0.1ms) rollback transaction
1608
+  (0.0ms) begin transaction
1609
+ Phone Load (0.1ms) 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
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
1613
+  (0.0ms) SAVEPOINT active_record_1
1614
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1615
+ Redirected to http://test.host/phones/450723037
1616
+ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
1617
+  (0.0ms) rollback transaction
1618
+ Connecting to database specified by database.yml
1619
+  (0.2ms) begin transaction
1620
+ Fixture Delete (0.1ms) DELETE FROM "phones"
1621
+ Fixture Insert (0.1ms) INSERT 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)
1622
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:37:20', '2013-10-01 06:37:20', 512636273)
1624
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1626
+  (6.2ms) commit transaction
1627
+  (0.0ms) begin transaction
1628
+ Phone Load (0.7ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 512636273]]
1629
+  (0.0ms) SAVEPOINT active_record_1
1630
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1631
+  (0.0ms) rollback transaction
1632
+  (0.0ms) begin transaction
1633
+  (0.0ms) SAVEPOINT active_record_1
1634
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1635
+  (0.0ms) rollback transaction
1636
+  (0.0ms) begin transaction
1637
+  (0.0ms) SAVEPOINT active_record_1
1638
+ SQL (0.8ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1640
+  (0.1ms) rollback transaction
1641
+  (0.0ms) begin transaction
1642
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1643
+  (0.0ms) SAVEPOINT active_record_1
1644
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1645
+  (0.0ms) rollback transaction
1646
+  (0.0ms) begin transaction
1647
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 23760034]]
1648
+  (0.0ms) SAVEPOINT active_record_1
1649
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1650
+  (0.0ms) rollback transaction
1651
+  (0.0ms) begin transaction
1652
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 667262234]]
1653
+  (0.0ms) SAVEPOINT active_record_1
1654
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1655
+  (0.0ms) rollback transaction
1656
+  (0.0ms) begin transaction
1657
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 703612349]]
1658
+  (0.0ms) SAVEPOINT active_record_1
1659
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1660
+  (0.0ms) rollback transaction
1661
+  (0.1ms) begin transaction
1662
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1663
+  (0.1ms) SELECT COUNT(*) FROM "phones" 
1664
+ Processing by PhonesController#create as HTML
1665
+ Parameters: {"phone"=>{"number"=>"972541234567"}}
1666
+  (0.0ms) SAVEPOINT active_record_1
1667
+ SQL (0.2ms) 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]]
1668
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1669
+ Redirected to http://test.host/phones/703612350
1670
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1671
+  (0.1ms) SELECT COUNT(*) FROM "phones" 
1672
+  (0.1ms) rollback transaction
1673
+  (0.0ms) begin transaction
1674
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1675
+  (0.0ms) SELECT COUNT(*) FROM "phones" 
1676
+ Processing by PhonesController#destroy as HTML
1677
+ Parameters: {"id"=>"450723037"}
1678
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
1679
+  (0.0ms) SAVEPOINT active_record_1
1680
+ SQL (0.1ms) DELETE FROM "phones" WHERE "phones"."id" = ? [["id", 450723037]]
1681
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1682
+ Redirected to http://test.host/phones
1683
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
1684
+  (0.0ms) SELECT COUNT(*) FROM "phones"
1685
+  (0.0ms) rollback transaction
1686
+  (0.0ms) begin transaction
1687
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1688
+ Processing by PhonesController#edit as HTML
1689
+ Parameters: {"id"=>"450723037"}
1690
+ Phone Load (0.0ms) 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
+  (0.1ms) rollback transaction
1694
+  (0.0ms) begin transaction
1695
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1696
+ Processing by PhonesController#index as HTML
1697
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones"
1698
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
1699
+  (0.0ms) rollback transaction
1700
+  (0.0ms) begin transaction
1701
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["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
+  (0.0ms) rollback transaction
1706
+  (0.0ms) begin transaction
1707
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1708
+ Processing by PhonesController#show as HTML
1709
+ Parameters: {"id"=>"450723037"}
1710
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
1711
+ Completed 200 OK in 18ms (Views: 17.4ms | ActiveRecord: 0.0ms)
1712
+  (0.1ms) rollback transaction
1713
+  (0.0ms) begin transaction
1714
+ Phone Load (0.1ms) 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
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
1718
+  (0.0ms) SAVEPOINT active_record_1
1719
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1720
+ Redirected to http://test.host/phones/450723037
1721
+ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
1722
+  (0.0ms) rollback transaction
1723
+ Connecting to database specified by database.yml
1724
+  (0.2ms) begin transaction
1725
+ Fixture Delete (0.1ms) DELETE FROM "phones"
1726
+ Fixture Insert (0.1ms) INSERT 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)
1727
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:37:55', '2013-10-01 06:37:55', 512636273)
1729
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1731
+  (4.1ms) commit transaction
1732
+  (0.1ms) begin transaction
1733
+ Phone Load (1.4ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 512636273]]
1734
+  (0.1ms) SAVEPOINT active_record_1
1735
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1736
+  (0.0ms) rollback transaction
1737
+  (0.0ms) begin transaction
1738
+  (0.0ms) SAVEPOINT active_record_1
1739
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1740
+  (0.0ms) rollback transaction
1741
+  (0.0ms) begin transaction
1742
+  (0.0ms) SAVEPOINT active_record_1
1743
+ SQL (0.7ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1745
+  (0.1ms) rollback transaction
1746
+  (0.0ms) begin transaction
1747
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1748
+  (0.0ms) SAVEPOINT active_record_1
1749
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1750
+  (0.0ms) rollback transaction
1751
+  (0.0ms) begin transaction
1752
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 23760034]]
1753
+  (0.0ms) SAVEPOINT active_record_1
1754
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1755
+  (0.0ms) rollback transaction
1756
+  (0.0ms) begin transaction
1757
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 667262234]]
1758
+  (0.0ms) SAVEPOINT active_record_1
1759
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1760
+  (0.0ms) rollback transaction
1761
+  (0.0ms) begin transaction
1762
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 703612349]]
1763
+  (0.0ms) SAVEPOINT active_record_1
1764
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1765
+  (0.0ms) rollback transaction
1766
+  (0.1ms) begin transaction
1767
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1768
+  (0.1ms) SELECT COUNT(*) FROM "phones" 
1769
+ Processing by PhonesController#create as HTML
1770
+ Parameters: {"phone"=>{"number"=>"972541234567"}}
1771
+  (0.0ms) SAVEPOINT active_record_1
1772
+ SQL (0.2ms) 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]]
1773
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1774
+ Redirected to http://test.host/phones/703612350
1775
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
1776
+  (0.0ms) SELECT COUNT(*) FROM "phones" 
1777
+  (0.1ms) rollback transaction
1778
+  (0.0ms) begin transaction
1779
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1780
+  (0.0ms) SELECT COUNT(*) FROM "phones" 
1781
+ Processing by PhonesController#destroy as HTML
1782
+ Parameters: {"id"=>"450723037"}
1783
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
1784
+  (0.0ms) SAVEPOINT active_record_1
1785
+ SQL (0.1ms) DELETE FROM "phones" WHERE "phones"."id" = ? [["id", 450723037]]
1786
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1787
+ Redirected to http://test.host/phones
1788
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
1789
+  (0.0ms) SELECT COUNT(*) FROM "phones"
1790
+  (0.1ms) rollback transaction
1791
+  (0.0ms) begin transaction
1792
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1793
+ Processing by PhonesController#edit as HTML
1794
+ Parameters: {"id"=>"450723037"}
1795
+ Phone Load (0.0ms) 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
+  (0.1ms) rollback transaction
1799
+  (0.0ms) begin transaction
1800
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1801
+ Processing by PhonesController#index as HTML
1802
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones"
1803
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
1804
+  (0.0ms) rollback transaction
1805
+  (0.0ms) begin transaction
1806
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["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
+  (0.0ms) rollback transaction
1811
+  (0.0ms) begin transaction
1812
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1813
+ Processing by PhonesController#show as HTML
1814
+ Parameters: {"id"=>"450723037"}
1815
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
1816
+ Completed 200 OK in 19ms (Views: 18.4ms | ActiveRecord: 0.0ms)
1817
+  (0.1ms) rollback transaction
1818
+  (0.0ms) begin transaction
1819
+ Phone Load (0.1ms) 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
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
1823
+  (0.0ms) SAVEPOINT active_record_1
1824
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1825
+ Redirected to http://test.host/phones/450723037
1826
+ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
1827
+  (0.0ms) rollback transaction
1828
+ Connecting to database specified by database.yml
1829
+  (0.2ms) begin transaction
1830
+ Fixture Delete (0.1ms) DELETE FROM "phones"
1831
+ Fixture Insert (0.1ms) INSERT 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)
1832
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:38:36', '2013-10-01 06:38:36', 512636273)
1834
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1836
+  (2.6ms) commit transaction
1837
+  (0.0ms) begin transaction
1838
+ Phone Load (1.5ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 512636273]]
1839
+  (0.1ms) SAVEPOINT active_record_1
1840
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1841
+  (0.0ms) rollback transaction
1842
+  (0.0ms) begin transaction
1843
+  (0.0ms) SAVEPOINT active_record_1
1844
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1845
+  (0.0ms) rollback transaction
1846
+  (0.0ms) begin transaction
1847
+  (0.0ms) SAVEPOINT active_record_1
1848
+ SQL (0.7ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1850
+  (0.1ms) rollback transaction
1851
+  (0.0ms) begin transaction
1852
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1853
+  (0.0ms) SAVEPOINT active_record_1
1854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1855
+  (0.0ms) rollback transaction
1856
+  (0.0ms) begin transaction
1857
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 23760034]]
1858
+  (0.0ms) SAVEPOINT active_record_1
1859
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1860
+  (0.0ms) rollback transaction
1861
+  (0.0ms) begin transaction
1862
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 667262234]]
1863
+  (0.0ms) SAVEPOINT active_record_1
1864
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1865
+  (0.0ms) rollback transaction
1866
+  (0.0ms) begin transaction
1867
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 703612349]]
1868
+  (0.0ms) SAVEPOINT active_record_1
1869
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1870
+  (0.0ms) rollback transaction
1871
+  (0.1ms) begin transaction
1872
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1873
+  (0.1ms) SELECT COUNT(*) FROM "phones" 
1874
+ Processing by PhonesController#create as HTML
1875
+ Parameters: {"phone"=>{"number"=>"972541234567"}}
1876
+  (0.0ms) SAVEPOINT active_record_1
1877
+ SQL (0.2ms) 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]]
1878
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1879
+ Redirected to http://test.host/phones/703612350
1880
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
1881
+  (0.0ms) SELECT COUNT(*) FROM "phones" 
1882
+  (0.1ms) rollback transaction
1883
+  (0.0ms) begin transaction
1884
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1885
+  (0.0ms) SELECT COUNT(*) FROM "phones" 
1886
+ Processing by PhonesController#destroy as HTML
1887
+ Parameters: {"id"=>"450723037"}
1888
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
1889
+  (0.0ms) SAVEPOINT active_record_1
1890
+ SQL (0.1ms) DELETE FROM "phones" WHERE "phones"."id" = ? [["id", 450723037]]
1891
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1892
+ Redirected to http://test.host/phones
1893
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
1894
+  (0.0ms) SELECT COUNT(*) FROM "phones"
1895
+  (0.1ms) rollback transaction
1896
+  (0.0ms) begin transaction
1897
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1898
+ Processing by PhonesController#edit as HTML
1899
+ Parameters: {"id"=>"450723037"}
1900
+ Phone Load (0.0ms) 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
+  (0.1ms) rollback transaction
1904
+  (0.0ms) begin transaction
1905
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1906
+ Processing by PhonesController#index as HTML
1907
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones"
1908
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
1909
+  (0.0ms) rollback transaction
1910
+  (0.0ms) begin transaction
1911
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["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
+  (0.0ms) rollback transaction
1916
+  (0.0ms) begin transaction
1917
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1918
+ Processing by PhonesController#show as HTML
1919
+ Parameters: {"id"=>"450723037"}
1920
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
1921
+ Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)
1922
+  (0.1ms) rollback transaction
1923
+  (0.0ms) begin transaction
1924
+ Phone Load (0.0ms) 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
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
1928
+  (0.0ms) SAVEPOINT active_record_1
1929
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1930
+ Redirected to http://test.host/phones/450723037
1931
+ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
1932
+  (0.0ms) rollback transaction
1933
+ Connecting to database specified by database.yml
1934
+  (0.2ms) begin transaction
1935
+ Fixture Delete (0.1ms) DELETE FROM "phones"
1936
+ Fixture Insert (0.1ms) INSERT 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)
1937
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:39:48', '2013-10-01 06:39:48', 512636273)
1939
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
1941
+  (10.4ms) commit transaction
1942
+  (0.1ms) begin transaction
1943
+ Phone Load (1.5ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 512636273]]
1944
+  (0.1ms) SAVEPOINT active_record_1
1945
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1946
+  (0.0ms) rollback transaction
1947
+  (0.0ms) begin transaction
1948
+  (0.0ms) SAVEPOINT active_record_1
1949
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1950
+  (0.0ms) rollback transaction
1951
+  (0.0ms) begin transaction
1952
+  (0.0ms) SAVEPOINT active_record_1
1953
+ SQL (0.7ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1955
+  (0.1ms) rollback transaction
1956
+  (0.0ms) begin transaction
1957
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1958
+  (0.0ms) SAVEPOINT active_record_1
1959
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1960
+  (0.0ms) rollback transaction
1961
+  (0.0ms) begin transaction
1962
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 23760034]]
1963
+  (0.0ms) SAVEPOINT active_record_1
1964
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1965
+  (0.0ms) rollback transaction
1966
+  (0.0ms) begin transaction
1967
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 667262234]]
1968
+  (0.0ms) SAVEPOINT active_record_1
1969
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1970
+  (0.0ms) rollback transaction
1971
+  (0.0ms) begin transaction
1972
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 703612349]]
1973
+  (0.0ms) SAVEPOINT active_record_1
1974
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1975
+  (0.0ms) rollback transaction
1976
+  (0.1ms) begin transaction
1977
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1978
+  (0.1ms) SELECT COUNT(*) FROM "phones" 
1979
+ Processing by PhonesController#create as HTML
1980
+ Parameters: {"phone"=>{"number"=>"972541234567"}}
1981
+  (0.0ms) SAVEPOINT active_record_1
1982
+ SQL (0.2ms) 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]]
1983
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1984
+ Redirected to http://test.host/phones/703612350
1985
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
1986
+  (0.0ms) SELECT COUNT(*) FROM "phones" 
1987
+  (0.1ms) rollback transaction
1988
+  (0.0ms) begin transaction
1989
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
1990
+  (0.0ms) SELECT COUNT(*) FROM "phones" 
1991
+ Processing by PhonesController#destroy as HTML
1992
+ Parameters: {"id"=>"450723037"}
1993
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
1994
+  (0.0ms) SAVEPOINT active_record_1
1995
+ SQL (0.1ms) DELETE FROM "phones" WHERE "phones"."id" = ? [["id", 450723037]]
1996
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1997
+ Redirected to http://test.host/phones
1998
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
1999
+  (0.0ms) SELECT COUNT(*) FROM "phones"
2000
+  (0.0ms) rollback transaction
2001
+  (0.0ms) begin transaction
2002
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
2003
+ Processing by PhonesController#edit as HTML
2004
+ Parameters: {"id"=>"450723037"}
2005
+ Phone Load (0.0ms) 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
+  (0.1ms) rollback transaction
2009
+  (0.0ms) begin transaction
2010
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
2011
+ Processing by PhonesController#index as HTML
2012
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones"
2013
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
2014
+  (0.0ms) rollback transaction
2015
+  (0.0ms) begin transaction
2016
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["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
+  (0.0ms) rollback transaction
2021
+  (0.0ms) begin transaction
2022
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
2023
+ Processing by PhonesController#show as HTML
2024
+ Parameters: {"id"=>"450723037"}
2025
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
2026
+ Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)
2027
+  (0.0ms) rollback transaction
2028
+  (0.0ms) begin transaction
2029
+ Phone Load (0.0ms) 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
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
2033
+  (0.0ms) SAVEPOINT active_record_1
2034
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2035
+ Redirected to http://test.host/phones/450723037
2036
+ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
2037
+  (0.0ms) rollback transaction
2038
+ Connecting to database specified by database.yml
2039
+  (0.2ms) begin transaction
2040
+ Fixture Delete (0.1ms) DELETE FROM "phones"
2041
+ Fixture Insert (0.1ms) INSERT 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)
2042
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT INTO "phones" ("number", "created_at", "updated_at", "id") VALUES ('972541234567', '2013-10-01 06:41:13', '2013-10-01 06:41:13', 512636273)
2044
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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)
2046
+  (6.4ms) commit transaction
2047
+  (0.1ms) begin transaction
2048
+ Phone Load (1.5ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 512636273]]
2049
+  (0.1ms) SAVEPOINT active_record_1
2050
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2051
+  (0.0ms) rollback transaction
2052
+  (0.0ms) begin transaction
2053
+  (0.0ms) SAVEPOINT active_record_1
2054
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2055
+  (0.0ms) rollback transaction
2056
+  (0.0ms) begin transaction
2057
+  (0.0ms) SAVEPOINT active_record_1
2058
+ SQL (0.7ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2060
+  (0.1ms) rollback transaction
2061
+  (0.0ms) begin transaction
2062
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
2063
+  (0.0ms) SAVEPOINT active_record_1
2064
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2065
+  (0.0ms) rollback transaction
2066
+  (0.0ms) begin transaction
2067
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 23760034]]
2068
+  (0.0ms) SAVEPOINT active_record_1
2069
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2070
+  (0.0ms) rollback transaction
2071
+  (0.0ms) begin transaction
2072
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 667262234]]
2073
+  (0.0ms) SAVEPOINT active_record_1
2074
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2075
+  (0.0ms) rollback transaction
2076
+  (0.0ms) begin transaction
2077
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 703612349]]
2078
+  (0.0ms) SAVEPOINT active_record_1
2079
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2080
+  (0.0ms) rollback transaction
2081
+  (0.1ms) begin transaction
2082
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
2083
+  (0.1ms) SELECT COUNT(*) FROM "phones" 
2084
+ Processing by PhonesController#create as HTML
2085
+ Parameters: {"phone"=>{"number"=>"972541234567"}}
2086
+  (0.0ms) SAVEPOINT active_record_1
2087
+ SQL (0.2ms) 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]]
2088
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2089
+ Redirected to http://test.host/phones/703612350
2090
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
2091
+  (0.0ms) SELECT COUNT(*) FROM "phones" 
2092
+  (0.1ms) rollback transaction
2093
+  (0.0ms) begin transaction
2094
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
2095
+  (0.0ms) SELECT COUNT(*) FROM "phones" 
2096
+ Processing by PhonesController#destroy as HTML
2097
+ Parameters: {"id"=>"450723037"}
2098
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
2099
+  (0.0ms) SAVEPOINT active_record_1
2100
+ SQL (0.1ms) DELETE FROM "phones" WHERE "phones"."id" = ? [["id", 450723037]]
2101
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2102
+ Redirected to http://test.host/phones
2103
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
2104
+  (0.0ms) SELECT COUNT(*) FROM "phones"
2105
+  (0.0ms) rollback transaction
2106
+  (0.0ms) begin transaction
2107
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
2108
+ Processing by PhonesController#edit as HTML
2109
+ Parameters: {"id"=>"450723037"}
2110
+ Phone Load (0.0ms) 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
+  (0.1ms) rollback transaction
2114
+  (0.0ms) begin transaction
2115
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
2116
+ Processing by PhonesController#index as HTML
2117
+ Phone Load (0.1ms) SELECT "phones".* FROM "phones"
2118
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
2119
+  (0.0ms) rollback transaction
2120
+  (0.0ms) begin transaction
2121
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["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
+  (0.0ms) rollback transaction
2126
+  (0.0ms) begin transaction
2127
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 450723037]]
2128
+ Processing by PhonesController#show as HTML
2129
+ Parameters: {"id"=>"450723037"}
2130
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
2131
+ Completed 200 OK in 18ms (Views: 17.3ms | ActiveRecord: 0.0ms)
2132
+  (0.1ms) rollback transaction
2133
+  (0.0ms) begin transaction
2134
+ Phone Load (0.1ms) 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
+ Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", "450723037"]]
2138
+  (0.0ms) SAVEPOINT active_record_1
2139
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2140
+ Redirected to http://test.host/phones/450723037
2141
+ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
2142
+  (0.0ms) rollback transaction
@@ -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.1
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-09-24 00:00:00.000000000 Z
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: &7760120 !ruby/object:Gem::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: *7760120
24
+ version_requirements: *10515400
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &7759280 !ruby/object:Gem::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: *7759280
35
+ version_requirements: *10527580
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: nokogiri
38
- requirement: &7757700 !ruby/object:Gem::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: *7757700
46
+ version_requirements: *10525920
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: pry
49
- requirement: &7756400 !ruby/object:Gem::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: *7756400
57
+ version_requirements: *10525160
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: shoulda-context
60
- requirement: &7888460 !ruby/object:Gem::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: *7888460
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: 4341017430313603608
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: 4341017430313603608
163
+ hash: 3493638002510029503
164
164
  requirements: []
165
165
  rubyforge_project:
166
166
  rubygems_version: 1.8.17