Skip to content

Commit

Permalink
Fix for HTML safe buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
kpumuk committed May 31, 2010
1 parent e393785 commit 0bb4460
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion lib/meta_tags/view_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions meta-tags.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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{[email protected]}
s.extra_rdoc_files = [
Expand All @@ -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",
Expand All @@ -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
Expand Down

0 comments on commit 0bb4460

Please sign in to comment.