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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e5d393ac7915ed754786232ad9689df275996df
4
- data.tar.gz: ddb6872423437afeb931be9a2d74a4d69a0439cd
3
+ metadata.gz: 2651532d9dccb1020d6450c06ff8942a5901b0d9
4
+ data.tar.gz: 675caa605f2e24f784bc0b77de7fa9fcb4779f28
5
5
  SHA512:
6
- metadata.gz: bdd1f1ff39ee4ad6135ef0bf948c56a470fe67eb971cafb4e37eae2303349b90211d92b5b4abfa4c6dff502e4b45bd47d4dbab793acc71e4ba61ba52b0f4288d
7
- data.tar.gz: 5df5ac7b2fba35fe95339806b0b16859a6fa712e3d90a260ddd7bb51250bf20634a4152d4e7b36b3c0eefd540717725ba123931b82a33d32fcb725f9f9c6c78e
6
+ metadata.gz: 44b20d3472436e8f3cecebf5b163cca38ef5c5ae30c47a9f2a2abc18f63177855fc681ebdedef7495914b12037a16944669490523bc0ba915c9455b1c95286d5
7
+ data.tar.gz: dbbeab53f3c2c57b11bc3d2fb82d0fa99610d356e3ab80cae3cd357c69a0e92cdd542ceaa14748e3046f5acfb1da67b5d76a879b9d9666348c809b7976f125f6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.8.6
2
+
3
+ * Allow hashtags param for Twitter (#110)
4
+ * Fix Facebook Share (#108)
5
+
1
6
  == 0.8.5
2
7
 
3
8
  * Fix Wechat URL has escaped bug.
@@ -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"
@@ -1,3 +1,3 @@
1
1
  module SocialShareButton
2
- VERSION = '0.8.5'
2
+ VERSION = '0.8.6'
3
3
  end
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.5
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-24 00:00:00.000000000 Z
11
+ date: 2016-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails