statement 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,6 +49,7 @@ module Statement
49
49
  def self.from_rss(url)
50
50
  doc = open_rss(url)
51
51
  return unless doc
52
+ return if Mime::Type.new(doc).html?
52
53
  parse_rss(doc, url)
53
54
  end
54
55
 
@@ -307,7 +307,7 @@ module Statement
307
307
 
308
308
  def self.freshman_senators
309
309
  results = []
310
- ['murphy','cruz'].each do |senator|
310
+ ['markey', 'murphy','cruz'].each do |senator|
311
311
  base_url = "http://www.#{senator}.senate.gov/"
312
312
  doc = open_html(base_url+'press.cfm?maxrows=200&startrow=1&&type=1')
313
313
  return if doc.nil?
@@ -1,3 +1,3 @@
1
1
  module Statement
2
- VERSION = "1.0.10"
2
+ VERSION = "1.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statement
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-21 00:00:00.000000000 Z
12
+ date: 2013-09-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -214,7 +214,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  segments:
216
216
  - 0
217
- hash: -2139780170107598593
217
+ hash: 3617580837974841107
218
218
  required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  none: false
220
220
  requirements:
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  version: '0'
224
224
  segments:
225
225
  - 0
226
- hash: -2139780170107598593
226
+ hash: 3617580837974841107
227
227
  requirements: []
228
228
  rubyforge_project:
229
229
  rubygems_version: 1.8.25