social-share-button 0.8.2 → 0.8.4

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: 1b2c810f9120de773ce8c2782d5d2833da53fb3c
4
- data.tar.gz: f43744c4a675708a27c7f539f259bc2b784cf055
3
+ metadata.gz: 9c34e86a9d83c7bc1ae7bd73b8746cc1511f5845
4
+ data.tar.gz: a708e7bc62ad41609a6031a11cf9e329de250598
5
5
  SHA512:
6
- metadata.gz: 9c63afe86736ab4495a80586444fc65e9a076f7ed068d279e861baf41934ec674659728de21d9c8e5ff1be1a35a69bd62e36e7f3bbaead7a47ab0ba917c2b878
7
- data.tar.gz: 238b808e184f9af6397e803e825036b6c149bd7837f95e4e3957985bf4c9f6314f71c048e3e7dc1258888602ce59fdf5d60b1f85aa670a43424c9519872365c0
6
+ metadata.gz: 9b846bd3be6a5159036487c9f63190856b093341e1f75f34804fa28bb37e3de70949ad3a2498715e5d6f53fef3cd5aeace0314a29e8a5d87e20230555507b77b
7
+ data.tar.gz: 2a33db06934bdc3b0961f43af23194ffeed468cab9743953d5ff2cfad44f35b8a34c1490cc1af478fb5a0687c07bad2b390428f6a63dc268dcc831226a208a56
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.8.4
2
+
3
+ * Fix share to wechat title.
4
+ * Fix default I18n files as Rails Engine way, now you do not need copy them in to you config/locales (You can delete them).
5
+
1
6
  == 0.8.2
2
7
 
3
8
  * Add google analytics code to track share button click events. (#106)
@@ -56,7 +56,7 @@ window.SocialShareButton =
56
56
  throw new Error("You should require social-share-button/wechat to your application.js") unless window.SocialShareWeChatButton
57
57
  window.SocialShareWeChatButton.qrcode
58
58
  url: url
59
- header: title
59
+ header: $(el).attr('title')
60
60
  footer: $(el).data('wechat-footer')
61
61
 
62
62
  when "tumblr"
@@ -20,26 +20,30 @@ $size: 18px;
20
20
  }
21
21
 
22
22
  .ss-wechat-dialog {
23
- width: 270px;
24
- height: 300px;
23
+ width: 300px;
25
24
  position: fixed;
26
25
  background: #fff;
27
- padding: 10px;
28
- border: solid 1px #ddd;
26
+ padding: 15px;
27
+ border-radius: 3px;
28
+ box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
29
29
  z-index: 11001;
30
- font-size: 12px;
30
+ font-size: 14px;
31
31
  line-height: 1.2em;
32
32
 
33
+ .wechat-popup-header {
34
+ font-weight: bold;
35
+ }
36
+
33
37
  .wechat-dialog-qr {
34
38
  text-align: center;
35
- margin: 10px 0px;
39
+ margin: 25px 0px;
36
40
  }
37
41
 
38
42
  .wechat-popup-close {
39
43
  width: 16px;
40
44
  height: 16px;
41
45
  position: absolute;
42
- right: 0px;
46
+ right: 10px;
43
47
  top: 10px;
44
48
  color: #999;
45
49
  text-decoration: none;
@@ -14,7 +14,7 @@
14
14
  email: Email
15
15
  linkedin: Linkedin
16
16
  wechat: 微信
17
- wechat_footer: 打开微信,点击底部的“发现”,<br/> 使用“扫一扫”即可将网页分享至朋友圈。
17
+ wechat_footer: 打开微信,点击底部的 “发现”,<br/> 使用 “扫一扫” 即可将网页分享至朋友圈。
18
18
  vkontakte: Vkontakte
19
19
  xing: Xing
20
20
  reddit: Reddit
@@ -14,7 +14,7 @@
14
14
  email: Email
15
15
  linkedin: Linkedin
16
16
  wechat: 微信
17
- wechat_footer: 打開微信,點擊底部的“發現”,<br/> 使用“掃一掃”即可將網頁分享至朋友圈。
17
+ wechat_footer: 打開微信,點擊底部的 “發現”,<br/> 使用 “掃一掃” 即可將網頁分享至朋友圈。
18
18
  vkontakte: Vkontakte
19
19
  xing: Xing
20
20
  reddit: Reddit
@@ -1,3 +1,3 @@
1
1
  module SocialShareButton
2
- VERSION = '0.8.2'
2
+ VERSION = '0.8.4'
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.2
4
+ version: 0.8.4
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-03 00:00:00.000000000 Z
11
+ date: 2016-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -83,12 +83,12 @@ files:
83
83
  - app/assets/javascripts/social-share-button.coffee
84
84
  - app/assets/javascripts/social-share-button/wechat.coffee
85
85
  - app/assets/stylesheets/social-share-button.scss
86
+ - config/locales/social_share_button.en.yml
87
+ - config/locales/social_share_button.fr.yml
88
+ - config/locales/social_share_button.zh-CN.yml
89
+ - config/locales/social_share_button.zh-TW.yml
86
90
  - lib/generators/social_share_button/install_generator.rb
87
91
  - lib/generators/social_share_button/templates/config/initializers/social_share_button.rb
88
- - lib/generators/social_share_button/templates/config/locales/social_share_button.en.yml
89
- - lib/generators/social_share_button/templates/config/locales/social_share_button.fr.yml
90
- - lib/generators/social_share_button/templates/config/locales/social_share_button.zh-CN.yml
91
- - lib/generators/social_share_button/templates/config/locales/social_share_button.zh-TW.yml
92
92
  - lib/social-share-button.rb
93
93
  - lib/social_share_button/config.rb
94
94
  - lib/social_share_button/engine.rb