govkit 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/.travis.yml +2 -0
  2. data/Gemfile +11 -5
  3. data/README.md +1 -1
  4. data/Rakefile +29 -13
  5. data/VERSION +1 -1
  6. data/govkit.gemspec +25 -36
  7. data/lib/gov_kit.rb +16 -5
  8. data/lib/gov_kit/configuration.rb +5 -5
  9. data/lib/gov_kit/follow_the_money.rb +5 -2
  10. data/lib/gov_kit/open_congress.rb +3 -11
  11. data/lib/gov_kit/open_congress/bill.rb +32 -29
  12. data/lib/gov_kit/open_congress/person.rb +21 -20
  13. data/lib/gov_kit/open_states.rb +10 -15
  14. data/lib/gov_kit/railtie.rb +0 -2
  15. data/lib/gov_kit/resource.rb +0 -1
  16. data/lib/gov_kit/transparency_data.rb +1 -1
  17. data/lib/gov_kit/vote_smart.rb +81 -6
  18. data/{init.rb → rails/init.rb} +0 -0
  19. data/spec/fixtures/open_states/401.response +9 -9
  20. data/spec/fixtures/open_states/404.response +9 -9
  21. data/spec/fixtures/open_states/bill.response +9 -240
  22. data/spec/fixtures/open_states/bill_find.response +9 -0
  23. data/spec/fixtures/open_states/bill_query.response +9 -1990
  24. data/spec/fixtures/open_states/committee_find.response +9 -53
  25. data/spec/fixtures/open_states/committee_query.response +9 -190
  26. data/spec/fixtures/open_states/legislator_find.response +9 -0
  27. data/spec/fixtures/open_states/legislator_query.response +9 -144
  28. data/spec/fixtures/open_states/state.response +9 -60
  29. data/spec/follow_the_money_spec.rb +20 -16
  30. data/spec/open_congress_spec.rb +23 -35
  31. data/spec/open_states_spec.rb +63 -78
  32. data/spec/search_engines_spec.rb +10 -13
  33. data/spec/spec_helper.rb +16 -8
  34. data/spec/transparency_data_spec.rb +19 -35
  35. metadata +140 -145
  36. data/spec/fixtures/open_states/410.response +0 -6
  37. data/spec/fixtures/open_states/legislator.response +0 -34
@@ -1,6 +0,0 @@
1
- HTTP/1.1 410 GONE
2
- Server: nginx/0.6.35
3
- Date: Tue, 15 Jun 2010 22:34:56 GMT
4
- Content-Type: text/plain
5
- Connection: close
6
- Vary: Authorization
@@ -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
- }