acts_as_opengraph 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,8 @@ module ActsAsOpengraphHelper
9
9
  def opengraph_meta_tags_for(obj)
10
10
  raise(ArgumentError.new, "You need to call acts_as_opengraph on your #{obj.class} model") unless obj.respond_to?(:opengraph_data)
11
11
  tags = obj.opengraph_data.map do |att|
12
- %(<meta property="#{att[:name].dasherize}" content="#{Rack::Utils.escape_html(att[:value])}"/>)
12
+ att_name = att[:name] == "og:site_name" ? att[:name] : att[:name].dasherize
13
+ %(<meta property="#{att_name}" content="#{Rack::Utils.escape_html(att[:value])}"/>)
13
14
  end
14
15
  tags = tags.join("\n")
15
16
  tags.respond_to?(:html_safe) ? tags.html_safe : tags
@@ -1,3 +1,3 @@
1
1
  module ActsAsOpengraph
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_opengraph
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ruben Ascencio
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-18 00:00:00 -07:00
18
+ date: 2011-05-29 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency