social-share-button 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +0 -1
- data/app/assets/javascripts/social-share-button.coffee +1 -3
- data/app/assets/stylesheets/social-share-button.css.erb +0 -4
- data/config/locales/social_share_button.de.yml +0 -1
- data/config/locales/social_share_button.en.yml +0 -1
- data/config/locales/social_share_button.es.yml +0 -1
- data/config/locales/social_share_button.fr.yml +0 -1
- data/config/locales/social_share_button.ja.yml +0 -1
- data/config/locales/social_share_button.pt-BR.yml +0 -1
- data/config/locales/social_share_button.ru.yml +0 -1
- data/config/locales/social_share_button.uk.yml +0 -1
- data/config/locales/social_share_button.zh-CN.yml +0 -1
- data/config/locales/social_share_button.zh-TW.yml +0 -1
- data/lib/generators/social_share_button/templates/config/initializers/social_share_button.rb +1 -1
- data/lib/social_share_button/config.rb +0 -1
- data/lib/social_share_button/version.rb +1 -1
- metadata +6 -7
- data/app/assets/images/social-share-button/google_plus.svg +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed139828b0e2dcf71ccc8e72065f6cc71855f1268d2e4ac80ccf7798b1f264c0
|
4
|
+
data.tar.gz: 9fb01564a899810597df477c8fe2c6bdcc71224c0d94b1205926c03f411b3ec4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1171ebb70197e62ef47850afbf7a789fb461c7d256eaa87f727b41103fbe8d5f4aeb9c71fe1e8b967af99e23e6208ad6f0b2995e0c616cceddfebccbf07e506d
|
7
|
+
data.tar.gz: 496227d2cd5c66de87d1199c39d252c416732f60ebc5d55d657d88474c849d103c390577be573b97b9346b7bcbe5f015a363d87bf4e0256c70d90a97b94b03c1
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -28,7 +28,7 @@ window.SocialShareButton =
|
|
28
28
|
url = encodeURIComponent(location.href)
|
29
29
|
switch site
|
30
30
|
when "email"
|
31
|
-
location.href = "mailto:?
|
31
|
+
location.href = "mailto:?subject=#{title}&body=#{url}"
|
32
32
|
when "weibo"
|
33
33
|
SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}", 620, 370)
|
34
34
|
when "twitter"
|
@@ -42,8 +42,6 @@ window.SocialShareButton =
|
|
42
42
|
SocialShareButton.openUrl("http://www.facebook.com/sharer/sharer.php?u=#{url}", 555, 400)
|
43
43
|
when "qq"
|
44
44
|
SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=#{url}&title=#{title}&pics=#{img}&summary=#{desc}&site=#{appkey}")
|
45
|
-
when "google_plus"
|
46
|
-
SocialShareButton.openUrl("https://plus.google.com/share?url=#{url}")
|
47
45
|
when "google_bookmark"
|
48
46
|
SocialShareButton.openUrl("https://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=#{url}&title=#{title}")
|
49
47
|
when "delicious"
|
@@ -19,10 +19,6 @@
|
|
19
19
|
background-image: url(<%= asset_path('social-share-button/google_bookmark.svg') %>);
|
20
20
|
}
|
21
21
|
|
22
|
-
.social-share-button .ssb-google_plus {
|
23
|
-
background-image: url(<%= asset_path('social-share-button/google_plus.svg') %>);
|
24
|
-
}
|
25
|
-
|
26
22
|
.social-share-button .ssb-weibo {
|
27
23
|
background-image: url(<%= asset_path('social-share-button/weibo.svg') %>);
|
28
24
|
}
|
data/lib/generators/social_share_button/templates/config/initializers/social_share_button.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
SocialShareButton.configure do |config|
|
2
|
-
config.allow_sites = %w(twitter facebook
|
2
|
+
config.allow_sites = %w(twitter facebook weibo qq douban google_bookmark
|
3
3
|
delicious tumblr pinterest email linkedin wechat vkontakte
|
4
4
|
xing reddit hacker_news telegram odnoklassniki whatsapp_app whatsapp_web)
|
5
5
|
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: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Lee
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -53,7 +53,6 @@ files:
|
|
53
53
|
- app/assets/images/social-share-button/email.svg
|
54
54
|
- app/assets/images/social-share-button/facebook.svg
|
55
55
|
- app/assets/images/social-share-button/google_bookmark.svg
|
56
|
-
- app/assets/images/social-share-button/google_plus.svg
|
57
56
|
- app/assets/images/social-share-button/hacker_news.svg
|
58
57
|
- app/assets/images/social-share-button/linkedin.svg
|
59
58
|
- app/assets/images/social-share-button/odnoklassniki.svg
|
@@ -94,7 +93,7 @@ homepage: http://github.com/huacnlee/social-share-button
|
|
94
93
|
licenses:
|
95
94
|
- MIT
|
96
95
|
metadata: {}
|
97
|
-
post_install_message:
|
96
|
+
post_install_message:
|
98
97
|
rdoc_options: []
|
99
98
|
require_paths:
|
100
99
|
- lib
|
@@ -109,8 +108,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
108
|
- !ruby/object:Gem::Version
|
110
109
|
version: '0'
|
111
110
|
requirements: []
|
112
|
-
rubygems_version: 3.
|
113
|
-
signing_key:
|
111
|
+
rubygems_version: 3.1.4
|
112
|
+
signing_key:
|
114
113
|
specification_version: 4
|
115
114
|
summary: Helper for add social share feature in your Rails app. Twitter, Facebook,
|
116
115
|
Weibo, Douban, QQ, Tumblr ...
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<svg width="256px" height="256px" viewBox="631 111 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
2
|
-
<desc>Google+</desc>
|
3
|
-
<defs></defs>
|
4
|
-
<g id="google-plus" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(631.000000, 111.000000)">
|
5
|
-
<rect id="bg" fill="#F04500" x="0" y="0" width="256" height="256" rx="40"></rect>
|
6
|
-
<g transform="translate(28.000000, 64.000000)" id="Shape" fill="#FFFFFF">
|
7
|
-
<path d="M124.739583,65.1041667 C124.739583,77.1412037 122.222222,87.8616898 117.1875,97.265625 C112.152778,106.66956 104.976852,114.019097 95.6597222,119.314236 C86.3425926,124.609375 75.6655093,127.256944 63.6284722,127.256944 C55.005787,127.256944 46.7592593,125.578704 38.8888889,122.222222 C31.0185185,118.865741 24.2476852,114.351852 18.5763889,108.680556 C12.9050926,103.009259 8.3912037,96.2384259 5.03472222,88.3680556 C1.67824074,80.4976852 0,72.2511574 0,63.6284722 C0,55.005787 1.67824074,46.7592593 5.03472222,38.8888889 C8.3912037,31.0185185 12.9050926,24.2476852 18.5763889,18.5763889 C24.2476852,12.9050926 31.0185185,8.3912037 38.8888889,5.03472222 C46.7592593,1.67824074 55.005787,0 63.6284722,0 C80.1793981,0 94.3865741,5.55555556 106.25,16.6666667 L88.9756944,33.2465278 C82.2048611,26.7071759 73.755787,23.4375 63.6284722,23.4375 C56.5104167,23.4375 49.927662,25.2314815 43.8802083,28.8194444 C37.8327546,32.4074074 33.0439815,37.2829861 29.5138889,43.4461806 C25.9837963,49.609375 24.21875,56.3368056 24.21875,63.6284722 C24.21875,70.9201389 25.9837963,77.6475694 29.5138889,83.8107639 C33.0439815,89.9739583 37.8327546,94.849537 43.8802083,98.4375 C49.927662,102.025463 56.5104167,103.819444 63.6284722,103.819444 C68.431713,103.819444 72.8443287,103.153935 76.8663194,101.822917 C80.8883102,100.491898 84.2013889,98.828125 86.8055556,96.8315972 C89.4097222,94.8350694 91.6811343,92.5636574 93.6197917,90.0173611 C95.5584491,87.4710648 96.9762731,85.0694444 97.8732639,82.8125 C98.7702546,80.5555556 99.3923611,78.4143519 99.7395833,76.3888889 L63.6284722,76.3888889 L63.6284722,54.5138889 L123.697917,54.5138889 C124.392361,58.1597222 124.739583,61.6898148 124.739583,65.1041667 L124.739583,65.1041667 Z M200,54.5138889 L200,72.7430556 L181.857639,72.7430556 L181.857639,90.8854167 L163.628472,90.8854167 L163.628472,72.7430556 L145.486111,72.7430556 L145.486111,54.5138889 L163.628472,54.5138889 L163.628472,36.3715278 L181.857639,36.3715278 L181.857639,54.5138889 L200,54.5138889 L200,54.5138889 Z"></path>
|
8
|
-
</g>
|
9
|
-
</g>
|
10
|
-
</svg>
|