acts_as_opengraph 0.0.2 → 0.0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -125,6 +125,9 @@ See the complete list of allowed attributes and options [here](http://developers
125
125
  * Add tests for it. This is important so I don’t break it in a future version unintentionally.
126
126
  * Send me a pull request. Bonus points for topic branches.
127
127
 
128
+ ## Contributors
129
+
130
+ * [Eric Hill](https://github.com/rhizome) - Updated the meta attribute to reflect the current OG spec
128
131
 
129
132
  ## Copyright
130
133
 
@@ -9,7 +9,7 @@ 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 name="#{att[:name].dasherize}" content="#{Rack::Utils.escape_html(att[:value])}"/>)
12
+ %(<meta property="#{att[:name].dasherize}" content="#{Rack::Utils.escape_html(att[:value])}"/>)
13
13
  end
14
14
  tags = tags.join("\n")
15
15
  tags.respond_to?(:html_safe) ? tags.html_safe : tags
@@ -1,3 +1,3 @@
1
1
  module ActsAsOpengraph
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.2.1"
3
3
  end
@@ -34,12 +34,12 @@ class MovieTest < Test::Unit::TestCase
34
34
  {:value=> "IMDb", :name=> "og:site_name"}
35
35
  ]
36
36
 
37
- GENERATED_META_TAGS = %(<meta name="og:title" content="#{MOVIE_NAME}"/>
38
- <meta name="og:type" content="movie"/>
39
- <meta name="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
40
- <meta name="og:url" content="#{MOVIE_URL}"/>
41
- <meta name="og:description" content="#{MOVIE_DESCRIPTION}"/>
42
- <meta name="og:site-name" content="IMDb"/>)
37
+ GENERATED_META_TAGS = %(<meta property="og:title" content="#{MOVIE_NAME}"/>
38
+ <meta property="og:type" content="movie"/>
39
+ <meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
40
+ <meta property="og:url" content="#{MOVIE_URL}"/>
41
+ <meta property="og:description" content="#{MOVIE_DESCRIPTION}"/>
42
+ <meta property="og:site-name" content="IMDb"/>)
43
43
 
44
44
  GENERATED_LIKE_BUTTON = %(<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt0117500%2F&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>)
45
45
  GENERATED_LIKE_BUTTON_CUSTOM_URL = %(<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fexample.com%2Fmovies%2F6&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>)
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_opengraph
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 69
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
9
  - 2
10
- version: 0.0.2
10
+ - 1
11
+ version: 0.0.2.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - Ruben Ascencio
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-02-23 00:00:00 -08:00
19
+ date: 2011-04-02 00:00:00 -07:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency