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.
- data/LICENSE +1 -1
- data/README.md +2 -2
- data/Rakefile +1 -1
- data/govkit-ca.gemspec +8 -8
- data/lib/gov_kit-ca/postal_code/strategy/base.rb +33 -1
- data/lib/gov_kit-ca/postal_code/strategy/{cbc-ca.rb → cbc_ca.rb} +6 -13
- data/lib/gov_kit-ca/postal_code/strategy/{conservative-ca.rb → conservative_ca.rb} +2 -4
- data/lib/gov_kit-ca/postal_code/strategy/digital-copyright_ca.rb +27 -0
- data/lib/gov_kit-ca/postal_code/strategy/{elections-ca.rb → elections_ca.rb} +2 -4
- data/lib/gov_kit-ca/postal_code/strategy/{greenparty-ca.rb → greenparty_ca.rb} +3 -5
- data/lib/gov_kit-ca/postal_code/strategy/{liberal-ca.rb → liberal_ca.rb} +3 -5
- data/lib/gov_kit-ca/postal_code/strategy/{ndp-ca.rb → ndp_ca.rb} +3 -5
- data/lib/gov_kit-ca/postal_code/strategy/{parl-gc-ca.rb → parl_gc_ca.rb} +3 -5
- data/lib/gov_kit-ca/postal_code/{strategy.rb → strategy_set.rb} +1 -7
- data/lib/gov_kit-ca/postal_code.rb +9 -3
- data/lib/gov_kit-ca/version.rb +1 -1
- data/lib/gov_kit-ca.rb +2 -1
- data/spec/cbc_ca_spec.rb +13 -6
- data/spec/digital-copyright_ca_spec.rb +32 -0
- data/spec/elections_ca_spec.rb +7 -0
- data/spec/fixtures/cbc_ca/A1A1A1.response +11 -0
- data/spec/fixtures/cbc_ca/G0C2Y0.response +11 -0
- data/spec/fixtures/cbc_ca/H0H0H0.response +309 -0
- data/spec/fixtures/cbc_ca/K0A1K0.response +11 -0
- data/spec/fixtures/cbc_ca/T5S2B9.response +11 -0
- data/spec/fixtures/cbc_ca/X1B1B1.response +309 -0
- data/spec/fixtures/conservative_ca/A1A1A1.response +467 -0
- data/spec/fixtures/conservative_ca/G0C2Y0.response +467 -0
- data/spec/fixtures/conservative_ca/H0H0H0.response +467 -0
- data/spec/fixtures/conservative_ca/K0A1K0.response +467 -0
- data/spec/fixtures/conservative_ca/T5S2B9.response +467 -0
- data/spec/fixtures/conservative_ca/X1B1B1.response +467 -0
- data/spec/fixtures/digital-copyright_ca/A1A1A1.response +262 -0
- data/spec/fixtures/digital-copyright_ca/G0C2Y0.response +263 -0
- data/spec/fixtures/digital-copyright_ca/H0H0H0.response +278 -0
- data/spec/fixtures/digital-copyright_ca/K0A1K0.response +264 -0
- data/spec/fixtures/digital-copyright_ca/T5S2B9.response +267 -0
- data/spec/fixtures/digital-copyright_ca/X1B1B1.response +278 -0
- data/spec/fixtures/elections_ca/A1A1A1.response +12 -0
- data/spec/fixtures/elections_ca/G0C2Y0.response +12 -0
- data/spec/fixtures/elections_ca/H0H0H0.response +11 -0
- data/spec/fixtures/elections_ca/K0A1K0.response +11 -0
- data/spec/fixtures/elections_ca/T5S2B9.response +12 -0
- data/spec/fixtures/elections_ca/X1B1B1.response +11 -0
- data/spec/fixtures/greenparty_ca/A1A1A1.response +13 -0
- data/spec/fixtures/greenparty_ca/G0C2Y0.response +13 -0
- data/spec/fixtures/greenparty_ca/H0H0H0.response +13 -0
- data/spec/fixtures/greenparty_ca/K0A1K0.response +13 -0
- data/spec/fixtures/greenparty_ca/T5S2B9.response +13 -0
- data/spec/fixtures/greenparty_ca/X1B1B1.response +13 -0
- data/spec/fixtures/liberal_ca/A1A1A1.response +582 -0
- data/spec/fixtures/liberal_ca/G0C2Y0.response +582 -0
- data/spec/fixtures/liberal_ca/H0H0H0.response +663 -0
- data/spec/fixtures/liberal_ca/K0A1K0.response +663 -0
- data/spec/fixtures/liberal_ca/T5S2B9.response +663 -0
- data/spec/fixtures/liberal_ca/X1B1B1.response +663 -0
- data/spec/fixtures/ndp_ca/A1A1A1.response +12 -0
- data/spec/fixtures/ndp_ca/G0C2Y0.response +12 -0
- data/spec/fixtures/ndp_ca/H0H0H0.response +12 -0
- data/spec/fixtures/ndp_ca/K0A1K0.response +12 -0
- data/spec/fixtures/ndp_ca/T5S2B9.response +12 -0
- data/spec/fixtures/ndp_ca/X1B1B1.response +12 -0
- data/spec/fixtures/parl_gc_ca/A1A1A1.response +337 -0
- data/spec/fixtures/parl_gc_ca/G0C2Y0.response +337 -0
- data/spec/fixtures/parl_gc_ca/H0H0H0.response +226 -0
- data/spec/fixtures/parl_gc_ca/K0A1K0.response +784 -0
- data/spec/fixtures/parl_gc_ca/T5S2B9.response +511 -0
- data/spec/fixtures/parl_gc_ca/X1B1B1.response +226 -0
- data/spec/greenparty_ca_spec.rb +7 -0
- data/spec/liberal_ca_spec.rb +10 -2
- data/spec/ndp_ca_spec.rb +7 -0
- data/spec/postal_code_spec.rb +13 -0
- data/spec/spec_helper.rb +13 -0
- data/spec/strategy_set_spec.rb +0 -0
- data/tasks/postal-code-for-districts.csv +212 -0
- data/tasks/tasks.rb +73 -0
- metadata +180 -98
- data/lib/gov_kit-ca/postal_code/strategy/digital_copyright-ca.rb +0 -28
- 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
|
+
|