diff options
author | jlam <jlam> | 2008-04-29 18:02:05 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-04-29 18:02:05 +0000 |
commit | c629e6fe99e99ab528aa2a0bcd2e419f2e7086ef (patch) | |
tree | 8dd78e58ae0315873c14d0a42d80fe66e3d8a702 /textproc | |
parent | 1b7ee9c69f61ad691504310f8f2e7013a3d168d3 (diff) | |
download | pkgsrc-c629e6fe99e99ab528aa2a0bcd2e419f2e7086ef.tar.gz |
Initial import of ruby18-will-paginate-2.2.2 as
textproc/ruby-will-paginate.
Pagination is just limiting the number of records displayed. Why should
you let it get in your way while developing, then? This library makes
magic happen. Did you ever want to be able to do just this on a model:
@posts = Post.paginate :page => params[:page],
:order => 'created_at DESC'
and then render the page links with a single view helper? Well, now
you can.
<%= will_paginate @posts %>
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/ruby-will-paginate/DESCR | 11 | ||||
-rw-r--r-- | textproc/ruby-will-paginate/Makefile | 14 | ||||
-rw-r--r-- | textproc/ruby-will-paginate/PLIST | 52 | ||||
-rw-r--r-- | textproc/ruby-will-paginate/distinfo | 5 |
4 files changed, 82 insertions, 0 deletions
diff --git a/textproc/ruby-will-paginate/DESCR b/textproc/ruby-will-paginate/DESCR new file mode 100644 index 00000000000..e9a6e652672 --- /dev/null +++ b/textproc/ruby-will-paginate/DESCR @@ -0,0 +1,11 @@ +Pagination is just limiting the number of records displayed. Why should +you let it get in your way while developing, then? This library makes +magic happen. Did you ever want to be able to do just this on a model: + + @posts = Post.paginate :page => params[:page], + :order => 'created_at DESC' + +and then render the page links with a single view helper? Well, now +you can. + + <%= will_paginate @posts %> diff --git a/textproc/ruby-will-paginate/Makefile b/textproc/ruby-will-paginate/Makefile new file mode 100644 index 00000000000..f7971c8f182 --- /dev/null +++ b/textproc/ruby-will-paginate/Makefile @@ -0,0 +1,14 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/04/29 18:02:05 jlam Exp $ + +DISTNAME= will_paginate-2.2.2 +PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/_/-/} +CATEGORIES= textproc + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://github.com/mislav/will_paginate/wikis +COMMENT= Pagination for views of model queries + +GEM_BUILD= gemspec + +.include "../../misc/rubygems/rubygem.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/ruby-will-paginate/PLIST b/textproc/ruby-will-paginate/PLIST new file mode 100644 index 00000000000..a07b20ec37d --- /dev/null +++ b/textproc/ruby-will-paginate/PLIST @@ -0,0 +1,52 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/04/29 18:02:05 jlam Exp $ +${GEM_HOME}/cache/will_paginate-${PKGVERSION}.gem +${GEM_LIBDIR}/CHANGELOG +${GEM_LIBDIR}/LICENSE +${GEM_LIBDIR}/README.rdoc +${GEM_LIBDIR}/Rakefile +${GEM_LIBDIR}/examples/apple-circle.gif +${GEM_LIBDIR}/examples/index.haml +${GEM_LIBDIR}/examples/index.html +${GEM_LIBDIR}/examples/pagination.css +${GEM_LIBDIR}/examples/pagination.sass +${GEM_LIBDIR}/init.rb +${GEM_LIBDIR}/lib/will_paginate.rb +${GEM_LIBDIR}/lib/will_paginate/array.rb +${GEM_LIBDIR}/lib/will_paginate/collection.rb +${GEM_LIBDIR}/lib/will_paginate/core_ext.rb +${GEM_LIBDIR}/lib/will_paginate/finder.rb +${GEM_LIBDIR}/lib/will_paginate/named_scope.rb +${GEM_LIBDIR}/lib/will_paginate/named_scope_patch.rb +${GEM_LIBDIR}/lib/will_paginate/version.rb +${GEM_LIBDIR}/lib/will_paginate/view_helpers.rb +${GEM_LIBDIR}/test/boot.rb +${GEM_LIBDIR}/test/collection_test.rb +${GEM_LIBDIR}/test/console +${GEM_LIBDIR}/test/database.yml +${GEM_LIBDIR}/test/finder_test.rb +${GEM_LIBDIR}/test/fixtures/admin.rb +${GEM_LIBDIR}/test/fixtures/developer.rb +${GEM_LIBDIR}/test/fixtures/developers_projects.yml +${GEM_LIBDIR}/test/fixtures/project.rb +${GEM_LIBDIR}/test/fixtures/projects.yml +${GEM_LIBDIR}/test/fixtures/replies.yml +${GEM_LIBDIR}/test/fixtures/reply.rb +${GEM_LIBDIR}/test/fixtures/schema.rb +${GEM_LIBDIR}/test/fixtures/topic.rb +${GEM_LIBDIR}/test/fixtures/topics.yml +${GEM_LIBDIR}/test/fixtures/user.rb +${GEM_LIBDIR}/test/fixtures/users.yml +${GEM_LIBDIR}/test/helper.rb +${GEM_LIBDIR}/test/lib/activerecord_test_case.rb +${GEM_LIBDIR}/test/lib/activerecord_test_connector.rb +${GEM_LIBDIR}/test/lib/load_fixtures.rb +${GEM_LIBDIR}/test/lib/view_test_process.rb +${GEM_LIBDIR}/test/view_test.rb +${GEM_HOME}/specifications/will_paginate-${PKGVERSION}.gemspec +@dirrm ${GEM_LIBDIR}/test/lib +@dirrm ${GEM_LIBDIR}/test/fixtures +@dirrm ${GEM_LIBDIR}/test +@dirrm ${GEM_LIBDIR}/lib/will_paginate +@dirrm ${GEM_LIBDIR}/lib +@dirrm ${GEM_LIBDIR}/examples +@dirrm ${GEM_LIBDIR} diff --git a/textproc/ruby-will-paginate/distinfo b/textproc/ruby-will-paginate/distinfo new file mode 100644 index 00000000000..02ffb34d36e --- /dev/null +++ b/textproc/ruby-will-paginate/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/04/29 18:02:05 jlam Exp $ + +SHA1 (will_paginate-2.2.2.gem) = f35bd939f69a09594f780bad3650dbbdc22ed046 +RMD160 (will_paginate-2.2.2.gem) = c9c32c8283744d27626d942a26dcaadf471662b3 +Size (will_paginate-2.2.2.gem) = 34816 bytes |