has_meta 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/has_meta.rb CHANGED
@@ -20,9 +20,10 @@ module HasMeta
20
20
  else
21
21
  field = [*fields].detect{|f| send(f).present?}
22
22
  return nil if field.nil?
23
- str = send(field).to_s.strip
23
+ str = send(field)
24
24
  end
25
25
 
26
+ str = str.to_s.strip
26
27
  str.gsub!(' ', ' ')
27
28
  str.gsub!(/<.*?>/, '')
28
29
  str = ::CGI::unescapeHTML(str)
@@ -1,3 +1,3 @@
1
1
  module HasMeta
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_meta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: