govkit-ca 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/.travis.yml +3 -0
  2. data/README.md +5 -1
  3. data/govkit-ca.gemspec +1 -0
  4. data/lib/gov_kit-ca/postal_code/strategy/base.rb +20 -1
  5. data/lib/gov_kit-ca/postal_code/strategy/cbc_ca.rb +1 -3
  6. data/lib/gov_kit-ca/postal_code/strategy/conservative_ca.rb +9 -6
  7. data/lib/gov_kit-ca/postal_code/strategy/digital-copyright_ca.rb +0 -3
  8. data/lib/gov_kit-ca/postal_code/strategy/greenparty_ca.rb +3 -6
  9. data/lib/gov_kit-ca/postal_code/strategy/ndp_ca.rb +4 -6
  10. data/lib/gov_kit-ca/postal_code/strategy/parl_gc_ca.rb +0 -1
  11. data/lib/gov_kit-ca/postal_code.rb +7 -5
  12. data/lib/gov_kit-ca/version.rb +1 -1
  13. data/lib/gov_kit-ca.rb +0 -2
  14. data/spec/cbc_ca_spec.rb +2 -2
  15. data/spec/conservative_ca_spec.ca +36 -0
  16. data/spec/digital-copyright_ca_spec.rb +21 -22
  17. data/spec/elections_ca_spec.rb +23 -24
  18. data/spec/greenparty_ca_spec.rb +23 -24
  19. data/spec/liberal_ca_spec.rb +24 -22
  20. data/spec/ndp_ca_spec.rb +21 -24
  21. data/spec/postal_code_spec.rb +3 -2
  22. metadata +58 -109
  23. data/spec/fixtures/cbc_ca/A1A1A1.response +0 -11
  24. data/spec/fixtures/cbc_ca/G0C2Y0.response +0 -11
  25. data/spec/fixtures/cbc_ca/H0H0H0.response +0 -11
  26. data/spec/fixtures/cbc_ca/K0A1K0.response +0 -11
  27. data/spec/fixtures/cbc_ca/T5S2B9.response +0 -11
  28. data/spec/fixtures/cbc_ca/X1B1B1.response +0 -11
  29. data/spec/fixtures/conservative_ca/A1A1A1.response +0 -467
  30. data/spec/fixtures/conservative_ca/G0C2Y0.response +0 -467
  31. data/spec/fixtures/conservative_ca/H0H0H0.response +0 -467
  32. data/spec/fixtures/conservative_ca/K0A1K0.response +0 -467
  33. data/spec/fixtures/conservative_ca/T5S2B9.response +0 -467
  34. data/spec/fixtures/conservative_ca/X1B1B1.response +0 -467
  35. data/spec/fixtures/digital-copyright_ca/A1A1A1.response +0 -262
  36. data/spec/fixtures/digital-copyright_ca/G0C2Y0.response +0 -263
  37. data/spec/fixtures/digital-copyright_ca/H0H0H0.response +0 -278
  38. data/spec/fixtures/digital-copyright_ca/K0A1K0.response +0 -264
  39. data/spec/fixtures/digital-copyright_ca/T5S2B9.response +0 -267
  40. data/spec/fixtures/digital-copyright_ca/X1B1B1.response +0 -278
  41. data/spec/fixtures/elections_ca/A1A1A1.response +0 -12
  42. data/spec/fixtures/elections_ca/G0C2Y0.response +0 -12
  43. data/spec/fixtures/elections_ca/H0H0H0.response +0 -11
  44. data/spec/fixtures/elections_ca/K0A1K0.response +0 -11
  45. data/spec/fixtures/elections_ca/T5S2B9.response +0 -12
  46. data/spec/fixtures/elections_ca/X1B1B1.response +0 -11
  47. data/spec/fixtures/greenparty_ca/A1A1A1.response +0 -13
  48. data/spec/fixtures/greenparty_ca/G0C2Y0.response +0 -13
  49. data/spec/fixtures/greenparty_ca/H0H0H0.response +0 -13
  50. data/spec/fixtures/greenparty_ca/K0A1K0.response +0 -13
  51. data/spec/fixtures/greenparty_ca/T5S2B9.response +0 -13
  52. data/spec/fixtures/greenparty_ca/X1B1B1.response +0 -13
  53. data/spec/fixtures/liberal_ca/A1A1A1.response +0 -582
  54. data/spec/fixtures/liberal_ca/G0C2Y0.response +0 -582
  55. data/spec/fixtures/liberal_ca/H0H0H0.response +0 -663
  56. data/spec/fixtures/liberal_ca/K0A1K0.response +0 -663
  57. data/spec/fixtures/liberal_ca/T5S2B9.response +0 -663
  58. data/spec/fixtures/liberal_ca/X1B1B1.response +0 -663
  59. data/spec/fixtures/ndp_ca/A1A1A1.response +0 -12
  60. data/spec/fixtures/ndp_ca/G0C2Y0.response +0 -12
  61. data/spec/fixtures/ndp_ca/H0H0H0.response +0 -12
  62. data/spec/fixtures/ndp_ca/K0A1K0.response +0 -12
  63. data/spec/fixtures/ndp_ca/T5S2B9.response +0 -12
  64. data/spec/fixtures/ndp_ca/X1B1B1.response +0 -12
  65. data/spec/fixtures/parl_gc_ca/A1A1A1.response +0 -337
  66. data/spec/fixtures/parl_gc_ca/G0C2Y0.response +0 -337
  67. data/spec/fixtures/parl_gc_ca/H0H0H0.response +0 -226
  68. data/spec/fixtures/parl_gc_ca/K0A1K0.response +0 -784
  69. data/spec/fixtures/parl_gc_ca/T5S2B9.response +0 -511
  70. data/spec/fixtures/parl_gc_ca/X1B1B1.response +0 -226
@@ -1,12 +0,0 @@
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
-
@@ -1,11 +0,0 @@
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
-
@@ -1,13 +0,0 @@
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
-
@@ -1,13 +0,0 @@
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
-
@@ -1,13 +0,0 @@
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
-
@@ -1,13 +0,0 @@
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
-
@@ -1,13 +0,0 @@
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
-
@@ -1,13 +0,0 @@
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
-