govkit-ca 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. data/LICENSE +1 -1
  2. data/README.md +2 -2
  3. data/Rakefile +1 -1
  4. data/govkit-ca.gemspec +8 -8
  5. data/lib/gov_kit-ca/postal_code/strategy/base.rb +33 -1
  6. data/lib/gov_kit-ca/postal_code/strategy/{cbc-ca.rb → cbc_ca.rb} +6 -13
  7. data/lib/gov_kit-ca/postal_code/strategy/{conservative-ca.rb → conservative_ca.rb} +2 -4
  8. data/lib/gov_kit-ca/postal_code/strategy/digital-copyright_ca.rb +27 -0
  9. data/lib/gov_kit-ca/postal_code/strategy/{elections-ca.rb → elections_ca.rb} +2 -4
  10. data/lib/gov_kit-ca/postal_code/strategy/{greenparty-ca.rb → greenparty_ca.rb} +3 -5
  11. data/lib/gov_kit-ca/postal_code/strategy/{liberal-ca.rb → liberal_ca.rb} +3 -5
  12. data/lib/gov_kit-ca/postal_code/strategy/{ndp-ca.rb → ndp_ca.rb} +3 -5
  13. data/lib/gov_kit-ca/postal_code/strategy/{parl-gc-ca.rb → parl_gc_ca.rb} +3 -5
  14. data/lib/gov_kit-ca/postal_code/{strategy.rb → strategy_set.rb} +1 -7
  15. data/lib/gov_kit-ca/postal_code.rb +9 -3
  16. data/lib/gov_kit-ca/version.rb +1 -1
  17. data/lib/gov_kit-ca.rb +2 -1
  18. data/spec/cbc_ca_spec.rb +13 -6
  19. data/spec/digital-copyright_ca_spec.rb +32 -0
  20. data/spec/elections_ca_spec.rb +7 -0
  21. data/spec/fixtures/cbc_ca/A1A1A1.response +11 -0
  22. data/spec/fixtures/cbc_ca/G0C2Y0.response +11 -0
  23. data/spec/fixtures/cbc_ca/H0H0H0.response +309 -0
  24. data/spec/fixtures/cbc_ca/K0A1K0.response +11 -0
  25. data/spec/fixtures/cbc_ca/T5S2B9.response +11 -0
  26. data/spec/fixtures/cbc_ca/X1B1B1.response +309 -0
  27. data/spec/fixtures/conservative_ca/A1A1A1.response +467 -0
  28. data/spec/fixtures/conservative_ca/G0C2Y0.response +467 -0
  29. data/spec/fixtures/conservative_ca/H0H0H0.response +467 -0
  30. data/spec/fixtures/conservative_ca/K0A1K0.response +467 -0
  31. data/spec/fixtures/conservative_ca/T5S2B9.response +467 -0
  32. data/spec/fixtures/conservative_ca/X1B1B1.response +467 -0
  33. data/spec/fixtures/digital-copyright_ca/A1A1A1.response +262 -0
  34. data/spec/fixtures/digital-copyright_ca/G0C2Y0.response +263 -0
  35. data/spec/fixtures/digital-copyright_ca/H0H0H0.response +278 -0
  36. data/spec/fixtures/digital-copyright_ca/K0A1K0.response +264 -0
  37. data/spec/fixtures/digital-copyright_ca/T5S2B9.response +267 -0
  38. data/spec/fixtures/digital-copyright_ca/X1B1B1.response +278 -0
  39. data/spec/fixtures/elections_ca/A1A1A1.response +12 -0
  40. data/spec/fixtures/elections_ca/G0C2Y0.response +12 -0
  41. data/spec/fixtures/elections_ca/H0H0H0.response +11 -0
  42. data/spec/fixtures/elections_ca/K0A1K0.response +11 -0
  43. data/spec/fixtures/elections_ca/T5S2B9.response +12 -0
  44. data/spec/fixtures/elections_ca/X1B1B1.response +11 -0
  45. data/spec/fixtures/greenparty_ca/A1A1A1.response +13 -0
  46. data/spec/fixtures/greenparty_ca/G0C2Y0.response +13 -0
  47. data/spec/fixtures/greenparty_ca/H0H0H0.response +13 -0
  48. data/spec/fixtures/greenparty_ca/K0A1K0.response +13 -0
  49. data/spec/fixtures/greenparty_ca/T5S2B9.response +13 -0
  50. data/spec/fixtures/greenparty_ca/X1B1B1.response +13 -0
  51. data/spec/fixtures/liberal_ca/A1A1A1.response +582 -0
  52. data/spec/fixtures/liberal_ca/G0C2Y0.response +582 -0
  53. data/spec/fixtures/liberal_ca/H0H0H0.response +663 -0
  54. data/spec/fixtures/liberal_ca/K0A1K0.response +663 -0
  55. data/spec/fixtures/liberal_ca/T5S2B9.response +663 -0
  56. data/spec/fixtures/liberal_ca/X1B1B1.response +663 -0
  57. data/spec/fixtures/ndp_ca/A1A1A1.response +12 -0
  58. data/spec/fixtures/ndp_ca/G0C2Y0.response +12 -0
  59. data/spec/fixtures/ndp_ca/H0H0H0.response +12 -0
  60. data/spec/fixtures/ndp_ca/K0A1K0.response +12 -0
  61. data/spec/fixtures/ndp_ca/T5S2B9.response +12 -0
  62. data/spec/fixtures/ndp_ca/X1B1B1.response +12 -0
  63. data/spec/fixtures/parl_gc_ca/A1A1A1.response +337 -0
  64. data/spec/fixtures/parl_gc_ca/G0C2Y0.response +337 -0
  65. data/spec/fixtures/parl_gc_ca/H0H0H0.response +226 -0
  66. data/spec/fixtures/parl_gc_ca/K0A1K0.response +784 -0
  67. data/spec/fixtures/parl_gc_ca/T5S2B9.response +511 -0
  68. data/spec/fixtures/parl_gc_ca/X1B1B1.response +226 -0
  69. data/spec/greenparty_ca_spec.rb +7 -0
  70. data/spec/liberal_ca_spec.rb +10 -2
  71. data/spec/ndp_ca_spec.rb +7 -0
  72. data/spec/postal_code_spec.rb +13 -0
  73. data/spec/spec_helper.rb +13 -0
  74. data/spec/strategy_set_spec.rb +0 -0
  75. data/tasks/postal-code-for-districts.csv +212 -0
  76. data/tasks/tasks.rb +73 -0
  77. metadata +180 -98
  78. data/lib/gov_kit-ca/postal_code/strategy/digital_copyright-ca.rb +0 -28
  79. data/tasks/rid_to_edid.rb +0 -136
