open_graph_helper 0.1.0 → 0.1.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.
@@ -139,7 +139,7 @@ Example:
139
139
  fb_recommendations("www.example.com")
140
140
  #=> <div class="fb-recommendations" data-border-color="#CCC" data-colorscheme="light" data-header="false" data-height="380" data-site="www.example.com" data-width="300"></div>
141
141
 
142
- fb_recommendations("http://www.facebook.com/example", :header => true, :colorscheme => "dark")
142
+ fb_recommendations("www.example.com", :header => true, :colorscheme => "dark")
143
143
  #=> <div class="fb-recommendations" data-border-color="#CCC" data-colorscheme="dark" data-header="true" data-height="380" data-site="www.example.com" data-width="300"></div>
144
144
  ```
145
145
 
@@ -84,5 +84,16 @@ module OpenGraphHelper
84
84
  content_tag(:div, "", :class => "fb-recommendations", :data => options)
85
85
  end
86
86
 
87
+ def fb_comments(url, custom_options={})
88
+ options = {
89
+ :href => url,
90
+ :num_posts => 10
91
+ }
92
+
93
+ options.merge! custom_options
94
+
95
+ content_tag(:div, "", :class => "fb-comments", :data => options)
96
+ end
97
+
87
98
  end
88
99
 
@@ -1,3 +1,3 @@
1
1
  module OpenGraphHelper
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,34 +1,24 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: open_graph_helper
3
- version: !ruby/object:Gem::Version
4
- hash: 27
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 0
10
- version: 0.1.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - xdite
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-12-21 00:00:00 +08:00
12
+ date: 2011-12-23 00:00:00.000000000 +08:00
19
13
  default_executable:
20
14
  dependencies: []
21
-
22
15
  description: OpenGraph Helper
23
- email:
16
+ email:
24
17
  - xdite@techbang.com.tw
25
18
  executables: []
26
-
27
19
  extensions: []
28
-
29
20
  extra_rdoc_files: []
30
-
31
- files:
21
+ files:
32
22
  - .gitignore
33
23
  - Gemfile
34
24
  - README.markdown
@@ -38,38 +28,28 @@ files:
38
28
  - lib/open_graph_helper/version.rb
39
29
  - open_graph_helper.gemspec
40
30
  has_rdoc: true
41
- homepage: ""
31
+ homepage: ''
42
32
  licenses: []
43
-
44
33
  post_install_message:
45
34
  rdoc_options: []
46
-
47
- require_paths:
35
+ require_paths:
48
36
  - lib
49
- required_ruby_version: !ruby/object:Gem::Requirement
37
+ required_ruby_version: !ruby/object:Gem::Requirement
50
38
  none: false
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- hash: 3
55
- segments:
56
- - 0
57
- version: "0"
58
- required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
44
  none: false
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- hash: 3
64
- segments:
65
- - 0
66
- version: "0"
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
67
49
  requirements: []
68
-
69
50
  rubyforge_project:
70
51
  rubygems_version: 1.5.2
71
52
  signing_key:
72
53
  specification_version: 3
73
54
  summary: OpenGraph Helper
74
55
  test_files: []
75
-