phonelib 0.2.3 → 0.2.4

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