dekiru 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,21 +19,24 @@ module Dekiru
19
19
  end
20
20
 
21
21
  def facebook_like(url = url_for(only_path: false))
22
- %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>)
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>)
23
+ html.html_safe
23
24
  end
24
25
 
25
26
  def twitter_tweet
26
- <<-EOF
27
+ html = <<-EOF
27
28
  <a href="https://twitter.com/share" class="twitter-share-button">Tweet</a>
28
29
  <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
29
30
  EOF
31
+ html.html_safe
30
32
  end
31
33
 
32
34
  def google_plus
33
- <<-EOF
35
+ html = <<-EOF
34
36
  <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
35
37
  <g:plusone size="medium"></g:plusone>
36
38
  EOF
39
+ html.html_safe
37
40
  end
38
41
  end
39
42
  end
@@ -1,3 +1,3 @@
1
1
  module Dekiru
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
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.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -58,7 +58,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
58
  version: '0'
59
59
  segments:
60
60
  - 0
61
- hash: -3620158083588954654
61
+ hash: 142686872410909050
62
62
  required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  version: '0'
68
68
  segments:
69
69
  - 0
70
- hash: -3620158083588954654
70
+ hash: 142686872410909050
71
71
  requirements: []
72
72
  rubyforge_project:
73
73
  rubygems_version: 1.8.24