statement 1.8.8 → 1.8.9

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: 88ef7c73e2da9cf4f89002e9d60a228508c4fb9d
4
- data.tar.gz: 0423e9d85fd4ab80a247fe4a836e10fdaf31a2ab
3
+ metadata.gz: 0d844ea86fa3181bebe95d2ad5dd8692e41306be
4
+ data.tar.gz: d542163788e76747085b18c3d2dd56bc16eafbe3
5
5
  SHA512:
6
- metadata.gz: 0753f5edd8d58526b457cde2bda819e814e3d805f547e302f920e061f4204837786c088f0083a8afa7b6fcd625502d55f978c1b0b98feb9ff0ed19c451943f36
7
- data.tar.gz: 2e3ab0f04fdeaa2d4c5d4b9c12ca004620dbab6ee7bb483688faf99d171c861ce5f31acf5da1c62246e0ce33564adc9b45a9eccf5708fb66c0512404991301e8
6
+ metadata.gz: 9a331bca39408a41a5597748a76d189338dd365b02e449f26ee854030fbe456bafc14a7b882bb9c720c08a9411aa2d9459647b7ae66c2c899eb357b354be8e32
7
+ data.tar.gz: a3e1e38414bf1919325fd66b54fb1bd535add42058b9bbd089e23875fe4b015bafbcc34ef2c485c33b061cfdee9f7822641b5e4c7e1402aa819296880ce6b01d
@@ -65,6 +65,5 @@ module Statement
65
65
  end
66
66
  Utils.remove_generic_urls!(results)
67
67
  end
68
-
69
68
  end
70
69
  end
@@ -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, :billnelson, :lautenberg, :crapo, :coburn, :boxer, :vitter, :donnelly, :inhofe, :palazzo, :roe, :document_query, :swalwell, :fischer, :clark, :edwards, :culberson_chabot_grisham, :barton, :wolf_sherman_mccaul, :welch, :sessions, :gabbard, :ellison, :costa, :farr]
32
+ [:capuano, :cold_fusion, :conaway, :chabot, :susandavis, :freshman_senators, :klobuchar, :billnelson, :lautenberg, :crapo, :coburn, :boxer, :vitter, :donnelly, :inhofe, :palazzo, :roe, :document_query, :swalwell, :fischer, :clark, :edwards, :culberson_chabot_grisham, :barton, :wolf_sherman_mccaul, :welch, :sessions, :gabbard, :ellison, :costa, :farr, :mcclintock]
33
33
  end
34
34
 
35
35
  def self.committee_methods
@@ -41,7 +41,7 @@ module Statement
41
41
  results = [capuano, cold_fusion(year, 0), conaway, chabot, susandavis, klobuchar(year), 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), fischer, clark(year=year), edwards, culberson_chabot_grisham(page=1), barton, wolf_sherman_mccaul, welch,
44
- sessions(year=year), gabbard, pryor, ellison(page=0), costa, farr].flatten
44
+ sessions(year=year), gabbard, pryor, ellison(page=0), costa, farr, mcclintock].flatten
45
45
  results = results.compact
46
46
  Utils.remove_generic_urls!(results)
47
47
  end
@@ -643,6 +643,18 @@ module Statement
643
643
  results
644
644
  end
645
645
 
646
+ def self.mcclintock
647
+ results = []
648
+ domain = 'mcclintock.house.gov'
649
+ url = "http://mcclintock.house.gov/press-all.shtml"
650
+ doc = open_html(url)
651
+ return if doc.nil?
652
+ doc.css("ul li").first(152).each do |row|
653
+ results << { :source => url, :url => row.children[0].children[1]['href'], :title => row.children[0].children[1].text.strip, :date => Date.parse(row.children[0].children[0].text), :domain => domain}
654
+ end
655
+ results
656
+ end
657
+
646
658
  def self.document_query(page=1)
647
659
  results = []
648
660
  domains = [{"thornberry.house.gov" => 1776}, {"wenstrup.house.gov" => 2491}, {"clawson.house.gov" => 2641}]
@@ -1,3 +1,3 @@
1
1
  module Statement
2
- VERSION = "1.8.8"
2
+ VERSION = "1.8.9"
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.8
4
+ version: 1.8.9
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-10-05 00:00:00.000000000 Z
11
+ date: 2014-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler