govkit-ca 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +4 -0
- data/README.md +1 -1
- data/govkit-ca.gemspec +4 -2
- data/lib/gov_kit-ca/postal_code/strategy/cbc_ca.rb +1 -1
- data/lib/gov_kit-ca/postal_code/strategy/conservative_ca.rb +3 -4
- data/lib/gov_kit-ca/postal_code/strategy/elections_ca.rb +4 -6
- data/lib/gov_kit-ca/postal_code/strategy/liberal_ca.rb +0 -1
- data/lib/gov_kit-ca/postal_code/strategy/parl_gc_ca.rb +5 -1
- data/lib/gov_kit-ca/postal_code.rb +19 -7
- data/lib/gov_kit-ca/represent.rb +108 -0
- data/lib/gov_kit-ca/version.rb +1 -1
- data/lib/gov_kit-ca.rb +2 -1
- data/spec/cbc_ca_spec.rb +14 -25
- data/spec/conservative_ca_spec.rb +1 -10
- data/spec/digital-copyright_ca_spec.rb +0 -9
- data/spec/elections_ca_spec.rb +0 -9
- data/spec/greenparty_ca_spec.rb +0 -9
- data/spec/liberal_ca_spec.rb +1 -10
- data/spec/ndp_ca_spec.rb +0 -9
- data/spec/parl_gc_ca_spec.rb +8 -0
- data/spec/postal_code_spec.rb +69 -87
- data/spec/represent_spec.rb +279 -0
- data/spec/spec_helper.rb +1 -4
- data/spec/strategy_set_spec.rb +55 -2
- data/tasks/tasks.rb +0 -28
- metadata +47 -133
- 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 -452
- data/spec/fixtures/conservative_ca/G0C2Y0.response +0 -452
- data/spec/fixtures/conservative_ca/H0H0H0.response +0 -452
- data/spec/fixtures/conservative_ca/K0A1K0.response +0 -455
- data/spec/fixtures/conservative_ca/T5S2B9.response +0 -453
- data/spec/fixtures/conservative_ca/X1B1B1.response +0 -452
- data/spec/fixtures/digital-copyright_ca/A1A1A1.response +0 -227
- data/spec/fixtures/digital-copyright_ca/G0C2Y0.response +0 -229
- data/spec/fixtures/digital-copyright_ca/H0H0H0.response +0 -243
- data/spec/fixtures/digital-copyright_ca/K0A1K0.response +0 -230
- data/spec/fixtures/digital-copyright_ca/T5S2B9.response +0 -233
- data/spec/fixtures/digital-copyright_ca/X1B1B1.response +0 -243
- data/spec/fixtures/elections_ca/A1A1A1.response +0 -10
- data/spec/fixtures/elections_ca/G0C2Y0.response +0 -11
- data/spec/fixtures/elections_ca/H0H0H0.response +0 -10
- data/spec/fixtures/elections_ca/K0A1K0.response +0 -10
- data/spec/fixtures/elections_ca/T5S2B9.response +0 -10
- data/spec/fixtures/elections_ca/X1B1B1.response +0 -10
- 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 -702
- data/spec/fixtures/liberal_ca/G0C2Y0.response +0 -570
- data/spec/fixtures/liberal_ca/H0H0H0.response +0 -649
- data/spec/fixtures/liberal_ca/K0A1K0.response +0 -650
- data/spec/fixtures/liberal_ca/T5S2B9.response +0 -570
- data/spec/fixtures/liberal_ca/X1B1B1.response +0 -649
- data/spec/fixtures/ndp_ca/A1A1A1.response +0 -610
- data/spec/fixtures/ndp_ca/G0C2Y0.response +0 -610
- data/spec/fixtures/ndp_ca/H0H0H0.response +0 -593
- data/spec/fixtures/ndp_ca/K0A1K0.response +0 -641
- data/spec/fixtures/ndp_ca/T5S2B9.response +0 -605
- data/spec/fixtures/ndp_ca/X1B1B1.response +0 -593
@@ -1,13 +0,0 @@
|
|
1
|
-
HTTP/1.1 302 Found
|
2
|
-
Date: Tue, 05 Mar 2013 03:46:20 GMT
|
3
|
-
Server: Apache/2.2.17 (Ubuntu)
|
4
|
-
X-Powered-By: PHP/5.3.5-1ubuntu7.11
|
5
|
-
Set-Cookie: SESSd79f45ad50419374b56b76915b19be78=fscsh463139ivs6kj44q1ei7c5; expires=Thu, 28-Mar-2013 07:19:40 GMT; path=/; domain=.greenparty.ca
|
6
|
-
Expires: Sun, 19 Nov 1978 05:00:00 GMT
|
7
|
-
Last-Modified: Tue, 05 Mar 2013 03:46:20 GMT
|
8
|
-
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
|
9
|
-
Location: http://www.greenparty.ca/riding/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: Tue, 05 Mar 2013 03:46:21 GMT
|
3
|
-
Server: Apache/2.2.17 (Ubuntu)
|
4
|
-
X-Powered-By: PHP/5.3.5-1ubuntu7.11
|
5
|
-
Set-Cookie: SESSd79f45ad50419374b56b76915b19be78=4aelut36k5dko8m034u0ovuep7; expires=Thu, 28-Mar-2013 07:19:41 GMT; path=/; domain=.greenparty.ca
|
6
|
-
Expires: Sun, 19 Nov 1978 05:00:00 GMT
|
7
|
-
Last-Modified: Tue, 05 Mar 2013 03:46:21 GMT
|
8
|
-
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
|
9
|
-
Location: http://www.greenparty.ca/find_your_riding
|
10
|
-
Vary: Accept-Encoding
|
11
|
-
Connection: close
|
12
|
-
Content-Type: text/html; charset=utf-8
|
13
|
-
|