social-share-button 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
data/Changelogs.md
CHANGED
data/README.md
CHANGED
@@ -12,11 +12,11 @@ window.SocialShareButton =
|
|
12
12
|
url = encodeURIComponent(location.href)
|
13
13
|
switch site
|
14
14
|
when "weibo"
|
15
|
-
SocialShareButton.openUrl("http://
|
15
|
+
SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}")
|
16
16
|
when "twitter"
|
17
17
|
SocialShareButton.openUrl("https://twitter.com/home?status=#{title}: #{url}")
|
18
18
|
when "douban"
|
19
|
-
SocialShareButton.openUrl("http://
|
19
|
+
SocialShareButton.openUrl("http://shuo.douban.com/!service/share?href=#{url}&name=#{title}&image=#{img}")
|
20
20
|
when "facebook"
|
21
21
|
SocialShareButton.openUrl("http://www.facebook.com/sharer.php?t=#{title}&u=#{url}")
|
22
22
|
when "qq"
|
@@ -24,7 +24,7 @@ window.SocialShareButton =
|
|
24
24
|
when "tqq"
|
25
25
|
SocialShareButton.openUrl("http://share.v.t.qq.com/index.php?c=share&a=index&url=#{url}&title=#{title}&pic=#{img}")
|
26
26
|
when "baidu"
|
27
|
-
SocialShareButton.openUrl("http://
|
27
|
+
SocialShareButton.openUrl("http://hi.baidu.com/pub/show/share?url=#{url}&title=#{title}&content=")
|
28
28
|
when "kaixin001"
|
29
29
|
SocialShareButton.openUrl("http://www.kaixin001.com/rest/records.php?url=#{url}&content=#{title}&style=11&pic=#{img}")
|
30
30
|
when "renren"
|
@@ -33,4 +33,6 @@ window.SocialShareButton =
|
|
33
33
|
SocialShareButton.openUrl("https://plus.google.com/share?url=#{url}&t=#{title}")
|
34
34
|
when "google_bookmark"
|
35
35
|
SocialShareButton.openUrl("https://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=#{url}&title=#{title}")
|
36
|
+
when "delicious"
|
37
|
+
SocialShareButton.openUrl("http://www.delicious.com/save?url=#{url}&title=#{title}&jump=yes&pic=#{img}")
|
36
38
|
false
|
data/lib/generators/social_share_button/templates/config/initializers/social_share_button.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
SocialShareButton.configure do |config|
|
2
|
-
config.allow_sites = %w(twitter facebook google_plus weibo douban tqq renren qq kaixin001 baidu google_bookmark)
|
2
|
+
config.allow_sites = %w(twitter facebook google_plus weibo douban tqq renren qq kaixin001 baidu google_bookmark delicious huaban)
|
3
3
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social-share-button
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
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-12-
|
12
|
+
date: 2012-12-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|