dekiru 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,8 +18,9 @@ module Dekiru
18
18
  end
19
19
  end
20
20
 
21
- def facebook_like(url = url_for(only_path: false))
22
- html = %Q(<iframe src="//www.facebook.com/plugins/like.php?href=#{u(url)}&amp;send=false&amp;layout=button_count&amp;width=140&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=21&amp;appId=244243155670810" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:140px; height:21px;" allowTransparency="true"></iframe>)
21
+ def facebook_like(url = url_for(only_path: false), app_id = nil)
22
+ facebook_app_id = app_id || ENV["FACEBOOK_APP_ID"]
23
+ html = %Q(<iframe src="//www.facebook.com/plugins/like.php?href=#{u(url)}&amp;send=false&amp;layout=button_count&amp;width=140&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=21&amp;appId=#{facebook_app_id}" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:140px; height:21px;" allowTransparency="true"></iframe>)
23
24
  html.html_safe
24
25
  end
25
26
 
@@ -1,3 +1,3 @@
1
1
  module Dekiru
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dekiru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-27 00:00:00.000000000 Z
12
+ date: 2012-12-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -56,21 +56,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
56
56
  - - ! '>='
57
57
  - !ruby/object:Gem::Version
58
58
  version: '0'
59
- segments:
60
- - 0
61
- hash: 1598332329108893344
62
59
  required_rubygems_version: !ruby/object:Gem::Requirement
63
60
  none: false
64
61
  requirements:
65
62
  - - ! '>='
66
63
  - !ruby/object:Gem::Version
67
64
  version: '0'
68
- segments:
69
- - 0
70
- hash: 1598332329108893344
71
65
  requirements: []
72
66
  rubyforge_project:
73
- rubygems_version: 1.8.24
67
+ rubygems_version: 1.8.23
74
68
  signing_key:
75
69
  specification_version: 3
76
70
  summary: Usefull helper methods for Ruby on Rails