statement 1.8.8 → 1.8.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/statement/feed.rb +0 -1
- data/lib/statement/scraper.rb +14 -2
- data/lib/statement/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d844ea86fa3181bebe95d2ad5dd8692e41306be
|
4
|
+
data.tar.gz: d542163788e76747085b18c3d2dd56bc16eafbe3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a331bca39408a41a5597748a76d189338dd365b02e449f26ee854030fbe456bafc14a7b882bb9c720c08a9411aa2d9459647b7ae66c2c899eb357b354be8e32
|
7
|
+
data.tar.gz: a3e1e38414bf1919325fd66b54fb1bd535add42058b9bbd089e23875fe4b015bafbcc34ef2c485c33b061cfdee9f7822641b5e4c7e1402aa819296880ce6b01d
|
data/lib/statement/feed.rb
CHANGED
data/lib/statement/scraper.rb
CHANGED
@@ -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}]
|
data/lib/statement/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|