subdivision_select 0.0.3 → 0.0.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: 4ac62ce983136d23a1b1cb0e9b085a00fa0bc0b7
4
- data.tar.gz: bf796d11169d49b3dfa1e7a7920e5ab7da44dfad
3
+ metadata.gz: 08aaf86fc6b6eb1e7f01bd74f3cae7ecbbb085c4
4
+ data.tar.gz: ffec00ac8b18cb26e46185dd19128f7eb9ec64b0
5
5
  SHA512:
6
- metadata.gz: 98158bfb52593a7abc052a47d70b681cde23951a29e4a2a6b29198d8c701309f51870aa1eda824de372863746cf4bc702093f19d90a0122de1bc6ac76a401173
7
- data.tar.gz: 89bf0c9f5767d8b26e18479b60645c76b22f0c30a4a6a0c8c47271766766beb6e33dc0f364721f34195cb0e27840da8abc85110102dddd1aee80f795d67ec9ef
6
+ metadata.gz: 53a38226df8d4cedc676b0f405c741cdcd412b4aa0d5e29ad66917758dfe35084d69d841df07f7adbbc0771a724513f6f869f49cb2ea57502f942ef1dbf3b443
7
+ data.tar.gz: 5650591f3bb43c7dd27e7211cc1e4821404f1b492c3406f98930c9508c64d588e4eb1ab5e32d294829668a4bc3a83526f144d942ec55e940ecf0e49e8ccbc8a8
@@ -6,10 +6,10 @@ module SubdivisionSelect
6
6
  # and the value is a hash with two key/values:
7
7
  # - "name" is the most popular/most correct name
8
8
  # - "names" is an array of all the names
9
- if Country[alpha2].nil?
9
+ if ISO3166::Country[alpha2].nil?
10
10
  {}
11
11
  else
12
- Country[alpha2].subdivisions.map { |k, v| [k, v["name"]] }.to_h
12
+ ISO3166::Country[alpha2].subdivisions.map { |k, v| [k, v["name"]] }.to_h
13
13
  end
14
14
  end
15
15
 
@@ -1,3 +1,3 @@
1
1
  module SubdivisionSelect
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
Binary file
@@ -9746,3 +9746,379 @@ Processing by SubdivisionSelect::SubdivisionsController#get as HTML
9746
9746
  Parameters: {"country_code"=>"IE"}
9747
9747
  Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.0ms)
9748
9748
   (0.1ms) rollback transaction
9749
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
9750
+  (1.7ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "country" varchar, "subdivision" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "title" varchar) 
9751
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
9752
+  (0.4ms) select sqlite_version(*)
9753
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9754
+  (0.1ms) SELECT version FROM "schema_migrations"
9755
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150505182454')
9756
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150505181543')
9757
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9758
+  (1.5ms) DELETE FROM "addresses";
9759
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
9760
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'addresses';
9761
+  (0.1ms) begin transaction
9762
+  (0.0ms) commit transaction
9763
+  (0.0ms) begin transaction
9764
+  (0.1ms) rollback transaction
9765
+  (0.1ms) begin transaction
9766
+  (0.0ms) commit transaction
9767
+  (0.0ms) begin transaction
9768
+  (0.2ms) rollback transaction
9769
+  (0.1ms) begin transaction
9770
+ SQL (1.0ms) INSERT INTO "addresses" ("title", "country", "subdivision", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Massachusetts Address"], ["country", "US"], ["subdivision", "MA"], ["created_at", "2015-10-07 00:54:15.143890"], ["updated_at", "2015-10-07 00:54:15.143890"]]
9771
+  (0.8ms) commit transaction
9772
+ Started GET "/tags" for 127.0.0.1 at 2015-10-06 18:54:20 -0600
9773
+ Processing by AddressesDemoController#tags as HTML
9774
+ Address Load (1.1ms) SELECT "addresses".* FROM "addresses"
9775
+ Rendered addresses_demo/tags.html.erb within layouts/application (53.9ms)
9776
+ Completed 200 OK in 218ms (Views: 216.3ms | ActiveRecord: 1.1ms)
9777
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-10-06 18:54:20 -0600
9778
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-10-06 18:54:20 -0600
9779
+ Started GET "/subdivisions?country_code=IE" for 127.0.0.1 at 2015-10-06 18:54:21 -0600
9780
+ Processing by SubdivisionSelect::SubdivisionsController#get as */*
9781
+ Parameters: {"country_code"=>"IE"}
9782
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.0ms)
9783
+ Started PATCH "/1" for 127.0.0.1 at 2015-10-06 18:54:22 -0600
9784
+ Processing by AddressesDemoController#update as HTML
9785
+ Parameters: {"utf8"=>"✓", "address"=>{"title"=>"Massachusetts Address", "country"=>"IE", "subdivision"=>"D"}, "commit"=>"Update Address", "id"=>"1"}
9786
+ Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 1]]
9787
+  (0.1ms) begin transaction
9788
+ SQL (0.5ms) UPDATE "addresses" SET "subdivision" = ?, "country" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["subdivision", "D"], ["country", "IE"], ["updated_at", "2015-10-07 00:54:22.767603"], ["id", 1]]
9789
+  (1.1ms) commit transaction
9790
+ Redirected to http://127.0.0.1:61030/
9791
+ Completed 302 Found in 88ms (ActiveRecord: 1.9ms)
9792
+ Started GET "/" for 127.0.0.1 at 2015-10-06 18:54:22 -0600
9793
+ Processing by AddressesDemoController#index as HTML
9794
+ Address Load (0.2ms) SELECT "addresses".* FROM "addresses"
9795
+ Rendered addresses_demo/index.html.erb within layouts/application (166.1ms)
9796
+ Completed 200 OK in 170ms (Views: 169.1ms | ActiveRecord: 0.2ms)
9797
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-10-06 18:54:22 -0600
9798
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-10-06 18:54:22 -0600
9799
+ Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 1]]
9800
+ Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 1]]
9801
+  (1.4ms) DELETE FROM "addresses";
9802
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
9803
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'addresses';
9804
+  (0.1ms) begin transaction
9805
+ SQL (0.6ms) INSERT INTO "addresses" ("title", "country", "subdivision", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Massachusetts Address"], ["country", "US"], ["subdivision", "MA"], ["created_at", "2015-10-07 00:54:23.348509"], ["updated_at", "2015-10-07 00:54:23.348509"]]
9806
+  (1.7ms) commit transaction
9807
+ Started GET "/" for 127.0.0.1 at 2015-10-06 18:54:23 -0600
9808
+ Processing by AddressesDemoController#index as HTML
9809
+ Address Load (0.6ms) SELECT "addresses".* FROM "addresses"
9810
+ Rendered addresses_demo/index.html.erb within layouts/application (62.1ms)
9811
+ Completed 200 OK in 65ms (Views: 64.1ms | ActiveRecord: 0.6ms)
9812
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-10-06 18:54:23 -0600
9813
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-10-06 18:54:23 -0600
9814
+ Started GET "/subdivisions?country_code=GU" for 127.0.0.1 at 2015-10-06 18:54:24 -0600
9815
+ Processing by SubdivisionSelect::SubdivisionsController#get as */*
9816
+ Parameters: {"country_code"=>"GU"}
9817
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
9818
+  (1.4ms) DELETE FROM "addresses";
9819
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
9820
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'addresses';
9821
+  (0.1ms) begin transaction
9822
+ SQL (0.3ms) INSERT INTO "addresses" ("title", "country", "subdivision", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Massachusetts Address"], ["country", "US"], ["subdivision", "MA"], ["created_at", "2015-10-07 00:54:24.793516"], ["updated_at", "2015-10-07 00:54:24.793516"]]
9823
+  (0.8ms) commit transaction
9824
+ Started GET "/" for 127.0.0.1 at 2015-10-06 18:54:24 -0600
9825
+ Processing by AddressesDemoController#index as HTML
9826
+ Address Load (0.3ms) SELECT "addresses".* FROM "addresses"
9827
+ Rendered addresses_demo/index.html.erb within layouts/application (47.8ms)
9828
+ Completed 200 OK in 50ms (Views: 49.5ms | ActiveRecord: 0.3ms)
9829
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-10-06 18:54:24 -0600
9830
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-10-06 18:54:24 -0600
9831
+  (1.5ms) DELETE FROM "addresses";
9832
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
9833
+  (1.2ms) DELETE FROM sqlite_sequence where name = 'addresses';
9834
+  (0.1ms) begin transaction
9835
+ SQL (0.4ms) INSERT INTO "addresses" ("title", "country", "subdivision", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Massachusetts Address"], ["country", "US"], ["subdivision", "MA"], ["created_at", "2015-10-07 00:54:28.225959"], ["updated_at", "2015-10-07 00:54:28.225959"]]
9836
+  (0.9ms) commit transaction
9837
+ Started GET "/" for 127.0.0.1 at 2015-10-06 18:54:28 -0600
9838
+ Processing by AddressesDemoController#index as HTML
9839
+ Address Load (0.2ms) SELECT "addresses".* FROM "addresses"
9840
+ Rendered addresses_demo/index.html.erb within layouts/application (36.9ms)
9841
+ Completed 200 OK in 38ms (Views: 38.0ms | ActiveRecord: 0.2ms)
9842
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-10-06 18:54:28 -0600
9843
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-10-06 18:54:28 -0600
9844
+ Started GET "/subdivisions?country_code=DE" for 127.0.0.1 at 2015-10-06 18:54:29 -0600
9845
+ Processing by SubdivisionSelect::SubdivisionsController#get as */*
9846
+ Parameters: {"country_code"=>"DE"}
9847
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.0ms)
9848
+  (1.3ms) DELETE FROM "addresses";
9849
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
9850
+  (3.9ms) DELETE FROM sqlite_sequence where name = 'addresses';
9851
+  (0.1ms) begin transaction
9852
+ SQL (0.5ms) INSERT INTO "addresses" ("title", "country", "subdivision", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Massachusetts Address"], ["country", "US"], ["subdivision", "MA"], ["created_at", "2015-10-07 00:54:31.163210"], ["updated_at", "2015-10-07 00:54:31.163210"]]
9853
+  (1.1ms) commit transaction
9854
+ Started GET "/tags" for 127.0.0.1 at 2015-10-06 18:54:31 -0600
9855
+ Processing by AddressesDemoController#tags as HTML
9856
+ Address Load (0.2ms) SELECT "addresses".* FROM "addresses"
9857
+ Rendered addresses_demo/tags.html.erb within layouts/application (32.0ms)
9858
+ Completed 200 OK in 33ms (Views: 32.9ms | ActiveRecord: 0.2ms)
9859
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-10-06 18:54:31 -0600
9860
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-10-06 18:54:31 -0600
9861
+ Started GET "/subdivisions?country_code=GU" for 127.0.0.1 at 2015-10-06 18:54:31 -0600
9862
+ Processing by SubdivisionSelect::SubdivisionsController#get as */*
9863
+ Parameters: {"country_code"=>"GU"}
9864
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
9865
+  (1.2ms) DELETE FROM "addresses";
9866
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
9867
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'addresses';
9868
+  (0.1ms) begin transaction
9869
+ SQL (0.4ms) INSERT INTO "addresses" ("title", "country", "subdivision", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Massachusetts Address"], ["country", "US"], ["subdivision", "MA"], ["created_at", "2015-10-07 00:54:32.375246"], ["updated_at", "2015-10-07 00:54:32.375246"]]
9870
+  (0.9ms) commit transaction
9871
+ Started GET "/tags" for 127.0.0.1 at 2015-10-06 18:54:32 -0600
9872
+ Processing by AddressesDemoController#tags as HTML
9873
+ Address Load (0.2ms) SELECT "addresses".* FROM "addresses"
9874
+ Rendered addresses_demo/tags.html.erb within layouts/application (32.0ms)
9875
+ Completed 200 OK in 34ms (Views: 33.3ms | ActiveRecord: 0.2ms)
9876
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-10-06 18:54:32 -0600
9877
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-10-06 18:54:32 -0600
9878
+  (1.2ms) DELETE FROM "addresses";
9879
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
9880
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'addresses';
9881
+  (0.1ms) begin transaction
9882
+ SQL (0.4ms) INSERT INTO "addresses" ("title", "country", "subdivision", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Massachusetts Address"], ["country", "US"], ["subdivision", "MA"], ["created_at", "2015-10-07 00:54:35.225825"], ["updated_at", "2015-10-07 00:54:35.225825"]]
9883
+  (0.9ms) commit transaction
9884
+ Started GET "/" for 127.0.0.1 at 2015-10-06 18:54:35 -0600
9885
+ Processing by AddressesDemoController#index as HTML
9886
+ Address Load (0.2ms) SELECT "addresses".* FROM "addresses"
9887
+ Rendered addresses_demo/index.html.erb within layouts/application (31.9ms)
9888
+ Completed 200 OK in 33ms (Views: 32.8ms | ActiveRecord: 0.2ms)
9889
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-10-06 18:54:35 -0600
9890
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-10-06 18:54:35 -0600
9891
+ Started GET "/subdivisions?country_code=IE" for 127.0.0.1 at 2015-10-06 18:54:35 -0600
9892
+ Processing by SubdivisionSelect::SubdivisionsController#get as */*
9893
+ Parameters: {"country_code"=>"IE"}
9894
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
9895
+ Started PATCH "/1" for 127.0.0.1 at 2015-10-06 18:54:36 -0600
9896
+ Processing by AddressesDemoController#update as HTML
9897
+ Parameters: {"utf8"=>"✓", "address"=>{"title"=>"Massachusetts Address", "country"=>"IE", "subdivision"=>"D"}, "commit"=>"Update Address", "id"=>"1"}
9898
+ Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 1]]
9899
+  (0.0ms) begin transaction
9900
+ SQL (0.3ms) UPDATE "addresses" SET "subdivision" = ?, "country" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["subdivision", "D"], ["country", "IE"], ["updated_at", "2015-10-07 00:54:36.860415"], ["id", 1]]
9901
+  (0.8ms) commit transaction
9902
+ Redirected to http://127.0.0.1:61030/
9903
+ Completed 302 Found in 4ms (ActiveRecord: 1.3ms)
9904
+ Started GET "/" for 127.0.0.1 at 2015-10-06 18:54:36 -0600
9905
+ Processing by AddressesDemoController#index as HTML
9906
+ Address Load (0.2ms) SELECT "addresses".* FROM "addresses"
9907
+ Rendered addresses_demo/index.html.erb within layouts/application (34.4ms)
9908
+ Completed 200 OK in 36ms (Views: 35.8ms | ActiveRecord: 0.2ms)
9909
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-10-06 18:54:36 -0600
9910
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-10-06 18:54:36 -0600
9911
+ Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 1]]
9912
+ Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 1]]
9913
+  (1.6ms) DELETE FROM "addresses";
9914
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
9915
+  (1.1ms) DELETE FROM sqlite_sequence where name = 'addresses';
9916
+  (0.2ms) begin transaction
9917
+ SQL (0.4ms) INSERT INTO "addresses" ("title", "country", "subdivision", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Massachusetts Address"], ["country", "US"], ["subdivision", "MA"], ["created_at", "2015-10-07 00:54:37.254867"], ["updated_at", "2015-10-07 00:54:37.254867"]]
9918
+  (1.0ms) commit transaction
9919
+ Started GET "/tags" for 127.0.0.1 at 2015-10-06 18:54:37 -0600
9920
+ Processing by AddressesDemoController#tags as HTML
9921
+ Address Load (0.2ms) SELECT "addresses".* FROM "addresses"
9922
+ Rendered addresses_demo/tags.html.erb within layouts/application (33.7ms)
9923
+ Completed 200 OK in 35ms (Views: 34.6ms | ActiveRecord: 0.2ms)
9924
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-10-06 18:54:37 -0600
9925
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-10-06 18:54:37 -0600
9926
+ Started GET "/subdivisions?country_code=DE" for 127.0.0.1 at 2015-10-06 18:54:38 -0600
9927
+ Processing by SubdivisionSelect::SubdivisionsController#get as */*
9928
+ Parameters: {"country_code"=>"DE"}
9929
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
9930
+  (1.2ms) DELETE FROM "addresses";
9931
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
9932
+  (1.6ms) DELETE FROM sqlite_sequence where name = 'addresses';
9933
+  (0.1ms) begin transaction
9934
+  (0.1ms) commit transaction
9935
+  (0.1ms) begin transaction
9936
+ Processing by SubdivisionSelect::SubdivisionsController#get as HTML
9937
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
9938
+  (0.1ms) rollback transaction
9939
+  (0.1ms) begin transaction
9940
+  (0.1ms) commit transaction
9941
+  (0.0ms) begin transaction
9942
+ Processing by SubdivisionSelect::SubdivisionsController#get as HTML
9943
+ Parameters: {"country_code"=>"IE"}
9944
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
9945
+  (0.1ms) rollback transaction
9946
+  (0.1ms) begin transaction
9947
+  (0.0ms) commit transaction
9948
+  (0.0ms) begin transaction
9949
+ Processing by AddressesDemoController#index as HTML
9950
+ Rendered addresses_demo/index.html.erb within layouts/application (0.4ms)
9951
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
9952
+  (0.1ms) rollback transaction
9953
+  (0.1ms) begin transaction
9954
+  (0.1ms) commit transaction
9955
+  (0.1ms) begin transaction
9956
+ Processing by AddressesDemoController#tags as HTML
9957
+ Rendered addresses_demo/tags.html.erb within layouts/application (0.2ms)
9958
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
9959
+  (0.1ms) rollback transaction
9960
+  (0.3ms) begin transaction
9961
+  (0.1ms) commit transaction
9962
+  (0.1ms) begin transaction
9963
+  (0.5ms) SAVEPOINT active_record_1
9964
+ SQL (0.5ms) INSERT INTO "addresses" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "Blank Address"], ["created_at", "2015-10-07 00:54:40.252947"], ["updated_at", "2015-10-07 00:54:40.252947"]]
9965
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9966
+ Processing by AddressesDemoController#update as HTML
9967
+ Parameters: {"address"=>{"subdivision"=>"D", "country"=>"IE"}, "id"=>"1"}
9968
+ Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 1]]
9969
+  (0.1ms) SAVEPOINT active_record_1
9970
+ SQL (1.3ms) UPDATE "addresses" SET "subdivision" = ?, "country" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["subdivision", "D"], ["country", "IE"], ["updated_at", "2015-10-07 00:54:40.256717"], ["id", 1]]
9971
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9972
+ Redirected to http://test.host/
9973
+ Completed 302 Found in 4ms (ActiveRecord: 1.5ms)
9974
+  (2.3ms) rollback transaction
9975
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9976
+  (1.1ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "country" varchar, "subdivision" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "title" varchar) 
9977
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
9978
+  (0.1ms) select sqlite_version(*)
9979
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9980
+  (0.1ms) SELECT version FROM "schema_migrations"
9981
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150505182454')
9982
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150505181543')
9983
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
9984
+  (1.1ms) DELETE FROM "addresses";
9985
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
9986
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'addresses';
9987
+  (0.1ms) begin transaction
9988
+ SQL (0.4ms) INSERT INTO "addresses" ("title", "country", "subdivision", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Massachusetts Address"], ["country", "US"], ["subdivision", "MA"], ["created_at", "2015-10-07 00:55:20.447528"], ["updated_at", "2015-10-07 00:55:20.447528"]]
9989
+  (0.7ms) commit transaction
9990
+ Started GET "/" for 127.0.0.1 at 2015-10-06 18:55:23 -0600
9991
+ Processing by AddressesDemoController#index as HTML
9992
+ Address Load (0.6ms) SELECT "addresses".* FROM "addresses"
9993
+ Rendered addresses_demo/index.html.erb within layouts/application (272.1ms)
9994
+ Completed 500 Internal Server Error in 284ms (ActiveRecord: 0.6ms)
9995
+  (1.1ms) DELETE FROM "addresses";
9996
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
9997
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'addresses';
9998
+  (0.1ms) begin transaction
9999
+ SQL (0.3ms) INSERT INTO "addresses" ("title", "country", "subdivision", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Massachusetts Address"], ["country", "US"], ["subdivision", "MA"], ["created_at", "2015-10-07 00:55:24.101123"], ["updated_at", "2015-10-07 00:55:24.101123"]]
10000
+  (1.1ms) commit transaction
10001
+ Started GET "/tags" for 127.0.0.1 at 2015-10-06 18:55:24 -0600
10002
+ Processing by AddressesDemoController#tags as HTML
10003
+ Address Load (0.2ms) SELECT "addresses".* FROM "addresses"
10004
+ Rendered addresses_demo/tags.html.erb within layouts/application (31.9ms)
10005
+ Completed 500 Internal Server Error in 33ms (ActiveRecord: 0.2ms)
10006
+  (1.0ms) DELETE FROM "addresses";
10007
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
10008
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'addresses';
10009
+  (0.1ms) begin transaction
10010
+ SQL (0.4ms) INSERT INTO "addresses" ("title", "country", "subdivision", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Massachusetts Address"], ["country", "US"], ["subdivision", "MA"], ["created_at", "2015-10-07 00:55:24.346417"], ["updated_at", "2015-10-07 00:55:24.346417"]]
10011
+  (1.3ms) commit transaction
10012
+ Started GET "/" for 127.0.0.1 at 2015-10-06 18:55:24 -0600
10013
+ Processing by AddressesDemoController#index as HTML
10014
+ Address Load (0.3ms) SELECT "addresses".* FROM "addresses"
10015
+ Rendered addresses_demo/index.html.erb within layouts/application (30.5ms)
10016
+ Completed 500 Internal Server Error in 31ms (ActiveRecord: 0.3ms)
10017
+  (1.1ms) DELETE FROM "addresses";
10018
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
10019
+  (0.8ms) DELETE FROM sqlite_sequence where name = 'addresses';
10020
+  (0.1ms) begin transaction
10021
+ SQL (0.3ms) INSERT INTO "addresses" ("title", "country", "subdivision", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Massachusetts Address"], ["country", "US"], ["subdivision", "MA"], ["created_at", "2015-10-07 00:55:24.503131"], ["updated_at", "2015-10-07 00:55:24.503131"]]
10022
+  (0.9ms) commit transaction
10023
+ Started GET "/" for 127.0.0.1 at 2015-10-06 18:55:24 -0600
10024
+ Processing by AddressesDemoController#index as HTML
10025
+ Address Load (0.2ms) SELECT "addresses".* FROM "addresses"
10026
+ Rendered addresses_demo/index.html.erb within layouts/application (30.0ms)
10027
+ Completed 500 Internal Server Error in 31ms (ActiveRecord: 0.2ms)
10028
+  (1.1ms) DELETE FROM "addresses";
10029
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
10030
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'addresses';
10031
+  (0.1ms) begin transaction
10032
+ SQL (0.3ms) INSERT INTO "addresses" ("title", "country", "subdivision", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Massachusetts Address"], ["country", "US"], ["subdivision", "MA"], ["created_at", "2015-10-07 00:55:24.657508"], ["updated_at", "2015-10-07 00:55:24.657508"]]
10033
+  (0.9ms) commit transaction
10034
+ Started GET "/tags" for 127.0.0.1 at 2015-10-06 18:55:24 -0600
10035
+ Processing by AddressesDemoController#tags as HTML
10036
+ Address Load (0.2ms) SELECT "addresses".* FROM "addresses"
10037
+ Rendered addresses_demo/tags.html.erb within layouts/application (29.7ms)
10038
+ Completed 500 Internal Server Error in 30ms (ActiveRecord: 0.2ms)
10039
+  (1.3ms) DELETE FROM "addresses";
10040
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
10041
+  (1.0ms) DELETE FROM sqlite_sequence where name = 'addresses';
10042
+  (0.1ms) begin transaction
10043
+ SQL (0.3ms) INSERT INTO "addresses" ("title", "country", "subdivision", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Massachusetts Address"], ["country", "US"], ["subdivision", "MA"], ["created_at", "2015-10-07 00:55:24.805819"], ["updated_at", "2015-10-07 00:55:24.805819"]]
10044
+  (1.2ms) commit transaction
10045
+ Started GET "/tags" for 127.0.0.1 at 2015-10-06 18:55:24 -0600
10046
+ Processing by AddressesDemoController#tags as HTML
10047
+ Address Load (0.2ms) SELECT "addresses".* FROM "addresses"
10048
+ Rendered addresses_demo/tags.html.erb within layouts/application (40.8ms)
10049
+ Completed 500 Internal Server Error in 41ms (ActiveRecord: 0.2ms)
10050
+  (1.2ms) DELETE FROM "addresses";
10051
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
10052
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'addresses';
10053
+  (0.1ms) begin transaction
10054
+ SQL (0.2ms) INSERT INTO "addresses" ("title", "country", "subdivision", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Massachusetts Address"], ["country", "US"], ["subdivision", "MA"], ["created_at", "2015-10-07 00:55:24.971718"], ["updated_at", "2015-10-07 00:55:24.971718"]]
10055
+  (0.8ms) commit transaction
10056
+ Started GET "/tags" for 127.0.0.1 at 2015-10-06 18:55:24 -0600
10057
+ Processing by AddressesDemoController#tags as HTML
10058
+ Address Load (0.3ms) SELECT "addresses".* FROM "addresses"
10059
+ Rendered addresses_demo/tags.html.erb within layouts/application (33.4ms)
10060
+ Completed 500 Internal Server Error in 34ms (ActiveRecord: 0.3ms)
10061
+  (1.2ms) DELETE FROM "addresses";
10062
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
10063
+  (0.7ms) DELETE FROM sqlite_sequence where name = 'addresses';
10064
+  (0.1ms) begin transaction
10065
+ SQL (0.5ms) INSERT INTO "addresses" ("title", "country", "subdivision", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Massachusetts Address"], ["country", "US"], ["subdivision", "MA"], ["created_at", "2015-10-07 00:55:25.114116"], ["updated_at", "2015-10-07 00:55:25.114116"]]
10066
+  (1.0ms) commit transaction
10067
+ Started GET "/" for 127.0.0.1 at 2015-10-06 18:55:25 -0600
10068
+ Processing by AddressesDemoController#index as HTML
10069
+ Address Load (0.2ms) SELECT "addresses".* FROM "addresses"
10070
+ Rendered addresses_demo/index.html.erb within layouts/application (27.4ms)
10071
+ Completed 500 Internal Server Error in 28ms (ActiveRecord: 0.2ms)
10072
+  (1.2ms) DELETE FROM "addresses";
10073
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
10074
+  (0.9ms) DELETE FROM sqlite_sequence where name = 'addresses';
10075
+  (0.1ms) begin transaction
10076
+  (0.0ms) commit transaction
10077
+  (0.0ms) begin transaction
10078
+ Processing by SubdivisionSelect::SubdivisionsController#get as HTML
10079
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
10080
+  (0.1ms) rollback transaction
10081
+  (0.0ms) begin transaction
10082
+  (0.0ms) commit transaction
10083
+  (0.0ms) begin transaction
10084
+ Processing by SubdivisionSelect::SubdivisionsController#get as HTML
10085
+ Parameters: {"country_code"=>"IE"}
10086
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
10087
+  (0.1ms) rollback transaction
10088
+  (0.0ms) begin transaction
10089
+  (0.0ms) commit transaction
10090
+  (0.2ms) begin transaction
10091
+  (0.1ms) rollback transaction
10092
+  (0.1ms) begin transaction
10093
+  (0.0ms) commit transaction
10094
+  (0.0ms) begin transaction
10095
+  (0.1ms) rollback transaction
10096
+  (0.1ms) begin transaction
10097
+  (0.0ms) commit transaction
10098
+  (0.0ms) begin transaction
10099
+ Processing by AddressesDemoController#index as HTML
10100
+ Rendered addresses_demo/index.html.erb within layouts/application (0.3ms)
10101
+ Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)
10102
+  (0.1ms) rollback transaction
10103
+  (0.1ms) begin transaction
10104
+  (0.0ms) commit transaction
10105
+  (0.0ms) begin transaction
10106
+ Processing by AddressesDemoController#tags as HTML
10107
+ Rendered addresses_demo/tags.html.erb within layouts/application (0.2ms)
10108
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
10109
+  (0.0ms) rollback transaction
10110
+  (0.0ms) begin transaction
10111
+  (0.0ms) commit transaction
10112
+  (0.0ms) begin transaction
10113
+  (0.0ms) SAVEPOINT active_record_1
10114
+ SQL (0.3ms) INSERT INTO "addresses" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "Blank Address"], ["created_at", "2015-10-07 00:55:25.272808"], ["updated_at", "2015-10-07 00:55:25.272808"]]
10115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10116
+ Processing by AddressesDemoController#update as HTML
10117
+ Parameters: {"address"=>{"subdivision"=>"D", "country"=>"IE"}, "id"=>"1"}
10118
+ Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 1]]
10119
+  (0.1ms) SAVEPOINT active_record_1
10120
+ SQL (1.0ms) UPDATE "addresses" SET "subdivision" = ?, "country" = ?, "updated_at" = ? WHERE "addresses"."id" = ? [["subdivision", "D"], ["country", "IE"], ["updated_at", "2015-10-07 00:55:25.285083"], ["id", 1]]
10121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10122
+ Redirected to http://test.host/
10123
+ Completed 302 Found in 13ms (ActiveRecord: 1.4ms)
10124
+  (0.7ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subdivision_select
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Collins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-08 00:00:00.000000000 Z
11
+ date: 2015-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: countries
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.1'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: jquery-rails
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -435,7 +449,6 @@ files:
435
449
  - spec/test_app/tmp/capybara/capybara-201504291342298940226392.html
436
450
  - spec/test_app/tmp/capybara/capybara-201504291343237421868398.html
437
451
  - spec/test_app/tmp/capybara/capybara-201504291344199401915203.html
438
- - spec/test_app/tmp/pids/server.pid
439
452
  homepage: https://github.com/cllns/subdivision_select
440
453
  licenses:
441
454
  - MIT
@@ -740,4 +753,3 @@ test_files:
740
753
  - spec/test_app/tmp/capybara/capybara-201504291342298940226392.html
741
754
  - spec/test_app/tmp/capybara/capybara-201504291343237421868398.html
742
755
  - spec/test_app/tmp/capybara/capybara-201504291344199401915203.html
743
- - spec/test_app/tmp/pids/server.pid
@@ -1 +0,0 @@
1
- 79577