social-share-button 0.1.5 → 0.1.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee1aad2c7824f2f8572ac792243562ea1c38bb8b
4
- data.tar.gz: 8f4afb708af3f2c064032ecf5dc92d217cb00f8e
3
+ metadata.gz: 725c9eb00296ec6faf293f6694c1b79a52f1d9e8
4
+ data.tar.gz: c9d3dcb3a333d2418086195bcc99d6ff2474b8a4
5
5
  SHA512:
6
- metadata.gz: e2a88f7b6eefbb1a157bff1d831ff1386ee6c4a551d0a3de88d878355a73648b8af3fee83a1a8b236bf03cf330ef111d27490848e7b41b909a5dff1aed62f450
7
- data.tar.gz: df50a8d2814cfcf9f40e5bb89cc69fa6d9a480fd10029efd246d0967eb7c396f046fc6f2c43c3651307870558946dcf35f9f2444c1627c3ef80fc4ef6ade423e
6
+ metadata.gz: 980994dc1be7443750f11e2a8c14721641e613418a43a5af7ab3bc9ee0de0ec9d06b5aabb0db16937dd103b1fe2a92f892d1a2b971b70b1dd243f55da4a01ece
7
+ data.tar.gz: b71bc70ad56e517d6d8077452af6d30e0c4d69faa5a846e56ebb15779e0f0e7d533216104bc03364209e3bed4f823da3746d131b676593e5392a88fb319af455
data/README.md CHANGED
@@ -18,6 +18,7 @@ This is a gem to helper you quick create a share feature in you Rails apps.
18
18
  * Delicious
19
19
  * Tumblr
20
20
  * Plurk
21
+ * Pinterest
21
22
  * Email
22
23
 
23
24
  ## Screenshot
@@ -45,7 +46,7 @@ You can config `config/initializes/social_share_button.rb` to choose which site
45
46
 
46
47
  ```ruby
47
48
  SocialShareButton.configure do |config|
48
- config.allow_sites = %w(twitter facebook google_plus weibo douban tqq renren qq kaixin001 baidu tumblr plurk email)
49
+ config.allow_sites = %w(twitter facebook google_plus weibo douban tqq renren qq kaixin001 baidu tumblr plurk pinterest email)
49
50
  end
50
51
  ```
51
52
 
@@ -20,7 +20,7 @@ window.SocialShareButton =
20
20
  when "douban"
21
21
  SocialShareButton.openUrl("http://shuo.douban.com/!service/share?href=#{url}&name=#{title}&image=#{img}")
22
22
  when "facebook"
23
- SocialShareButton.openUrl("http://www.facebook.com/sharer.php?t=#{title}&u=#{url}")
23
+ SocialShareButton.openUrl("http://www.facebook.com/sharer.php?u=#{url}")
24
24
  when "qq"
25
25
  SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=#{url}&title=#{title}&pics=#{img}")
26
26
  when "tqq"
@@ -32,13 +32,15 @@ window.SocialShareButton =
32
32
  when "renren"
33
33
  SocialShareButton.openUrl("http://widget.renren.com/dialog/share?resourceUrl=#{url}&srcUrl=#{url}&title=#{title}&pic=#{img}&description=")
34
34
  when "google_plus"
35
- SocialShareButton.openUrl("https://plus.google.com/share?url=#{url}&t=#{title}")
35
+ SocialShareButton.openUrl("https://plus.google.com/share?url=#{url}")
36
36
  when "google_bookmark"
37
37
  SocialShareButton.openUrl("https://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=#{url}&title=#{title}")
38
38
  when "delicious"
39
39
  SocialShareButton.openUrl("http://www.delicious.com/save?url=#{url}&title=#{title}&jump=yes&pic=#{img}")
40
40
  when "plurk"
41
41
  SocialShareButton.openUrl("http://www.plurk.com/?status=#{title}: #{url}&qualifier=shares")
42
+ when "pinterest"
43
+ SocialShareButton.openUrl("http://www.pinterest.com/pin/create/button/?url=#{url}&media=#{img}&description=#{title}")
42
44
  when "tumblr"
43
45
  get_tumblr_extra = (param) ->
44
46
  cutom_data = $(el).attr("data-#{param}")
@@ -11,6 +11,7 @@
11
11
  app/assets/images/sprites/social-share-button/google_bookmark.png (16x16)
12
12
  app/assets/images/sprites/social-share-button/google_plus.png (16x16)
13
13
  app/assets/images/sprites/social-share-button/kaixin001.png (16x16)
14
+ app/assets/images/sprites/social-share-button/pinterest.png (16x16)
14
15
  app/assets/images/sprites/social-share-button/plurk.png (16x16)
15
16
  app/assets/images/sprites/social-share-button/qq.png (16x16)
16
17
  app/assets/images/sprites/social-share-button/renren.png (16x16)
@@ -24,8 +25,7 @@
24
25
  app/assets/stylesheets/social-share-button.scss
25
26
 
26
27
  Output size:
27
- 64x64
28
-
28
+ 80x64
29
29
 
30
30
  */
31
31
  .social-share-button-baidu { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) 0px 0px no-repeat }
@@ -37,29 +37,31 @@
37
37
  .social-share-button-google_bookmark { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) 0px -32px no-repeat }
38
38
  .social-share-button-google_plus { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -16px -32px no-repeat }
39
39
  .social-share-button-kaixin001 { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -32px -32px no-repeat }
40
- .social-share-button-plurk { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -48px 0px no-repeat }
41
- .social-share-button-qq { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -48px -16px no-repeat }
42
- .social-share-button-renren { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -48px -32px no-repeat }
43
- .social-share-button-tqq { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) 0px -48px no-repeat }
44
- .social-share-button-tumblr { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -16px -48px no-repeat }
45
- .social-share-button-twitter { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -32px -48px no-repeat }
46
- .social-share-button-weibo { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -48px -48px no-repeat }
40
+ .social-share-button-pinterest { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -48px 0px no-repeat }
41
+ .social-share-button-plurk { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -48px -16px no-repeat }
42
+ .social-share-button-qq { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -48px -32px no-repeat }
43
+ .social-share-button-renren { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) 0px -48px no-repeat }
44
+ .social-share-button-tqq { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -16px -48px no-repeat }
45
+ .social-share-button-tumblr { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -32px -48px no-repeat }
46
+ .social-share-button-twitter { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -48px -48px no-repeat }
47
+ .social-share-button-weibo { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -64px 0px no-repeat }
47
48
 
48
49
  @media only screen and (-webkit-device-pixel-ratio: 2) {
49
- .social-share-button-baidu { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) 0px 0px no-repeat; background-size:64px 64px; }
50
- .social-share-button-delicious { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -16px 0px no-repeat; background-size:64px 64px; }
51
- .social-share-button-douban { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) 0px -16px no-repeat; background-size:64px 64px;}
52
- .social-share-button-email { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -16px -16px no-repeat; background-size:64px 64px;}
53
- .social-share-button-facebook { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -32px 0px no-repeat; background-size:64px 64px;}
54
- .social-share-button-flickr { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -32px -16px no-repeat; background-size:64px 64px;}
55
- .social-share-button-google_bookmark { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) 0px -32px no-repeat; background-size:64px 64px;}
56
- .social-share-button-google_plus { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -16px -32px no-repeat; background-size:64px 64px;}
57
- .social-share-button-kaixin001 { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -32px -32px no-repeat; background-size:64px 64px;}
58
- .social-share-button-plurk { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -48px 0px no-repeat; background-size:64px 64px; }
59
- .social-share-button-qq { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -48px 16px no-repeat; background-size:64px 64px;}
60
- .social-share-button-renren { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -48px -32px no-repeat; background-size:64px 64px;}
61
- .social-share-button-tqq { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) 0px -48 no-repeat; background-size:64px 64px;}
62
- .social-share-button-tumblr { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -16px -48px no-repeat; background-size:64px 64px;}
63
- .social-share-button-twitter { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -32px -48px no-repeat; background-size:64px 64px;}
64
- .social-share-button-weibo { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -48px -48px no-repeat; background-size:64px 64px;}
50
+ .social-share-button-baidu { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) 0px 0px no-repeat; background-size:80px 64px; }
51
+ .social-share-button-delicious { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -16px 0px no-repeat; background-size:80px 64px; }
52
+ .social-share-button-douban { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) 0px -16px no-repeat; background-size:80px 64px; }
53
+ .social-share-button-email { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -16px -16px no-repeat; background-size:80px 64px; }
54
+ .social-share-button-facebook { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -32px 0px no-repeat; background-size:80px 64px; }
55
+ .social-share-button-flickr { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -32px -16px no-repeat; background-size:80px 64px; }
56
+ .social-share-button-google_bookmark { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) 0px -32px no-repeat; background-size:80px 64px; }
57
+ .social-share-button-google_plus { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -16px -32px no-repeat; background-size:80px 64px; }
58
+ .social-share-button-kaixin001 { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -32px -32px no-repeat; background-size:80px 64px; }
59
+ .social-share-button-pinterest { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -48px 0px no-repeat; background-size:80px 64px; }
60
+ .social-share-button-plurk { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -48px -16px no-repeat; background-size:80px 64px; }
61
+ .social-share-button-qq { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -48px -32px no-repeat; background-size:80px 64px; }
62
+ .social-share-button-renren { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) 0px -48px no-repeat; background-size:80px 64px; }
63
+ .social-share-button-tqq { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -16px -48px no-repeat; background-size:80px 64px; }
64
+ .social-share-button-tumblr { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -32px -48px no-repeat; background-size:80px 64px; }
65
+ .social-share-button-twitter { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -48px -48px no-repeat; background-size:80px 64px; }
66
+ .social-share-button-weibo { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button@2x.png')) -64px 0px no-repeat; background-size:80px 64px; }
65
67
  }
