social-share-button 0.7.0 → 0.8.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 +2 -1
- data/app/assets/images/social-share-button/hacker_news.svg +69 -0
- data/app/assets/javascripts/social-share-button.coffee +2 -0
- data/app/assets/stylesheets/social-share-button.scss +2 -1
- data/lib/generators/social_share_button/templates/config/initializers/social_share_button.rb +3 -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/config.rb +2 -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: e3c1a7993accee5aaa070817fa915764c55734f5
|
4
|
+
data.tar.gz: 8e9b05e578dc9467debbd1740f2e671f5bf57478
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8590a4c243afd0e587d96ab410c01aad5f1228ba8fae403bcaf154732e404f599af8b9e731f34ee9bdda4b706dcb5842a0cf1a776fa8a51ff46cf39de9d904f3
|
7
|
+
data.tar.gz: 2c76312b54a418f99e0ab9dfece35d565dd1ec63b203518ef0bc9fe8c70cf55b082ebfa65f86347645b810b7dc2b9f9995c78f596a35ac8088160a19f1ce8231
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -22,10 +22,11 @@ This is a gem to helper you quick create a share feature in you Rails apps.
|
|
22
22
|
* Vkontakte
|
23
23
|
* Xing
|
24
24
|
* Reddit
|
25
|
+
* Hacker News
|
25
26
|
|
26
27
|
## Screenshot
|
27
28
|
|
28
|
-
<img width="
|
29
|
+
<img width="450" alt="2016-10-05 8 51 07" src="https://cloud.githubusercontent.com/assets/5518/19097657/ea7c0a20-8ad8-11e6-953f-83354d9a6384.png">
|
29
30
|
|
30
31
|
## Install
|
31
32
|
|
@@ -0,0 +1,69 @@
|
|
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="svg3192"
|
15
|
+
inkscape:version="0.48.5 r10040"
|
16
|
+
sodipodi:docname="hacker_news.svg">
|
17
|
+
<metadata
|
18
|
+
id="metadata3203">
|
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
|
+
<dc:title />
|
26
|
+
</cc:Work>
|
27
|
+
</rdf:RDF>
|
28
|
+
</metadata>
|
29
|
+
<sodipodi:namedview
|
30
|
+
pagecolor="#ffffff"
|
31
|
+
bordercolor="#666666"
|
32
|
+
borderopacity="1"
|
33
|
+
objecttolerance="10"
|
34
|
+
gridtolerance="10"
|
35
|
+
guidetolerance="10"
|
36
|
+
inkscape:pageopacity="0"
|
37
|
+
inkscape:pageshadow="2"
|
38
|
+
inkscape:window-width="1920"
|
39
|
+
inkscape:window-height="1149"
|
40
|
+
id="namedview3201"
|
41
|
+
showgrid="false"
|
42
|
+
inkscape:zoom="2.9981327"
|
43
|
+
inkscape:cx="183.89957"
|
44
|
+
inkscape:cy="150.68414"
|
45
|
+
inkscape:window-x="0"
|
46
|
+
inkscape:window-y="0"
|
47
|
+
inkscape:window-maximized="1"
|
48
|
+
inkscape:current-layer="svg3192" />
|
49
|
+
<defs
|
50
|
+
id="defs3196" />
|
51
|
+
<g
|
52
|
+
id="hacker_news"
|
53
|
+
transform="translate(-2,111)"
|
54
|
+
style="fill:none;stroke:none">
|
55
|
+
<rect
|
56
|
+
id="bg"
|
57
|
+
x="0"
|
58
|
+
y="0"
|
59
|
+
width="256"
|
60
|
+
height="256"
|
61
|
+
rx="40"
|
62
|
+
style="fill:#ff6500" />
|
63
|
+
<path
|
64
|
+
style="fill:#ffffff;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
65
|
+
d="m 73.349057,62.544811 44.044813,82.016509 0,54.00943 16.98113,0.059 0,-53.06607 44.10377,-83.018869 -18.98585,0.05896 -33.07783,66.096699 -32.959901,-66.155659 z"
|
66
|
+
id="path3087"
|
67
|
+
inkscape:connector-curvature="0" />
|
68
|
+
</g>
|
69
|
+
</svg>
|
@@ -85,4 +85,6 @@ window.SocialShareButton =
|
|
85
85
|
|
86
86
|
when "reddit"
|
87
87
|
SocialShareButton.openUrl("http://www.reddit.com/submit?url=#{url}&newwindow=1", 555, 400)
|
88
|
+
when "hacker_news"
|
89
|
+
SocialShareButton.openUrl("http://news.ycombinator.com/submitlink?u=#{url}&t=#{title}", 770, 500)
|
88
90
|
false
|
@@ -11,7 +11,8 @@ $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,
|
14
|
+
delicious, linkedin, tumblr, pinterest, douban, wechat, vkontakte,
|
15
|
+
xing, email, reddit, hacker_news {
|
15
16
|
.ssb-#{$site} {
|
16
17
|
background-image: image-url('social-share-button/#{$site}.svg');
|
17
18
|
}
|
data/lib/generators/social_share_button/templates/config/initializers/social_share_button.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
1
|
SocialShareButton.configure do |config|
|
2
|
-
config.allow_sites = %w(twitter facebook google_plus weibo qq douban google_bookmark
|
2
|
+
config.allow_sites = %w(twitter facebook google_plus weibo qq douban google_bookmark
|
3
|
+
delicious tumblr pinterest email linkedin wechat vkontakte
|
4
|
+
xing reddit hacker_news)
|
3
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: 0.
|
4
|
+
version: 0.8.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-10-
|
11
|
+
date: 2016-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- app/assets/images/social-share-button/facebook.svg
|
69
69
|
- app/assets/images/social-share-button/google_bookmark.svg
|
70
70
|
- app/assets/images/social-share-button/google_plus.svg
|
71
|
+
- app/assets/images/social-share-button/hacker_news.svg
|
71
72
|
- app/assets/images/social-share-button/linkedin.svg
|
72
73
|
- app/assets/images/social-share-button/pinterest.svg
|
73
74
|
- app/assets/images/social-share-button/qq.svg
|