social-share-button 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/assets/images/sprites/social-share-button.png +0 -0
- data/lib/assets/images/sprites/social-share-button/qq.png +0 -0
- data/lib/assets/javascripts/social-share-button.coffee +2 -0
- data/lib/assets/stylesheets/social-share-button.scss +5 -3
- 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.zh-CN.yml +1 -1
- data/lib/generators/social_share_button/templates/config/locales/social_share_button.zh-TW.yml +2 -1
- data/lib/social_share_button/config.rb +1 -1
- data/lib/social_share_button/version.rb +1 -1
- data/psd/icon_templet.psd +0 -0
- metadata +5 -3
Binary file
|
Binary file
|
@@ -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
|
-
|
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-
|
22
|
-
.social-share-button-
|
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 }
|
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.
|
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: &
|
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: *
|
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: []
|