statement 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -38,3 +38,8 @@ Statement uses MiniTest, to run tests:
38
38
  3. Commit your changes (`git commit -am 'Add some feature'`)
39
39
  4. Push to the branch (`git push origin my-new-feature`)
40
40
  5. Create new Pull Request
41
+
42
+ ## Authors
43
+
44
+ * Derek Willis
45
+ * Jacob Harris
data/lib/statement.rb CHANGED
@@ -7,11 +7,19 @@ require 'nokogiri'
7
7
  module Statement
8
8
 
9
9
  class Link
10
-
10
+ def self.absolute_link(url, link)
11
+ return link if link =~ /^http:\/\//
12
+
13
+ (URI.parse(url) + link).to_s
14
+ end
15
+
11
16
  def self.from_rss(url)
12
17
  doc = Nokogiri::XML(open(url))
13
18
  links = doc.xpath('//item')
14
- links.map{|link| {:source => url, :url => link.xpath('link').text, :title => link.xpath('title').text, :date => link.xpath('pubDate').empty? ? nil: Date.parse(link.xpath('pubDate').text), :domain => URI.parse(link.xpath('link').text).host }}
19
+ links.map do |link|
20
+ abs_link = absolute_link(url, link.xpath('link').text)
21
+ { :source => url, :url => abs_link, :title => link.xpath('title').text, :date => link.xpath('pubDate').empty? ? nil: Date.parse(link.xpath('pubDate').text), :domain => URI.parse(link.xpath('link').text).host }
22
+ end
15
23
  end
16
24
 
17
25
  def self.house_gop(url)
@@ -19,7 +27,11 @@ module Statement
19
27
  date = Date.parse(uri.query.split('=').last)
20
28
  doc = Nokogiri::HTML(open(url).read)
21
29
  links = doc.xpath("//ul[@id='membernews']").search('a')
22
- links.map{|link| {:source => url, :url => link["href"], :title => link.text.strip, :date => date, :domain => URI.parse(link["href"]).host}}
30
+ links.map do |link|
31
+ # return a hash
32
+ abs_link = absolute_link(url, link["href"])
33
+ { :source => url, :url => abs_link, :title => link.text.strip, :date => date, :domain => URI.parse(link["href"]).host }
34
+ end
23
35
  end
24
36
 
25
37
  end
@@ -1,3 +1,3 @@
1
1
  module Statement
2
- VERSION = "0.2"
2
+ VERSION = "0.3"
3
3
  end
@@ -0,0 +1,90 @@
1
+ <?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.8.4" -->
2
+ <rss version="0.92">
3
+ <channel>
4
+ <title>John Culberson - U.S. House of Representatives</title>
5
+ <link>http://culberson.house.gov</link>
6
+ <description>culberson.house.gov - District 7 - Houston, TX</description>
7
+ <lastBuildDate>Tue, 16 Apr 2013 18:33:46 +0000</lastBuildDate>
8
+ <docs>http://backend.userland.com/rss092</docs>
9
+ <language>en</language>
10
+
11
+ <item>
12
+ <title>Culberson Statement on The REAL Space Act</title>
13
+ <description>I co-sponsored the RE-asserting American Leadership in Space Act (The REAL Space Act) again this Congress because I believe it is critical for NASA to have a bold vision for space exploration, one that the President has failed to provide.
14
+
15
+ Johnson Space Center would flourish with a declared mission to return ...</description>
16
+ <link>http://culberson.house.gov/culberson-statement-on-the-real-space-act/</link>
17
+ </item>
18
+ <item>
19
+ <title>President Obama&#8217;s Budget: More of the Same Failed Policies</title>
20
+ <description>The President’s Budget By The Numbers
21
+
22
+
23
+
24
+ $8.2 Trillion In New Debt
25
+ $1.1 Trillion In New Taxes
26
+ $964 Billion In New Spending
27
+
28
+ The budget President Obama finally released today is months late and so full of gimmicks that the President cannot claim he is supporting deficit reduction. The fact is President Obama’s budget will ...</description>
29
+ <link>http://culberson.house.gov/president-obamas-budget-more-of-the-same-failed-policies/</link>
30
+ </item>
31
+ <item>
32
+ <title>Voting Record</title>
33
+ <description>
34
+
35
+
36
+
37
+
38
+
39
+
40
+ Roll Call Votes
41
+
42
+ A roll call vote records how each Member of the House voted, but many votes are cast by voice-vote for which there is no official record of a Member's position. To learn more about compiling a Member's voting record, visit the Library of Congress'a website by ...</description>
43
+ <link>http://culberson.house.gov/voting-record/</link>
44
+ </item>
45
+ <item>
46
+ <title>Congressman John Culberson (TX-7) Wins FRC Action’s ‘True Blue’ Award for Unwavering Support of the Family</title>
47
+ <description>WASHINGTON, D.C. – FRC Action and CitizenLink recognized Congressman John Culberson (TX-7) as a “True Blue” Member of Congress for unwavering commitment and consistent support in defense of life and the family. Rep. Culberson was one of only 89 current representatives and 4 current senators to score a perfect 100 ...</description>
48
+ <link>http://culberson.house.gov/congressman-john-culberson-tx-7-wins-frc-action%e2%80%99s-%e2%80%98true-blue%e2%80%99-award-for-unwavering-support-of-the-family/</link>
49
+ </item>
50
+ <item>
51
+ <title>Energy Independence: Now is the Time</title>
52
+ <description>The Keystone XL pipeline project is not just a pipeline – it’s a lifeline. It’s a lifeline for the tens of thousands of out-of-work Americans who will gain direct jobs from its construction and implementation, and it’s a lifeline for the millions of Americans who feel the pain of rising ...</description>
53
+ <link>http://culberson.house.gov/energy-independence-now-is-the-time/</link>
54
+ </item>
55
+ <item>
56
+ <title>Culberson Opposes the President&#8217;s Decision to Close the White House to the Public</title>
57
+ <description>Rep. John Culberson joined other Members of Congress in writing a letter to President Obama protesting the White House’s decision to cancel public tours. On March 5, 2013, the White House abruptly announced that they were canceling all tours “until further notice.” This decision comes as thousands of students and ...</description>
58
+ <link>http://culberson.house.gov/culberson-opposes-the-presidents-decision-to-close-the-white-house-to-the-public/</link>
59
+ </item>
60
+ <item>
61
+ <title>The Truth About Obamacare and the Continuing Resolution (CR)</title>
62
+ <description>
63
+
64
+
65
+ There is no new Obamacare funding in the CR.
66
+
67
+
68
+ There is no dedicated funding stream for Obamacare in the CR.
69
+
70
+
71
+ Yesterday I voted for the H.R. 933, the Department of Defense, Military Construction and Veterans Affairs, and Full-Year Continuing Appropriations Act of 2013. The bill provides our military and veterans with the ...</description>
72
+ <link>http://culberson.house.gov/the-truth-about-obamacare-and-the-continuing-resolution-cr/</link>
73
+ </item>
74
+ <item>
75
+ <title>Rep. Culberson Discusses our Federal Spending Problem</title>
76
+ <description> </description>
77
+ <link>http://culberson.house.gov/rep-culberson-discusses-our-federal-spending-problem/</link>
78
+ </item>
79
+ <item>
80
+ <title>Supporting Our Veterans</title>
81
+ <description>One of the best parts of my job is supporting our men and women in uniform, from nominating outstanding high school students to our military academies to ensuring rights and protections for our veterans. Yesterday, I chaired a hearing of the Military Construction and Veterans Affairs ...</description>
82
+ <link>http://culberson.house.gov/supporting-our-veterans/</link>
83
+ </item>
84
+ <item>
85
+ <title>Rep. Culberson to Chair Hearing with Joint Chiefs of Staff</title>
86
+ <description>I’m honored to chair the first hearing of the Military Construction and Veterans Affairs Appropriations Subcommittee this morning with the Joint Chiefs of Staff. The hearing will focus on military force structure and construction projects, and will give Congress a clear picture of the military’s ability to face developing global ...</description>
87
+ <link>http://culberson.house.gov/rep-culberson-to-chair-hearing-with-joint-chiefs-of-staff/</link>
88
+ </item>
89
+ </channel>
90
+ </rss>
@@ -0,0 +1,274 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
5
+ <meta name="description" content="The Website for the Republican Majority in the House of Representatives, GOP.gov provides the latest news from the House Republican Conference and its Chair, Cathy McMorris Rodgers." />
6
+ <meta name="keywords" content="gop,republicans,republican party,house republican conference,congress,house of representatives,the website of republicans in congress,cathy mcmorris rodgers,john boehner" />
7
+ <meta name="language" content="en" />
8
+ <meta property="og:title" content="Friday, March 29, 2013 - News from Republicans" />
9
+ <meta property="og:site_name" content="GOP.gov" />
10
+ <meta property="og:type" content="article" />
11
+ <meta property="fb:page_id" content="15302113890" />
12
+
13
+ <title>Friday, March 29, 2013 - News from Republicans - GOP.gov</title>
14
+
15
+ <script type="text/javascript" src="/resources/scripts/jquery/jquery.js"></script>
16
+ <script type="text/javascript" src="/resources/scripts/global.js"></script>
17
+ <!--[if lte IE 7]><script type="text/javascript" src="/resources/scripts/pngfix.js"></script><![endif]-->
18
+
19
+ <link rel="icon" type="image/jpg" href="/resources/images/global/favicon.jpg" />
20
+ <link rel="image_src" href="http://www.gop.gov/resources/images/facebook/share.jpg" />
21
+ <link rel="stylesheet" type="text/css" href="/resources/styles/global-jobs.css" media="all" />
22
+ <link rel="stylesheet" type="text/css" href="/resources/styles/republicans.css" />
23
+ <style type="text/css">h2{padding: 10px; font: italic 20px Georgia, "Times New Roman", Times, serif; color: #2D5882;}.republicans-membernewsitem {padding: 7px 0 7px 0;} .state-logo{background: url(/resources/images/republicans/header-news.png) no-repeat; width: 530px; height: 93px; margin-top: 10px;}.state-logo h1 {display: none;}ul#membernews{margin: 0; padding: 10px 20px 10px 20px;}ul#membernews li {margin: 10px 0 10px 0; padding: 0; min-height: 40px; list-style: none;}</style>
24
+ <script type="text/javascript" src="/resources/scripts/jquery.republicans.js"></script>
25
+ </head>
26
+
27
+ <body>
28
+ <div align="center">
29
+ <div id="logo">
30
+ <div id="logo-link">
31
+ <a href="/" title="GOP.gov - The Website of the Republican Majority in the House of Representatives"></a>
32
+ </div>
33
+ <div id="logo-uppernav" align="right">
34
+ <div id="logo-uppernav-search" align="left">
35
+ <form id="mastheadSearchDO" action="/search" method="get">
36
+ <input type="text" name="q_keywords" id="q_keywords" />
37
+ <input type="submit" value="" />
38
+ </form>
39
+ </div>
40
+ <ul>
41
+ <li>
42
+ <a href="/enews">Email Updates</a>
43
+ </li>
44
+ <li>
45
+ <a href="/rss">RSS &amp; API</a>
46
+ </li>
47
+ </ul>
48
+ </div>
49
+ </div>
50
+ <div id="masthead-navigation">
51
+ <div class="legislation"><a href="/legdigest"><span>Legislation</span></a></div>
52
+ <div class="news"><a href="/news"><span>News</span></a></div>
53
+ <div class="blog"><a href="/blog"><span>Blog</span></a></div>
54
+ <div class="jobs-plan">
55
+ <a href="/indepth/jobs" title="The House Republican Plan for America's Job Creators"><span>Get the details on the House Republican Plan for America's Job Creators</span></a>
56
+ </div>
57
+ <div class="media"><a href="/media"><span>Media</span></a></div>
58
+ <div class="contact contact-selected"><a href="/republicans"><span>Contact</span></a></div>
59
+ </div>
60
+ <img src="/resources/images/navigation/foot.png" width="950" height="11" alt="" id="masthead-foot" />
61
+
62
+ <div id="page" align="left"> <div id="republicans">
63
+ <div style="float: left; width: 240px; padding-top: 30px;">
64
+ <div class="republicans-sprite nav news"><a href="/republicans/news"><span>News</span></a></div>
65
+ <!-- <div class="republicans-sprite nav media"><a href="/republicans/media"><span>Media</span></a></div>-->
66
+ <!--<div class="republicans-sprite nav twitter"><a href="/republicans/twitter"><span>On Twitter</span></a></div>-->
67
+ <div style="height: 30px;"></div>
68
+ <div style="margin: 10px 15px 0 15px;">
69
+ <div style="color: #fff; text-shadow: #000 1px 1px 0;"><strong>Other Recent News</strong></div>
70
+ <div class="republicans-membernewsitem">
71
+ <a href="/republicans/news?offset=04/20/13">Saturday, April 20
72
+ </a>
73
+ <div class="clearer"></div>
74
+ </div>
75
+ <div class="republicans-membernewsitem">
76
+ <a href="/republicans/news?offset=04/19/13">Friday, April 19
77
+ </a>
78
+ <div class="clearer"></div>
79
+ </div>
80
+ <div class="republicans-membernewsitem">
81
+ <a href="/republicans/news?offset=04/18/13">Thursday, April 18
82
+ </a>
83
+ <div class="clearer"></div>
84
+ </div>
85
+ <div class="republicans-membernewsitem">
86
+ <a href="/republicans/news?offset=04/17/13">Wednesday, April 17
87
+ </a>
88
+ <div class="clearer"></div>
89
+ </div>
90
+ <div class="republicans-membernewsitem">
91
+ <a href="/republicans/news?offset=04/16/13">Tuesday, April 16
92
+ </a>
93
+ <div class="clearer"></div>
94
+ </div>
95
+ <div class="republicans-membernewsitem">
96
+ <a href="/republicans/news?offset=04/15/13">Monday, April 15
97
+ </a>
98
+ <div class="clearer"></div>
99
+ </div>
100
+ <div class="republicans-membernewsitem">
101
+ <a href="/republicans/news?offset=04/14/13">Sunday, April 14
102
+ </a>
103
+ <div class="clearer"></div>
104
+ </div>
105
+ <div class="republicans-membernewsitem">
106
+ <a href="/republicans/news?offset=04/13/13">Saturday, April 13
107
+ </a>
108
+ <div class="clearer"></div>
109
+ </div>
110
+ </div>
111
+ </div>
112
+ <div style="float: left; width: 710px;">
113
+ <div align="center">
114
+ <div class="state-logo"><h1>Republican Twitter Feed</h1></div>
115
+ <div style="width: 680px; background: #fff;" align="left">
116
+ <h2>Friday, March 29, 2013</h2>
117
+ <ul id="membernews">
118
+
119
+ <li>
120
+ <a href="http://posey.house.gov/News/DocumentSingle.aspx?DocumentID=325834" target="_blank">
121
+ <img src="/resources/images/contact/members/113/FL/08x60.jpg" border="0" alt="" width="40" style="float: left; margin-right: 10px;" />
122
+ Posey: Cocoa Post Office to be Named in Honor of Local Civil Rights Leaders
123
+ </a>
124
+ </li>
125
+ <li>
126
+ <a href="http://upton.house.gov/News/DocumentSingle.aspx?DocumentID=325948" target="_blank">
127
+ <img src="/resources/images/contact/members/113/MI/06x60.jpg" border="0" alt="" width="40" style="float: left; margin-right: 10px;" />
128
+ KALAMAZOO GAZETTE: Upton demands explanation from FAA for closure of Battle Creek tower
129
+ </a>
130
+ </li>
131
+ <li>
132
+ <a href="http://denham.house.gov/newsletter/weekly-update-rep-denham-march-29-2013" target="_blank">
133
+ <img src="/resources/images/contact/members/113/CA/10x60.jpg" border="0" alt="" width="40" style="float: left; margin-right: 10px;" />
134
+ Weekly Update from Rep. Denham - March 29, 2013
135
+ </a>
136
+ </li>
137
+ <li>
138
+ <a href="http://latta.house.gov/News/DocumentSingle.aspx?DocumentID=325837" target="_blank">
139
+ <img src="/resources/images/contact/members/113/OH/05x60.jpg" border="0" alt="" width="40" style="float: left; margin-right: 10px;" />
140
+ Latta: EPA Proposes Rule That Will Harm Consumers at the Pump
141
+ </a>
142
+ </li>
143
+ <li>
144
+ <a href="http://donyoung.house.gov/News/DocumentSingle.aspx?DocumentID=325872" target="_blank">
145
+ <img src="/resources/images/contact/members/113/AK/00x60.jpg" border="0" alt="" width="40" style="float: left; margin-right: 10px;" />
146
+ Statement From Congressman Young
147
+ </a>
148
+ </li>
149
+ <li>
150
+ <a href="http://burgess.house.gov/News/DocumentSingle.aspx?DocumentID=325767" target="_blank">
151
+ <img src="/resources/images/contact/members/113/TX/26x60.jpg" border="0" alt="" width="40" style="float: left; margin-right: 10px;" />
152
+ Burgess: North Texas U.S. Service Academies Forum
153
+ </a>
154
+ </li>
155
+ <li>
156
+ <a href="http://hastings.house.gov/News/DocumentSingle.aspx?DocumentID=325787" target="_blank">
157
+ <img src="/resources/images/contact/members/113/WA/04x60.jpg" border="0" alt="" width="40" style="float: left; margin-right: 10px;" />
158
+ Hastings: America Deserves a Balanced Budget
159
+ </a>
160
+ </li>
161
+ <li>
162
+ <a href="other/relative_url_test.html" target="_blank">
163
+ <img src="/resources/images/contact/members/113/WA/04x60.jpg" border="0" alt="" width="40" style="float: left; margin-right: 10px;" />
164
+ Relative URL test
165
+ </a>
166
+ </li>
167
+ </ul>
168
+ <div class="clearer"></div>
169
+ </div>
170
+ <div class="clearer"></div>
171
+ </div>
172
+ </div>
173
+ <div class="clearer"></div>
174
+ <div style="height: 20px; display: block;"></div>
175
+ </div>
176
+
177
+ </div>
178
+ <div align="center">
179
+ <div align="center" id="footer">
180
+ <div style="width: 950px;" align="left">
181
+ <div id="footer-icons">
182
+ <div class="icon twitter">
183
+ <a href="http://twitter.com/gopconference" title="@gopconference on Twitter" target="_blank"><span>Twitter</span></a>
184
+ </div>
185
+ <div class="icon facebook">
186
+ <a href="http://www.facebook.com/republicanconference" title="facebook.com/republicanconference" target="_blank"><span>Facebook</span></a>
187
+ </div>
188
+ <div class="icon youtube">
189
+ <a href="http://www.youtube.com/HouseConference" title="YouTube.com/HouseConference" target="_blank"><span>YouTube</span></a>
190
+ </div>
191
+ <div class="icon flickr">
192
+ <a href="http://www.flickr.com/photos/republicanconference/" title="flickr.com/photos/republicanconference" target="_blank"><span>Flickr</span></a>
193
+ </div>
194
+ </div>
195
+ <ul>
196
+ <li>
197
+ <strong><a href="/legdigest">Legislation</a></strong>
198
+ </li>
199
+ <li class="sub">
200
+ <a href="/legdigest">Today's Digest</a>
201
+ </li>
202
+ <li class="sub">
203
+ <a href="/legdigest/archive">Previous Digests</a>
204
+ </li>
205
+ <li class="sub">
206
+ <a href="/votes/today">Vote Results</a>
207
+ </li>
208
+ </ul>
209
+ <ul>
210
+ <li>
211
+ <strong><a href="/news">News</a></strong>
212
+ </li>
213
+ <li class="sub">
214
+ <a href="/press-release">Press Releases</a>
215
+ </li>
216
+ <li class="sub">
217
+ <a href="/policy-news">Policy News</a>
218
+ </li>
219
+ </ul>
220
+ <ul>
221
+ <li>
222
+ <strong><a href="/republicans">Republicans in Congress</a></strong>
223
+ </li>
224
+ <li class="sub">
225
+ <a href="/republicans">Your Representative</a>
226
+ </li>
227
+ <li class="sub">
228
+ <a href="/republicans/news">Member News</a>
229
+ </li>
230
+ <!--<li class="sub">
231
+ <a href="/republicans/twitter">Today's Tweets</a>
232
+ </li>-->
233
+ <li class="sub">
234
+ <a href="/republicans/leadership">Leadership</a>
235
+ </li>
236
+ <li class="sub">
237
+ <a href="/republicans/committees">Committees</a>
238
+ </li>
239
+ </ul>
240
+ <ul>
241
+ <li>
242
+ <strong><a href="/">GOP.gov</a></strong>
243
+ </li>
244
+ <li class="sub">
245
+ <a href="http://www.foxx.house.gov/looking-for-a-job-on-the-Hill" target="_blank">GOP Job Bank</a>
246
+ <li class="sub">
247
+ <a href="http://www.foxx.house.gov/resume-bank" target="_blank">GOP Resume Bank</a>
248
+ <li class="sub">
249
+ <a href="/enews">Email Updates</a>
250
+ </li>
251
+ <li class="sub">
252
+ <a href="/about">About the Conference</a>
253
+ </li>
254
+ <li class="sub">
255
+ <a href="/rss">RSS &amp; API</a>
256
+ </li>
257
+ <li class="sub">
258
+ <a href="/areweinsession?">Are We in Session?</a>
259
+ </li>
260
+ </ul>
261
+ </div>
262
+ </div>
263
+ </div>
264
+ </div>
265
+ <script type="text/javascript" src="/resources/scripts/jquery.tooltip.memberInfo.js"></script>
266
+ <script type="text/javascript" src="/resources/scripts/jquery/jquery.qtip.min.js"></script>
267
+ <script type="text/javascript">
268
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
269
+ </script>
270
+ <script type="text/javascript">
271
+ try {var pageTracker = _gat._getTracker("UA-7304846-1");pageTracker._trackPageview();} catch(err) {}
272
+ </script>
273
+ </body>
274
+ </html>
data/spec/ruiz_rss.xml ADDED
@@ -0,0 +1,88 @@
1
+ <?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://ruiz.house.gov/rss.xml" xmlns:dc="http://purl.org/dc/elements/1.1/">
2
+ <channel>
3
+ <title>Congressman Raul Ruiz - Representing the 36th District of California</title>
4
+ <link>http://ruiz.house.gov/rss.xml</link>
5
+ <description></description>
6
+ <language>en</language>
7
+ <item>
8
+ <title>Dr. Ruiz Highlights First 100 Days in Congress</title>
9
+ <link>http://ruiz.house.gov/media-center/press-releases/dr-ruiz-highlights-first-100-days-in-congress</link>
10
+ <description>&amp;nbsp;Washington, DC&amp;nbsp;&amp;ndash; Last Friday marked the first 100 days in Congress for Dr. Raul Ruiz (D-Palm Desert). Since being sworn into office on January 3, 2013, Dr. Ruiz has:Helped 124 constituents resolve their caseworkOpened two district officesDelivered two speeches on the House floorIntroduced legislation to provide incentives for global companies and investors to create jobs in the 36th&amp;nbsp;District and throughout the United States [H.R. 1413]Voted to block a Congressional pay raise [H.R. 273]Voted for the bipartisan &amp;ldquo;No Budget, No Pay&amp;rdquo; Act to&amp;nbsp;withhold&amp;nbsp;Congressional pay if Congress fails to pass a budget&amp;nbsp;[H.R. 325]Voted with House Republicans to pass a bill requiring the President to submit a proposal to balance the federal budget [H.R. 444]Voted for the bipartisan Violence Against Women Act to strengthen the ability of the federal government, states, and law enforcement agencies to combat sexual assault and domestic abuse [S. 47]Voted for bipartisan legislation to create jobs and cut red tape for the development of clean hydropower energy&amp;nbsp;[H.R. 254]Voted against the Ryan Budget which ends the Medicare guarantee [H. Con. Res. 25] and spoke out against the President&amp;rsquo;s proposed cuts to Medicare and Social SecurityVoted to ensure that tribal communities receive equitable treatment during&amp;nbsp;a&amp;nbsp;natural disaster [H.R. 219] and voted to ensure that Native American women who are victims of sexual or domestic abuse have equal access to justice [S. 47]Cosponsored bipartisan legislation to make higher education more affordable for veterans [H.R. 357] and bipartisan legislation to help disabled veterans receive full benefits [H.R. 333]Joined 212 Members of Congress in filing an amicus brief in the United States Supreme Court opposing the Defense of Marriage Act (DOMA)Worked with Senator Boxer (D-CA) and the Army Corps of Engineers to secure a $200,000 request to advance a state plan to create a 3,770-acre complex of shallow ponds near the Salton Sea as part of a longer-term restoration effortProvided free medical care to local residents during the Remote Area Medical (RAM) Health Expedition in IndioJoined a bipartisan group of Members of Congress in urging the Postmaster General to continue delivering prescription medications to seniors and veterans in light of the proposed 5-day delivery scheduleParticipated in many local community events including: the Beaumont Veterans&amp;rsquo; Expo, the Palm Springs Black History parade, the Riverside County Date Festival Parade, the Desert Hot Springs Health clinic grant opening, the Palm Springs Chamber Lunch, the La Quinta Chamber Lunch, the Desert Hot Springs Chamber lunch, the Coachella Valley Alzheimer&amp;rsquo;s Walk, the BNP Paribas Open Salute to Heroes, the Rainbow Youth Summit, the LGBT Marriage Equality Rally, the James O. Jesse Highland Unity Center Community Block Grant Celebration, and the San Jacinto First People&amp;rsquo;s Day Parade and Festival###</description>
11
+ <pubDate>Monday, April 15, 2013 - 2:23pm</pubDate>
12
+ <dc:creator>43</dc:creator>
13
+ <guid isPermaLink="true">http://ruiz.house.gov/%3Ca%20href%3D%22/media-center/press-releases/dr-ruiz-highlights-first-100-days-in-congress%22%3Eview%3C/a%3E</guid>
14
+ </item>
15
+ <item>
16
+ <title>Dr. Ruiz Statement on Cuts to Medicare and Social Security in the President’s Budget</title>
17
+ <link>http://ruiz.house.gov/media-center/press-releases/dr-ruiz-statement-on-cuts-to-medicare-and-social-security-in-the</link>
18
+ <description>&amp;nbsp;Washington, DC&amp;nbsp;&amp;ndash; Today Dr. Raul Ruiz (D-Palm Desert) released the following statement on the proposed cuts to Medicare and Social Security included in the President&amp;rsquo;s budget:&amp;ldquo;I was disappointed that the President&amp;rsquo;s budget released today included cuts to Medicare and Social Security. Putting the burden of the national deficit on the backs of our seniors is wrong, and I will stand with our seniors to oppose any effort from either political party that would cut their hard-earned benefits and force them to pay even more out-of-pocket for health care. At a time when many seniors are barely making ends meet, we should be working in a bipartisan way to responsibly reduce the deficit and strengthen Medicare and Social Security, and I am committed to working with both political parties toward that end.&amp;rdquo;###</description>
19
+ <pubDate>Wednesday, April 10, 2013 - 5:55pm</pubDate>
20
+ <dc:creator>43</dc:creator>
21
+ <guid isPermaLink="true">http://ruiz.house.gov/%3Ca%20href%3D%22/media-center/press-releases/dr-ruiz-statement-on-cuts-to-medicare-and-social-security-in-the%22%3Eview%3C/a%3E</guid>
22
+ </item>
23
+ <item>
24
+ <title>Dr. Ruiz Introduces First Bill, the SelectUSA Authorization Act of 2013</title>
25
+ <link>http://ruiz.house.gov/media-center/press-releases/dr-ruiz-introduces-first-bill-the-selectusa-authorization-act-of-2013</link>
26
+ <description>Washington, DC&amp;nbsp;&amp;ndash; Today Dr. Raul Ruiz (D-Palm Desert) introduced his first bill, the SelectUSA Authorization Act of 2013. This legislation, which is part of the &amp;ldquo;Make it in America&amp;rdquo; plan in the U.S. House of Representatives, will authorize the SelectUSA initiative and provide incentives for global companies and investors to create jobs in the United States.&amp;ldquo;America should be the premier place in the world to do business, and this bill will help increase our competitiveness in the global economy by recruiting international companies to our shores and providing incentives for investors to create high-quality jobs here at home,&amp;rdquo; said Dr. Ruiz. &amp;ldquo;There are people all across the 36th&amp;nbsp;District who are ready to get to work.&amp;nbsp;&amp;nbsp;By attracting global businesses to our local communities, this common sense legislation will help create well-paying jobs and strengthen our economy locally and throughout the country.&amp;quot;The SelectUSA initiative is the first federal initiative focused on attracting, retaining, and expanding global business investment and development in the United States. SelectUSA serves as a one-stop shop for investors and businesses that want to create jobs in the United States. The initiative helps link local communities with international companies and investors who want to expand to the United States.Dr. Ruiz&amp;rsquo;s bill also includes accountability and transparency measures to ensure adequate oversight of the SelectUSA initiative.###</description>
27
+ <pubDate>Tuesday, April 9, 2013 - 4:04pm</pubDate>
28
+ <dc:creator>43</dc:creator>
29
+ <guid isPermaLink="true">http://ruiz.house.gov/%3Ca%20href%3D%22/media-center/press-releases/dr-ruiz-introduces-first-bill-the-selectusa-authorization-act-of-2013%22%3Eview%3C/a%3E</guid>
30
+ </item>
31
+ <item>
32
+ <title>Dr. Ruiz Announces 2013 Congressional Art Competition</title>
33
+ <link>http://ruiz.house.gov/media-center/press-releases/dr-ruiz-announces-2013-congressional-art-competition</link>
34
+ <description>&amp;nbsp;WASHINGTON, DC&amp;nbsp;&amp;nbsp;--&amp;nbsp;The office of Dr. Raul Ruiz (D-Palm Desert) is now accepting submissions for the 2013 Congressional Art Competition.Each spring, Members of the U.S. House of Representatives sponsor a nationwide high school arts competition to recognize the artistic talents of their young constituents. Since 1982, more than 650,000 high school students have participated in the competition.&amp;ldquo;The 36th&amp;nbsp;District is home to some of the most talented artists in the nation, and the Congressional Art Competition provides our local student artists with a unique opportunity to showcase their creativity on a national stage,&amp;rdquo; said Dr. Ruiz. &amp;ldquo;I look forward to reviewing the submissions and encourage all interested high school students to participate in this year&amp;rsquo;s competition.&amp;rdquo;The Artistic Discovery Contest is open to high school students who are residents of the 36th District. Public, private and home-schooled students are invited and encouraged to participate. The winning submission will be displayed for one year in the U.S. Capitol. The exhibit in Washington will also include artwork from other contest winners nationwide.&amp;nbsp;Art works entered in the contest may be 28&amp;quot; x 28&amp;quot; x 4&amp;quot;, inlucing the frame. All entries should be original in concept, design, and execution. &amp;nbsp;The artwork may be:&amp;middot;&amp;nbsp;&amp;nbsp;Paintings, including oil, acrylics, and watercolor&amp;middot;&amp;nbsp;&amp;nbsp;Drawings, including pastels, colored pencil, pencil, charcoal, ink, and markers&amp;middot;&amp;nbsp;&amp;nbsp;Prints, including lithographs, silkscreen, and block prints&amp;middot;&amp;nbsp;&amp;nbsp;Mixed Media&amp;middot;&amp;nbsp;&amp;nbsp;Computer generated art&amp;middot;&amp;nbsp;&amp;nbsp;PhotographyThe artist and his or her family will be invited to a reception at the U.S. Capitol along with the winners from other Congressional Districts across the country.&amp;nbsp;Visit&amp;nbsp;https://ruiz.house.gov/services/art-competition&amp;nbsp;to fill out the Student Release Form and see the Guidelines for Teachers and Students.For more information, please contact Amanda Bogorad at&amp;nbsp;amanda.bogorad@mail.house.gov&amp;nbsp;or 760-424-8888.###</description>
35
+ <pubDate>Wednesday, March 27, 2013 - 3:21pm</pubDate>
36
+ <dc:creator>43</dc:creator>
37
+ <guid isPermaLink="true">http://ruiz.house.gov/%3Ca%20href%3D%22/media-center/press-releases/dr-ruiz-announces-2013-congressional-art-competition%22%3Eview%3C/a%3E</guid>
38
+ </item>
39
+ <item>
40
+ <title>Dr. Ruiz Delivers Floor Speech in Opposition to the Ryan Budget </title>
41
+ <link>http://ruiz.house.gov/media-center/press-releases/dr-ruiz-delivers-floor-speech-in-opposition-to-the-ryan-budget</link>
42
+ <description>Washington, DC &amp;ndash; Dr. Raul Ruiz (D-Palm Desert) delivered remarks on the House floor today in opposition to the Fiscal Year 2014 Ryan Budget, which ends the Medicare guarantee for seniors.&amp;nbsp;Below are Dr. Ruiz&amp;rsquo;s remarks:&amp;ldquo;This Congress has a responsibility and an opportunity to work together to grow our economy and set this nation on a fiscally responsible path. However, the Ryan budget is irresponsible and places the burden of the deficit on hard-working American families and seniors. This plan ends the guarantee of Medicare.&amp;ldquo;As an ER doctor, I know that many of my senior patients are struggling financially and rely on Medicare. Our priority should be reducing healthcare costs in order to make Medicare stronger and sustainable. But this budget transforms Medicare into a voucher program, shifting the cost of health care to our seniors.&amp;ldquo;We must work together to protect and preserve Medicare, reduce our deficit, and decrease healthcare costs. I urge my colleagues to come together across party lines and put American families and our seniors first.&amp;rdquo;###</description>
43
+ <pubDate>Wednesday, March 20, 2013 - 6:12pm</pubDate>
44
+ <dc:creator>43</dc:creator>
45
+ <guid isPermaLink="true">http://ruiz.house.gov/%3Ca%20href%3D%22/media-center/press-releases/dr-ruiz-delivers-floor-speech-in-opposition-to-the-ryan-budget%22%3Eview%3C/a%3E</guid>
46
+ </item>
47
+ <item>
48
+ <title>Rep. Ruiz Announces Opening of Hemet Office</title>
49
+ <link>http://ruiz.house.gov/media-center/press-releases/rep-ruiz-announces-opening-of-hemet-office</link>
50
+ <description>Washington, DC&amp;nbsp;--- U.S. Representative Raul Ruiz, M.D. (D-Palm Desert) today announced the opening of his district office in Hemet.The Hemet district office is located at 445 East Florida Avenue, Hemet, CA 92543.&amp;ldquo;I have said from the start that I will always put people first, and my office is committed to doing that by providing high-quality constituent services to the people of the 36th District,&amp;rdquo; said Rep. Ruiz. &amp;ldquo;Whether it&amp;rsquo;s our office in Hemet, Palm Springs, or Washington, DC, my door is always open and my staff and I are here to serve. I encourage people in Hemet to reach out to us and take advantage of the resources and services available through our new local office.&amp;rdquo;&amp;ldquo;We are both pleased and proud to have Congressman Ruiz&amp;#39;s&amp;nbsp;Hemet office located in Hemet&amp;#39;s City Hall,&amp;rdquo; said Hemet Mayor Robert Youssef. &amp;ldquo;This convenient location will&amp;nbsp;provide all of Hemet&amp;#39;s citizens easy access to the Congressman&amp;#39;s staff.&amp;rdquo;Rep. Ruiz also has a district office located at&amp;nbsp;777 East Tahquitz Canyon Way, Palm Springs, CA, 92262.###</description>
51
+ <pubDate>Thursday, March 14, 2013 - 2:47pm</pubDate>
52
+ <dc:creator>43</dc:creator>
53
+ <guid isPermaLink="true">http://ruiz.house.gov/%3Ca%20href%3D%22/media-center/press-releases/rep-ruiz-announces-opening-of-hemet-office%22%3Eview%3C/a%3E</guid>
54
+ </item>
55
+ <item>
56
+ <title>Rep. Ruiz Joins House in Passing Violence Against Women Act</title>
57
+ <link>http://ruiz.house.gov/media-center/press-releases/rep-ruiz-joins-house-in-passing-violence-against-women-act</link>
58
+ <description>February 28, 2013WASHINGTON, DC&amp;nbsp;--- U.S. Representative Raul Ruiz, M.D. (D-Palm Desert) today voted in favor of the bipartisan Senate-passed version of the Violence Against Women Act (VAWA). The bill, which passed the House by a margin of&amp;nbsp;286-138, will now go to the President&amp;rsquo;s desk for signature. &amp;nbsp; &amp;nbsp;&amp;ldquo;No woman should ever have to suffer domestic abuse,&amp;rdquo; said Rep. Ruiz. &amp;ldquo;The passage of this critical legislation is a victory for women in the 36th&amp;nbsp;District and across the country, and I was proud to stand with a bipartisan majority of my colleagues to reauthorize this landmark law. The bill we passed today will ensure that all victims of domestic and sexual abuse, regardless of their background, are given the protections they deserve and have access to the resources they need to seek justice.&amp;rdquo;In addition to voting in support of the bipartisan Senate-passed version of VAWA today, Rep. Ruiz joined the House in voting down a weaker House GOP version of the bill that excluded protections for Native American, immigrant, and LGBT women.&amp;nbsp;The reauthorization bill the House passed provides stronger protections for all women and&amp;nbsp;strengthens the ability of the Federal Government, the States, law enforcement, and service providers to combat domestic violence, dating violence, sexual assault, and stalking.&amp;nbsp;Yesterday, during his first speech on the House floor as a U.S. Representative, Rep. Ruiz urged passage of a strong, comprehensive version of VAWA and spoke out against the weaker House GOP version of the bill. A clip of that video is available&amp;nbsp;here&amp;nbsp;and the remarks as prepared for delivery are below.###&amp;nbsp;STATEMENT OF THE HONORABLE RAUL RUIZFLOOR STATEMENTS.47&amp;nbsp;&amp;ndash; Violence Against Women Reauthorization Act of 2013&amp;nbsp;Thank You Mr. Speaker.I would like to thank the Senate for working in a bipartisan manner to pass the Violence Against Women Reauthorization Act. However, the House Republican version of the bill fails to protect all women, including Native American women, immigrant women and the LGBT community.I rise today in strong opposition to the House Republican version of the Violence Against Women Reauthorization Act.&amp;nbsp; As an ER doctor I have seen firsthand the beaten and bruised bodies of women and the invisible scars left on the victim, her family and community.&amp;nbsp;&amp;nbsp;Native American women in my district and across the country endure an epidemic of domestic violence and in most cases the abusers are not members of the tribe. Tribes must have the right to protect their daughters, sisters and mothers from violence.&amp;nbsp;We must work to make sure that all women are protected from domestic violence.I urge all of my colleagues to join me in opposition to the House Republican version of this legislation and I look forward to the passage of the bipartisan Senate version of this legislation. &amp;nbsp;&amp;nbsp;</description>
59
+ <pubDate>Thursday, February 28, 2013 - 3:40am</pubDate>
60
+ <dc:creator>43</dc:creator>
61
+ <guid isPermaLink="true">http://ruiz.house.gov/%3Ca%20href%3D%22/media-center/press-releases/rep-ruiz-joins-house-in-passing-violence-against-women-act%22%3Eview%3C/a%3E</guid>
62
+ </item>
63
+ <item>
64
+ <title>Rep. Ruiz Votes to Block Congressional Pay Raise</title>
65
+ <link>http://ruiz.house.gov/media-center/press-releases/rep-ruiz-votes-to-block-congressional-pay-raise</link>
66
+ <description>&amp;nbsp;Washington, DC&amp;nbsp;&amp;ndash; U.S. Representative Raul Ruiz, M.D. (D-Palm Desert) today voted for H.R. 273 to overturn an automatic pay raise for Members of Congress and continue the current federal government pay freeze. This legislation is estimated to save U.S. taxpayers $11 billion.&amp;nbsp;&amp;ldquo;During a time when many families in the 36th&amp;nbsp;District are struggling to make ends meet and our country is facing a $17 trillion national debt and the threat of deep, across-the-board cuts to defense and health care programs, the last thing Members of Congress should be doing is giving themselves a taxpayer-funded pay raise,&amp;rdquo; said Rep. Ruiz. &amp;ldquo;It is time for Congress to show the American people we are serious about eliminating unnecessary spending, and that begins with personal accountability and ending wasteful pay raises for ourselves.&amp;rdquo;H.R. 273 passed the House by a margin of 261 to 154, with 43 Democrats, including Rep. Ruiz, voting in support.###</description>
67
+ <pubDate>Friday, February 15, 2013 - 1:56pm</pubDate>
68
+ <dc:creator>43</dc:creator>
69
+ <guid isPermaLink="true">http://ruiz.house.gov/%3Ca%20href%3D%22/media-center/press-releases/rep-ruiz-votes-to-block-congressional-pay-raise%22%3Eview%3C/a%3E</guid>
70
+ </item>
71
+ <item>
72
+ <title>Rep. Ruiz Cosponsors Violence Against Women Act, Urges House to Take Up Senate-Passed Reauthorization </title>
73
+ <link>http://ruiz.house.gov/media-center/press-releases/rep-ruiz-cosponsors-violence-against-women-act-urges-house-to-take-up</link>
74
+ <description>&amp;nbsp;Washington, D.C.&amp;nbsp;&amp;ndash; U.S. Representative Raul Ruiz, M.D. (D-Palm Desert) today cosponsored H.R. 11, the Violence Against Women Act (VAWA) and called upon House leadership to quickly bring the bipartisan Senate-passed version of the bill to the floor for a vote. Earlier this week the Senate passed the VAWA Reauthorization by a vote of 78 to 22.&amp;ldquo;We cannot continue to delay the passage of this critical legislation,&amp;rdquo; said Rep. Ruiz. &amp;ldquo;This bill will help protect victims of domestic violence and provide our local communities and law enforcement agencies with the resources they need to hold perpetrators accountable. No woman should have to live in fear of domestic abuse or sexual violence. This is an issue that deserves bipartisan action now.&amp;rdquo;The bipartisan Senate-passed VAWA Reauthorization strengthens the ability of the Federal Government, the States, law enforcement, and service providers to combat domestic violence, dating violence, sexual assault, and stalking.&amp;nbsp;The legislation also includes stronger protections for tribal members, immigrants, and members of the LGBT community.###</description>
75
+ <pubDate>Thursday, February 14, 2013 - 11:32am</pubDate>
76
+ <dc:creator>43</dc:creator>
77
+ <guid isPermaLink="true">http://ruiz.house.gov/%3Ca%20href%3D%22/media-center/press-releases/rep-ruiz-cosponsors-violence-against-women-act-urges-house-to-take-up%22%3Eview%3C/a%3E</guid>
78
+ </item>
79
+ <item>
80
+ <title> Rep. Ruiz Statement on the President’s State of the Union Address</title>
81
+ <link>http://ruiz.house.gov/media-center/press-releases/rep-ruiz-statement-on-the-president-s-state-of-the-union-address</link>
82
+ <description>&amp;nbsp;Washington, DC&amp;nbsp;--- U.S. Representative Raul Ruiz, M.D. (D-Palm Desert) tonight released the following statement regarding the President&amp;rsquo;s State of the Union address:&amp;ldquo;In his State of the Union address tonight, the President emphasized a plan to strengthen our middle class, accelerate economic growth and job creation, and prepare future generations of American workers to compete in the global economy. I agree with the President that we must make our nation a magnet for new jobs and create incentives for companies to hire and invest in American workers. I also agree that we must give every student in our nation the opportunity to succeed by expanding opportunities for a high-quality, affordable education. As the President said in his speech tonight, the American people expect us to put the nation&amp;rsquo;s interests before the interests of our political parties. I will continue to work with my colleagues to move our country forward in a bipartisan way and meet the challenges at hand.&amp;rdquo;###</description>
83
+ <pubDate>Wednesday, February 13, 2013 - 10:55am</pubDate>
84
+ <dc:creator>43</dc:creator>
85
+ <guid isPermaLink="true">http://ruiz.house.gov/%3Ca%20href%3D%22/media-center/press-releases/rep-ruiz-statement-on-the-president-s-state-of-the-union-address%22%3Eview%3C/a%3E</guid>
86
+ </item>
87
+ </channel>
88
+ </rss>
@@ -1,20 +1,34 @@
1
1
  require "minitest/autorun"
2
2
  require_relative "../lib/statement"
3
+ require 'webmock/minitest'
3
4
 
4
5
  describe Statement do
5
6
  it "parses an rss feed" do
6
- @results = Statement::Link.from_rss("http://ruiz.house.gov/rss.xml")
7
+ @feed_url = "http://ruiz.house.gov/rss.xml"
8
+ stub_request(:any, @feed_url).to_return(:body => File.new(File.join(File.dirname(__FILE__), "ruiz_rss.xml")), :status => 200)
9
+ @results = Statement::Link.from_rss(@feed_url)
7
10
  @results.first[:domain].must_equal "ruiz.house.gov"
8
11
  end
9
12
 
10
13
  it "parses House GOP press release page" do
11
- @results = Statement::Link.house_gop("http://www.gop.gov/republicans/news?offset=03/29/13")
12
- @results.first[:source].must_equal "http://www.gop.gov/republicans/news?offset=03/29/13"
14
+ @feed_url = "http://www.gop.gov/republicans/news?offset=03/29/13"
15
+ stub_request(:any, @feed_url).to_return(:body => File.new(File.join(File.dirname(__FILE__), "house_gop_releases.html")), :status => 200)
16
+ @results = Statement::Link.house_gop(@feed_url)
17
+ @results.first[:source].must_equal @feed_url
13
18
  end
14
19
 
15
20
  it "does not attempt to parse dates when none are present" do
16
- @results = Statement::Link.from_rss("http://culberson.house.gov/feed/rss/")
21
+ @feed_url = "http://culberson.house.gov/feed/rss/"
22
+ stub_request(:any, @feed_url).to_return(:body => File.new(File.join(File.dirname(__FILE__), "culberson_rss.xml")), :status => 200)
23
+
24
+ @results = Statement::Link.from_rss(@feed_url)
17
25
  @results.first[:date].must_equal nil
18
26
  end
19
-
27
+
28
+ it "handles relative URLs" do
29
+ @feed_url = "http://www.gop.gov/republicans/news?offset=03/29/13"
30
+ stub_request(:any, @feed_url).to_return(:body => File.new(File.join(File.dirname(__FILE__), "house_gop_releases.html")), :status => 200)
31
+ @results = Statement::Link.house_gop(@feed_url)
32
+ @results.last[:url].must_equal "http://www.gop.gov/republicans/other/relative_url_test.html"
33
+ end
20
34
  end
data/statement.gemspec CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
+ spec.add_development_dependency 'webmock'
23
24
  spec.add_dependency "american_date"
24
25
  spec.add_dependency "nokogiri"
25
26
  end
metadata CHANGED
@@ -1,67 +1,102 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: statement
3
- version: !ruby/object:Gem::Version
4
- version: '0.2'
3
+ version: !ruby/object:Gem::Version
4
+ hash: 13
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 3
9
+ version: "0.3"
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Derek Willis
9
13
  autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
- date: 2013-04-04 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
16
+
17
+ date: 2013-04-22 00:00:00 Z
18
+ dependencies:
19
+ - !ruby/object:Gem::Dependency
15
20
  name: bundler
16
- requirement: &2151807300 !ruby/object:Gem::Requirement
21
+ prerelease: false
22
+ requirement: &id001 !ruby/object:Gem::Requirement
17
23
  none: false
18
- requirements:
24
+ requirements:
19
25
  - - ~>
20
- - !ruby/object:Gem::Version
21
- version: '1.3'
26
+ - !ruby/object:Gem::Version
27
+ hash: 9
28
+ segments:
29
+ - 1
30
+ - 3
31
+ version: "1.3"
22
32
  type: :development
23
- prerelease: false
24
- version_requirements: *2151807300
25
- - !ruby/object:Gem::Dependency
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
26
35
  name: rake
27
- requirement: &2151806000 !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
28
38
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
33
46
  type: :development
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: webmock
34
50
  prerelease: false
35
- version_requirements: *2151806000
36
- - !ruby/object:Gem::Dependency
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ hash: 3
57
+ segments:
58
+ - 0
59
+ version: "0"
60
+ type: :development
61
+ version_requirements: *id003
62
+ - !ruby/object:Gem::Dependency
37
63
  name: american_date
38
- requirement: &2151805060 !ruby/object:Gem::Requirement
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
39
66
  none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ hash: 3
71
+ segments:
72
+ - 0
73
+ version: "0"
44
74
  type: :runtime
45
- prerelease: false
46
- version_requirements: *2151805060
47
- - !ruby/object:Gem::Dependency
75
+ version_requirements: *id004
76
+ - !ruby/object:Gem::Dependency
48
77
  name: nokogiri
49
- requirement: &2151804460 !ruby/object:Gem::Requirement
78
+ prerelease: false
79
+ requirement: &id005 !ruby/object:Gem::Requirement
50
80
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ hash: 3
85
+ segments:
86
+ - 0
87
+ version: "0"
55
88
  type: :runtime
56
- prerelease: false
57
- version_requirements: *2151804460
89
+ version_requirements: *id005
58
90
  description: Crawls congressional websites for press releases.
59
- email:
91
+ email:
60
92
  - dwillis@gmail.com
61
93
  executables: []
94
+
62
95
  extensions: []
96
+
63
97
  extra_rdoc_files: []
64
- files:
98
+
99
+ files:
65
100
  - .gitignore
66
101
  - Gemfile
67
102
  - LICENSE.txt
@@ -69,32 +104,46 @@ files:
69
104
  - Rakefile
70
105
  - lib/statement.rb
71
106
  - lib/statement/version.rb
107
+ - spec/culberson_rss.xml
108
+ - spec/house_gop_releases.html
109
+ - spec/ruiz_rss.xml
72
110
  - spec/statement_spec.rb
73
111
  - statement.gemspec
74
- homepage: ''
75
- licenses:
112
+ homepage: ""
113
+ licenses:
76
114
  - Apache
77
115
  post_install_message:
78
116
  rdoc_options: []
79
- require_paths:
117
+
118
+ require_paths:
80
119
  - lib
81
- required_ruby_version: !ruby/object:Gem::Requirement
120
+ required_ruby_version: !ruby/object:Gem::Requirement
82
121
  none: false
83
- requirements:
84
- - - ! '>='
85
- - !ruby/object:Gem::Version
86
- version: '0'
87
- required_rubygems_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ hash: 3
126
+ segments:
127
+ - 0
128
+ version: "0"
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
130
  none: false
89
- requirements:
90
- - - ! '>='
91
- - !ruby/object:Gem::Version
92
- version: '0'
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ hash: 3
135
+ segments:
136
+ - 0
137
+ version: "0"
93
138
  requirements: []
139
+
94
140
  rubyforge_project:
95
141
  rubygems_version: 1.8.17
96
142
  signing_key:
97
143
  specification_version: 3
98
144
  summary: Given a url, Statement returns links to press releases and official statements.
99
- test_files:
145
+ test_files:
146
+ - spec/culberson_rss.xml
147
+ - spec/house_gop_releases.html
148
+ - spec/ruiz_rss.xml
100
149
  - spec/statement_spec.rb