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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51cecb2307972c2819d48a869e6e9d51449d359b
4
- data.tar.gz: 35b63b885e0b9ef350e2f6d5be834468ce843ab2
3
+ metadata.gz: d6f24cd57e008dd8a3b77abeed88043782f73681
4
+ data.tar.gz: c1589a8fed2a3ba86ae021231f9f7639819fd1d1
5
5
  SHA512:
6
- metadata.gz: 8cad03f5ec8f920833640a9f85be256a11322b196e01129fd11b14d4e25add18c3a2fe961ffc4d713fa664bdda6e71d07abf073db9c77e884fbfb5a6dc58aa49
7
- data.tar.gz: ccf624f454c2ac83537f792eeb8535172c34654ea5876c3257cc92f2cffb451c97566e861ce0781abae1bdd260917d4a6f4c3f90fa900388b5413b03353a5a18
6
+ metadata.gz: 9a224ab851fa6d47c2c73adef6b52aa7c32fafd239d0d7c45c927b4e4dfaeeab568d91ac74277a7a156571d8055f11a79213b1a17a13b9aaeefb0e944fcb408f
7
+ data.tar.gz: a5c539ec996c437f6c92d4b33ae1b766f11e0e86421a8e9bb8c420636f220815cdaded1eb0aa6af8245a2ccdcb1accca64d8e4744c9a25c090f0f88057229a39
@@ -1,3 +1,8 @@
1
+ 0.10.0
2
+ ------
3
+
4
+ * Add [Odnoklassniki](https://ok.ru). (#121)
5
+
1
6
  0.9.0
2
7
  -----
3
8
 
data/README.md CHANGED
@@ -20,6 +20,7 @@ This is a gem to helper you quick create a share feature in you Rails apps.
20
20
  * LinkedIn
21
21
  * WeChat (Weixin)
22
22
  * Vkontakte
23
+ * Odnoklassniki
23
24
  * Xing
24
25
  * Reddit
25
26
  * Hacker News
@@ -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
  }
@@ -16,6 +16,7 @@ en:
16
16
  wechat: WeChat
17
17
  wechat_footer: Open your WeChat, click "Discover" button then click the "Scan QR Code" menu.
18
18
  vkontakte: Vkontakte
19
+ odnoklassniki: Odnoklassniki
19
20
  xing: Xing
20
21
  reddit: Reddit
21
22
  hacker_news: Hacker News
@@ -16,6 +16,7 @@ fr:
16
16
  wechat: WeChat
17
17
  wechat_footer: Open your WeChat, click "Discover" button then click the "Scan QR Code" menu.
18
18
  vkontakte: Vkontakte
19
+ odnoklassniki: Odnoklassniki
19
20
  xing: Xing
20
21
  reddit: Reddit
21
22
  hacker_news: Hacker News
@@ -16,6 +16,7 @@
16
16
  wechat: 微信
17
17
  wechat_footer: 打开微信,点击底部的 “发现”,<br/> 使用 “扫一扫” 即可将网页分享至朋友圈。
18
18
  vkontakte: Vkontakte
19
+ odnoklassniki: Odnoklassniki
19
20
  xing: Xing
20
21
  reddit: Reddit
21
22
  hacker_news: Hacker News
@@ -16,6 +16,7 @@
16
16
  wechat: 微信
17
17
  wechat_footer: 打開微信,點擊底部的 “發現”,<br/> 使用 “掃一掃” 即可將網頁分享至朋友圈。
18
18
  vkontakte: Vkontakte
19
+ odnoklassniki: Odnoklassniki
19
20
  xing: Xing
20
21
  reddit: Reddit
21
22
  hacker_news: Hacker News
@@ -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
@@ -23,6 +23,7 @@ module SocialShareButton
23
23
  # - linkedin
24
24
  # - wechat
25
25
  # - vkontakte
26
+ # - odnoklassniki
26
27
  # - Xing
27
28
  # - reddit
28
29
  # - hacker_news
@@ -1,3 +1,3 @@
1
1
  module SocialShareButton
2
- VERSION = '0.9.0'
2
+ VERSION = '0.10.0'
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.9.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-08 00:00:00.000000000 Z
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