Permalink
Browse files

first commit

  • Loading branch information...
fdv committed Oct 10, 2009
0 parents commit 53696c2e63d2851fe7bc561237b77510fa12b4bc
@@ -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.
14 README
@@ -0,0 +1,14 @@
+Typo Sliding Posts
+==================
+
+This plugin is – obviously – a carousel for Typo, the famous Ruby on Rails blogging system avaliable at http://typosphere.org
+
+Typo carousel displays featured posts at the topcontent on your blog homepage grabbing pictures from the post.
+
+Example
+=======
+
+Installing Typo Sliding Posts is pretty easy
+
+
+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 typo sliding posts 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 typo sliding posts plugin.'
+Rake::RDocTask.new(:rdoc) do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = 'TypoCarousel'
+ rdoc.options << '--line-numbers' << '--inline-source'
+ rdoc.rdoc_files.include('README')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,4 @@
+require 'typo_sliding_posts'
+
+ActionController::Base.send :include, TypoSlidingPosts
+ActionController::Base.send :helper, TypoSlidingPostsHelper
@@ -0,0 +1,9 @@
+source = File.join(RAILS_ROOT, '/vendor/plugins/typo_sliding_posts/')
+destination = File.join(RAILS_ROOT, '/public/')
+
+puts "Copying Typo sliding posts files"
+File.copy(File.join(source, 'javascripts/carousel.js'), File.join(destination, 'javascripts/carousel.js'))
+File.copy(File.join(source, 'images/carousel_previous.png'), File.join(destination, 'images/carousel_previous.png'))
+File.copy(File.join(source, 'images/carousel_next.png'), File.join(destination, 'images/carousel_next.png'))
+puts "Done"
+
Oops, something went wrong.

0 comments on commit 53696c2

Please sign in to comment.