./textproc/ruby-will-paginate, Pagination for views of model queries

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.3.0, Package name: ruby26-will-paginate-3.3.0, Maintainer: pkgsrc-users

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 %>


Required to run:
[lang/ruby26-base]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 31285017616f8de8bf4f5836ebf8f1ff15e29cd5
RMD160: 8ccaa5167e7db9e17f7091e9d2353d8f9131bc42
Filesize: 37 KB

Version history: (Expand)


CVS history: (Expand)


   2020-03-24 19:18:23 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
textproc/ruby-will-paginate: update to 3.3.0

Update ruby-will-paginate to 3.3.0.

3.3.0 (2020-02-26)

* ActiveRecord: Avoid a count query in empty? #593

* Support MS SQL Server #540

* Avoid Ruby 2.7 warnings about keyword arguments #609

* Breaking: drop Ruby 1.9 compatibility

3.2.1 (2019-10-15)

* Ensure PageNumber is serialized as JSON number

3.2.0 (2019-10-09)

* Performance: avoid extending Numeric with PageNumber logic

* BREAKING: Integer === page_number is no longer true.

* Make pagination markup more accessible:

	- container div now has role="navigation";
	- container div now has aria-label="Pagination", translatable via
          will_paginate.container_aria_label i18n key;
	- individual page links now have aria-label="Page {N}", translatable
          via will_paginate.page_aria_label i18n key;
	- current page now has aria-current="page".

* Add support for will_paginate view helpers in Hanami View

* Add total_entries support for Mongoid

* Rails: avoid circular require warning

* Rails: fix serving HTTP 404s for WillPaginate::InvalidPage exceptions

3.1.8 (2019-08-19)

* Avoid warnings on Ruby 2.7

3.1.7 (2019-03-18)

* Rails 5.2.2.1 & 6.0.0 compatibility
   2017-07-31 00:32:28 by Thomas Klausner | Files touched by this commit (229)
Log message:
Switch github HOMEPAGEs to https.
   2017-06-10 18:13:48 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-will-paginate to 3.1.6.

3.1.6							2017/06/07

* Reference Integer instead of Fixnum to avoid Ruby 2.4 deprecation warning.
   2016-10-20 17:12:21 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-will-paginate to 3.1.5.

3.1.5

    * Avoid Rails 5 deprecation warning about original_exception
    * No longer generates <a rel="start"> for first page link \ 
since "start"
      is an invalid rel value

3.1.4 (seems not released)

3.1.3

    * Rails 5 compatibility for inheriting query params in pagination links
    * Fix locale load path so that application can override will_paginate's
      built-in translations.

3.1.2

    * Further fix security vulnerability when generating pagination URLs in
      Rails.

3.1.1

    * Fixed security vulnerability when generating pagination URLs in Rails.

3.1.0

    * Rails 5.0 support

    * Drop support for old Active Record finder params to paginate():

	# now unsupported:
	User.paginate(:page => 1, :order => 'created_at DESC', :conditions => ...)

	# convert to Arel syntax instead:
	User.order('created_at DESC').where(...).paginate(:page => 1)
	# or, even better:
	User.order('created_at DESC').where(...).page(1)

    * Add support for pagination with Mongoid
   2016-03-15 17:00:58 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
Update ruby-will-paginate to 3.1.0.

* Rails 5.0 support

* Drop support for old Active Record finder params to paginate():

    # now unsupported:
    User.paginate(:page => 1, :order => 'created_at DESC', :conditions \ 
=> ...)

    # convert to Arel syntax instead:
    User.order('created_at DESC').where(...).paginate(:page => 1)
    # or, even better:
    User.order('created_at DESC').where(...).page(1)

* Add support for pagination with Mongoid
   2015-11-04 03:00:17 by Alistair G. Crooks | Files touched by this commit (797)
Log message:
Add SHA512 digests for distfiles for textproc category

Problems found locating distfiles:
	Package cabocha: missing distfile cabocha-0.68.tar.bz2
	Package convertlit: missing distfile clit18src.zip
	Package php-enchant: missing distfile php-enchant/enchant-1.1.0.tgz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2015-02-05 16:21:40 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
Update ruby-will-paginate to 3.0.7.

Improve compatibility with newer rails.  Please refer
<https://github.com/mislav/will_paginate/commits/3-0-stable> in detail.
   2013-12-29 13:20:41 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
Update ruby-will-paginate to 3.0.5, fixing security problem of CVE-2013-6459.

* important security fix that prevents XSS in generated pagination links
* always call html_safe if available on will_paginate result
* exclude reorder for count queries