From b9d561b4b3d8754ae294fda415f7009dfa966512 Mon Sep 17 00:00:00 2001 From: cristi Date: Thu, 15 Oct 2009 21:06:38 +0300 Subject: [PATCH] cleanup and update readme --- README.md | 20 ++++++++++++-------- lib/tasks/tiny_paper_extension_tasks.rake | 4 ++-- tiny_paper_extension.rb | 1 - 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 469d399..75f31a5 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,11 @@ Tiny-Paper Extension has two dependencies, the Paperclipped extension and the wi Install the [Paperclipped Extension][paperclipped] - git submodule add git://github.com/kbingman/paperclipped.git\ - vendor/extensions/paperclipped + git clone git://github.com/kbingman/paperclipped.git vendor/extensions/paperclipped And the will\_paginate gem/plugin: - git submodule add git://github.com/mislav/will_paginate.git\ - vendor/plugins/will_paginate + git clone git://github.com/mislav/will_paginate.git vendor/plugins/will_paginate or @@ -39,13 +37,11 @@ or You may also want to install the [Settings Extension][settings] since it provides a very convenient way to configure thumbnail sizes for image assets: - git submodule add git://github.com/Squeegy/radiant-settings.git\ - vendor/extensions/settings + git clone git://github.com/Squeegy/radiant-settings.git vendor/extensions/settings Finally, install the [Tiny-Paper Extension][tp] - git submodule add git://github.com/Aissac/radiant-tiny-paper-extension.git\ - vendor/extensions/tiny_paper + git clone git://github.com/Aissac/radiant-tiny-paper-extension.git vendor/extensions/tiny_paper For more information about installing and configuring Settings and Paperclipped check the extensions official pages. @@ -63,6 +59,14 @@ The last step is to update the Tiny-Paper assets: rake radiant:extensions:tiny_paper:update +###Note + +The git branches hold stable versions of the extension for older version of Radiant CMS. To checkout one of these branches: + + git clone git://github.com/Aissac/radiant-tiny-paper-extension.git vendor/extensions/tiny_paper + cd vendor/extensions/tiny_paper + git checkout -b origin/ + Usage --- diff --git a/lib/tasks/tiny_paper_extension_tasks.rake b/lib/tasks/tiny_paper_extension_tasks.rake index 5a05e2b..f4a8ad3 100644 --- a/lib/tasks/tiny_paper_extension_tasks.rake +++ b/lib/tasks/tiny_paper_extension_tasks.rake @@ -14,8 +14,8 @@ namespace :radiant do Dir[TinyPaperExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file| path = file.sub(TinyPaperExtension.root, '') directory = File.dirname(path) - mkdir_p RAILS_ROOT + directory - cp file, RAILS_ROOT + path + mkdir_p RAILS_ROOT + directory, :verbose => false + cp file, RAILS_ROOT + path, :verbose => false end end end diff --git a/tiny_paper_extension.rb b/tiny_paper_extension.rb index e15840e..212e04b 100644 --- a/tiny_paper_extension.rb +++ b/tiny_paper_extension.rb @@ -1,4 +1,3 @@ -# Uncomment this if you reference any of your controllers in activate require_dependency 'application_controller' class TinyPaperExtension < Radiant::Extension