statement 1.8.2 → 1.8.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 153f8a6f76a24bb47cfb6dd93f8a47e2a270d468
4
- data.tar.gz: f121e574afcd1bb4cf5c73d1e3d39d881fe39ab3
3
+ metadata.gz: e375abfba0bb23af1f88d5e173d733be721812d0
4
+ data.tar.gz: 940caf3ae981d72dcd52ca74f0e1d74956366246
5
5
  SHA512:
6
- metadata.gz: 78f51417bb4cfa17caf14a499beec4f9ec7d864127224f6f3b334dbf46e3566c73c9fc972fe27f480b087532970c478814ce8996cdec81dbb7d00a103b3c2e4c
7
- data.tar.gz: 7d5119de61de55979ebfebd21387c2c975d82a026c0a07aee9de577708021ba13b67572d054953310f697af39e6583ddff887d266bcfbeecffa455f3961a9bf5
6
+ metadata.gz: 40162f16dbc4add1c4cc8fdfe6b701f5716e657d8378495c64cf76779e581b75164a020569f171b9e0bde16b0792ca1e63e3baa7c69baf655a172d05ed43068e
7
+ data.tar.gz: 5e6f07db5351d92918e98078e9aaab580f5ada68d96dc4857ea3801e798a0f99f13f88853af1fea07496c4037498a5f13f7ee14e3eef1aa743aa59ed66daefa2
@@ -29,7 +29,7 @@ module Statement
29
29
  end
30
30
 
31
31
  def self.member_methods
32
- [:capuano, :cold_fusion, :conaway, :chabot, :susandavis, :freshman_senators, :klobuchar, :lujan, :billnelson, :lautenberg, :crapo, :coburn, :boxer, :vitter, :donnelly, :inhofe, :reid, :palazzo, :roe, :document_query, :swalwell, :fischer, :clark, :edwards, :culberson_chabot_grisham, :barton, :wolf_sherman_mccaul, :welch, :sessions, :gabbard]
32
+ [:capuano, :cold_fusion, :conaway, :chabot, :susandavis, :freshman_senators, :klobuchar, :billnelson, :lautenberg, :crapo, :coburn, :boxer, :vitter, :donnelly, :inhofe, :reid, :palazzo, :roe, :document_query, :swalwell, :fischer, :clark, :edwards, :culberson_chabot_grisham, :barton, :wolf_sherman_mccaul, :welch, :sessions, :gabbard, :cantor]
33
33
  end
34
34
 
35
35
  def self.committee_methods
@@ -38,10 +38,10 @@ module Statement
38
38
 
39
39
  def self.member_scrapers
40
40
  year = Date.today.year
41
- results = [capuano, cold_fusion(year, 0), conaway, chabot, susandavis, klobuchar, lujan, palazzo(page=1), roe(page=1), billnelson(year=year),
41
+ results = [capuano, cold_fusion(year, 0), conaway, chabot, susandavis, klobuchar, palazzo(page=1), roe(page=1), billnelson(year=year),
42
42
  document_query(page=1), document_query(page=2), swalwell(page=1), donnelly(year=year), crapo, coburn, boxer(start=1),
43
43
  vitter(year=year), inhofe(year=year), reid, fischer, clark(year=year), edwards, culberson_chabot_grisham(page=1), barton, wolf_sherman_mccaul, welch,
44
- sessions(year=year), gabbard, pryor].flatten
44
+ sessions(year=year), gabbard, pryor, cantor].flatten
45
45
  results = results.compact
46
46
  Utils.remove_generic_urls!(results)
47
47
  end
@@ -616,6 +616,18 @@ module Statement
616
616
  results
617
617
  end
618
618
 
619
+ def self.cantor
620
+ results = []
621
+ domain = 'cantor.house.gov'
622
+ url = "http://cantor.house.gov/news/"
623
+ doc = open_html(url)
624
+ return if doc.nil?
625
+ doc.search('h3').each do |row|
626
+ results << {:source => url, :url => "http://cantor.house.gov"+row.children[0]['href'], :title => row.children[0].text, :date => Date.parse(row.children.last.text), :domain => domain}
627
+ end
628
+ results
629
+ end
630
+
619
631
  def self.document_query(page=1)
620
632
  results = []
621
633
  domains = [{"thornberry.house.gov" => 1776}, {"wenstrup.house.gov" => 2491}]
@@ -1,3 +1,3 @@
1
1
  module Statement
2
- VERSION = "1.8.2"
2
+ VERSION = "1.8.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statement
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2
4
+ version: 1.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Willis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-23 00:00:00.000000000 Z
11
+ date: 2014-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler