Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 2d1f7758ef36ce97ebb9a350f25d12220acc95ea @fdv committed Mar 22, 2009
Showing with 444 additions and 0 deletions.
  1. +20 −0 MIT-LICENSE
  2. +8 −0 README
  3. +23 −0 Rakefile
  4. BIN images/blinkbits.png
  5. BIN images/blinklist.png
  6. BIN images/bloglines.png
  7. BIN images/blogmemes.png
  8. BIN images/bluedot.png
  9. BIN images/bmarks.png
  10. BIN images/bumpzee.png
  11. BIN images/buzz.png
  12. BIN images/comments.png
  13. BIN images/connotea.png
  14. BIN images/delicious.png
  15. BIN images/delirious.png
  16. BIN images/digg.png
  17. BIN images/diigo.png
  18. BIN images/dotnetkicks.png
  19. BIN images/dzone.png
  20. BIN images/facebook.png
  21. BIN images/fark.png
  22. BIN images/feedmelinks.png
  23. BIN images/fleck.png
  24. BIN images/friendsite.png
  25. BIN images/furl.png
  26. BIN images/google.png
  27. BIN images/kaboodle.png
  28. BIN images/linkagogo.png
  29. BIN images/magnolia.png
  30. BIN images/maple.png
  31. BIN images/misterwong.png
  32. BIN images/netscape.png
  33. BIN images/netvouz.png
  34. BIN images/newsvine.png
  35. BIN images/plugim.png
  36. BIN images/popcurrent.png
  37. BIN images/rawsugar.png
  38. BIN images/reddit.png
  39. BIN images/rojo.png
  40. BIN images/shoutwire.png
  41. BIN images/simpy.png
  42. BIN images/skirt.png
  43. BIN images/slashdot.png
  44. BIN images/sphereit.png
  45. BIN images/spurl.png
  46. BIN images/squidoo.png
  47. BIN images/stumbleupon.png
  48. BIN images/taggly.png
  49. BIN images/tailrank.png
  50. BIN images/technorati.png
  51. BIN images/template.png
  52. BIN images/thisnext.png
  53. BIN images/tipd.png
  54. BIN images/webride.png
  55. BIN images/wists.png
  56. BIN images/yahoo.png
  57. +5 −0 init.rb
  58. +17 −0 install.rb
  59. +323 −0 lib/sites_EN.xml
  60. +32 −0 lib/social_bookmark.rb
  61. +4 −0 tasks/social_bookmark_tasks.rake
  62. +8 −0 test/social_bookmark_test.rb
  63. +3 −0 test/test_helper.rb
  64. +1 −0 uninstall.rb
@@ -0,0 +1,20 @@
+Copyright (c) 2009 Frédéric de Villamil
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8 README
@@ -0,0 +1,8 @@
+SocialBookmark
+==============
+
+Social Bookmark is a rails port of Wordpress Social Bookmark plugin by Apostolos Dountsis.
+
+
+
+Copyright (c) 2009 Frédéric de Villamil, released under the MIT license
@@ -0,0 +1,23 @@
+require 'rake'
+require 'rake/testtask'
+require 'rake/rdoctask'
+
+desc 'Default: run unit tests.'
+task :default => :test
+
+desc 'Test the social_bookmark plugin.'
+Rake::TestTask.new(:test) do |t|
+ t.libs << 'lib'
+ t.libs << 'test'
+ t.pattern = 'test/**/*_test.rb'
+ t.verbose = true
+end
+
+desc 'Generate documentation for the social_bookmark plugin.'
+Rake::RDocTask.new(:rdoc) do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = 'SocialBookmark'
+ rdoc.options << '--line-numbers' << '--inline-source'
+ rdoc.rdoc_files.include('README')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
@@ -0,0 +1,5 @@
+# Include hook code here
+require 'social_bookmark'
+
+ActionController::Base.send :include, SocialBookmark
+ActionController::Base.send :helper, SocialBookmarkHelper
@@ -0,0 +1,17 @@
+# Install hook code here
+puts "** Installing Social Bookmarks Plugin...."
+
+config = File.join(RAILS_ROOT, '/vendor/plugins/social_bookmark/lib/sites_EN.xml')
+dest = File.join(RAILS_ROOT, '/config/sites_EN.xml')
+puts "** Copying config file into #{dest} ...."
+FileUtils.cp(config, dest) unless File.exists? dest
+
+images = File.join(RAILS_ROOT, '/vendor/plugins/social_bookmark/images/')
+dest = File.join(RAILS_ROOT, '/public/images/social_bookmark/')
+
+unless File.exists? dest
+ FileUtils.cd images
+ FileUtils.cp_r Dir.glob('*.png'), dest, :noop => true, :verbose => true
+end
+
+puts "** Installation finished, edit your configuration file to select your bookmark list and restart your application afterwards ...."
Oops, something went wrong.

0 comments on commit 2d1f775

Please sign in to comment.