statement 1.9.2 → 1.9.4

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: 0be73a63b6661e11498742d7877c36ed2da5e182
4
- data.tar.gz: 9368bd6373159d94b9463e57e657616c440d9c01
3
+ metadata.gz: 5bd1d3fcfc5790f5021df31165c8059ef04dec65
4
+ data.tar.gz: 98fc8e6c6a678918568c1545c90d221ecc9c3cfa
5
5
  SHA512:
6
- metadata.gz: 4ecf8b06def3327c5eafb8987b3037c793a08cf1ff85a54ceaf8823c3dce1a814289fecda74d359b49da75197ff57e104b60db42899cd2f2d7307c25bd930f0c
7
- data.tar.gz: d70e2b77e900bbbd3122cce1665bc9d92293063c87bd4ce39b7f82b732e672152e8f4f1750160790942142f39cd4773beb8b8c082baf4714647fd4152c63aebf
6
+ metadata.gz: 60eb752db0720be576c879822f97f2cabb2532ece43eee49b3139c0d3343215018678c4c25288dbbef0ea3e29a7efde133d45d3456173d64d5b12812a29d807e
7
+ data.tar.gz: 04749de3ebf24adbfbeea66a673b5db9257bb6fe73f553acf7b9b5d2d8d5a8da123966597e232ff9c1f7daff5e35c6e00963a78c44f6aaee7f38b58847b532b2
@@ -358,12 +358,11 @@ module Statement
358
358
  results = []
359
359
  base_url = "http://poe.house.gov"
360
360
  month_url = base_url + "/press-releases?MonthDisplay=#{month}&YearDisplay=#{year}"
361
- doc = open_html(year_url)
362
- return if doc.nil?
363
- doc.xpath("//tr")[1..-1].each do |row|
364
- next if row.children[3].children[0].text.strip == 'Title'
365
- results << { :source => month_url, :url => base_url + row.children[3].children[0]['href'], :title => row.children[3].children[0].text.strip, :date => Date.strptime(row.children[1].text, "%m/%d/%y"), :domain => "poe.house.gov" }
366
- end
361
+ doc = open_html(month_url)
362
+ return if doc.nil?
363
+ doc.xpath("//tr")[1..-1].each do |row|
364
+ next if row.children[3].children[0].text.strip == 'Title'
365
+ results << { :source => month_url, :url => base_url + row.children[3].children[0]['href'], :title => row.children[3].children[0].text.strip, :date => Date.strptime(row.children[1].text, "%m/%d/%y"), :domain => "poe.house.gov" }
367
366
  end
368
367
  results
369
368
  end
@@ -1,3 +1,3 @@
1
1
  module Statement
2
- VERSION = "1.9.2"
2
+ VERSION = "1.9.4"
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.9.2
4
+ version: 1.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Willis