social-share-button 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/app/assets/images/social-share-button/xing.svg +79 -0
- data/app/assets/javascripts/social-share-button.coffee +2 -0
- data/app/assets/stylesheets/social-share-button.scss +1 -1
- data/lib/generators/social_share_button/templates/config/initializers/social_share_button.rb +1 -1
- data/lib/generators/social_share_button/templates/config/locales/social_share_button.en.yml +1 -0
- data/lib/generators/social_share_button/templates/config/locales/social_share_button.fr.yml +1 -0
- data/lib/generators/social_share_button/templates/config/locales/social_share_button.zh-CN.yml +1 -0
- data/lib/generators/social_share_button/templates/config/locales/social_share_button.zh-TW.yml +1 -0
- data/lib/social_share_button/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fed00dc7290c906823859d4661dfbfe02dc98ccf
|
4
|
+
data.tar.gz: 88ec06c668483ee8ceb881617d337232b4dbfb38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6958c7a0600fdaf3204fe68232c0e861339c01ddcc26364951d8452d48979596e08f56536c2329dcd333602eb03abaed467867e98c86c5bcf6f286f018d85b91
|
7
|
+
data.tar.gz: 13f6133e3c9cfedefe6dc04e831ac1ba959b2da19aba97f40e8f07e7e002099d8fc4f0258aeb49b06fe164c66c83f999ef688b24d917f18ee6af2a706921bbd1
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -0,0 +1,79 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<svg
|
3
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
4
|
+
xmlns:cc="http://creativecommons.org/ns#"
|
5
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
6
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
8
|
+
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
9
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
10
|
+
width="256px"
|
11
|
+
height="256px"
|
12
|
+
viewBox="-2 111 256 256"
|
13
|
+
version="1.1"
|
14
|
+
id="svg2"
|
15
|
+
inkscape:version="0.91 r13725"
|
16
|
+
sodipodi:docname="twitter.svg">
|
17
|
+
<metadata
|
18
|
+
id="metadata13">
|
19
|
+
<rdf:RDF>
|
20
|
+
<cc:Work
|
21
|
+
rdf:about="">
|
22
|
+
<dc:format>image/svg+xml</dc:format>
|
23
|
+
<dc:type
|
24
|
+
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
25
|
+
</cc:Work>
|
26
|
+
</rdf:RDF>
|
27
|
+
</metadata>
|
28
|
+
<sodipodi:namedview
|
29
|
+
pagecolor="#ffffff"
|
30
|
+
bordercolor="#666666"
|
31
|
+
borderopacity="1"
|
32
|
+
objecttolerance="10"
|
33
|
+
gridtolerance="10"
|
34
|
+
guidetolerance="10"
|
35
|
+
inkscape:pageopacity="0"
|
36
|
+
inkscape:pageshadow="2"
|
37
|
+
inkscape:window-width="1200"
|
38
|
+
inkscape:window-height="631"
|
39
|
+
id="namedview11"
|
40
|
+
showgrid="false"
|
41
|
+
inkscape:zoom="0.34863281"
|
42
|
+
inkscape:cx="128"
|
43
|
+
inkscape:cy="128"
|
44
|
+
inkscape:window-x="0"
|
45
|
+
inkscape:window-y="23"
|
46
|
+
inkscape:window-maximized="0"
|
47
|
+
inkscape:current-layer="svg2" />
|
48
|
+
<desc
|
49
|
+
id="desc4">Twitter</desc>
|
50
|
+
<defs
|
51
|
+
id="defs6" />
|
52
|
+
<g
|
53
|
+
id="twitter"
|
54
|
+
stroke="none"
|
55
|
+
stroke-width="1"
|
56
|
+
fill="none"
|
57
|
+
fill-rule="evenodd"
|
58
|
+
transform="translate(-2.000000, 111.000000)">
|
59
|
+
<path
|
60
|
+
style="fill:#005a5f;fill-opacity:1"
|
61
|
+
d="m 40,0 176,0 c 22.16,0 40,17.84 40,40 l 0,176 c 0,22.16 -17.84,40 -40,40 L 40,256 C 17.84,256 0,238.16 0,216 L 0,40 C 0,17.84 17.84,0 40,0 Z"
|
62
|
+
id="bg" />
|
63
|
+
<path
|
64
|
+
id="path4142"
|
65
|
+
d="m 40,0 176,0 c 22.16,0 40,17.84 40,40 l 0,176 c 0,22.16 -17.84,40 -40,40 L 40,256 C 17.84,256 0,238.16 0,216 L 0,40 C 0,17.84 17.84,0 40,0 Z"
|
66
|
+
style="fill:#005a5f;fill-opacity:1" />
|
67
|
+
</g>
|
68
|
+
<path
|
69
|
+
d="m 57.408516,176.92783 c -1.794982,0 -3.305475,0.62994 -4.064107,1.86272 -0.78573,1.27342 -0.663803,2.91262 0.169065,4.57213 l 20.151205,34.88358 c 0.03247,0.0677 0.03247,0.10838 0,0.16907 l -31.665903,55.88148 c -0.826372,1.64596 -0.78573,3.2987 0,4.57212 0.758633,1.226 2.099783,2.03205 3.894765,2.03205 l 29.803458,0 c 4.456973,0 6.604178,-3.00743 8.128215,-5.75748 0,0 30.968496,-54.77063 32.174196,-56.89751 -0.12193,-0.19616 -20.489882,-35.73027 -20.489882,-35.73027 -1.4834,-2.64168 -3.72543,-5.58816 -8.297554,-5.58816 z"
|
70
|
+
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
71
|
+
id="path19359"
|
72
|
+
inkscape:connector-curvature="0"
|
73
|
+
sodipodi:nodetypes="sccccccsscccss" />
|
74
|
+
<path
|
75
|
+
d="m 182.61522,136.11742 c -4.4502,0 -6.38065,2.80424 -7.9792,5.67621 0,0 -64.20612,113.86274 -66.31946,117.60172 0.10838,0.20321 42.348,77.69219 42.348,77.69219 1.47663,2.64167 3.7593,5.67621 8.32464,5.67621 l 29.7696,0 c 1.79497,0 3.19709,-0.67736 3.95573,-1.90336 0.79249,-1.27343 0.77218,-2.95325 -0.0613,-4.60599 l -42.01605,-76.76422 c -0.0434,-0.0607 -0.0434,-0.13547 0,-0.19616 l 65.98757,-116.67375 c 0.82637,-1.64597 0.84669,-3.3258 0.0612,-4.59922 -0.75863,-1.226 -2.16752,-1.90336 -3.9625,-1.90336 l -30.10826,0 z"
|
76
|
+
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
77
|
+
id="path19375"
|
78
|
+
inkscape:connector-curvature="0" />
|
79
|
+
</svg>
|
@@ -43,6 +43,8 @@ window.SocialShareButton =
|
|
43
43
|
SocialShareButton.openUrl("http://www.pinterest.com/pin/create/button/?url=#{url}&media=#{img}&description=#{title}")
|
44
44
|
when "linkedin"
|
45
45
|
SocialShareButton.openUrl("https://www.linkedin.com/shareArticle?mini=true&url=#{url}&title=#{title}&summary=#{desc}")
|
46
|
+
when "xing"
|
47
|
+
SocialShareButton.openUrl("https://www.xing.com/spi/shares/new?url=#{url}")
|
46
48
|
when "vkontakte"
|
47
49
|
SocialShareButton.openUrl("http://vk.com/share.php?url=#{url}&title=#{title}&image=#{img}")
|
48
50
|
when "wechat"
|
@@ -11,7 +11,7 @@ $size: 18px;
|
|
11
11
|
}
|
12
12
|
|
13
13
|
@each $site in twitter, facebook, google_bookmark, google_plus, weibo, qq,
|
14
|
-
delicious, linkedin, tumblr, pinterest, douban, wechat, vkontakte, email {
|
14
|
+
delicious, linkedin, tumblr, pinterest, douban, wechat, vkontakte, xing, email {
|
15
15
|
.ssb-#{$site} {
|
16
16
|
background-image: image-url('social-share-button/#{$site}.svg');
|
17
17
|
}
|
data/lib/generators/social_share_button/templates/config/initializers/social_share_button.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
SocialShareButton.configure do |config|
|
2
|
-
config.allow_sites = %w(twitter facebook google_plus weibo qq douban google_bookmark delicious tumblr pinterest email linkedin wechat vkontakte)
|
2
|
+
config.allow_sites = %w(twitter facebook google_plus weibo qq douban google_bookmark delicious tumblr pinterest email linkedin wechat vkontakte xing)
|
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.
|
4
|
+
version: 0.6.0
|
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-09-
|
11
|
+
date: 2016-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- app/assets/images/social-share-button/vkontakte.svg
|
77
77
|
- app/assets/images/social-share-button/wechat.svg
|
78
78
|
- app/assets/images/social-share-button/weibo.svg
|
79
|
+
- app/assets/images/social-share-button/xing.svg
|
79
80
|
- app/assets/javascripts/jquery.qrcode.min.js
|
80
81
|
- app/assets/javascripts/social-share-button.coffee
|
81
82
|
- app/assets/javascripts/social-share-button/wechat.coffee
|