social-share-button 0.10.0 → 1.0.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: d6f24cd57e008dd8a3b77abeed88043782f73681
4
- data.tar.gz: c1589a8fed2a3ba86ae021231f9f7639819fd1d1
3
+ metadata.gz: 0721b9ddc35d1ffad70f667daaddf283ae120665
4
+ data.tar.gz: 4334c7de87e66fab2a9137d7559245cb736ade4b
5
5
  SHA512:
6
- metadata.gz: 9a224ab851fa6d47c2c73adef6b52aa7c32fafd239d0d7c45c927b4e4dfaeeab568d91ac74277a7a156571d8055f11a79213b1a17a13b9aaeefb0e944fcb408f
7
- data.tar.gz: a5c539ec996c437f6c92d4b33ae1b766f11e0e86421a8e9bb8c420636f220815cdaded1eb0aa6af8245a2ccdcb1accca64d8e4744c9a25c090f0f88057229a39
6
+ metadata.gz: '095df690bacb728da3d0452bf5e0bb098db14fc1dcfb59a348c719ad0f1209a7490aecbc7f365c59f1fa6c7d32d2d8b740f2243f4115be38802a47b749642795'
7
+ data.tar.gz: 74bb965f0516a4a4047c2bde20801472ad3dbe1ec7d0881c76f60988de4f4fb0ffced645d2d17c31d21a63f04d67d8066908a99889eb49f05865e700d942a456
@@ -1,3 +1,8 @@
1
+ 1.0.0
2
+ -----
3
+
4
+ - Fix Facebook by use quote in url rather than description (#143)
5
+
1
6
  0.10.0
2
7
  ------
3
8
 
data/README.md CHANGED
@@ -98,6 +98,12 @@ Apart from the default title, you can specify the title for the special social n
98
98
  <%= social_share_button_tag(@post.title, 'data-twitter-title' => 'TheTitleForTwitter') %>
99
99
  ```
100
100
 
101
+ To specify sites at runtime:
102
+
103
+ ```erb
104
+ <%= social_share_button_tag(@post.title, :allow_sites => %w(twitter facebook)) %>
105
+ ```
106
+
101
107
  And you can custom rel attribute:
102
108
 
103
109
  ```erb
@@ -36,7 +36,7 @@ window.SocialShareButton =
36
36
  when "douban"
37
37
  SocialShareButton.openUrl("http://shuo.douban.com/!service/share?href=#{url}&name=#{title}&image=#{img}&sel=#{desc}", 770, 470)
38
38
  when "facebook"
39
- SocialShareButton.openUrl("http://www.facebook.com/sharer/sharer.php?u=#{url}&display=popup&title=#{title}&description=#{desc}", 555, 400)
39
+ SocialShareButton.openUrl("http://www.facebook.com/sharer/sharer.php?u=#{url}&display=popup&quote=#{desc}", 555, 400)
40
40
  when "qq"
41
41
  SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=#{url}&title=#{title}&pics=#{img}&summary=#{desc}&site=#{appkey}")
42
42
  when "google_plus"
@@ -1,3 +1,3 @@
1
1
  module SocialShareButton
2
- VERSION = '0.10.0'
2
+ VERSION = '1.0.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.10.0
4
+ version: 1.0.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-20 00:00:00.000000000 Z
11
+ date: 2017-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  requirements: []
105
105
  rubyforge_project:
106
- rubygems_version: 2.6.8
106
+ rubygems_version: 2.6.13
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: Helper for add social share feature in your Rails app. Twitter, Facebook,