social_widgets 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.1.0
@@ -0,0 +1 @@
1
+ <iframe src="http://www.facebook.com/plugins/like.php?href=<%= options[:url] %>&amp;layout=<%= options[:layout]||"button_count" %>&amp;show_faces=<%= options[:show_faces]||true %>&amp;width=<%= options[:width]||450 %>&amp;action=<%= options[:action]||"like" %>&amp;font=<%= options[:font]||"verdana"%>&amp;colorscheme=<%= options[:colorscheme]||"light"%>&amp;height=<%= options[:height]||21 %>" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:<%= options[:width]||450 %>px; height:<%= options[:height]||21 %>px;" allowTransparency="true"></iframe>
@@ -0,0 +1 @@
1
+ <iframe src="http://www.facebook.com/plugins/live_stream_box.php?app_id=<%= options[:appid] %>&amp;width=<%= options[:width]||400 %>&amp;height=<%= options[:height]||500 %>&amp;always_post_to_friends=<%= !!options[:post_to_friends] %>" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:400px; height:500px;" allowTransparency="true"></iframe>
@@ -0,0 +1,28 @@
1
+ <%
2
+ args = ""
3
+ if options[:text]
4
+ args << " data-text=\"#{options[:text]}\""
5
+ end
6
+
7
+ if options[:layout]
8
+ args<< " data-count=\"#{options[:layout]}\""
9
+ end
10
+
11
+ if options[:via]
12
+ args<< " data-via=\"#{options[:via]}\""
13
+ end
14
+
15
+ if options[:related]
16
+ args<< " data-related=\"#{options[:related]}\""
17
+ end
18
+
19
+ if options[:url]
20
+ args<< " data-url=\"#{options[:url]}\""
21
+ end
22
+
23
+ %>
24
+
25
+ <a href="http://twitter.com/share" class="twitter-share-button" <%= args %> >
26
+ <%= options[:button_text] || "Tweet" %>
27
+ </a>
28
+ <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
@@ -7,6 +7,9 @@ module SocialWidgets
7
7
  # <%= widget_for(:youtube, {:channel => "GeckoMoviesCom", :vertical => false, :large => false, :height => "260px", :width => "320px" }) %>
8
8
  # <%= widget_for(:linked_in, {:user => "reidhoffman"}) %>
9
9
  # <%= widget_for(:ohloh, {:user => "dacuad"}) %>
10
+ # <%= widget_for(:facebook_stream, {:appid => "foo", :width => 400, :height => 500, :post_to_friends => true }) %>
11
+ # <%= widget_for(:facebook_like_button, {:url => "http://foo.bar"}) %>
12
+ # <%= widget_for(:twitter_share, {:text => "Check it out!", :via => "shapado", :related => "patcito:dacuad", :layout => "horizontal", :button_txt => "Tweet it!"}) %>
10
13
  def widget_for(net, opts = {})
11
14
  render :partial => "social_widgets/#{net}", :locals => {:options => opts}
12
15
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{social_widgets}
8
- s.version = "0.0.1"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David A. Cuadrado"]
12
- s.date = %q{2010-09-23}
12
+ s.date = %q{2010-10-15}
13
13
  s.description = %q{}
14
14
  s.email = %q{krawek@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -24,12 +24,15 @@ Gem::Specification.new do |s|
24
24
  "README.rdoc",
25
25
  "Rakefile",
26
26
  "VERSION",
27
+ "app/views/social_widgets/_facebook_like_button.html.erb",
28
+ "app/views/social_widgets/_facebook_stream.html.erb",
27
29
  "app/views/social_widgets/_flickr.html.erb",
28
30
  "app/views/social_widgets/_github.html.erb",
29
31
  "app/views/social_widgets/_linked_in.html.erb",
30
32
  "app/views/social_widgets/_ohloh.html.erb",
31
33
  "app/views/social_widgets/_twitter.html.erb",
32
34
  "app/views/social_widgets/_twitter_search.html.erb",
35
+ "app/views/social_widgets/_twitter_share.html.erb",
33
36
  "app/views/social_widgets/_youtube.html.erb",
34
37
  "lib/social_widgets.rb",
35
38
  "lib/social_widgets/rails.rb",
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 0
8
7
  - 1
9
- version: 0.0.1
8
+ - 0
9
+ version: 0.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - David A. Cuadrado
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-23 00:00:00 -05:00
17
+ date: 2010-10-15 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -49,12 +49,15 @@ files:
49
49
  - README.rdoc
50
50
  - Rakefile
51
51
  - VERSION
52
+ - app/views/social_widgets/_facebook_like_button.html.erb
53
+ - app/views/social_widgets/_facebook_stream.html.erb
52
54
  - app/views/social_widgets/_flickr.html.erb
53
55
  - app/views/social_widgets/_github.html.erb
54
56
  - app/views/social_widgets/_linked_in.html.erb
55
57
  - app/views/social_widgets/_ohloh.html.erb
56
58
  - app/views/social_widgets/_twitter.html.erb
57
59
  - app/views/social_widgets/_twitter_search.html.erb
60
+ - app/views/social_widgets/_twitter_share.html.erb
58
61
  - app/views/social_widgets/_youtube.html.erb
59
62
  - lib/social_widgets.rb
60
63
  - lib/social_widgets/rails.rb