social-share-button 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelogs.md +4 -0
- data/app/assets/javascripts/social-share-button.coffee +5 -4
- data/lib/social_share_button/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bd4d327b79f18c54462a46ad663173b69e96e8f
|
4
|
+
data.tar.gz: e4f3bee8d4d26eb19dc82c07c7f37481ba0bc7d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b37b62193465fb49f85cb9e54bb0a4ef894b396edd1ba8b37ae4aa5be0419318a74259ea6cd4fc9c3368d14033526e1d0b2e0e71283b682af6f87e37d7430cb1
|
7
|
+
data.tar.gz: c4394f1d2c67848dda2978c3395dca8fb72cacf908e8e24ba68df8c1ce8e1f3371cd63e8ca85ab58a8c3b38681733406f5e34b4160347e1f9b7ebc5f07fd2b95
|
data/Changelogs.md
CHANGED
@@ -5,6 +5,7 @@ window.SocialShareButton =
|
|
5
5
|
|
6
6
|
share : (el) ->
|
7
7
|
site = $(el).data('site')
|
8
|
+
appkey = $(el).data('appkey') || ''
|
8
9
|
$parent = $(el).parent()
|
9
10
|
title = encodeURIComponent($parent.data('title') || '')
|
10
11
|
img = encodeURIComponent($parent.data("img") || '')
|
@@ -18,7 +19,7 @@ window.SocialShareButton =
|
|
18
19
|
when "email"
|
19
20
|
location.href = "mailto:?to=&subject=#{title}&body=#{url}"
|
20
21
|
when "weibo"
|
21
|
-
SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}")
|
22
|
+
SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}")
|
22
23
|
when "twitter"
|
23
24
|
SocialShareButton.openUrl("https://twitter.com/intent/tweet?url=#{url}&text=#{title}&via=#{via}")
|
24
25
|
when "douban"
|
@@ -26,13 +27,13 @@ window.SocialShareButton =
|
|
26
27
|
when "facebook"
|
27
28
|
SocialShareButton.openUrl("http://www.facebook.com/sharer.php?u=#{url}")
|
28
29
|
when "qq"
|
29
|
-
SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=#{url}&title=#{title}&pics=#{img}&summary=#{desc}")
|
30
|
+
SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=#{url}&title=#{title}&pics=#{img}&summary=#{desc}&site=#{appkey}")
|
30
31
|
when "tqq"
|
31
|
-
SocialShareButton.openUrl("http://share.v.t.qq.com/index.php?c=share&a=index&url=#{url}&title=#{title}&pic=#{img}")
|
32
|
+
SocialShareButton.openUrl("http://share.v.t.qq.com/index.php?c=share&a=index&url=#{url}&title=#{title}&pic=#{img}&appkey=#{appkey}")
|
32
33
|
when "baidu"
|
33
34
|
SocialShareButton.openUrl("http://hi.baidu.com/pub/show/share?url=#{url}&title=#{title}&content=#{desc}")
|
34
35
|
when "kaixin001"
|
35
|
-
SocialShareButton.openUrl("http://www.kaixin001.com/rest/records.php?url=#{url}&content=#{title}&style=11&pic=#{img}")
|
36
|
+
SocialShareButton.openUrl("http://www.kaixin001.com/rest/records.php?url=#{url}&content=#{title}&style=11&pic=#{img}&aid=#{appkey}")
|
36
37
|
when "renren"
|
37
38
|
SocialShareButton.openUrl("http://widget.renren.com/dialog/share?resourceUrl=#{url}&srcUrl=#{url}&title=#{title}&pic=#{img}&description=#{desc}")
|
38
39
|
when "google_plus"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|