social-share-button 0.8.0 → 0.8.1

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: e3c1a7993accee5aaa070817fa915764c55734f5
4
- data.tar.gz: 8e9b05e578dc9467debbd1740f2e671f5bf57478
3
+ metadata.gz: 5fb846549368b3f0e2ded2a8c3f5ffc75c2030e3
4
+ data.tar.gz: 53a136baa92a86900e2fe8d317bd88dec3d25d3e
5
5
  SHA512:
6
- metadata.gz: 8590a4c243afd0e587d96ab410c01aad5f1228ba8fae403bcaf154732e404f599af8b9e731f34ee9bdda4b706dcb5842a0cf1a776fa8a51ff46cf39de9d904f3
7
- data.tar.gz: 2c76312b54a418f99e0ab9dfece35d565dd1ec63b203518ef0bc9fe8c70cf55b082ebfa65f86347645b810b7dc2b9f9995c78f596a35ac8088160a19f1ce8231
6
+ metadata.gz: 5eaa3c5614c0e7ea9b3962cc4749ce0fa0e3028480e20a0d86ced4961951282d7305ffecd97e5115615243d6d05454216614e9b5f7ad1113e179e2f09690af9e
7
+ data.tar.gz: dee528f687864be12ab5ff8b7f53d4aba3b3c466b8182662c083fc3f78adb4dc9e1b487da3b764a826b8f0eeb2927f564a958fa1a02c08a8a846449f03bd4da1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.8.1
2
+
3
+ * Fix wechat typo. (#103)
4
+
1
5
  == 0.8.0
2
6
 
3
7
  * Add support for Hacker News (#99)
data/README.md CHANGED
@@ -67,7 +67,7 @@ You need add require css,js file in your app assets files:
67
67
 
68
68
  ```
69
69
  #= require social-share-button
70
- #= require social_share_button/wechat # if you need use WeChat
70
+ #= require social-share-button/wechat # if you need use WeChat
71
71
  ```
72
72
 
73
73
  `app/assets/stylesheets/application.scss`
@@ -50,7 +50,8 @@ window.SocialShareButton =
50
50
  when "wechat"
51
51
  throw new Error("You should require social-share-button/wechat to your application.js") unless window.SocialShareWeChatButton
52
52
  window.SocialShareWeChatButton.qrcode
53
- header: $(el).attr('title')
53
+ url: url
54
+ header: title
54
55
  footer: $(el).data('wechat-footer')
55
56
 
56
57
  when "tumblr"
@@ -82,7 +83,7 @@ window.SocialShareButton =
82
83
  "/#{path}?#{params}"
83
84
 
84
85
  SocialShareButton.openUrl("http://www.tumblr.com/share#{tumblr_params()}")
85
-
86
+
86
87
  when "reddit"
87
88
  SocialShareButton.openUrl("http://www.reddit.com/submit?url=#{url}&newwindow=1", 555, 400)
88
89
  when "hacker_news"
@@ -30,7 +30,7 @@ window.SocialShareWeChatButton =
30
30
  $wBody.qrcode
31
31
  width: 200
32
32
  height: 200
33
- text: location.href
33
+ text: opts.url
34
34
 
35
35
  $wContainer = $("#ss-wechat-dialog")
36
36
  top = ($(window).height() - $wContainer.height()) / 2
@@ -1,3 +1,3 @@
1
1
  module SocialShareButton
2
- VERSION = '0.8.0'
2
+ VERSION = '0.8.1'
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.0
4
+ version: 0.8.1
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-10-05 00:00:00.000000000 Z
11
+ date: 2016-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails