nanoc_fuel 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,4 @@
1
1
  #fb-root
2
- %script{:type=>"text/javascript", :src=>"http://connect.facebook.net/en_US/all.js"}
3
2
  :javascript
4
3
  window.fbAsyncInit = function() {
5
4
  FB.init({appId: '#{app_id}', status: true, cookie: true, xfbml: true});
@@ -1 +1 @@
1
- %iframe{:src=>"http://www.facebook.com/plugins/like.php?href&send=#{send}&layout=#{layout}&width=#{width}&show_faces=#{show_faces}&action=like&colorscheme=light&font&height=80", :scrolling=>"no", :frameborder=>"0", :style=>"border:none; overflow:hidden; width:450px; height:80px;", :allowTransparency=>"true"}
1
+ %iframe{:src=>"//www.facebook.com/plugins/like.php?href&send=#{send}&layout=#{layout}&width=#{width}&show_faces=#{show_faces}&action=like&colorscheme=light&font&height=80", :scrolling=>"no", :frameborder=>"0", :style=>"border:none; overflow:hidden; width:450px; height:80px;", :allowTransparency=>"true"}
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module NanocFuel
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
@@ -6,8 +6,7 @@ class NanocFuel::Helpers::FacebookTest < MiniTest::Unit::TestCase
6
6
  def test_fb_init
7
7
 
8
8
  html = %q{
9
- <div id="fb-root"></div>
10
- <script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>
9
+ <div id='fb-root'></div>
11
10
  <script type='text/javascript'>
12
11
  //<![CDATA[
13
12
  window.fbAsyncInit = function() {
@@ -42,7 +41,7 @@ class NanocFuel::Helpers::FacebookTest < MiniTest::Unit::TestCase
42
41
 
43
42
  def test_fb_like_btn
44
43
  html = %q{
45
- <iframe allowTransparency='true' frameborder='0' scrolling='no' src='http://www.facebook.com/plugins/like.php?href&amp;amp;send=true&amp;amp;layout=standard&amp;amp;width=450&amp;amp;show_faces=true&amp;amp;action=like&amp;amp;colorscheme=light&amp;amp;font&amp;amp;height=80' style='border:none; overflow:hidden; width:450px; height:80px;'></iframe>
44
+ <iframe allowTransparency='true' frameborder='0' scrolling='no' src='//www.facebook.com/plugins/like.php?href&amp;amp;send=true&amp;amp;layout=standard&amp;amp;width=450&amp;amp;show_faces=true&amp;amp;action=like&amp;amp;colorscheme=light&amp;amp;font&amp;amp;height=80' style='border:none; overflow:hidden; width:450px; height:80px;'></iframe>
46
45
  }
47
46
  assert_equal compact(html), compact(fb_like_btn("standard", "450", "true", "true"))
48
47
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jack Chu
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-03 00:00:00 -04:00
18
+ date: 2011-05-16 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency