Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: kpumuk/meta-tags
base: master
...
head fork: doabit/meta-tags
compare: master
Checking mergeability… Don't worry, you can still create the pull request.
  • 4 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
1  init.rb
@@ -0,0 +1 @@
+require "meta_tags"
View
2  lib/meta_tags/version.rb
@@ -1,3 +1,3 @@
module MetaTags
- VERSION = '1.2.4'
+ VERSION = '1.2.5'
end
View
10 lib/meta_tags/view_helper.rb
@@ -182,14 +182,14 @@ def display_meta_tags(default = {})
result << content_tag(:title, title)
end
- # description
- description = normalize_description(meta_tags[:description])
- result << tag(:meta, :name => :description, :content => description) unless description.blank?
-
# keywords
keywords = normalize_keywords(meta_tags[:keywords])
result << tag(:meta, :name => :keywords, :content => keywords) unless keywords.blank?
+ # description
+ description = normalize_description(meta_tags[:description])
+ result << tag(:meta, :name => :description, :content => description) unless description.blank?
+
# noindex & nofollow
noindex_name = String === meta_tags[:noindex] ? meta_tags[:noindex] : 'robots'
nofollow_name = String === meta_tags[:nofollow] ? meta_tags[:nofollow] : 'robots'
@@ -232,7 +232,7 @@ def normalize_description(description)
def normalize_keywords(keywords)
return '' unless keywords
- keywords = keywords.flatten.join(', ') if Array === keywords
+ keywords = keywords.flatten.join(',') if Array === keywords
strip_tags(keywords).mb_chars.downcase
end
end

No commit comments for this range

Something went wrong with that request. Please try again.