social-share-button 0.8.5 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/app/assets/javascripts/social-share-button.coffee +3 -2
- 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: 2651532d9dccb1020d6450c06ff8942a5901b0d9
|
4
|
+
data.tar.gz: 675caa605f2e24f784bc0b77de7fa9fcb4779f28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44b20d3472436e8f3cecebf5b163cca38ef5c5ae30c47a9f2a2abc18f63177855fc681ebdedef7495914b12037a16944669490523bc0ba915c9455b1c95286d5
|
7
|
+
data.tar.gz: dbbeab53f3c2c57b11bc3d2fb82d0fa99610d356e3ab80cae3cd357c69a0e92cdd542ceaa14748e3046f5acfb1da67b5d76a879b9d9666348c809b7976f125f6
|
data/CHANGELOG.md
CHANGED
@@ -29,13 +29,14 @@ window.SocialShareButton =
|
|
29
29
|
when "weibo"
|
30
30
|
SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}", 620, 370)
|
31
31
|
when "twitter"
|
32
|
+
hashtags = encodeURIComponent($(el).data(site + '-hashtags') || $parent.data('hashtags') || '')
|
32
33
|
via_str = ''
|
33
34
|
via_str = "&via=#{via}" if via.length > 0
|
34
|
-
SocialShareButton.openUrl("https://twitter.com/intent/tweet?url=#{url}&text=#{title}#{via_str}", 650, 300)
|
35
|
+
SocialShareButton.openUrl("https://twitter.com/intent/tweet?url=#{url}&text=#{title}&hashtags=#{hashtags}#{via_str}", 650, 300)
|
35
36
|
when "douban"
|
36
37
|
SocialShareButton.openUrl("http://shuo.douban.com/!service/share?href=#{url}&name=#{title}&image=#{img}&sel=#{desc}", 770, 470)
|
37
38
|
when "facebook"
|
38
|
-
SocialShareButton.openUrl("http://www.facebook.com/sharer.php?u=#{url}", 555, 400)
|
39
|
+
SocialShareButton.openUrl("http://www.facebook.com/sharer/sharer.php?u=#{url}&display=popup&ref=plugin", 555, 400)
|
39
40
|
when "qq"
|
40
41
|
SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=#{url}&title=#{title}&pics=#{img}&summary=#{desc}&site=#{appkey}")
|
41
42
|
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.8.
|
4
|
+
version: 0.8.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|