@@ -1,3 +1,3 @@
1
1
  SocialShareButton.configure do |config|
2
- config.allow_sites = %w(twitter facebook google_plus weibo douban tqq renren qq kaixin001 baidu google_bookmark delicious huaban tumblr plurk)
2
+ config.allow_sites = %w(twitter facebook google_plus weibo douban tqq renren qq kaixin001 baidu google_bookmark delicious huaban tumblr plurk pinterest)
3
3
  end
@@ -15,4 +15,5 @@ en:
15
15
  google_bookmark: Google Bookmark
16
16
  tumblr: Tumblr
17
17
  plurk: Plurk
18
+ pinterest: Pinterest
18
19
  email: Email
@@ -1,6 +1,6 @@
1
1
  'zh-CN':
2
2
  social_share_button:
3
- share_to: 分享到%{name}
3
+ share_to: 分享到 %{name}
4
4
  weibo: 新浪微博
5
5
  twitter: Twitter
6
6
  facebook: Facebook
@@ -15,4 +15,5 @@
15
15
  google_bookmark: Google 收藏
16
16
  tumblr: Tumblr
17
17
  plurk: Plurk
18
+ pinterest: Pinterest
18
19
  email: Email
@@ -1,6 +1,6 @@
1
1
  'zh-TW':
2
2
  social_share_button:
3
- share_to: 分享到%{name}
3
+ share_to: 分享到 %{name}
4
4
  weibo: 新浪微博
5
5
  twitter: Twitter
6
6
  facebook: Facebook
@@ -15,4 +15,5 @@
15
15
  google_bookmark: Google 收藏
16
16
  tumblr: Tumblr
17
17
  plurk: 噗浪
18
+ pinterest: Pinterest
18
19
  email: Email
@@ -1,3 +1,3 @@
1
1
  module SocialShareButton
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,27 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social-share-button
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-05 00:00:00.000000000 Z
11
+ date: 2014-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: coffee-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sass-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
25
53
  - !ruby/object:Gem::Version
26
54
  version: '0'
27
55
  description: Helper for add social share feature in your Rails app. Twitter, Facebook,
@@ -32,6 +60,12 @@ executables: []
32
60
  extensions: []
33
61
  extra_rdoc_files: []
34
62
  files:
63
+ - Changelogs.md
64
+ - README.md
65
+ - app/assets/images/sprites/social-share-button.png
66
+ - app/assets/images/sprites/social-share-button@2x.png
67
+ - app/assets/javascripts/social-share-button.coffee
68
+ - app/assets/stylesheets/social-share-button.scss
35
69
  - lib/generators/social_share_button/install_generator.rb
36
70
  - lib/generators/social_share_button/templates/config/initializers/social_share_button.rb
37
71
  - lib/generators/social_share_button/templates/config/locales/social_share_button.en.yml
@@ -43,14 +77,9 @@ files:
43
77
  - lib/social_share_button/helper.rb
44
78
  - lib/social_share_button/railtie.rb
45
79
  - lib/social_share_button/version.rb
46
- - app/assets/javascripts/social-share-button.coffee
47
- - app/assets/stylesheets/social-share-button.scss
48
- - README.md
49
- - Changelogs.md
50
- - app/assets/images/sprites/social-share-button.png
51
- - app/assets/images/sprites/social-share-button@2x.png
52
80
  homepage: http://github.com/huacnlee/social-share-button
53
- licenses: []
81
+ licenses:
82
+ - MIT
54
83
  metadata: {}
55
84
  post_install_message:
56
85
  rdoc_options: []
@@ -58,17 +87,17 @@ require_paths:
58
87
  - lib
59
88
  required_ruby_version: !ruby/object:Gem::Requirement
60
89
  requirements:
61
- - - '>='
90
+ - - ">="
62
91
  - !ruby/object:Gem::Version
63
92
  version: '0'
64
93
  required_rubygems_version: !ruby/object:Gem::Requirement
65
94
  requirements:
66
- - - '>='
95
+ - - ">="
67
96
  - !ruby/object:Gem::Version
68
97
  version: '0'
69
98
  requirements: []
70
99
  rubyforge_project:
71
- rubygems_version: 2.0.3
100
+ rubygems_version: 2.2.2
72
101
  signing_key:
73
102
  specification_version: 4
74
103
  summary: Helper for add social share feature in your Rails app. Twitter, Facebook,