social-share-button 0.1.0 → 0.1.1

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.
data/Changelogs.md CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.1.1
2
+
3
+ * Add delicious.
4
+ * Use new version of Weibo, Douban share URL to speed up page open.
5
+
1
6
  == 0.1.0
2
7
 
3
8
  * Retina support.
data/README.md CHANGED
@@ -15,6 +15,7 @@ This is a gem to helper you quick create a share feature in you Rails apps.
15
15
  * Hi Baidu
16
16
  * Kaixin001
17
17
  * Google Bookmark
18
+ * Delicious
18
19
 
19
20
  ## Screenshot
20
21
 
@@ -12,11 +12,11 @@ window.SocialShareButton =
12
12
  url = encodeURIComponent(location.href)
13
13
  switch site
14
14
  when "weibo"
15
- SocialShareButton.openUrl("http://v.t.sina.com.cn/share/share.php?url=#{url}&pic=#{img}&title=#{title}&content=utf-8")
15
+ SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}")
16
16
  when "twitter"
17
17
  SocialShareButton.openUrl("https://twitter.com/home?status=#{title}: #{url}")
18
18
  when "douban"
19
- SocialShareButton.openUrl("http://www.douban.com/recommend/?url=#{url}&title=#{title}&image=#{img}")
19
+ SocialShareButton.openUrl("http://shuo.douban.com/!service/share?href=#{url}&name=#{title}&image=#{img}")
20
20
  when "facebook"
21
21
  SocialShareButton.openUrl("http://www.facebook.com/sharer.php?t=#{title}&u=#{url}")
22
22
  when "qq"
@@ -24,7 +24,7 @@ window.SocialShareButton =
24
24
  when "tqq"
25
25
  SocialShareButton.openUrl("http://share.v.t.qq.com/index.php?c=share&a=index&url=#{url}&title=#{title}&pic=#{img}")
26
26
  when "baidu"
27
- SocialShareButton.openUrl("http://apps.hi.baidu.com/share/?url=#{url}&title=#{title}&content=")
27
+ SocialShareButton.openUrl("http://hi.baidu.com/pub/show/share?url=#{url}&title=#{title}&content=")
28
28
  when "kaixin001"
29
29
  SocialShareButton.openUrl("http://www.kaixin001.com/rest/records.php?url=#{url}&content=#{title}&style=11&pic=#{img}")
30
30
  when "renren"
@@ -33,4 +33,6 @@ window.SocialShareButton =
33
33
  SocialShareButton.openUrl("https://plus.google.com/share?url=#{url}&t=#{title}")
34
34
  when "google_bookmark"
35
35
  SocialShareButton.openUrl("https://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=#{url}&title=#{title}")
36
+ when "delicious"
37
+ SocialShareButton.openUrl("http://www.delicious.com/save?url=#{url}&title=#{title}&jump=yes&pic=#{img}")
36
38
  false
@@ -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)
2
+ config.allow_sites = %w(twitter facebook google_plus weibo douban tqq renren qq kaixin001 baidu google_bookmark delicious huaban)
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module SocialShareButton
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-21 00:00:00.000000000 Z
12
+ date: 2012-12-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails