jobparser 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jobparser/specialcases.rb +8 -1
- data/lib/jobparser/version.rb +1 -1
- metadata +2 -2
@@ -4,7 +4,14 @@ module JobParser
|
|
4
4
|
def self.dictionary
|
5
5
|
{
|
6
6
|
"jobsearch.direct.gov.uk" => {
|
7
|
-
:title => Proc.new { |doc|
|
7
|
+
:title => Proc.new { |doc|
|
8
|
+
headings = doc.css(".jobViewContent h2")
|
9
|
+
if headings[1].nil?
|
10
|
+
headings[0].content
|
11
|
+
else
|
12
|
+
headings[1].content
|
13
|
+
end
|
14
|
+
},
|
8
15
|
:location => Proc.new { |doc|
|
9
16
|
location = ""
|
10
17
|
listings = doc.css(".jobViewSummary dl dt")
|
data/lib/jobparser/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jobparser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|