@@ -0,0 +1,12 @@
1
+ HTTP/1.1 302 Found
2
+ Server: Microsoft-IIS/5.0
3
+ Date: Sun, 05 Jun 2011 03:16:50 GMT
4
+ X-Powered-By: ASP.NET
5
+ Connection: close
6
+ X-Aspnet-Version: 2.0.50727
7
+ Location: /scripts/pss/InfovoteMain_ne.aspx?L=e&ED=48015&EV=99&EV_TYPE=6&PC=T5S2B9&Prov=&ProvID=&MapID=&QID=-1&PageID=21&TPageID=
8
+ Set-Cookie: ASP.NET_SessionId=goophy45jerbyc45s2pggeel; path=/; HttpOnly, VIS_SESSION_ID=25219195; path=/, WEBTRENDS_ID=69.196.166.141-55683168.30155567::E29E7391D6DBE439D2B5B8674213D0FF; path=/; expires=Mon, 04-Jun-2012 03:16:51 GMT
9
+ Cache-Control: private
10
+ Content-Type: text/html; charset=utf-8
11
+ Content-Length: 276
12
+
@@ -0,0 +1,11 @@
1
+ HTTP/1.1 200 OK
2
+ Server: Microsoft-IIS/5.0
3
+ Date: Sun, 05 Jun 2011 03:16:51 GMT
4
+ X-Powered-By: ASP.NET
5
+ Connection: close
6
+ X-Aspnet-Version: 2.0.50727
7
+ Set-Cookie: ASP.NET_SessionId=wcbsoy55ede1ba45syuvzx55; path=/; HttpOnly, VIS_SESSION_ID=25219198; path=/, WEBTRENDS_ID=69.196.166.141-65523168.30155567::B7102F0D5F6A1EA312C386D2D1DBBE0D; path=/; expires=Mon, 04-Jun-2012 03:16:52 GMT
8
+ Cache-Control: private
9
+ Content-Type: text/html; charset=utf-8
10
+ Content-Length: 25311
11
+
@@ -0,0 +1,13 @@
1
+ HTTP/1.1 302 Found
2
+ Date: Sun, 05 Jun 2011 03:16:52 GMT
3
+ Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
4
+ X-Powered-By: PHP/5.2.6-1+lenny9
5
+ Set-Cookie: SESS8f9f95aef14ece4a4a5dc32a72721149=f0c4e20bc47fc4a01217e655d7e52c9c; expires=Tue, 28 Jun 2011 06:50:12 GMT; path=/; domain=.greenparty.ca
6
+ Expires: Sun, 19 Nov 1978 05:00:00 GMT
7
+ Last-Modified: Sun, 05 Jun 2011 03:16:53 GMT
8
+ Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
9
+ Location: http://greenparty.ca/campaign/10007
10
+ Vary: Accept-Encoding
11
+ Connection: close
12
+ Content-Type: text/html; charset=utf-8
13
+
@@ -0,0 +1,13 @@
1
+ HTTP/1.1 302 Found
2
+ Date: Sun, 05 Jun 2011 03:16:53 GMT
3
+ Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
4
+ X-Powered-By: PHP/5.2.6-1+lenny9
5
+ Set-Cookie: SESS8f9f95aef14ece4a4a5dc32a72721149=6beb0cc37f5fdb6d2a7d8bb5b10537ae; expires=Tue, 28 Jun 2011 06:50:13 GMT; path=/; domain=.greenparty.ca
6
+ Expires: Sun, 19 Nov 1978 05:00:00 GMT
7
+ Last-Modified: Sun, 05 Jun 2011 03:16:53 GMT
8
+ Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
9
+ Location: http://greenparty.ca/campaign/24019
10
+ Vary: Accept-Encoding
11
+ Connection: close
12
+ Content-Type: text/html; charset=utf-8
13
+
@@ -0,0 +1,13 @@
1
+ HTTP/1.1 302 Found
2
+ Date: Sun, 05 Jun 2011 03:16:55 GMT
3
+ Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
4
+ X-Powered-By: PHP/5.2.6-1+lenny9
5
+ Set-Cookie: SESS8f9f95aef14ece4a4a5dc32a72721149=2b39ae118b84ec0b923627024c48f8be; expires=Tue, 28 Jun 2011 06:50:15 GMT; path=/; domain=.greenparty.ca
6
+ Expires: Sun, 19 Nov 1978 05:00:00 GMT
7
+ Last-Modified: Sun, 05 Jun 2011 03:16:55 GMT
8
+ Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
9
+ Location: http://greenparty.ca/find_your_riding
10
+ Vary: Accept-Encoding
11
+ Connection: close
12
+ Content-Type: text/html; charset=utf-8
13
+
@@ -0,0 +1,13 @@
1
+ HTTP/1.1 302 Found
2
+ Date: Sun, 05 Jun 2011 03:16:54 GMT
3
+ Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
4
+ X-Powered-By: PHP/5.2.6-1+lenny9
5
+ Set-Cookie: SESS8f9f95aef14ece4a4a5dc32a72721149=4f86d56cc8b7d393340ec10694d5dc9d; expires=Tue, 28 Jun 2011 06:50:14 GMT; path=/; domain=.greenparty.ca
6
+ Expires: Sun, 19 Nov 1978 05:00:00 GMT
7
+ Last-Modified: Sun, 05 Jun 2011 03:16:55 GMT
8
+ Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
9
+ Location: http://greenparty.ca/find_your_riding
10
+ Vary: Accept-Encoding
11
+ Connection: close
12
+ Content-Type: text/html; charset=utf-8
13
+
@@ -0,0 +1,13 @@
1
+ HTTP/1.1 302 Found
2
+ Date: Sun, 05 Jun 2011 03:16:53 GMT
3
+ Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
4
+ X-Powered-By: PHP/5.2.6-1+lenny9
5
+ Set-Cookie: SESS8f9f95aef14ece4a4a5dc32a72721149=a479dc510100e36cfed623a568c01610; expires=Tue, 28 Jun 2011 06:50:13 GMT; path=/; domain=.greenparty.ca
6
+ Expires: Sun, 19 Nov 1978 05:00:00 GMT
7
+ Last-Modified: Sun, 05 Jun 2011 03:16:54 GMT
8
+ Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
9
+ Location: http://greenparty.ca/campaign/48015
10
+ Vary: Accept-Encoding
11
+ Connection: close
12
+ Content-Type: text/html; charset=utf-8
13
+
@@ -0,0 +1,13 @@
1
+ HTTP/1.1 302 Found
2
+ Date: Sun, 05 Jun 2011 03:16:55 GMT
3
+ Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
4
+ X-Powered-By: PHP/5.2.6-1+lenny9
5
+ Set-Cookie: SESS8f9f95aef14ece4a4a5dc32a72721149=1d21ff2075e8501b953ab092fcf0d972; expires=Tue, 28 Jun 2011 06:50:15 GMT; path=/; domain=.greenparty.ca
6
+ Expires: Sun, 19 Nov 1978 05:00:00 GMT
7
+ Last-Modified: Sun, 05 Jun 2011 03:16:56 GMT
8
+ Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
9
+ Location: http://greenparty.ca/find_your_riding
10
+ Vary: Accept-Encoding
11
+ Connection: close
12
+ Content-Type: text/html; charset=utf-8
13
+