social-share-button 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 465fd429bf5f39014d9f33c9509e412a59c7d6ff
4
- data.tar.gz: 987cc9c1ef85f72ada0f7bd31f24933c09aacc49
3
+ metadata.gz: 2bd4d327b79f18c54462a46ad663173b69e96e8f
4
+ data.tar.gz: e4f3bee8d4d26eb19dc82c07c7f37481ba0bc7d8
5
5
  SHA512:
6
- metadata.gz: 8d6421ea69c2e1d6b277c20b719a74d2415b6686448dd7486c695a35c33ff5c984264147cda9d753fedb7b6bf29885733cd97d62e6b2167c29192c24fec68777
7
- data.tar.gz: 9bbf2b5bf04d498b6b2420284ed54a245d4646855269e3e428cf01425a9be09268ceb8d057c7cef5cbb4cc0523397827d7cbb22b99d5d673462bba53b99e3cdc
6
+ metadata.gz: b37b62193465fb49f85cb9e54bb0a4ef894b396edd1ba8b37ae4aa5be0419318a74259ea6cd4fc9c3368d14033526e1d0b2e0e71283b682af6f87e37d7430cb1
7
+ data.tar.gz: c4394f1d2c67848dda2978c3395dca8fb72cacf908e8e24ba68df8c1ce8e1f3371cd63e8ca85ab58a8c3b38681733406f5e34b4160347e1f9b7ebc5f07fd2b95
data/Changelogs.md CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.1.8
2
+
3
+ * Allow you custom appKey.
4
+
1
5
  == 0.1.7
2
6
 
3
7
  * Add desc support;
@@ -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"
@@ -1,3 +1,3 @@
1
1
  module SocialShareButton
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
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.1.7
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-08-26 00:00:00.000000000 Z
11
+ date: 2014-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails