govkit 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +3 -0
- data/Gemfile +13 -0
- data/README.md +0 -5
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/generators/govkit/templates/govkit.rb +3 -0
- data/govkit.gemspec +41 -13
- data/lib/gov_kit/acts_as_noteworthy.rb +15 -9
- data/lib/gov_kit/configuration.rb +3 -1
- data/lib/gov_kit/open_congress/bill.rb +3 -5
- data/lib/gov_kit/open_congress/blog_post.rb +3 -7
- data/lib/gov_kit/open_congress/news_post.rb +3 -7
- data/lib/gov_kit/open_congress/person.rb +2 -4
- data/lib/gov_kit/open_congress/person_stat.rb +2 -7
- data/lib/gov_kit/open_congress/roll_call.rb +4 -6
- data/lib/gov_kit/open_congress/roll_call_comparison.rb +1 -4
- data/lib/gov_kit/open_congress/voting_comparison.rb +1 -3
- data/lib/gov_kit/open_congress.rb +8 -0
- data/lib/gov_kit/open_states.rb +63 -14
- data/lib/gov_kit/railtie.rb +4 -0
- data/lib/gov_kit/resource.rb +62 -12
- data/lib/gov_kit/search_engines/bing.rb +38 -0
- data/lib/gov_kit/search_engines/google_blog.rb +3 -2
- data/lib/gov_kit/search_engines/google_news.rb +26 -16
- data/lib/gov_kit/search_engines/technorati.rb +1 -0
- data/lib/gov_kit/search_engines/wikipedia.rb +1 -1
- data/lib/gov_kit/search_engines.rb +1 -0
- data/lib/gov_kit/transparency_data.rb +98 -0
- data/lib/gov_kit/vote_smart.rb +9 -2
- data/lib/gov_kit.rb +4 -2
- data/spec/fixtures/bing/news_search.response +1 -0
- data/spec/fixtures/bing/no_results.response +1 -0
- data/spec/fixtures/open_congress/person.response +8 -0
- data/spec/fixtures/open_states/401.response +8 -4
- data/spec/fixtures/open_states/404.response +9 -0
- data/spec/fixtures/open_states/committee_find.response +53 -0
- data/spec/fixtures/open_states/committee_query.response +190 -0
- data/spec/fixtures/search_engines/google_news.response +8 -0
- data/spec/fixtures/transparency_data/contributions.response +18 -0
- data/spec/fixtures/transparency_data/entities_search.response +7 -0
- data/spec/fixtures/transparency_data/entities_search_limit_0.response +7 -0
- data/spec/fixtures/transparency_data/entities_search_limit_1.response +7 -0
- data/spec/fixtures/transparency_data/grants_find_all.response +7 -0
- data/spec/fixtures/transparency_data/lobbyists_find_all.response +7 -0
- data/spec/follow_the_money_spec.rb +7 -3
- data/spec/open_congress_spec.rb +36 -0
- data/spec/open_states_spec.rb +98 -16
- data/spec/search_engines_spec.rb +44 -0
- data/spec/spec_helper.rb +2 -3
- data/spec/transparency_data_spec.rb +106 -0
- metadata +118 -32
- data/spec/spec.opts +0 -6
@@ -0,0 +1,190 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx/1.0.0
|
3
|
+
Date: Fri, 29 Apr 2011 20:52:00 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Connection: keep-alive
|
6
|
+
|
7
|
+
[
|
8
|
+
{
|
9
|
+
"updated_at": "2011-04-26 01:20:17",
|
10
|
+
"parent_id": "MDC000009",
|
11
|
+
"state": "md",
|
12
|
+
"subcommittee": "ALCOHOLIC BEVERAGES SUBCOMMITTEE",
|
13
|
+
"committee": "EDUCATION, HEALTH & ENVIRONMENTAL AFFAIRS COMMITTEE",
|
14
|
+
"chamber": "upper",
|
15
|
+
"id": "MDC000009"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"updated_at": "2011-04-29 01:19:52",
|
19
|
+
"parent_id": "MDC000003",
|
20
|
+
"state": "md",
|
21
|
+
"subcommittee": "CAPITAL BUDGET SUBCOMMITTEE",
|
22
|
+
"committee": "BUDGET & TAXATION COMMITTEE",
|
23
|
+
"chamber": "upper",
|
24
|
+
"id": "MDC000004"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"updated_at": "2011-04-29 01:19:52",
|
28
|
+
"parent_id": "MDC000009",
|
29
|
+
"state": "md",
|
30
|
+
"subcommittee": "ENVIRONMENT SUBCOMMITTEE",
|
31
|
+
"committee": "EDUCATION, HEALTH & ENVIRONMENTAL AFFAIRS COMMITTEE",
|
32
|
+
"chamber": "upper",
|
33
|
+
"id": "MDC000012"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"updated_at": "2011-04-29 01:19:52",
|
37
|
+
"parent_id": "MDC000009",
|
38
|
+
"state": "md",
|
39
|
+
"subcommittee": "ETHICS & ELECTION LAW SUBCOMMITTEE",
|
40
|
+
"committee": "EDUCATION, HEALTH & ENVIRONMENTAL AFFAIRS COMMITTEE",
|
41
|
+
"chamber": "upper",
|
42
|
+
"id": "MDC000013"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"updated_at": "2011-04-29 01:19:52",
|
46
|
+
"parent_id": null,
|
47
|
+
"state": "md",
|
48
|
+
"subcommittee": null,
|
49
|
+
"committee": "FINANCE COMMITTEE",
|
50
|
+
"chamber": "upper",
|
51
|
+
"id": "MDC000015"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"updated_at": "2011-04-29 01:19:52",
|
55
|
+
"parent_id": "MDC000015",
|
56
|
+
"state": "md",
|
57
|
+
"subcommittee": "HEALTH SUBCOMMITTEE",
|
58
|
+
"committee": "FINANCE COMMITTEE",
|
59
|
+
"chamber": "upper",
|
60
|
+
"id": "MDC000016"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"updated_at": "2011-04-29 01:19:53",
|
64
|
+
"parent_id": "MDC000015",
|
65
|
+
"state": "md",
|
66
|
+
"subcommittee": "TRANSPORTATION SUBCOMMITTEE",
|
67
|
+
"committee": "FINANCE COMMITTEE",
|
68
|
+
"chamber": "upper",
|
69
|
+
"id": "MDC000017"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"updated_at": "2011-04-29 01:19:53",
|
73
|
+
"parent_id": null,
|
74
|
+
"state": "md",
|
75
|
+
"subcommittee": null,
|
76
|
+
"committee": "EXECUTIVE NOMINATIONS COMMITTEE",
|
77
|
+
"chamber": "upper",
|
78
|
+
"id": "MDC000018"
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"updated_at": "2011-04-29 01:19:52",
|
82
|
+
"parent_id": "MDC000003",
|
83
|
+
"state": "md",
|
84
|
+
"subcommittee": "PUBLIC SAFETY, TRANSPORTATION & ENVIRONMENT SUBCOMMITTEE",
|
85
|
+
"committee": "BUDGET & TAXATION COMMITTEE",
|
86
|
+
"chamber": "upper",
|
87
|
+
"id": "MDC000007"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"created_at": "2011-01-29 00:13:19",
|
91
|
+
"updated_at": "2011-04-29 01:19:52",
|
92
|
+
"parent_id": "MDC000009",
|
93
|
+
"state": "md",
|
94
|
+
"subcommittee": "HEALTH OCCUPATIONS SUBCOMMITTEE",
|
95
|
+
"committee": "EDUCATION, HEALTH & ENVIRONMENTAL AFFAIRS COMMITTEE",
|
96
|
+
"chamber": "upper",
|
97
|
+
"id": "MDC000068"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"updated_at": "2011-04-29 01:19:52",
|
101
|
+
"parent_id": null,
|
102
|
+
"state": "md",
|
103
|
+
"subcommittee": null,
|
104
|
+
"committee": "BUDGET & TAXATION COMMITTEE",
|
105
|
+
"chamber": "upper",
|
106
|
+
"id": "MDC000003"
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"updated_at": "2011-04-29 01:19:53",
|
110
|
+
"parent_id": null,
|
111
|
+
"state": "md",
|
112
|
+
"subcommittee": null,
|
113
|
+
"committee": "SPECIAL COMMITTEE ON SUBSTANCE ABUSE",
|
114
|
+
"chamber": "upper",
|
115
|
+
"id": "MDC000019"
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"created_at": "2011-01-29 00:13:19",
|
119
|
+
"updated_at": "2011-04-29 01:19:52",
|
120
|
+
"parent_id": "MDC000009",
|
121
|
+
"state": "md",
|
122
|
+
"subcommittee": "LABOR LICENSING, & REGULATION SUBCOMMITTEE",
|
123
|
+
"committee": "EDUCATION, HEALTH & ENVIRONMENTAL AFFAIRS COMMITTEE",
|
124
|
+
"chamber": "upper",
|
125
|
+
"id": "MDC000069"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"updated_at": "2011-04-29 01:19:52",
|
129
|
+
"parent_id": "MDC000003",
|
130
|
+
"state": "md",
|
131
|
+
"subcommittee": "HEALTH & HUMAN SERVICES SUBCOMMITTEE",
|
132
|
+
"committee": "BUDGET & TAXATION COMMITTEE",
|
133
|
+
"chamber": "upper",
|
134
|
+
"id": "MDC000067"
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"updated_at": "2011-04-29 01:19:52",
|
138
|
+
"parent_id": "MDC000003",
|
139
|
+
"state": "md",
|
140
|
+
"subcommittee": "EDUCATION, BUSINESS & ADMINISTRATION SUBCOMMITTEE",
|
141
|
+
"committee": "BUDGET & TAXATION COMMITTEE",
|
142
|
+
"chamber": "upper",
|
143
|
+
"id": "MDC000066"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"updated_at": "2011-04-29 01:19:52",
|
147
|
+
"parent_id": "MDC000003",
|
148
|
+
"state": "md",
|
149
|
+
"subcommittee": "PENSIONS SUBCOMMITTEE",
|
150
|
+
"committee": "BUDGET & TAXATION COMMITTEE",
|
151
|
+
"chamber": "upper",
|
152
|
+
"id": "MDC000006"
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"updated_at": "2011-04-29 01:19:52",
|
156
|
+
"parent_id": null,
|
157
|
+
"state": "md",
|
158
|
+
"subcommittee": null,
|
159
|
+
"committee": "EDUCATION, HEALTH & ENVIRONMENTAL AFFAIRS COMMITTEE",
|
160
|
+
"chamber": "upper",
|
161
|
+
"id": "MDC000008"
|
162
|
+
},
|
163
|
+
{
|
164
|
+
"updated_at": "2011-04-29 01:19:52",
|
165
|
+
"parent_id": "MDC000009",
|
166
|
+
"state": "md",
|
167
|
+
"subcommittee": "EDUCATION SUBCOMMITTEE",
|
168
|
+
"committee": "EDUCATION, HEALTH & ENVIRONMENTAL AFFAIRS COMMITTEE",
|
169
|
+
"chamber": "upper",
|
170
|
+
"id": "MDC000011"
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"updated_at": "2011-04-29 01:19:52",
|
174
|
+
"parent_id": null,
|
175
|
+
"state": "md",
|
176
|
+
"subcommittee": null,
|
177
|
+
"committee": "RULES COMMITTEE",
|
178
|
+
"chamber": "upper",
|
179
|
+
"id": "MDC000001"
|
180
|
+
},
|
181
|
+
{
|
182
|
+
"updated_at": "2011-04-29 01:19:52",
|
183
|
+
"parent_id": null,
|
184
|
+
"state": "md",
|
185
|
+
"subcommittee": null,
|
186
|
+
"committee": "JUDICIAL PROCEEDINGS COMMITTEE",
|
187
|
+
"chamber": "upper",
|
188
|
+
"id": "MDC000002"
|
189
|
+
}
|
190
|
+
]
|