statement 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -413,7 +413,7 @@ module Statement
413
413
  doc = open_html(url)
414
414
  return if doc.nil?
415
415
  doc.xpath("//li")[7..-1].each do |row|
416
- results << { :source => url, :url => domain + row.children[3].children[1].children[4].children[0]['href'], :title => row.children[3].children[1].children[4].text, :date => Date.strptime(row.children[3].children[1].children[0].text, "%m/%d/%y"), :domain => domain}
416
+ results << { :source => url, :url => "http://"+domain + row.children[3].children[1].children[4].children[0]['href'], :title => row.children[3].children[1].children[4].text, :date => Date.strptime(row.children[3].children[1].children[0].text, "%m/%d/%y"), :domain => domain}
417
417
  end
418
418
  results
419
419
  end
@@ -1,3 +1,3 @@
1
1
  module Statement
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,133 +1,175 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: statement
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.3
3
+ version: !ruby/object:Gem::Version
4
+ hash: 31
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 4
10
+ version: 1.0.4
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Derek Willis
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2013-06-25 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-06-27 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: bundler
16
- requirement: &2160394240 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
17
24
  none: false
18
- requirements:
25
+ requirements:
19
26
  - - ~>
20
- - !ruby/object:Gem::Version
21
- version: '1.3'
27
+ - !ruby/object:Gem::Version
28
+ hash: 9
29
+ segments:
30
+ - 1
31
+ - 3
32
+ version: "1.3"
22
33
  type: :development
23
- prerelease: false
24
- version_requirements: *2160394240
25
- - !ruby/object:Gem::Dependency
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
26
36
  name: rake
27
- requirement: &2160391860 !ruby/object:Gem::Requirement
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
28
39
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ version: "0"
33
47
  type: :development
34
- prerelease: false
35
- version_requirements: *2160391860
36
- - !ruby/object:Gem::Dependency
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
37
50
  name: webmock
38
- requirement: &2160389940 !ruby/object:Gem::Requirement
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
39
53
  none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
60
+ version: "0"
44
61
  type: :development
45
- prerelease: false
46
- version_requirements: *2160389940
47
- - !ruby/object:Gem::Dependency
62
+ version_requirements: *id003
63
+ - !ruby/object:Gem::Dependency
48
64
  name: minitest
49
- requirement: &2160389480 !ruby/object:Gem::Requirement
65
+ prerelease: false
66
+ requirement: &id004 !ruby/object:Gem::Requirement
50
67
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ hash: 3
72
+ segments:
73
+ - 0
74
+ version: "0"
55
75
  type: :development
56
- prerelease: false
57
- version_requirements: *2160389480
58
- - !ruby/object:Gem::Dependency
76
+ version_requirements: *id004
77
+ - !ruby/object:Gem::Dependency
59
78
  name: american_date
60
- requirement: &2160389040 !ruby/object:Gem::Requirement
79
+ prerelease: false
80
+ requirement: &id005 !ruby/object:Gem::Requirement
61
81
  none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ hash: 3
86
+ segments:
87
+ - 0
88
+ version: "0"
66
89
  type: :runtime
67
- prerelease: false
68
- version_requirements: *2160389040
69
- - !ruby/object:Gem::Dependency
90
+ version_requirements: *id005
91
+ - !ruby/object:Gem::Dependency
70
92
  name: nokogiri
71
- requirement: &2160404580 !ruby/object:Gem::Requirement
93
+ prerelease: false
94
+ requirement: &id006 !ruby/object:Gem::Requirement
72
95
  none: false
73
- requirements:
74
- - - ! '>='
75
- - !ruby/object:Gem::Version
76
- version: '0'
96
+ requirements:
97
+ - - ~>
98
+ - !ruby/object:Gem::Version
99
+ hash: 23
100
+ segments:
101
+ - 1
102
+ - 5
103
+ - 10
104
+ version: 1.5.10
77
105
  type: :runtime
78
- prerelease: false
79
- version_requirements: *2160404580
80
- - !ruby/object:Gem::Dependency
106
+ version_requirements: *id006
107
+ - !ruby/object:Gem::Dependency
81
108
  name: koala
82
- requirement: &2160403820 !ruby/object:Gem::Requirement
109
+ prerelease: false
110
+ requirement: &id007 !ruby/object:Gem::Requirement
83
111
  none: false
84
- requirements:
85
- - - ! '>='
86
- - !ruby/object:Gem::Version
87
- version: '0'
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ hash: 3
116
+ segments:
117
+ - 0
118
+ version: "0"
88
119
  type: :runtime
89
- prerelease: false
90
- version_requirements: *2160403820
91
- - !ruby/object:Gem::Dependency
120
+ version_requirements: *id007
121
+ - !ruby/object:Gem::Dependency
92
122
  name: oj
93
- requirement: &2160403220 !ruby/object:Gem::Requirement
123
+ prerelease: false
124
+ requirement: &id008 !ruby/object:Gem::Requirement
94
125
  none: false
95
- requirements:
96
- - - ! '>='
97
- - !ruby/object:Gem::Version
98
- version: '0'
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ hash: 3
130
+ segments:
131
+ - 0
132
+ version: "0"
99
133
  type: :runtime
100
- prerelease: false
101
- version_requirements: *2160403220
102
- - !ruby/object:Gem::Dependency
134
+ version_requirements: *id008
135
+ - !ruby/object:Gem::Dependency
103
136
  name: twitter
104
- requirement: &2160402540 !ruby/object:Gem::Requirement
137
+ prerelease: false
138
+ requirement: &id009 !ruby/object:Gem::Requirement
105
139
  none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ hash: 3
144
+ segments:
145
+ - 0
146
+ version: "0"
110
147
  type: :runtime
111
- prerelease: false
112
- version_requirements: *2160402540
113
- - !ruby/object:Gem::Dependency
148
+ version_requirements: *id009
149
+ - !ruby/object:Gem::Dependency
114
150
  name: typhoeus
115
- requirement: &2160401420 !ruby/object:Gem::Requirement
151
+ prerelease: false
152
+ requirement: &id010 !ruby/object:Gem::Requirement
116
153
  none: false
117
- requirements:
118
- - - ! '>='
119
- - !ruby/object:Gem::Version
120
- version: '0'
154
+ requirements:
155
+ - - ">="
156
+ - !ruby/object:Gem::Version
157
+ hash: 3
158
+ segments:
159
+ - 0
160
+ version: "0"
121
161
  type: :runtime
122
- prerelease: false
123
- version_requirements: *2160401420
162
+ version_requirements: *id010
124
163
  description: Crawls congressional websites for press releases.
125
- email:
164
+ email:
126
165
  - dwillis@gmail.com
127
166
  executables: []
167
+
128
168
  extensions: []
169
+
129
170
  extra_rdoc_files: []
130
- files:
171
+
172
+ files:
131
173
  - .gitignore
132
174
  - Gemfile
133
175
  - LICENSE.txt
@@ -149,32 +191,40 @@ files:
149
191
  - spec/statement_spec.rb
150
192
  - spec/vitter_press.html
151
193
  - statement.gemspec
152
- homepage: ''
153
- licenses:
194
+ homepage: ""
195
+ licenses:
154
196
  - Apache
155
197
  post_install_message:
156
198
  rdoc_options: []
157
- require_paths:
199
+
200
+ require_paths:
158
201
  - lib
159
- required_ruby_version: !ruby/object:Gem::Requirement
202
+ required_ruby_version: !ruby/object:Gem::Requirement
160
203
  none: false
161
- requirements:
162
- - - ! '>='
163
- - !ruby/object:Gem::Version
164
- version: '0'
165
- required_rubygems_version: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ hash: 3
208
+ segments:
209
+ - 0
210
+ version: "0"
211
+ required_rubygems_version: !ruby/object:Gem::Requirement
166
212
  none: false
167
- requirements:
168
- - - ! '>='
169
- - !ruby/object:Gem::Version
170
- version: '0'
213
+ requirements:
214
+ - - ">="
215
+ - !ruby/object:Gem::Version
216
+ hash: 3
217
+ segments:
218
+ - 0
219
+ version: "0"
171
220
  requirements: []
221
+
172
222
  rubyforge_project:
173
223
  rubygems_version: 1.8.17
174
224
  signing_key:
175
225
  specification_version: 3
176
226
  summary: Given a url, Statement returns links to press releases and official statements.
177
- test_files:
227
+ test_files:
178
228
  - spec/bill_nelson_press.html
179
229
  - spec/cowan_press.html
180
230
  - spec/culberson_rss.xml