govkit 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +2 -0
- data/Gemfile +11 -5
- data/README.md +1 -1
- data/Rakefile +29 -13
- data/VERSION +1 -1
- data/govkit.gemspec +25 -36
- data/lib/gov_kit.rb +16 -5
- data/lib/gov_kit/configuration.rb +5 -5
- data/lib/gov_kit/follow_the_money.rb +5 -2
- data/lib/gov_kit/open_congress.rb +3 -11
- data/lib/gov_kit/open_congress/bill.rb +32 -29
- data/lib/gov_kit/open_congress/person.rb +21 -20
- data/lib/gov_kit/open_states.rb +10 -15
- data/lib/gov_kit/railtie.rb +0 -2
- data/lib/gov_kit/resource.rb +0 -1
- data/lib/gov_kit/transparency_data.rb +1 -1
- data/lib/gov_kit/vote_smart.rb +81 -6
- data/{init.rb → rails/init.rb} +0 -0
- data/spec/fixtures/open_states/401.response +9 -9
- data/spec/fixtures/open_states/404.response +9 -9
- data/spec/fixtures/open_states/bill.response +9 -240
- data/spec/fixtures/open_states/bill_find.response +9 -0
- data/spec/fixtures/open_states/bill_query.response +9 -1990
- data/spec/fixtures/open_states/committee_find.response +9 -53
- data/spec/fixtures/open_states/committee_query.response +9 -190
- data/spec/fixtures/open_states/legislator_find.response +9 -0
- data/spec/fixtures/open_states/legislator_query.response +9 -144
- data/spec/fixtures/open_states/state.response +9 -60
- data/spec/follow_the_money_spec.rb +20 -16
- data/spec/open_congress_spec.rb +23 -35
- data/spec/open_states_spec.rb +63 -78
- data/spec/search_engines_spec.rb +10 -13
- data/spec/spec_helper.rb +16 -8
- data/spec/transparency_data_spec.rb +19 -35
- metadata +140 -145
- data/spec/fixtures/open_states/410.response +0 -6
- data/spec/fixtures/open_states/legislator.response +0 -34
@@ -1,34 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Server: nginx/0.6.35
|
3
|
-
Date: Tue, 15 Jun 2010 22:02:59 GMT
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Connection: close
|
6
|
-
Vary: Authorization
|
7
|
-
|
8
|
-
{
|
9
|
-
"first_name": "Dave",
|
10
|
-
"nimsp_candidate_id": 96237,
|
11
|
-
"middle_name": "",
|
12
|
-
"suffix": "",
|
13
|
-
"roles": [
|
14
|
-
{
|
15
|
-
"end_date": null,
|
16
|
-
"district": "1",
|
17
|
-
"contact_info": [],
|
18
|
-
"chamber": "upper",
|
19
|
-
"state": "ca",
|
20
|
-
"session": "20092010",
|
21
|
-
"committee": "",
|
22
|
-
"party": "Republican",
|
23
|
-
"votesmart_committee_id": null,
|
24
|
-
"type": "member",
|
25
|
-
"start_date": null
|
26
|
-
}
|
27
|
-
],
|
28
|
-
"updated_at": "2010-03-27 22:07:46",
|
29
|
-
"sources": [],
|
30
|
-
"leg_id": 2462,
|
31
|
-
"last_name": "Cox",
|
32
|
-
"votesmart_id": 16766,
|
33
|
-
"full_name": "Cox, Dave"
|
34
|
-
}
|