social-share-button 0.10.0 → 1.0.0
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +6 -0
- data/app/assets/javascripts/social-share-button.coffee +1 -1
- data/lib/social_share_button/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0721b9ddc35d1ffad70f667daaddf283ae120665
|
|
4
|
+
data.tar.gz: 4334c7de87e66fab2a9137d7559245cb736ade4b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '095df690bacb728da3d0452bf5e0bb098db14fc1dcfb59a348c719ad0f1209a7490aecbc7f365c59f1fa6c7d32d2d8b740f2243f4115be38802a47b749642795'
|
|
7
|
+
data.tar.gz: 74bb965f0516a4a4047c2bde20801472ad3dbe1ec7d0881c76f60988de4f4fb0ffced645d2d17c31d21a63f04d67d8066908a99889eb49f05865e700d942a456
|
data/CHANGELOG.md
CHANGED
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&
|
|
39
|
+
SocialShareButton.openUrl("http://www.facebook.com/sharer/sharer.php?u=#{url}&display=popup"e=#{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"
|
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.
|
|
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-
|
|
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.
|
|
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,
|