Skip to content
Browse files

cleanup and updated readme

  • Loading branch information...
1 parent c22a1cd commit bd4d3babfc0b0cc7dc3dfa75983b747a1bd7cf4e cristi committed
Showing with 11 additions and 25 deletions.
  1. +2 −14 lib/tasks/paginate_extension_tasks.rake
  2. +0 −4 paginate_extension.rb
  3. +9 −7 readme.md
View
16 lib/tasks/paginate_extension_tasks.rake
@@ -4,24 +4,12 @@ namespace :radiant do
desc "Runs the migration of the Paginate extension"
task :migrate => :environment do
- require 'radiant/extension_migrator'
- if ENV["VERSION"]
- PaginateExtension.migrator.migrate(ENV["VERSION"].to_i)
- else
- PaginateExtension.migrator.migrate
- end
+ puts "This extension does not affect the database. Nothing done."
end
desc "Copies public assets of the Paginate to the instance public/ directory."
task :update => :environment do
- is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) }
- Dir[PaginateExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file|
- path = file.sub(PaginateExtension.root, '')
- directory = File.dirname(path)
- puts "Copying #{path}..."
- mkdir_p RAILS_ROOT + directory
- cp file, RAILS_ROOT + path
- end
+ puts "This extension has no public assets. Nothing done."
end
end
end
View
4 paginate_extension.rb
@@ -1,6 +1,3 @@
-# Uncomment this if you reference any of your controllers in activate
-# require_dependency 'application'
-
class PaginateExtension < Radiant::Extension
version "1.0"
description "Pagination with will_paginate"
@@ -17,5 +14,4 @@ def activate
def deactivate
end
-
end
View
16 readme.md
@@ -22,8 +22,7 @@ Installation
The [Radiant Paginate Extension][rpe] has one dependency: 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
@@ -31,13 +30,14 @@ or
Then install the [Radiant Paginate Extension][rpe]:
- git submodule add git://github.com/Aissac/radiant-paginate-extension.git\
- vendor/extensions/paginate
+ git clone git://github.com/Aissac/radiant-paginate-extension.git vendor/extensions/paginate
Configuration
---
Because the archived pages urls may not be processed properly, it is recommended to set `Radiant::Config['paginate.url_route']` to something like `page-`
+ Radiant['paginate.url_route'] = 'page-'
+
Usage
---
@@ -51,13 +51,15 @@ Usage
Contributors
---
-* Istvan Hoka
+* Istvan Hoka ([@ihoka][ih])
* Benny Degezelle
* Jim Gay
* Andrew Neil
* Michael Kessler
-* Cristi Duma
+* Cristi Duma ([@cristi_duma][cd])
[ai]: http://www.aissac.ro/
[rd]: http://radiantcms.org/
-[rpe]: http://blog.aissac.ro/radiant/paginate-extension/
+[rpe]: http://blog.aissac.ro/radiant/paginate-extension/
+[cd]: http://twitter.com/cristi_duma
+[ih]: http://twitter.com/ihoka

0 comments on commit bd4d3ba

Please sign in to comment.
Something went wrong with that request. Please try again.