statement 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,7 @@ module Statement
29
29
  end
30
30
 
31
31
  def self.member_methods
32
- [:capuano, :cold_fusion, :conaway, :susandavis, :faleomavaega, :freshman_senators, :klobuchar, :lujan, :billnelson, :lautenberg, :crapo, :coburn, :boxer, :mccain, :vitter, :donnelly, :inhofe, :levin, :reid, :palazzo, :document_query, :farenthold, :swalwell]
32
+ [:capuano, :cold_fusion, :conaway, :susandavis, :faleomavaega, :freshman_senators, :klobuchar, :lujan, :billnelson, :lautenberg, :crapo, :coburn, :boxer, :mccain, :vitter, :donnelly, :inhofe, :levin, :reid, :palazzo, :document_query, :farenthold, :swalwell, :fischer]
33
33
  end
34
34
 
35
35
  def self.committee_methods
@@ -40,7 +40,7 @@ module Statement
40
40
  year = Date.today.year
41
41
  results = [freshman_senators, capuano, cold_fusion(year, 0), conaway, susandavis, faleomavaega, klobuchar, lujan, palazzo(page=1), billnelson(year=year),
42
42
  document_query(page=1), document_query(page=2), farenthold(year), swalwell(page=1), donnelly(year=year), crapo, coburn, boxer(start=1), mccain(year=year),
43
- vitter(year=year), inhofe(year=year), reid].flatten
43
+ vitter(year=year), inhofe(year=year), reid, fischer].flatten
44
44
  Utils.remove_generic_urls!(results)
45
45
  end
46
46
 
@@ -392,6 +392,18 @@ module Statement
392
392
  end
393
393
  results
394
394
  end
395
+
396
+ def self.fischer(year=Date.today.year)
397
+ results = []
398
+ url = "http://www.fischer.senate.gov/public/index.cfm/press-releases?MonthDisplay=0&YearDisplay=#{year}"
399
+ doc = open_html(url)
400
+ return if doc.nil?
401
+ doc.xpath("//tr")[2..-1].each do |row|
402
+ next if row.text[0..3] == "Date"
403
+ results << { :source => url, :url => row.children[2].children[0]['href'], :title => row.children[2].text.strip, :date => Date.strptime(row.children[0].text.strip, "%m/%d/%y"), :domain => "fischer.senate.gov" }
404
+ end
405
+ results
406
+ end
395
407
 
396
408
  def self.coburn(year=Date.today.year)
397
409
  results = []
@@ -1,3 +1,3 @@
1
1
  module Statement
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
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.8
4
+ version: 1.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -214,7 +214,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  segments:
216
216
  - 0
217
- hash: 3380739865513857400
217
+ hash: -946704021369605610
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: 3380739865513857400
226
+ hash: -946704021369605610
227
227
  requirements: []
228
228
  rubyforge_project:
229
229
  rubygems_version: 1.8.25