Skip to content

Commit

Permalink
Add Google Bookmark; Version 0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Aug 10, 2012
1 parent 2e5111e commit 9080542
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 5 deletions.
9 changes: 9 additions & 0 deletions Changelogs.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
== 0.0.8

* Add Google Bookmark;
* Improve Google+ icon.

== 0.0.7

* Douban, TQQ add image support.

== 0.0.6

* Transparent icon fix
Expand Down
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ source "http://rubygems.org"
# Specify your gem's dependencies in social-share.gemspec
gemspec

gem "sprite-factory", "1.4.1"
gem "sprite-factory", "1.4.1"
gem "chunky_png"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This is a gem to helper you quick create a share feature in you Rails apps.
* Renren
* Hi Baidu
* Kaixin001
* Google Bookmark

## Screenshot

Expand Down
Binary file removed lib/assets/images/.DS_Store
Binary file not shown.
Binary file modified lib/assets/images/sprites/social-share-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lib/assets/images/sprites/social-share-button/google_plus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions lib/assets/javascripts/social-share-button.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ window.SocialShareButton =
SocialShareButton.openUrl("http://widget.renren.com/dialog/share?resourceUrl=#{url}&title=#{title}&description=")
when "google_plus"
SocialShareButton.openUrl("https://plus.google.com/share?url=#{url}&t=#{title}")
when "google_bookmark"
SocialShareButton.openUrl("https://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=#{url}&title=#{title}")
false
4 changes: 2 additions & 2 deletions lib/assets/stylesheets/social-share-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
lib/assets/images/sprites/social-share-button/email.png (16x16)
lib/assets/images/sprites/social-share-button/facebook.png (16x16)
lib/assets/images/sprites/social-share-button/flickr.png (16x16)
lib/assets/images/sprites/social-share-button/google.png (16x16)
lib/assets/images/sprites/social-share-button/google_bookmark.png (16x16)
lib/assets/images/sprites/social-share-button/google_plus.png (16x16)
lib/assets/images/sprites/social-share-button/kaixin001.png (16x16)
lib/assets/images/sprites/social-share-button/qq.png (16x16)
Expand All @@ -32,7 +32,7 @@
.social-share-button-email { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -16px -16px no-repeat }
.social-share-button-facebook { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -32px 0px no-repeat }
.social-share-button-flickr { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -32px -16px no-repeat }
.social-share-button-google { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) 0px -32px no-repeat }
.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 }
.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 }
.social-share-button-kaixin001 { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -32px -32px no-repeat }
.social-share-button-qq { display:inline-block; width: 16px; height: 16px; background: url(image-path('sprites/social-share-button.png')) -48px 0px no-repeat }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SocialShareButton.configure do |config|
config.allow_sites = %w(twitter facebook google_plus weibo douban tqq renren qq kaixin001 baidu)
config.allow_sites = %w(twitter facebook google_plus weibo douban tqq renren qq kaixin001 baidu google_bookmark)
end
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ en:
kaixin001: Kaixin001.com
renren: Renren.com
google_plus: Google+
google_bookmark: Google Bookmark
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
kaixin001: 开心网
renren: 人人网
google_plus: Google+
google_bookmark: Google 收藏
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
kaixin001: 開心網
renren: 人人網
google_plus: Google+
google_bookmark: Google 收藏
2 changes: 1 addition & 1 deletion lib/social_share_button/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module SocialShareButton
VERSION = "0.0.7"
VERSION = "0.0.8"
end
Binary file modified psd/icon_templet.psd
Binary file not shown.

0 comments on commit 9080542

Please sign in to comment.