diff --git a/lib/meta_tags/view_helper.rb b/lib/meta_tags/view_helper.rb index ad3189a8..b58ab7bc 100644 --- a/lib/meta_tags/view_helper.rb +++ b/lib/meta_tags/view_helper.rb @@ -201,7 +201,9 @@ def display_meta_tags(default = {}) # canonical result << tag(:link, :rel => :canonical, :href => meta_tags[:canonical]) unless meta_tags[:canonical].blank? - return result.join("\n") + result = result.join("\n") + result.html_safe! if result.respond_to?(:html_safe!) + result end private diff --git a/meta-tags.gemspec b/meta-tags.gemspec index 9edde827..e4c6d1da 100644 --- a/meta-tags.gemspec +++ b/meta-tags.gemspec @@ -5,11 +5,11 @@ Gem::Specification.new do |s| s.name = %q{meta-tags} - s.version = "1.1.1" + s.version = "1.2.0" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Dmytro Shteflyuk"] - s.date = %q{2009-11-21} + s.date = %q{2010-05-31} s.description = %q{Search Engine Optimization (SEO) plugin for Ruby on Rails applications.} s.email = %q{kpumuk@kpumuk.info} s.extra_rdoc_files = [ @@ -32,7 +32,7 @@ Gem::Specification.new do |s| s.homepage = %q{http://github.com/kpumuk/meta-tags} s.rdoc_options = ["--charset=UTF-8"] s.require_paths = ["lib"] - s.rubygems_version = %q{1.3.5} + s.rubygems_version = %q{1.3.7} s.summary = %q{Collection of SEO helpers for Ruby on Rails} s.test_files = [ "spec/meta_tags_spec.rb", @@ -43,7 +43,7 @@ Gem::Specification.new do |s| current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION s.specification_version = 3 - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then + if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then else end else