jobparser 0.13.10 → 0.13.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module JobParser
2
- VERSION = "0.13.10"
2
+ VERSION = "0.13.11"
3
3
  end
data/lib/jobparser.rb CHANGED
@@ -19,6 +19,7 @@ require "jobparser/facets/deadline"
19
19
  require "jobparser/facets/postcode"
20
20
  require "jobparser/error"
21
21
 
22
+ require "uri"
22
23
  require "open-uri"
23
24
 
24
25
  module JobParser
@@ -33,7 +34,7 @@ module JobParser
33
34
  res[:schema] ? ParseSchema.new(nil, url) : ParseHtml.new(nil, url)
34
35
  else
35
36
  begin
36
- html = open(url, :allow_redirections => :safe).read
37
+ html = open((URI.encode(url), :allow_redirections => :safe).read
37
38
  if html.include?("http://schema.org/JobPosting")
38
39
  ParseSchema.new(html, url)
39
40
  else
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.13.10
4
+ version: 0.13.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: