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.
- data/.travis.yml +3 -0
- data/README.md +5 -1
- data/govkit-ca.gemspec +1 -0
- data/lib/gov_kit-ca/postal_code/strategy/base.rb +20 -1
- data/lib/gov_kit-ca/postal_code/strategy/cbc_ca.rb +1 -3
- data/lib/gov_kit-ca/postal_code/strategy/conservative_ca.rb +9 -6
- data/lib/gov_kit-ca/postal_code/strategy/digital-copyright_ca.rb +0 -3
- data/lib/gov_kit-ca/postal_code/strategy/greenparty_ca.rb +3 -6
- data/lib/gov_kit-ca/postal_code/strategy/ndp_ca.rb +4 -6
- data/lib/gov_kit-ca/postal_code/strategy/parl_gc_ca.rb +0 -1
- data/lib/gov_kit-ca/postal_code.rb +7 -5
- data/lib/gov_kit-ca/version.rb +1 -1
- data/lib/gov_kit-ca.rb +0 -2
- data/spec/cbc_ca_spec.rb +2 -2
- data/spec/conservative_ca_spec.ca +36 -0
- data/spec/digital-copyright_ca_spec.rb +21 -22
- data/spec/elections_ca_spec.rb +23 -24
- data/spec/greenparty_ca_spec.rb +23 -24
- data/spec/liberal_ca_spec.rb +24 -22
- data/spec/ndp_ca_spec.rb +21 -24
- data/spec/postal_code_spec.rb +3 -2
- metadata +58 -109
- data/spec/fixtures/cbc_ca/A1A1A1.response +0 -11
- data/spec/fixtures/cbc_ca/G0C2Y0.response +0 -11
- data/spec/fixtures/cbc_ca/H0H0H0.response +0 -11
- data/spec/fixtures/cbc_ca/K0A1K0.response +0 -11
- data/spec/fixtures/cbc_ca/T5S2B9.response +0 -11
- data/spec/fixtures/cbc_ca/X1B1B1.response +0 -11
- data/spec/fixtures/conservative_ca/A1A1A1.response +0 -467
- data/spec/fixtures/conservative_ca/G0C2Y0.response +0 -467
- data/spec/fixtures/conservative_ca/H0H0H0.response +0 -467
- data/spec/fixtures/conservative_ca/K0A1K0.response +0 -467
- data/spec/fixtures/conservative_ca/T5S2B9.response +0 -467
- data/spec/fixtures/conservative_ca/X1B1B1.response +0 -467
- data/spec/fixtures/digital-copyright_ca/A1A1A1.response +0 -262
- data/spec/fixtures/digital-copyright_ca/G0C2Y0.response +0 -263
- data/spec/fixtures/digital-copyright_ca/H0H0H0.response +0 -278
- data/spec/fixtures/digital-copyright_ca/K0A1K0.response +0 -264
- data/spec/fixtures/digital-copyright_ca/T5S2B9.response +0 -267
- data/spec/fixtures/digital-copyright_ca/X1B1B1.response +0 -278
- data/spec/fixtures/elections_ca/A1A1A1.response +0 -12
- data/spec/fixtures/elections_ca/G0C2Y0.response +0 -12
- data/spec/fixtures/elections_ca/H0H0H0.response +0 -11
- data/spec/fixtures/elections_ca/K0A1K0.response +0 -11
- data/spec/fixtures/elections_ca/T5S2B9.response +0 -12
- data/spec/fixtures/elections_ca/X1B1B1.response +0 -11
- data/spec/fixtures/greenparty_ca/A1A1A1.response +0 -13
- data/spec/fixtures/greenparty_ca/G0C2Y0.response +0 -13
- data/spec/fixtures/greenparty_ca/H0H0H0.response +0 -13
- data/spec/fixtures/greenparty_ca/K0A1K0.response +0 -13
- data/spec/fixtures/greenparty_ca/T5S2B9.response +0 -13
- data/spec/fixtures/greenparty_ca/X1B1B1.response +0 -13
- data/spec/fixtures/liberal_ca/A1A1A1.response +0 -582
- data/spec/fixtures/liberal_ca/G0C2Y0.response +0 -582
- data/spec/fixtures/liberal_ca/H0H0H0.response +0 -663
- data/spec/fixtures/liberal_ca/K0A1K0.response +0 -663
- data/spec/fixtures/liberal_ca/T5S2B9.response +0 -663
- data/spec/fixtures/liberal_ca/X1B1B1.response +0 -663
- data/spec/fixtures/ndp_ca/A1A1A1.response +0 -12
- data/spec/fixtures/ndp_ca/G0C2Y0.response +0 -12
- data/spec/fixtures/ndp_ca/H0H0H0.response +0 -12
- data/spec/fixtures/ndp_ca/K0A1K0.response +0 -12
- data/spec/fixtures/ndp_ca/T5S2B9.response +0 -12
- data/spec/fixtures/ndp_ca/X1B1B1.response +0 -12
- data/spec/fixtures/parl_gc_ca/A1A1A1.response +0 -337
- data/spec/fixtures/parl_gc_ca/G0C2Y0.response +0 -337
- data/spec/fixtures/parl_gc_ca/H0H0H0.response +0 -226
- data/spec/fixtures/parl_gc_ca/K0A1K0.response +0 -784
- data/spec/fixtures/parl_gc_ca/T5S2B9.response +0 -511
- 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
|
-
|