metamagic 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/metamagic/helper_methods.rb +8 -0
  2. metadata +3 -3
@@ -42,6 +42,14 @@ module Metamagic
42
42
  if tag[:name] == :title
43
43
  out << content_tag(:title, tag[:content])
44
44
  else
45
+ # replace array with comma separated list
46
+ tag.each_pair do |key, value|
47
+ if value.is_a?(Array)
48
+ tag[key] = value.join(", ")
49
+ end
50
+ end
51
+
52
+ # add tag
45
53
  out << tag(:meta, tag)
46
54
  end
47
55
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metamagic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 0
10
- version: 2.0.0
9
+ - 1
10
+ version: 2.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lasse Bunk