social-share-button 0.9.0 → 0.10.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 +5 -0
- data/README.md +1 -0
- data/app/assets/images/social-share-button/odnoklassniki.svg +1 -0
- data/app/assets/javascripts/social-share-button.coffee +2 -0
- data/app/assets/stylesheets/social-share-button.css.erb +4 -0
- data/config/locales/social_share_button.en.yml +1 -0
- data/config/locales/social_share_button.fr.yml +1 -0
- data/config/locales/social_share_button.zh-CN.yml +1 -0
- data/config/locales/social_share_button.zh-TW.yml +1 -0
- data/lib/generators/social_share_button/templates/config/initializers/social_share_button.rb +1 -1
- data/lib/social_share_button/config.rb +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: d6f24cd57e008dd8a3b77abeed88043782f73681
|
4
|
+
data.tar.gz: c1589a8fed2a3ba86ae021231f9f7639819fd1d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a224ab851fa6d47c2c73adef6b52aa7c32fafd239d0d7c45c927b4e4dfaeeab568d91ac74277a7a156571d8055f11a79213b1a17a13b9aaeefb0e944fcb408f
|
7
|
+
data.tar.gz: a5c539ec996c437f6c92d4b33ae1b766f11e0e86421a8e9bb8c420636f220815cdaded1eb0aa6af8245a2ccdcb1accca64d8e4744c9a25c090f0f88057229a39
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" ?><svg height="256" id="Layer_1" version="1.1" viewBox="0 0 512 512" width="256" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg"><defs id="defs12"/><g id="g5499"><rect height="512" id="rect2987" rx="64" ry="64" style="fill:#f48420;fill-opacity:1;fill-rule:nonzero;stroke:none" width="512" x="0" y="5.6843419e-014"/><g id="g7980" transform="matrix(1.3569974,0,0,1.3569974,-1327.8679,-536.34264)"><path d="m 1167.189,585.71779 c 41.2019,0 74.5979,-33.40112 74.5979,-74.60401 0,-41.20186 -33.396,-74.604 -74.5979,-74.604 -41.208,0 -74.604,33.40214 -74.604,74.604 0,41.20187 33.396,74.60401 74.604,74.60401 z m 0,-111.30587 c 20.2659,0 36.7019,16.42977 36.7019,36.70186 0,20.27209 -16.436,36.70187 -36.7019,36.70187 -20.2721,0 -36.708,-16.42978 -36.708,-36.70187 0,-20.27209 16.4359,-36.70186 36.708,-36.70186 z" id="path9" style="fill:#ffffff"/><path d="m 1221.8035,591.53418 c -20.9585,16.51507 -54.6145,16.51507 -54.6145,16.51507 0,0 -33.6631,0 -54.6186,-16.51507 -15.5049,-12.21443 -27.1696,-5.17926 -31.3808,3.2874 -7.3424,14.74857 0.9516,21.8793 19.6771,33.89643 15.994,10.26912 37.9658,14.10527 52.1544,15.53779 l -11.8476,11.84551 c -16.6846,16.67846 -32.7876,32.78556 -43.959,43.959 -6.6817,6.67755 -6.6817,17.51598 0,24.19251 l 2.0152,2.01416 c 6.6837,6.68166 17.5139,6.68166 24.1914,0 l 43.9652,-43.95798 c 16.6846,16.6836 32.7876,32.78659 43.959,43.95798 6.6817,6.68166 17.5119,6.68166 24.1956,0 l 2.0152,-2.01416 c 6.6775,-6.6868 6.6775,-17.51496 0,-24.19251 l -43.9683,-43.96517 -11.8804,-11.88045 c 14.2019,-1.45923 35.9414,-5.31285 51.7967,-15.49771 18.7225,-12.01712 27.0216,-19.14786 19.6771,-33.89643 -4.2091,-8.4646 -15.881,-15.5008 -31.3777,-3.28637 z" id="path11-0" style="fill:#ffffff"/></g></g></svg>
|
@@ -53,6 +53,8 @@ window.SocialShareButton =
|
|
53
53
|
SocialShareButton.openUrl("https://www.xing.com/spi/shares/new?url=#{url}")
|
54
54
|
when "vkontakte"
|
55
55
|
SocialShareButton.openUrl("http://vk.com/share.php?url=#{url}&title=#{title}&image=#{img}")
|
56
|
+
when "odnoklassniki"
|
57
|
+
SocialShareButton.openUrl("https://connect.ok.ru/offer?url=#{url}&title=#{title}&description=#{desc}&imageUrl=#{img}")
|
56
58
|
when "wechat"
|
57
59
|
throw new Error("You should require social-share-button/wechat to your application.js") unless window.SocialShareWeChatButton
|
58
60
|
window.SocialShareWeChatButton.qrcode
|
@@ -59,6 +59,10 @@
|
|
59
59
|
background-image: url(<%= asset_path('social-share-button/vkontakte.svg') %>);
|
60
60
|
}
|
61
61
|
|
62
|
+
.social-share-button .ssb-odnoklassniki {
|
63
|
+
background-image: url(<%= asset_path('social-share-button/odnoklassniki.svg') %>);
|
64
|
+
}
|
65
|
+
|
62
66
|
.social-share-button .ssb-xing {
|
63
67
|
background-image: url(<%= asset_path('social-share-button/xing.svg') %>);
|
64
68
|
}
|
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
2
|
config.allow_sites = %w(twitter facebook google_plus weibo qq douban google_bookmark
|
3
3
|
delicious tumblr pinterest email linkedin wechat vkontakte
|
4
|
-
xing reddit hacker_news telegram)
|
4
|
+
xing reddit hacker_news telegram odnoklassniki)
|
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: 0.
|
4
|
+
version: 0.10.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: 2017-03-
|
11
|
+
date: 2017-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- app/assets/images/social-share-button/google_plus.svg
|
57
57
|
- app/assets/images/social-share-button/hacker_news.svg
|
58
58
|
- app/assets/images/social-share-button/linkedin.svg
|
59
|
+
- app/assets/images/social-share-button/odnoklassniki.svg
|
59
60
|
- app/assets/images/social-share-button/pinterest.svg
|
60
61
|
- app/assets/images/social-share-button/qq.svg
|
61
62
|
- app/assets/images/social-share-button/reddit.svg
|