jobparser 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,14 @@ module JobParser
4
4
  def self.dictionary
5
5
  {
6
6
  "jobsearch.direct.gov.uk" => {
7
- :title => Proc.new { |doc| doc.css(".jobViewContent h2")[1].content },
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")
@@ -1,3 +1,3 @@
1
1
  module JobParser
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
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.1
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-01 00:00:00.000000000 Z
12
+ date: 2013-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler