social-share-button 1.1.0 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +22 -0
- data/README.md +19 -1
- data/app/assets/images/social-share-button/whatsapp.svg +10 -0
- data/app/assets/javascripts/social-share-button.coffee +22 -16
- data/app/assets/stylesheets/social-share-button.css.erb +5 -4
- data/config/locales/social_share_button.de.yml +2 -1
- data/config/locales/social_share_button.en.yml +2 -1
- data/config/locales/social_share_button.es.yml +2 -1
- data/config/locales/social_share_button.fr.yml +2 -1
- data/config/locales/social_share_button.ja.yml +24 -0
- data/config/locales/social_share_button.pt-BR.yml +24 -0
- data/config/locales/social_share_button.ru.yml +2 -1
- data/config/locales/social_share_button.uk.yml +2 -1
- data/config/locales/social_share_button.zh-CN.yml +2 -1
- data/config/locales/social_share_button.zh-TW.yml +2 -1
- data/lib/generators/social_share_button/templates/config/initializers/social_share_button.rb +2 -2
- data/lib/social_share_button/config.rb +2 -1
- data/lib/social_share_button/version.rb +3 -1
- metadata +9 -8
- data/app/assets/images/social-share-button/google_plus.svg +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
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
@@ -1,3 +1,25 @@
|
|
1
|
+
1.2.4
|
2
|
+
-----
|
3
|
+
|
4
|
+
- Remove to param from email URL
|
5
|
+
- Remove google plus (#192)
|
6
|
+
|
7
|
+
1.2.3
|
8
|
+
-----
|
9
|
+
|
10
|
+
- Fix Facebook share URL. (#188)
|
11
|
+
- Fix WhatsApp translate. (#176)
|
12
|
+
|
13
|
+
1.2.1
|
14
|
+
-----
|
15
|
+
|
16
|
+
- Fix WhatsApp share URL (#187)
|
17
|
+
|
18
|
+
1.2.0
|
19
|
+
-----
|
20
|
+
|
21
|
+
- Adds social share on WhatsApp (#170)
|
22
|
+
|
1
23
|
1.1.0
|
2
24
|
-----
|
3
25
|
|
data/README.md
CHANGED
@@ -9,7 +9,6 @@ This is a gem to helper you quick create a share feature in you Rails apps.
|
|
9
9
|
* Facebook
|
10
10
|
* Twitter
|
11
11
|
* Douban
|
12
|
-
* Google+
|
13
12
|
* Weibo
|
14
13
|
* QZone
|
15
14
|
* Google Bookmark
|
@@ -25,6 +24,7 @@ This is a gem to helper you quick create a share feature in you Rails apps.
|
|
25
24
|
* Reddit
|
26
25
|
* Hacker News
|
27
26
|
* Telegram
|
27
|
+
* WhatsApp
|
28
28
|
|
29
29
|
## Screenshot
|
30
30
|
|
@@ -61,6 +61,8 @@ SocialShareButton.configure do |config|
|
|
61
61
|
end
|
62
62
|
```
|
63
63
|
|
64
|
+
More site names you can visit https://github.com/huacnlee/social-share-button/blob/master/lib/social_share_button/config.rb#L33 to found it.
|
65
|
+
|
64
66
|
## Usage
|
65
67
|
|
66
68
|
You need add require css,js file in your app assets files:
|
@@ -140,6 +142,22 @@ Here are the mapping of attributes depending on you data-type parameter
|
|
140
142
|
| quote | title | data-quote |
|
141
143
|
| | | data-source |
|
142
144
|
|
145
|
+
## Facebook
|
146
|
+
|
147
|
+
A couple of gotchas for Facebook only:
|
148
|
+
|
149
|
+
### Facebook needs the description added
|
150
|
+
|
151
|
+
```
|
152
|
+
<%= social_share_button_tag('Share to Facebook', :url => course_path(@course), desc: @course.name) %>
|
153
|
+
```
|
154
|
+
This will add the required ```data-desc``` element, and Facebook will then accept the request.
|
155
|
+
|
156
|
+
### Testing from localhost will not work
|
157
|
+
|
158
|
+
You will need to test from a live site or Facebook will reject it; localhost will not work.
|
159
|
+
|
160
|
+
|
143
161
|
## How to change icon size?
|
144
162
|
|
145
163
|
Yes, you can override social-share-button base css to change the icon size.
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<svg width="256px" height="256px" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
2
|
+
<desc>WhatsApp</desc>
|
3
|
+
<defs></defs>
|
4
|
+
<g id="whatsapp" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
5
|
+
<rect id="bg" fill="#57BA63" x="0" y="0" width="256" height="256" rx="40"></rect>
|
6
|
+
<g id="Shape" transform="translate(58.000000, 58.000000)" fill="#FFFFFF">
|
7
|
+
<path d="M71.2724475,136.394222 C59.2215576,136.394222 47.9002222,133.314222 38.0504454,127.908666 L0,140 L12.4039994,103.410223 C6.1475556,93.1326657 2.54333205,81.0802212 2.54333205,68.1971109 C2.54333205,30.5324424 33.3137774,0 71.2740021,0 C109.229559,0 140,30.5324424 140,68.1971109 C140,105.861779 109.231113,136.394222 71.2724475,136.394222 Z M71.0000021,11 C39.0161515,11 13,36.7945829 13,68.5 C13,81.0813905 17.1049385,92.733024 24.0469509,102.213136 L16.8020247,123.566402 L39.0895382,116.488687 C48.2487489,122.496244 59.219188,126 71.0000021,126 C102.979163,126 129,100.206976 129,68.501559 C129,36.7961419 102.979163,11 71.0000021,11 Z M105.75822,83.6071414 C105.338032,82.9152786 104.222686,82.4973758 102.55275,81.6662107 C100.878182,80.8350455 92.6505531,76.809237 91.1196504,76.2566724 C89.5841162,75.7025651 88.4672219,75.4224136 87.3534194,77.0878375 C86.2396127,78.7532614 83.0325986,82.4973758 82.0547376,83.6071414 C81.0784204,84.718458 80.1036513,84.8577603 78.4306276,84.0250442 C76.7591477,83.1938791 71.3677812,81.4371379 64.9753794,75.7706673 C60.0026527,71.3625498 56.6442462,65.9205114 55.6694771,64.2535407 C54.6931599,62.5896594 55.5659729,61.690392 56.4032567,60.8623248 C57.1555791,60.1162895 58.0762804,58.919843 58.9135642,57.9493797 C59.750848,56.9773654 60.0289147,56.2855026 60.5850441,55.174186 C61.1442611,54.0644162 60.8646547,53.0939529 60.4460107,52.25969 C60.0273709,51.4285248 56.6797754,43.2437971 55.2863623,39.912945 C53.8929492,36.5851908 52.5010799,37.1393023 51.5232189,37.1393023 C50.5469018,37.1393023 49.4315554,37 48.3162049,37 C47.2008543,37 45.3872576,37.416356 43.8532631,39.0802331 C42.3208166,40.7456612 38,44.7699228 38,52.9531038 C38,61.1378316 43.9922964,69.0455057 44.8311241,70.1537245 C45.666864,71.2619433 56.4017129,88.6034173 73.4084646,95.2635704 C90.4214,101.922177 90.4214,99.7010943 93.4893807,99.4240365 C96.5527298,99.1469828 103.383854,95.4013259 104.781903,91.5179134 C106.173772,87.631403 106.173772,84.300551 105.75822,83.6071414 Z"></path>
|
8
|
+
</g>
|
9
|
+
</g>
|
10
|
+
</svg>
|
@@ -7,14 +7,17 @@ window.SocialShareButton =
|
|
7
7
|
false
|
8
8
|
|
9
9
|
share : (el) ->
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
10
|
+
if el.getAttribute == null
|
11
|
+
el = document.querySelector(el)
|
12
|
+
|
13
|
+
site = el.getAttribute("data-site")
|
14
|
+
appkey = el.getAttribute("data-appkey") || ''
|
15
|
+
$parent = el.parentNode
|
16
|
+
title = encodeURIComponent(el.getAttribute("data-" + site + "-title") || $parent.getAttribute('data-title') || '')
|
17
|
+
img = encodeURIComponent($parent.getAttribute("data-img") || '')
|
18
|
+
url = encodeURIComponent($parent.getAttribute("data-url") || '')
|
19
|
+
via = encodeURIComponent($parent.getAttribute("data-via") || '')
|
20
|
+
desc = encodeURIComponent($parent.getAttribute("data-desc") || ' ')
|
18
21
|
|
19
22
|
# tracking click events if google analytics enabled
|
20
23
|
ga = window[window['GoogleAnalyticsObject'] || 'ga']
|
@@ -25,22 +28,20 @@ window.SocialShareButton =
|
|
25
28
|
url = encodeURIComponent(location.href)
|
26
29
|
switch site
|
27
30
|
when "email"
|
28
|
-
location.href = "mailto:?
|
31
|
+
location.href = "mailto:?subject=#{title}&body=#{url}"
|
29
32
|
when "weibo"
|
30
33
|
SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}", 620, 370)
|
31
34
|
when "twitter"
|
32
|
-
hashtags = encodeURIComponent(
|
35
|
+
hashtags = encodeURIComponent(el.getAttribute("data-" + site + "-hashtags") || $parent.getAttribute("data-hashtags") || '')
|
33
36
|
via_str = ''
|
34
37
|
via_str = "&via=#{via}" if via.length > 0
|
35
38
|
SocialShareButton.openUrl("https://twitter.com/intent/tweet?url=#{url}&text=#{title}&hashtags=#{hashtags}#{via_str}", 650, 300)
|
36
39
|
when "douban"
|
37
40
|
SocialShareButton.openUrl("http://shuo.douban.com/!service/share?href=#{url}&name=#{title}&image=#{img}&sel=#{desc}", 770, 470)
|
38
41
|
when "facebook"
|
39
|
-
SocialShareButton.openUrl("http://www.facebook.com/sharer/sharer.php?u=#{url}
|
42
|
+
SocialShareButton.openUrl("http://www.facebook.com/sharer/sharer.php?u=#{url}", 555, 400)
|
40
43
|
when "qq"
|
41
44
|
SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=#{url}&title=#{title}&pics=#{img}&summary=#{desc}&site=#{appkey}")
|
42
|
-
when "google_plus"
|
43
|
-
SocialShareButton.openUrl("https://plus.google.com/share?url=#{url}")
|
44
45
|
when "google_bookmark"
|
45
46
|
SocialShareButton.openUrl("https://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=#{url}&title=#{title}")
|
46
47
|
when "delicious"
|
@@ -59,12 +60,12 @@ window.SocialShareButton =
|
|
59
60
|
throw new Error("You should require social-share-button/wechat to your application.js") unless window.SocialShareWeChatButton
|
60
61
|
window.SocialShareWeChatButton.qrcode
|
61
62
|
url: decodeURIComponent(url)
|
62
|
-
header:
|
63
|
-
footer:
|
63
|
+
header: el.getAttribute('title')
|
64
|
+
footer: el.getAttribute("data-wechat-footer")
|
64
65
|
|
65
66
|
when "tumblr"
|
66
67
|
get_tumblr_extra = (param) ->
|
67
|
-
cutom_data =
|
68
|
+
cutom_data = el.getAttribute("data-#{param}")
|
68
69
|
encodeURIComponent(cutom_data) if cutom_data
|
69
70
|
|
70
71
|
tumblr_params = ->
|
@@ -98,4 +99,9 @@ window.SocialShareButton =
|
|
98
99
|
SocialShareButton.openUrl("http://news.ycombinator.com/submitlink?u=#{url}&t=#{title}", 770, 500)
|
99
100
|
when "telegram"
|
100
101
|
SocialShareButton.openUrl("https://telegram.me/share/url?text=#{title}&url=#{url}")
|
102
|
+
when "whatsapp_app"
|
103
|
+
whatsapp_app_url = "whatsapp://send?text=#{title}%0A#{url}"
|
104
|
+
window.open(whatsapp_app_url, '_top')
|
105
|
+
when "whatsapp_web"
|
106
|
+
SocialShareButton.openUrl("https://web.whatsapp.com/send?text=#{title}%0A#{url}")
|
101
107
|
false
|
@@ -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
|
}
|
@@ -83,6 +79,11 @@
|
|
83
79
|
background-image: url(<%= asset_path('social-share-button/telegram.svg') %>);
|
84
80
|
}
|
85
81
|
|
82
|
+
.social-share-button .ssb-whatsapp_app,
|
83
|
+
.social-share-button .ssb-whatsapp_web {
|
84
|
+
background-image: url(<%= asset_path('social-share-button/whatsapp.svg') %>);
|
85
|
+
}
|
86
|
+
|
86
87
|
.ss-wechat-dialog {
|
87
88
|
width: 300px;
|
88
89
|
position: fixed;
|
@@ -7,7 +7,6 @@ de:
|
|
7
7
|
douban: Douban
|
8
8
|
qq: Qzone
|
9
9
|
delicious: Delicious
|
10
|
-
google_plus: Google+
|
11
10
|
google_bookmark: Google Bookmark
|
12
11
|
tumblr: Tumblr
|
13
12
|
pinterest: Pinterest
|
@@ -21,3 +20,5 @@ de:
|
|
21
20
|
reddit: Reddit
|
22
21
|
hacker_news: Hacker News
|
23
22
|
telegram: Telegram
|
23
|
+
whatsapp_app: WhatsApp
|
24
|
+
whatsapp_web: WhatsApp
|
@@ -7,7 +7,6 @@ en:
|
|
7
7
|
douban: Douban
|
8
8
|
qq: Qzone
|
9
9
|
delicious: Delicious
|
10
|
-
google_plus: Google+
|
11
10
|
google_bookmark: Google Bookmark
|
12
11
|
tumblr: Tumblr
|
13
12
|
pinterest: Pinterest
|
@@ -21,3 +20,5 @@ en:
|
|
21
20
|
reddit: Reddit
|
22
21
|
hacker_news: Hacker News
|
23
22
|
telegram: Telegram
|
23
|
+
whatsapp_app: WhatsApp
|
24
|
+
whatsapp_web: WhatsApp
|
@@ -7,7 +7,6 @@ es:
|
|
7
7
|
douban: Douban
|
8
8
|
qq: Qzone
|
9
9
|
delicious: Delicious
|
10
|
-
google_plus: Google+
|
11
10
|
google_bookmark: Google Bookmark
|
12
11
|
tumblr: Tumblr
|
13
12
|
pinterest: Pinterest
|
@@ -21,3 +20,5 @@ es:
|
|
21
20
|
reddit: Reddit
|
22
21
|
hacker_news: Hacker News
|
23
22
|
telegram: Telegram
|
23
|
+
whatsapp_app: WhatsApp
|
24
|
+
whatsapp_web: WhatsApp
|
@@ -7,7 +7,6 @@ fr:
|
|
7
7
|
douban: Douban
|
8
8
|
qq: Qzone
|
9
9
|
delicious: Delicious
|
10
|
-
google_plus: Google+
|
11
10
|
google_bookmark: Google Bookmark
|
12
11
|
tumblr: Tumblr
|
13
12
|
pinterest: Pinterest
|
@@ -21,3 +20,5 @@ fr:
|
|
21
20
|
reddit: Reddit
|
22
21
|
hacker_news: Hacker News
|
23
22
|
telegram: Telegram
|
23
|
+
whatsapp_app: WhatsApp
|
24
|
+
whatsapp_web: WhatsApp
|
@@ -0,0 +1,24 @@
|
|
1
|
+
ja:
|
2
|
+
social_share_button:
|
3
|
+
share_to: "%{name}でシェアする"
|
4
|
+
weibo: Sina Weibo
|
5
|
+
twitter: Twitter
|
6
|
+
facebook: Facebook
|
7
|
+
douban: Douban
|
8
|
+
qq: Qzone
|
9
|
+
delicious: Delicious
|
10
|
+
google_bookmark: Google Bookmark
|
11
|
+
tumblr: Tumblr
|
12
|
+
pinterest: Pinterest
|
13
|
+
email: Email
|
14
|
+
linkedin: Linkedin
|
15
|
+
wechat: WeChat
|
16
|
+
wechat_footer: WeChatを開き、「発見」ボタンをクリックし、「QRコードのスキャン」をクリックしてください。
|
17
|
+
vkontakte: Vkontakte
|
18
|
+
odnoklassniki: Odnoklassniki
|
19
|
+
xing: Xing
|
20
|
+
reddit: Reddit
|
21
|
+
hacker_news: Hacker News
|
22
|
+
telegram: Telegram
|
23
|
+
whatsapp_app: WhatsApp
|
24
|
+
whatsapp_web: WhatsApp
|
@@ -0,0 +1,24 @@
|
|
1
|
+
'pt-BR':
|
2
|
+
social_share_button:
|
3
|
+
share_to: Compartilhar via %{name}
|
4
|
+
weibo: Sina Weibo
|
5
|
+
twitter: Twitter
|
6
|
+
facebook: Facebook
|
7
|
+
douban: Douban
|
8
|
+
qq: Qzone
|
9
|
+
delicious: Delicious
|
10
|
+
google_bookmark: Google Bookmark
|
11
|
+
tumblr: Tumblr
|
12
|
+
pinterest: Pinterest
|
13
|
+
email: Email
|
14
|
+
linkedin: Linkedin
|
15
|
+
wechat: WeChat
|
16
|
+
wechat_footer: Abra o seu WeChat, clique no botão "Discover/Descobrir" e então clique no menu "Scan QR Code".
|
17
|
+
vkontakte: Vkontakte
|
18
|
+
odnoklassniki: Odnoklassniki
|
19
|
+
xing: Xing
|
20
|
+
reddit: Reddit
|
21
|
+
hacker_news: Hacker News
|
22
|
+
telegram: Telegram
|
23
|
+
whatsapp_app: WhatsApp
|
24
|
+
whatsapp_web: WhatsApp
|
@@ -7,7 +7,6 @@ ru:
|
|
7
7
|
douban: Douban
|
8
8
|
qq: Qzone
|
9
9
|
delicious: Delicious
|
10
|
-
google_plus: Google+
|
11
10
|
google_bookmark: Google Bookmark
|
12
11
|
tumblr: Tumblr
|
13
12
|
pinterest: Pinterest
|
@@ -21,3 +20,5 @@ ru:
|
|
21
20
|
reddit: Reddit
|
22
21
|
hacker_news: Hacker News
|
23
22
|
telegram: Telegram
|
23
|
+
whatsapp_app: WhatsApp
|
24
|
+
whatsapp_web: WhatsApp
|
@@ -7,7 +7,6 @@ uk:
|
|
7
7
|
douban: Douban
|
8
8
|
qq: Qzone
|
9
9
|
delicious: Delicious
|
10
|
-
google_plus: Google+
|
11
10
|
google_bookmark: Google Bookmark
|
12
11
|
tumblr: Tumblr
|
13
12
|
pinterest: Pinterest
|
@@ -21,3 +20,5 @@ uk:
|
|
21
20
|
reddit: Reddit
|
22
21
|
hacker_news: Hacker News
|
23
22
|
telegram: Telegram
|
23
|
+
whatsapp_app: WhatsApp
|
24
|
+
whatsapp_web: WhatsApp
|
@@ -7,7 +7,6 @@
|
|
7
7
|
douban: 豆瓣
|
8
8
|
qq: QQ 空间
|
9
9
|
delicious: Delicious
|
10
|
-
google_plus: Google+
|
11
10
|
google_bookmark: Google 收藏
|
12
11
|
tumblr: Tumblr
|
13
12
|
pinterest: Pinterest
|
@@ -21,3 +20,5 @@
|
|
21
20
|
reddit: Reddit
|
22
21
|
hacker_news: Hacker News
|
23
22
|
telegram: Telegram
|
23
|
+
whatsapp_app: WhatsApp
|
24
|
+
whatsapp_web: WhatsApp
|
@@ -7,7 +7,6 @@
|
|
7
7
|
douban: 豆瓣
|
8
8
|
qq: QQ 空間
|
9
9
|
delicious: Delicious
|
10
|
-
google_plus: Google+
|
11
10
|
google_bookmark: Google 收藏
|
12
11
|
tumblr: Tumblr
|
13
12
|
pinterest: Pinterest
|
@@ -21,3 +20,5 @@
|
|
21
20
|
reddit: Reddit
|
22
21
|
hacker_news: Hacker News
|
23
22
|
telegram: Telegram
|
23
|
+
whatsapp_app: WhatsApp
|
24
|
+
whatsapp_web: WhatsApp
|
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
|
-
xing reddit hacker_news telegram odnoklassniki)
|
4
|
+
xing reddit hacker_news telegram odnoklassniki whatsapp_app whatsapp_web)
|
5
5
|
end
|
@@ -11,7 +11,6 @@ module SocialShareButton
|
|
11
11
|
# * site support:
|
12
12
|
# - twitter
|
13
13
|
# - facebook
|
14
|
-
# - google_plus
|
15
14
|
# - weibo
|
16
15
|
# - qq
|
17
16
|
# - douban
|
@@ -28,6 +27,8 @@ module SocialShareButton
|
|
28
27
|
# - reddit
|
29
28
|
# - hacker_news
|
30
29
|
# - telegram
|
30
|
+
# - whatsapp_app
|
31
|
+
# - whatsapp_web
|
31
32
|
attr_accessor :allow_sites
|
32
33
|
|
33
34
|
def initialize
|
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.
|
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
|
@@ -66,6 +65,7 @@ files:
|
|
66
65
|
- app/assets/images/social-share-button/vkontakte.svg
|
67
66
|
- app/assets/images/social-share-button/wechat.svg
|
68
67
|
- app/assets/images/social-share-button/weibo.svg
|
68
|
+
- app/assets/images/social-share-button/whatsapp.svg
|
69
69
|
- app/assets/images/social-share-button/xing.svg
|
70
70
|
- app/assets/javascripts/jquery.qrcode.min.js
|
71
71
|
- app/assets/javascripts/social-share-button.coffee
|
@@ -75,6 +75,8 @@ files:
|
|
75
75
|
- config/locales/social_share_button.en.yml
|
76
76
|
- config/locales/social_share_button.es.yml
|
77
77
|
- config/locales/social_share_button.fr.yml
|
78
|
+
- config/locales/social_share_button.ja.yml
|
79
|
+
- config/locales/social_share_button.pt-BR.yml
|
78
80
|
- config/locales/social_share_button.ru.yml
|
79
81
|
- config/locales/social_share_button.uk.yml
|
80
82
|
- config/locales/social_share_button.zh-CN.yml
|
@@ -91,7 +93,7 @@ homepage: http://github.com/huacnlee/social-share-button
|
|
91
93
|
licenses:
|
92
94
|
- MIT
|
93
95
|
metadata: {}
|
94
|
-
post_install_message:
|
96
|
+
post_install_message:
|
95
97
|
rdoc_options: []
|
96
98
|
require_paths:
|
97
99
|
- lib
|
@@ -106,9 +108,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
108
|
- !ruby/object:Gem::Version
|
107
109
|
version: '0'
|
108
110
|
requirements: []
|
109
|
-
|
110
|
-
|
111
|
-
signing_key:
|
111
|
+
rubygems_version: 3.1.4
|
112
|
+
signing_key:
|
112
113
|
specification_version: 4
|
113
114
|
summary: Helper for add social share feature in your Rails app. Twitter, Facebook,
|
114
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>
|