columbo 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -61,7 +61,8 @@ module Columbo
61
61
  html_doc.xpath('//style').each {|node| node.remove}
62
62
  text = ''
63
63
  html_doc.xpath('//body').each {|node| text += node.text.gsub(/\s{2,}/, ' ')}
64
- title = html_doc.xpath('//title').first.try(:text)
64
+ title_tag = html_doc.xpath('//title').first
65
+ title = title_tag.nil? ? nil : title_tag.text
65
66
  [text, title]
66
67
  end
67
68
 
@@ -1,3 +1,3 @@
1
1
  module Columbo
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: columbo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: