social-share-button 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,4 +15,6 @@ window.SocialShareButton =
15
15
  SocialShareButton.openUrl("http://www.douban.com/recommend/?url=#{url}&title=#{title}&v=1&r=1")
16
16
  when "facebook"
17
17
  SocialShareButton.openUrl("http://www.facebook.com/sharer.php?t=#{title}&u=#{url}")
18
+ when "qq"
19
+ SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=#{url}")
18
20
  false
@@ -4,6 +4,7 @@
4
4
 
5
5
  lib/assets/images/sprites/social-share-button/douban.png (16x16)
6
6
  lib/assets/images/sprites/social-share-button/facebook.png (16x16)
7
+ lib/assets/images/sprites/social-share-button/qq.png (16x16)
7
8
  lib/assets/images/sprites/social-share-button/twitter.png (16x16)
8
9
  lib/assets/images/sprites/social-share-button/weibo.png (16x16)
9
10
 
@@ -12,11 +13,12 @@
12
13
  lib/assets/stylesheets/social-share-button.scss
13
14
 
14
15
  Output size:
15
- 32x32
16
+ 48x32
16
17
 
17
18
 
18
19
  */
19
20
  .social-share-button-douban { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) 0px 0px no-repeat }
20
21
  .social-share-button-facebook { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -16px 0px no-repeat }
21
- .social-share-button-twitter { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) 0px -16px no-repeat }
22
- .social-share-button-weibo { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -16px -16px no-repeat }
22
+ .social-share-button-qq { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) 0px -16px no-repeat }
23
+ .social-share-button-twitter { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -16px -16px no-repeat }
24
+ .social-share-button-weibo { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -32px 0px no-repeat }
@@ -1,3 +1,3 @@
1
1
  SocialShareButton.configure do |config|
2
- config.allow_sites = %w(twitter facebook weibo douban)
2
+ config.allow_sites = %w(twitter facebook weibo douban qq)
3
3
  end
@@ -5,4 +5,5 @@ en:
5
5
  twitter: Twitter
6
6
  facebook: Facebook
7
7
  douban: Douban
8
+ qq: QQ
8
9
 
@@ -5,4 +5,4 @@
5
5
  twitter: Twitter
6
6
  facebook: Facebook
7
7
  douban: 豆瓣
8
-
8
+ qq: QQ空间
@@ -4,4 +4,5 @@
4
4
  weibo: 新浪微博
5
5
  twitter: Twitter
6
6
  facebook: Facebook
7
- douban: 豆瓣
7
+ douban: 豆瓣
8
+ qq: QQ空間
@@ -18,5 +18,5 @@ module SocialShareButton
18
18
  end
19
19
 
20
20
  SocialShareButton.configure do |conf|
21
- conf.allow_sites = %w(twitter facebook weibo douban)
21
+ conf.allow_sites = %w(twitter facebook weibo douban qq)
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module SocialShareButton
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social-share-button
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-04 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70198843114980 !ruby/object:Gem::Requirement
16
+ requirement: &70322809236260 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70198843114980
24
+ version_requirements: *70322809236260
25
25
  description: Helper for add social share feature in your Rails app. Twitter, Facebook,
26
26
  Weibo, Douban, QQ ...
27
27
  email:
@@ -40,6 +40,7 @@ files:
40
40
  - lib/assets/images/sprites/social-share-button/.DS_Store
41
41
  - lib/assets/images/sprites/social-share-button/douban.png
42
42
  - lib/assets/images/sprites/social-share-button/facebook.png
43
+ - lib/assets/images/sprites/social-share-button/qq.png
43
44
  - lib/assets/images/sprites/social-share-button/twitter.png
44
45
  - lib/assets/images/sprites/social-share-button/weibo.png
45
46
  - lib/assets/javascripts/social-share-button.coffee
@@ -56,6 +57,7 @@ files:
56
57
  - lib/social_share_button/helper.rb
57
58
  - lib/social_share_button/railtie.rb
58
59
  - lib/social_share_button/version.rb
60
+ - psd/icon_templet.psd
59
61
  - social-share-button.gemspec
60
62
  homepage: http://github.com/huacnlee/social-share-button
61
63
  licenses: []