icon | layout | visibility |
---|---|---|
versions-24 |
page |
hidden |
- Changed default for :meilisearch_search method to always defined :ms_search method
- Adjusted Psych::VERSION condition to avoid deprecations
- Improvement of search extras: (closes #367) (closes #369)
- Added DEFAULT[:*_search] variables used to call the original :search method
- Deprecated and renamed DEFAULT[:_search_method] to DEFAULT[:_pagy_search]
- Updated config, docs and CHANGELOG deprecations
- Fix for wrong calculation of :page in Pagy.new_from_meilisearch (closes #368)
- Faster assignment of javascript path
- Simplified webpack config, added rollup config and normalized doc
- Better javascript doc (closes #365)
- Added specific webpack javascript configuration info; a few minor doc adjustments
- Added specific webpack javascript configuration info
- Update javascript.md (#362)
- Fix for too generalized html_escape in pagy_url_for. (closes #363)
- Docs updates
- Added info about using pagy-module.js with importmap
- Bundle and npm update
- Fix for non escaped query strings in links
- Small improvements in src files
- Added legacy methods to use the javascript files
- Added missing require in docs
- Updated docs with the proper way to use pagy with esbuild
- Docs improvements
- Improved the javascript files docs and moved into the lib/javascripts/README.md file
- Updated build.sh to set window.Pagy in pagy-dev.js
- Update pagy.md (#360)
- Minor - fix syntax highlighting (#361)
- Updated info about the current way to use pagy.js with jsbuilder-rails/esbundle
- Npm and bundle update
- Fix and refactoring of pagy calendar calculation of local time (closes #358):
- The
Pagy::Calendar::*
classes require ActiveSupport (temporarily added activesupport dependency that will e replaced in 6.0) - The
:period
items can beTime
orTimeWithZone
objects (which work across DST ranges) - Deprecated use of
:offset
to set the first weekday, in favour ofDate.beginning_of_week
(default to:monday
) - Added DST specific tests
- Fix for calculation of label quarter
- Updated docs and tests
- The
- Fix for wrong offset in gearbox extra (closes #356)
- Reduced the public interface of pagy.js and relative files to just
version
andinit()
- Add Ruby 3.1 to CI (#354)
- Shorter warning messages and minified pagy.js
- Fix for wrong decoding of non latin charsets
- The JSON in data-pagy attributes is base64 encoded: it is smaller than HTML escaped and it avoids crawlers to follow look-alike links
- Removed redundant PagyJSON type
- Updated Gemfile.lock and package-lock.json
- Broader browserslist and better doc for javascript
- Updated build.sh
- Improvement of pagy.ts:
- Moved warn() out of init()
- More inclusive try block
- Simplified rjsObserver function
- Replaced getOwnPropertyNames with keys
- Fix for missing entry in CHANGELOG.md
- Fix for unwanted offset in source map data
- Added parcel-plugin-nuke-dist
- Renamed pagy.mjs -> pagy-module.js; added TypeScript declaration file and build.sh
- npm update
- Simper pagy-dev.js; added pagy.mjs module
- Updated .eslintrc.json and package.json files
- Simplified keyword naming
- Better compilation and development support for pagy.js. Replaced babel with parcel.
- Simpler syntax for nav js helpers
- Added input e2e test file
- Simpler abstraction of input based js helpers
- Bundle and npm update
- TypeScript/Javascript improvements:
- More efficient handling of responsive *nav_js helpers
- Replaced window resize event listener with ResizeObserver
- More robust input based js helpers (catching possible invalid user input)
- Improved typing, function naming
- Added error catching
- Improvement and fixes for client-side related structure
- Replaced e2e/cy script with a couple of npm scripts backed by the start-server-and-test
- Added trim test for items_selector_js; cleanup of e2e dir
- Normalized json files indentation
- Added trim to e2e tests
- Reorganized cypress tests: faster and more accurate
- Simpler pagy.ts
- Better doc for e2e related commands in docker/README.md
- Updated package-lock.json and improved ci-cache.sh
- Used better syntax and code style in typescript files
- Updated copyright year
- Refactoring of typescript related files and dirs:
- Moved e2e dir in the project root
- Added typescript linting plugins and configuration
- Converted all the e2e test to typescript
- Updated Docker, VSC and .idea configurations
- Reorganized TypeScript/JavaScript with npm workspaces and better script naming
- Fix typo in gemspec
- Better typescript configuration with source maps and declrations
- GitHub Actions: added quotes to version ruby 3.0
- Added typescript + babel environment for better pagy.js
- Updated e2e environment
- Updated gemfiles
- Fix for support doc snippets and other typos
- Minor update of gemfiles and docs
- Added more gemspec metadata entries (closes #351)
- Docs improvements
- Added **_ to series and sequels
- Updated rematch and gemfiles
- Updated release-gem.yml workflow
- Improved a few code comments; added post link in README
- Full name for translate, aliased as t
- Added check for no calendar units in pagy_calendar configuration
- Updated gemfiles
- Small docs layout adjustment
- Updated RM run configurations
- Fix for missing innerHTML reset, unintentionally committed during a cleanup (closes #350)
- Updated gemfiles, docs and comments
- Improved readability and efficiency of calendar files
- Fix for English spelling in local variable name
- Updated pagy.manifest for Tamil locale
- Add Tamil (ta) translation (#349)
- Internal changes in calendar files:
- Simpler calculations for month mixin
- Normalized naming of non-api methods
- Better comments
- Pagy::I18n: small performance improvement
- Docs reorganization
- Update paths_ignore for skip CI and docs
- Updated cypress and bundler
- Improved efficiency of unit labelling and support for custom calendar unit sub formats
- Added missing initializer default for calendar quarter and missing doc for custom units
- Updated gemfiles
- Updated docs
- Added calendar quarter tests
- Internal calendar refactoring to allow custom units; added quarter unit
- Docs updates
- upgrade bootstrap template navs: call pagy_link_proc with link_extra key (#348)
- Renamed internal #time_for -> #start_for
- Docs fixes and improvements
- Updated cypress and related packages
- Calendar API: FINAL breaking changes (stable from now on):
- Refactoring of calendar classes and variables:
- Moved calendar defaults from
Pagy::DEFAULT
to class-specificPagy::Calendar::*::DEFAULT
- Renamed variables:
:minmax
->:period
:time_order
->:order
:week_offset
->:offset
:*_format
->:format
- Returning local time instead of UTC time for the utc accessors, now renamed:
#utc_from
->#from
(usefrom.utc
if you need it)#utc_to
->#to
(useto.utc
if you need it)
- Inverted the logic for the
:skip
key in the#pagy_calendar
conf, now renamed::skip
->:active
- Renamed methods:
#pagy_calendar_minmax
->#pagy_calendar_period
#pagy_calendar_filtered
->#pagy_calendar_filter
- Added alternative way to delegate the localization to i18n without the i18n extra
- Updated
pagy_calendar_app.ru
- Fix for wrong reordering in
:desc
order - Documentation fixes and improvements
- Removed the warning for the API changes: the API is stable after these changes
- Calendar API breaking changes for refactoring of
Pagy::Calendar
and calendar extra:- Added complete compatibility with all the backend extras
- Simpler usage with automatic handling of pagy objects
- Less variables and simpler requirements for the methods to implement
- Updated gemfiles
- The localize method overridden by the i18n extra must receive a format
- Series and sequels use keyword arguments and pagy_*nav methods accepts a size keyword argument
- Docs improvements
- Removed unnecessary empty section in calendar docs
- Fixes for typos and misalignment
- Added screenshot to the calendar extra (closes #346)
- Added bump.sh script to bump the version in multiple files; check for consistency and optionally commit the changes
- Minor fixes
- Changelog improvements
- Reversed CHANGELOG (closes #345)
- Calendar I18n small internal renaming and docs improvements
- Implemented localization of time labels through the i18n extra delegation
- Renamed internal module and files of SharedExtra to FrontendHelpers
- Added support for
*nav_js
to Calendar - Simplified page labelling, moved into the pagy classes and removed frontend methods
- Deprecated
pagy_massage_params
: use the :params variable set to a Proc that does the same, but per instance - Added apps README
- Completed overflow fix for pagy Countless
- Fix for overflow :empty_page in regular Pagy instances, not returning an empty page
- docs: add tutorial, simplify header (#343)
- Refactoring of rails_inline_input.rb (include and close #342)
- Fix for missing defined?(Calendar) checks; small simplification in headers extra
- Calendar docs improvements and fixes
- Reorganization of mock collection classes; enabled rubocop layout in tests
- Small refactoring of the overview extra
- A few improvements for the Calendar pagination; added the current_page_label method
- Small changes in code; updated gemfiles, tests and docs
- Implemented calendar extra to paginate a Time periods by unit (year, month, week or day)
- Added pagy_labeler frontend method overridable for changing the link text from a simple page number to any arbitrary string
- Enabled rubocop Style/Documentation cop
- Updated npm modules and gemfiles
- Docker better mounts
- Used gem-generic release-gem action
- Added single action standalone rails_inline_output.rb
- Small improvements in code and docs
- Fix for rails problem with internal params in pagy URL (closes #341)
- Documentation improvements
- A few details tag in the README should be opened by default
- Refactoring of pagy_url_for and relative test:
- Fix for ignoring the items_extra variable
- Replaced request.GET with request.params to enable POST pagination
- Refactoring of Mock test classes for better handling of params
- This reverts commit 1d77e672d5b7813108b40c13ca93fdec045f4c03. Generating the URL by using the application params method breakes rails apps because it requires manual changes in the apps.
- Fix and refactoring of pagy_url_for and relative test:
- Fix for ignoring the params not coming from the request
- Fix for ignoring the items_extra variable
- Refactoring of Mock test classes for better handling of params
- Improved code comments, formatting and docs fixes
- Countless extra: simplified code, internal renaming of locals and docs update
- Updated docs and issue templates
- Added cypress-dark theme to e2e test
- Refactoring of coverage to include 100% of line and condition branches covered
- Simplification of metadata extra
- Refactoring of exceptions
- Added CHANGELOG_LEGACY
Pagy 4 dropped the compatibility for old ruby versions >2.5
and started to refactor the code using more modern syntax and paradigms and better performance. It deprecated the legacy ones, printing deprecation warnings and upgrading instruction in the log, but still supporting its legacy API. Pagy 5.0.0 cleans up and removes all that transitional support code.
The changes for upgrading your app cannot be fixed with simple search and replace, but fear not! Fixing them should just take a few minutes with the following steps:
- Upgrade to the latest version of pagy 4
- Run your tests or app
- Check the log for any deprecations message starting with '[PAGY WARNING]'
- Update your code as indicated by the messages
- Ensure that the log is now free from warnings
- Upgrade to pagy 5
FYI: Here is the list of the deprecations that are not supported anymore:
Pagy::VARS[:anchor]
is nowPagy::DEFAULT[:fragment]
- The argument order in
pagy_url_for(page, pagy)
is now inverted:pagy_url_for(pagy, page)
The following optional positional arguments are passed with keywords arguments in all the pagy helpers:
- The
id
html attribute string with thepagy_id
keyword - The
url|absolute
flag with theabsolute
keyword - The
item_name
string with theitem_name
keyword - The
extra|link_extra
string with thelink_extra
keyword - The
text
string with thetext
keyword
There are a few renaming that have not been deprecated in previous versions because they are extremely easy to fix with simple search and replace (while implementing deprecations would have been detrimental to performance and complex for no reason)
A few elements have been renamed: you code may or may not contain them. Just search and replace the following strings:
- Rename
Pagy::VARS
toPagy::DEFAULT
- Rename
enable_items_extra
toitems_extra
- Rename
enable_trim_extra
totrim_extra
- Rename
Pagy::Helpers
toPagy::UrlHelpers
- Rename
pagy_get_params
topagy_massage_params
The items accessor does not adjust for the actual items in the last page anymore. This should not affect normal usage, so you can ignore this change unless you build something on that assumption.
If your code is relying on the actual number of items in the page, then just replace @pagy.items
with @pagy.in
wherever you meant that.
FYI: The @pagy.items
is now always equal to @pagy.vars[:items]
(i.e. the requested items), while the @pagy.in
returns the actual items in the page (which could be less than the items
when the page is the last page)
- Removed support for deprecations
- Refactoring of Pagy and Pagy::Countless classes, I18n, and url helpers
- Refactoring of the docker environment, addition of ready to use VSCode setup
- Changed general module structure (use of prepend instead of re-opening modules)
- Added gearbox extra for geared pagination
- Added configuration files for a full working VSCode devcontainer environment
- Added Run Configurations for RubyMine
- Improved the usage of e2e tests
- Updated doc, gemfiles and github workflow
- Other minor fixes and improvements in code and doc
- added countless_minimal feature
- added missing deprecation to countless class
- doc improvements
- 5103ee9: added countless_minimal feature
- ed6bc0b: added missing deprecation to countless class
- bedb2d6: Fix - link directly to docs [ci-skip] (#328)
- 74aa300: Remove minor extra parenthesis in trim docs [ci-skip] (#326)
- f8b96eb: docs - add links directly to docs page [ci-skip] (#324)
- improve the customization of url when using the trim extra
- better tailwind rules
- doc fixes and improvements
- 9e7fd48: improve the customization of url when using the trim extra (closes #325)
- 0d48b5f: better handling of extra docker-compose run files
- f5ed8f6: added note about the possible workaround for bundler/inline bug
- 2715660: doc fixes
- 7187101: Javascript doc improvements
- 24b7e78: release workflow refactoring
- 20d1d8e: chore: add github action - publish & tag versions (#322)
- 922fd7f: better tailwind rules
- 28983e6: added doc for using Searchkick.pagy_search (closes #319)
- fixes for meilisearch extra
- ec748c2: Fixes for Meilisearch extra (#318)
- added arabic locale
- 9bc548e: added missing keys for Arabic (#317) (closes #295)
- 1b95674: Add arabic locale, pluralization and tests; alpha ordered tests
- added meilisearch extra
- docs fixes
- 572ed78: updated pagy-ci.yml
- 8fe1d19: Fix documents for searchkick (#315)
- 744717f: Meilisearch extra (#316)
- fb65260: updated issue templates
- 1c3d283: Added Pagy::Console links to README
- fix for deprecation and test improvements
- 0f1a7f2: improved deprecation_tests (see #311)
- 7e9c9cd: fix(pagy): deprecated_var is a class method (#311)
- Lowered minimal ruby version requirement to 2.5+
- Simpler tests using the
rematch
gem - Docker environment improvements
- b5b500a: Merge branch 'backport-to-2.5' into dev
- 001f22f: fix for different handling of module prepend in ruby <3
- d6d71a5: fix for frozen error handled differently on ruby <3
- 8a2cf76: replaced syntax not available in ruby 2.5
- 14b3a0c: lowered the minimum ruby version requirement to 2.5
- 8c76943: updated Gemfile.lock
- 934f602: added comment in doc example about the inverted order of arguments in previous versions
- acd59f5: moved command out of default docker-compose to its own file in order to avoid error before first bundle install
- 527a14f: Gemfile update
- 842de05: better tests and stricter rubocop
- d82e95c: Gemfile updated and used for CI
- 675f587: Gemfile: added gemspec and updated rematch
- b0a6603: Updated to rematch 1.0 and copyright year
- 8bda6a9: added rematch gem and reset rematch stores
- f62fa88: added e2e tests to ci
- 04755aa: updated puma
- 4ec03f1: added HTML validation for all the helpers and styles
- 87b2f62: refactoring e2e: replaced snapshot plugin; updated to cypress 7.3.0
- Fixed a couple of HTML validity issues with uikit and materialize combo_nav_js
- Improved rematch testing
- Updated the documentation
- 8cb4193: fixed and simplified uikit combo nav
- f762aca: used chip class for materialized combo nav
- 064a2b5: rematched tests
- 2a45321: expanded the combo nav label to the whole text
- 37c65a8: fixed and simplified materialize combo nav
- 789773b: removed faulty PAGY_REMATCH variable function; added rematch_all rake task
- eb2df6d: updated docs [skip ci]
- Refactoring of pagy-json tags into data attributes
- Added the rematch testing system to ease maintenance of tests
- Added Ukrainian locale
- updated Gemfile and doc
- 887c783: better doc for E2E testing
- 738fd93: updated manifest
- 0110e3a: Ukrainian locale (#310)
- 9265cd2: extended must_rematch to other tests
- d217965: refactoring of pagy_json_tag to pagy_json_attr: from script tag to data attribute
- 57e6f91: added rematch test to ease maintenance of tests
- 94561a0: updated puma
- Added labels to all input tags for improved usability and compliance
- Fixed a few HTML typos and redundant or illegal attributes
- Improved Sinatra app usable for experiment with pagy and providing support for ode issues
- Documentation improvements
- Added E2E testing for all pagy helpers
- GitHub management improvements
- 0fe2e49: added helpers and navbar tests for all the styles; updated docker readme
- 26b57a8: Added fix for Cypress bug affecting the snapshots plugin, improved cypress dockerfiles; added cypress studio and basic try
- 7693b3e: cypress: updated images; better open-cypress.yml with persistent configuration settings; added snapshots plugin
- 94e262f: added label tag to the pagy inputs
- f5e3482: removed redundant role="navigation" attribute from nav tags; removed illegal aria-label="pager" from semantic div
- 0467d32: fixes for html typos in semantic, foundation and materialize helpers
- 3f2c9f0: doc small fixes
- bff8c5f: refactoring of sinatra apps; added quick-start doc section
- b0baaa5: simplified standalone_app.ru
- 5442b34: fix broken link [ci skip]
- 17b1faf: improved issue template [ci skip]
- f933cd7: Added issue template and standalone_app to use as a scaffold for reproducing issues [ci skip]
- c8e41e3: added superails screencast; resized thumbnails [skip ci]
- 6116c32: added a few references in the how_to doc [skip ci]
- Better Pagy::Console usability
- 4ee8bbf: pagy console extracted in its own module
- Added E2E infrastructure for development and testing
- Refactoring of Javascript and docker environment
- 1b7b014: Add: clarity, further instructions to run pagy tests [skip ci] (#304)
- 7c723ba: added basic structure to run cypress tests and open the cypress IDE
- Passing positional arguments (besides
@pagy
) to all the helpers is deprecated and it will be supported only until pagy 5.0 - All the helpers accept more optional keyword arguments, for example:
pagy*_nav(@pagy, pagy_id: 'my-id', link-extra: '...')
pagy*_nav_js(@pagy, pagy_id: 'my-id', link-extra: '...', steps: {...})
pagy*_combo_nav_js(@pagy, pagy_id: 'my-id', link-extra: '...')
pagy_items_selector_js(pagy, pagy_id: 'my-id', item_name: '...', i18n_key: '...', link_extra: '...')
pagy_info(@pagy, pagy_id: 'my-id', item_name: '...', i18n_key: '...')
pagy_prev_link(@pagy, text: '...', link_extra: '...')
pagy_next_link(@pagy, text: '...', link_extra: '...')
pagy_link_proc(@pagy, link_extra: '...')
pagy_url_for(pagy, page, absolute: nil)
(notice the inverted page/pagy order with the legacypagy_url_for(page, pagy, url=nil)
)
- deprecated
:anchor
variable in favor of:fragment
- Refactoring of rake tasks, tests, items extra, javascript helpers
- Gems and documentation updates and fixes
- Added standalone extra
- b69a2f2: Merge branch 'dev'
- 9611eac: updated CHANGELOG
- d977767: better links in extras.md
- aa83126: added standalone extra
- e22c9c3: Merge branch 'args-refactoring' into dev
- d791a04: deprecated :anchor variable in favor of :fragment
- e91e4da: [skip ci] update javascript documentation (#305)
- 034afe8: config/pagy.rb: moved pagy variables block at the beginning
- bd0bb6c: renamed :trim variable to the more explicit :enable_trim_extra; removed redundant tests
- 76096e7: simplified the items extra, and added its features to the array and arel extras
- 86fb20e: fixed pagy_semantic_nav hellips
- 2382482: added link_extra keyword arg to pagy_items_selector_js
- 627a0dc: also pagy_link_proc uses keyword arguments
- 8ff2665: completed args conversion also for pagy_url_for and pagy_metadata
- 6a8fbb4: added "pagy-info" and "pagy-items-selector-js" classes to helpers output
- ad350e1: pagy_info wrapped into span tag, and added pagy_id keyword arg
- 2faca63: small improvement to pagy_url_for
- 2acbac6: added "pagy-njs" class to all pagy*_nav_js helpers
- 670f5a5: updated documentation
- 64347f8: changed the argument order from pagy_url_for(page, pagy) > pagy_url_for(pagy, page) for consistency with all the other helpers; deprecation warning and support for pagy < 5
- 393d216: updated gems
- d2891fb: refactoring and additions of tests
- 1538f24: updated tests with keyword arguments
- 6ce0c1d: helpers: deprecated positional id argument and added keyword arguments
- 9fd7930: removed pagy_id method and added id arg to the pagy*_nav helpers
- ec74e4f: removed the mandatory id arg passed to pagy_json_tag; updated tests; simplified pagy.js using previousSibling
- 3f13014: added resource post and relative link [skip ci]
- 7927f37: added manifest:check to CI for master and dev and to the default rake task
- 01f8f1c: refactoring of Rakefile now split in different task files
- Improved efficiency of #series algorithm
- Added new features to the trim extra
- Added rubocop compliance (additional rubocop-packaging plugin)
- Many test tasks improvements
- CI transition from Travis to Github Action
- 80cef45: updated Gemfile
- 3cc464b: added coverage_summary at the end of the default task; added possibility of creating a coverage report
- 0424b71: docs and comment additions/fixes [skip ci]
- b6115e7: Added explicit pagy.manifest to comply with rubocop-packaging (see also #297)
- ef1980e: refactoring of CI from Travis to Github Actions
- 9fb1195: more verbose condition
- fe565eb: removed RUN_RUBOCOP
- 60be542: fix missing codecov formatter/circular reference problem
- 8c4ccfc: rubocop: added rubocop-packaging plugin; expanded inclusion of files
- 487eb70: small code normalization
- 3ea2d27: codecov gets already required in travis on ruby 3.0 (but not locally)
- e17d294: improved series algorithm efficiency (now up to ~5x faster and ~2.3x lighter than the previous one)
- 1051e6d: trim feature: added :trim variable to opt-out to trim even with the trim extra loaded, or invert the logic to out-in by setting Pagy::VARS[:trim] to false
- ece4daa: minor code restyling
- 0e3a09d: added :ide_development bundle group; small README changes
- 5e6f749: simpler test tasks
- e5ee4e7: CI: Remove Bundler 1.x workaround (#296)The "github" source now has that form, already.
- Fix for
Pagy::Frontend::I18n
conflicting with rtheI18n
gem namespace after inclusion and safer renaming of other modules - Fix the simplecov setup reporting less coverage than what's actually covered
- Updated Tailwind styles
- Included the test dir in the coverage check, refactoring and additions of tests
- Big code restyling following ruby 3.0 syntax and cops; tried to make the code simpler, more readable and verbose with almost negligible performance loss.
- a62ae94: Updated README
- 9efb908: removed ENABLE_OJ from tests and travis config
- dede255: removed RUN_SIMPLECOV option
- fc614bd: fix/refactoring for simplecov setup reporting less coverage than what's actually covered
- 5e6ecf1: refactoring of Rakefile
- aea25a1: code-restyling: test
- cb67353: code-restyling: extras
- b2dc35a: code-restyling: locales, config
- b638764: code-restyling: root files and Pagy Core
- aac54aa: Renaming prepended modules with more specific and safe naming convention (see Issue #290 PR #293)
- 3eef450: Simpler test for I18n namespace conflict
- b2aaa01: README: fix typo (#289) [ci-skip]
- 3a9e70f: Fix extra i18n namespacing (#293)* Add a test that looks at i18n working in Modules included (fixes #290)
- 8cd25d2: renamed docker > pagy-on-docker
- a8060b1: fixed doc typos
- f0e0d41: removed require for minitest/reporters
- c178c6f: docker README fixes [ci-skip]
- ac988fd: docs fixes
- 4d20d34: Update Tailwind styles (#285)
- 9a14400: Small README addition [ci-skip]
- 9b40cdd: Update frontend.md (#284) [ci-skip]
- 2bbf204: added Mike Rogers' screencast [ci-skip]
- b24b86d: Added note for brakeman false positive warnings (closes #243) [ci-skip]
- df3c8d6: small syntax normalization
- 618d226: docker README fix [ci-skip]
- added Bosnian, Croatian and Serbian locales
- renamed
Pagy::Search
asPagy::Searchkick
orPagy::ElasticsearchRails
- Dropped support for all jruby versions and ruby version <3.0 (use pagy 3.x instead)
- Dropped deprecation for old/renamed locales
- Fixed error in searchkick extra with ruby 3
- Various refactorings taking advantage of the dropped support for old ruby versions
- 4d48d33: refactoring of pagy_json_tag
- 745e68f: minor fixes for docker
- 296f060: added pagy_search name customization to elasticsearch extras
- 98a5254: refactoring of the elasticsearch_rails extra matching the actual params of the search method
- 6966fe3: refactoring of elasticsearch extras
- aecb565: normalization of i18n naming
- b3f78b8: refactoring of items extra using module prepend instead alias method chaining and module_eval; refactoring of tests (countless was masking failures of elasticsearch extras)
- 8ec7893: refactoring of trim extra using module prepend instead alias method chaining
- 05d9e92: used ruby 3.0 syntax
- f1d89a5: refactoring of I18n extra using module prepend instead alias method chaining
- df8607e: refactoring of overflow extra using module prepend instead alias method chaining
- c361293: Gemfile: uncommented performance group
- 66e29d1: fixes for the docker README
- 2a343ce: added README note about versions
- dadd2f1: ruby 3.0 syntax
- ce1d7ec: removed legacy I18n compatibility
- 6751412: added a few env variables in order to control the verbosity of tests; added test for negative page number
- 3eac56b: removed unused Hash additional methods
- 24ab5c6: simpler travis setup
- ba100dc: updated documentation
- 5d53043: emptied CHANGELOG and dropped LEGACY_CHANGELOG
- 33c467a: removed MARK constant
- 49040fb: removed EMPTY constant used for legacy compatibility with frozen_string_literal
- b826f61: updated rubocop and fixed offending lines
- f075337: removed deprecated locales
- a70881a: updated version to 4.0.0
- 4676788: updated docker environment for pagy 4
- 4a85efe: updated gemfile and gemspec for pagy 4
- fcaab88: updated gemfile and gemspec
- 467b985: added docker development environment
- added Swahili localization
- fbc322f: Add Swahili (sw) to pagy (#276)
- ebbac6b: Fix: broken links (#272) [ci-skip]
- 2178436: restored file removed by mistake
- added Czeck localization
- 316183f: minor adjustments to p11n.rb; removed local file
- 2e7fa1b: Update with 'cs' (#269)added lambda for 'west_slavic' and 'hash for 'cs' language
- 70760c6: Czech localization (#268)
- added link tags helpers to support extra
- a66491b: added link tags helpers to support extra
- 2ef08a9: @pagy_locale explicitly initialized to avoid warning
- 261c6a1: reorganized gemfiles for travis, removed jruby 9.2 tests and added CAVEATS and removed redundant ||=nil
- 619d7d1: updated gems
- fc861d8: added .gitattributes to fix github linguist [ci-skip]
- 287b94f: added Raul Palacio screencast link to README
- 52c65a3: added "Contributions" section in the README
- f09a80a: Add tutorial link to readme (#259)
- 86bf3dc: Fix: typo [ci-skip] (#257)
- bd3bcc7: Update copyright notice to 2020 (#256) [ci-skip]
- 01e4a14: [ci-skip] Add note re: html safe helpers (#254)Fixes discussion noted in: #6
- 1d812be: doc improvements [ci-skip]
- Portuguese translation
- Fixes and documentation improvements
- f64a1d6: added pagy reference to jetbrains link
- 8a4596f: Add translation for Portuguese (#250) [ci-skip]
- 515de9b: Adds parentheses (#249) [ci-skip]
- 734f30c: added basic sinatra app
- c7aa44d: updated gems
- 62bd4ac: added tailwind extra styles
- c2e8eef: added "Customizing CSS styles" how to section
- 614a3e1: fix for extra "-js" in "pagy-combo-nav-js"
- 8673ca4: a couple of how_to additions
- Fixes, improvements and gems updates
- a1a7962: gems update
- 0a70110: item_name can be overridden by passing an already pluralized string to pagy_info
- 28913d6: Use proper attributes for "previous" links (#244)
- Various fixes ad gems update
- 1aa1fa7: gems update
- 289d38a: added conditional definition of pagy_t_with_i18n to avoid ruby 2.7 "last argument as keyword parameters" deprecation warning (closes #241)
- d571719: added raw_response method check for pagy_elasticsearch_rails (#234)
- 7a09bb9: fix typo in documentation
- d7a9f7a: Fixes boundary character escaping in regex in js trim function (#239)
- 3561885: gems update
- Khmer translation
- Added support for elasticsearch < 6
- Documentation fixes
- bba1bca: used ternary conditional
- a9cee7d: Support ES5 on elasticsearch rails (#234)
- d58a39d: Khmer translation for pagy (#235)
- 7ced96c: fix for missing suffix fr method reference in doc
- 73600be: improved consistency in searchkick and elasticsearch_rails documentation examples (#231)
- Danish translation
- Re-enabled legacy jruby travis config
- Added ruby 2.7 travis testing and rubocop config
- 721d01f: more documentation fixes and improvements
- 246fca7: Danish translation for Pagy (#232)
- e57215f: added ruby 2.7 travis testing and rubocop target version
- 280164a: re-enabled travis testing for old jruby (travis fixed the jruby images issue)
- Locales normalization and deprecations
- Bundle update
- c424466: Merge branch 'locales-normalization' into dev
- 032615c: added Pagy::I18n deprecation tests
- ebd6151: added deprecation remapping
- e1bd70c: renamed pt-br -> pt-BR
- a77dfcf: fix for sv and sv-SE pluralization
- 6a31db6: Swedish locale: add sv-SE, rename se -> sv (#226)
- 00bd312: bundle update (closes #208, closes #223, closes #224)
- 133da16: Add tutorial link (#222) [ci skip]
- a2b915e: reorganization of Javascript documentation
- fead55c: Remove duplicated pagination class for Bootstrap (#212)
- fix for numeric headers in the headers extra
- 6a93b97: headers must be strings (closes #211)
- fix for arel count
- updated French and Spanish translations
- added Italian translation
- internal renaming
Pagy::Frontend::MARK
>Pagy::PAGE_PLACEHOLDER
- 434912b: updated rubyzip gem
- b627e55: add italian translation (#202)
- 3341dcc: created ITEMS_PLACEHOLDER constant
- 7775155: replaced Pagy::Frontend::MARK with Pagy::PAGE_PLACEHOLDER (MARK is still defined for backward compatibility)
- 439676e: Fixed previous translation for Spanish (#199)
- ee1b1f0: Update fr.yml (#195)
- 8b6f81f: added pagy-cursor link in README
- c290dca: update incorrect tutorial link (#198)
- 77c045d: add: tutorial link in ReadMe - complex search forms (#194)
- 846eece: fix in README.md
- 224748a: fix for resurrected-by-mistake line in README
- added arel extra
- updated Gemfile for development environment
- docs fixes and improvements
- af0f189: updated minitest and minitest-reporter gems and removed deprecation
- 6a62de5: updated Gemfile
- 4856782: Arel Extra (#189)
- 2a2d9b0: Revert "Added digital-climate-strike banner"This reverts commit 07f7d9256ef9b1cef1c1eaf6da56ebb03daa19d5.
- b5c2809: docs fixes
- f8e4f42: replaced markdown file link for documentation link in extras
- 6a5c271: updated github-pages gem
- 60d243c: small doc improvement [ci skip]
- 2feb451: docs changes
- 07f7d92: Added digital-climate-strike banner
- 281da85: update grammar (#187)
- 739f032: Update how-to: Correct to require header for API (#188)
- added support for elasticsearch 7
- ca736cc: Adding elasticsearch7 support (#185) Fixes #184
- 13b7314: correct typos in docs and initializer (#186) [ci skip]
- 9734ed6: Docs style changes [ci skip]
- fb8bcf4: doc fix for missing :partial key in rendering example (closes #180)
- 7160a18: Minor docs changes [ci skip]
- Added Korean locale
- Added Catalan locale
- Added metadata extra
- Docs fixes and improvements
- 2813973: Docs:
- added detailed Quick Start steps (closes #176, closes #177)
- added specific sections for API clients and javascript frameworks
- 43349a8: added metadata extra
- 261e6e6: Add Catalan localization (#178)
- 30ed505: temporarily removed jruby 1.7 and 9.0 rvm from travis - waiting travis to fix their rvms or suggest some work around see issue
- 2863c55: added minitest-reporters gem
- 0b42e5c: Add translation ko.yml for korean (#172)
- da3fc37: minor doc fixes [ci skip]
- Improvements for searchkick extra
- Added javascript Pagy.version
- 0ac5c27: refactoring of pagy_search and its usage in order to allow optional term argument for searchkick (#169)
- 389755b: small docs editing [ci skip]
- Added UIkit nav, nav_js and combo_js helpers and templates.
- 1eb25ec: Implement UIkit pagination (#164)
- Fix for #163
- Javascript improvements
- aff8cbb: better handling of resize listeners; added render function to the pagy element
- c699fe5: fix for javascript/turbolink nav.render firing when element not found (#163)
Namespacing of all exceptions, still backward compatible with legacy rescues
- 530cb24: all the exceptions are namespaced and can return more information for easier rescue of special cases
- Added Bulgarian locale
- 2c56428: added pluralization comment to bg.yml dictionary
- 7111cec: Bulgarian language yml file. (#162)
- a46f6b5: improved suggestion for headers usage
- b403a35: improved trim regex: simpler, safer and more tested
- bd3be09: normalized aliasing with alias_method
- 3c60d9b: minor doc fixes
- 9aa1bea: fix for missing "partial" in examples for template usage (#160)
- 405b4d2: reorganization and renaming of test helpers
- 459edaa: improved notes about preventing crawlers to follow look-alike links
- 01c73d3: added search box to docs
- 2341a83: docs fixes and additions
- 96ad00f: extended trim extra support to all the *_js helpers:
- refactored trim extra
- simplified MARK strings
- use of RegExp patterns in pagy.js
- added and improved tests
- 1732dee: refactoring of marker and hidden links in *_js helpers:
- MARKER renamed to MARK is simpler, static and hardcoded in pagy.js as well
- removed hidden links to bogus urls that were triggering crawlers to follow (#158)
- pagy_items_selector now works also with trim and in combination with other *nav_js helpers
- updated tests
- aa140e1: doc improvement
- d0e4ba6: a few fixes and doc improvements
- c1ddbd9: Fix typo in docs example (#156)
- e0b2a2b: removed duplication in LEGACY_CHANGELOG
- ecb6822: fix typo in README
- The
zh-cn
andzh-hk
were named incorrectly. They have been properly renamed aszh-CN
andzh-HK
. If you used them, you should update thePagy::I18n.load
statement. - Removed the plural keys inconsistent with the locale: now the dictionary files are 100% compatible with the I18n gem. If you use custom dictionaries, you should update their entries.
- The
:item_path
variable has been renamed as:i18n_key
: you should search and replace it.
The javascript-powered helpers (pagy*_responsive_nav
, pagy*_compact_nav
and items_selector
) have been renamed in order to be simpler and more descriptive of their arguments, features and requirements. They have been improved internally, but you need only to search and replace because their usage has not been changed.
v2.0+ | v3.0+ |
---|---|
pagy_bootstrap_responsive_nav :breakpoints |
pagy_bootstrap_nav_js :steps |
pagy_bootstrap_compact_nav |
pagy_bootstrap_combo_nav_js |
v2.0+ | v3.0+ |
---|---|
pagy_bulma_responsive_nav :breakpoints |
pagy_bulma_nav_js :steps |
pagy_bulma_compact_nav |
pagy_bulma_combo_nav_js |
v2.0+ | v3.0+ |
---|---|
pagy_foundation_responsive_nav :breakpoints |
pagy_foundation_nav_js :steps |
pagy_foundation_compact_nav |
pagy_foundation_combo_nav_js |
v2.0+ | v3.0+ |
---|---|
pagy_materialize_responsive_nav :breakpoints |
pagy_materialize_nav_js :steps |
pagy_materialize_compact_nav |
pagy_materialize_combo_nav_js |
v2.0+ | v3.0+ |
---|---|
pagy_plain_nav (pagy_nav alias) |
- removed - |
pagy_plain_responsive_nav :breakpoints |
pagy_nav_js :steps |
pagy_plain_compact_nav |
pagy_combo_nav_js |
require "pagy/extras/plain" |
require "pagy/extras/navs" |
v2.0+ | v3.0+ |
---|---|
pagy_semantic_responsive_nav :breakpoints |
pagy_semantic_nav_js :steps |
pagy_semantic_compact_nav |
pagy_semantic_combo_nav_js |
Pagy::Vars[:breakpoints]
has been renamed as Pagy::VARS[:steps]
items_selector
has been renamed as items_selector_js
. It is also possible to use the i18n_key
variable to customize the item name.
Notice: You can skip the following sections if you did not override any nav helper.
The nav
CSS classes follow the same renaming rules of the helper methods:
v2.0+ | v3.0+ |
---|---|
pagy-bootstrap-responsive-nav |
pagy-bootstrap-nav-js |
pagy-bootstrap-compact-nav |
pagy-bootstrap-combo-nav-js |
pagy-bulma-responsive-nav |
pagy-bulma-nav-js |
pagy-bulma-compact-nav |
pagy-bulma-combo-nav-js |
pagy-foundation-responsive-nav |
pagy-foundation-nav-js |
pagy-foundation-compact-nav |
pagy-foundation-combo-nav-js |
pagy-materialize-responsive-nav |
pagy-materialize-nav-js |
pagy-materialize-compact-nav |
pagy-materialize-combo-nav-js |
pagy-plain-responsive-nav |
pagy-nav-js |
pagy-plain-compact-nav |
pagy-combo-nav-js |
pagy-semantic-responsive-nav |
pagy-semantic-nav-js |
pagy-semantic-compact-nav |
pagy-semantic-combo-nav-js |
Renamed first param passed to the pagy_json_tag
:
v2.0+ | v3.0+ |
---|---|
:responsive |
:nav |
:compact |
:combo_nav |
:items |
:items_selector |
v2.0+ | v3.0+ |
---|---|
Pagy.responsive |
Pagy.nav |
Pagy.compact |
Pagy.combo_nav |
Pagy.items |
Pagy.items_selector |
Dropped pagy_serialized
, pagy_apply_init_tag
and PagyInit
javascript namespace. They were too basic to be useful as support for javascript powered custom component.
- df3ebf2: updated performance assets for v3
- 260e7d4: refactoring of i18n:
- I18n gem compliant (removed plural keys inconsistent with the locale)
- added tests for all the pluralization procs
- simplified and normalized Pagy dictionary file
- renamed :items_Path to :collection_key
- added :collection_key lookup for the items_selector_js helper
- 8ebb1ab: refactoring of test coverage:
- replaced SingleCov with SimpleCov for CodeCov integration
- simplified Travis setup
- separate controls of RuboCop, SimpleCov, Oj and CodeCov with dedicated ENV variables
- completed coverage at 100%
- ae3e4bc: removed overridden method and undefined instance variable warnings
- aa1aad9: renamed multi_series > sequels and relative js arguments and variables; renamed :sizes > :steps; updated nav test cases
- 901f779: compact > combo and other changes
- f7425a5: renamed assets according to helper names; reordered and improved nav docs
- ad100eb: renamed plain extra to navs; removed the "plain_" qualifier for the helpers
- 54f4a7e: updated docs and comments
- 25470dd: renamed items_selector > items_selector_js
- d4be9dd: replaced responsive with nav_js; reordered methods and test normalization
- ec7d754: removed warning for locales zh-cn and zh-hk, and properly renamed as zh-CN and zh-HK
- 2548557: simplified support extra (dropped pagy_serialized and pagy_apply_init_tag)
- f82b2e7: fix typo
- 704a4df: add french translation (#154)
- 2f67dfa: UPDATE pagy locales id (#151)
- 15732da: fix for broken migration link (#150)
- Fix for
pagy_url_for
returning duplicated params - Added "zh-TW" locale
- Deprecated incorrect zh-cn and zh-hk locales in favor of zh-CN and zh-HK locales
- 62ee172: fixes for pagy_url_for full url gets duplicated page param (#149)
- used concatenated request. base_url instead of request.url
- added better tests
- fixed overriding of pagy_url_for in items extra
- 0bca4af: fix for rubocop offense
- 6b7fe77: deprecated zh-cn and zh-hk locales, normalized as zh-CN and zh-HK
- c28d21a: Added locale zh-TW (#147)
- 95cdf61: docs improvements
- 310c804: Update lib/locales/README.md (#148)
- Fix for responsive javascript not working with IE
- 3cce19a: javascript responsive refactoring:
- replaced problematic loop functions with plain for loops
- better naming in responsive function
- shortened rendering time
- simpler doc
- 3eacc8d: better doc examples
- 5c92187: added missing event listeners to auto-incremental javascript example
- 119ba78: fix for support.md auto-incremental javascript example
- 1f376d4: Update support.md (#146) Fix incremental/infinite scroll examples
- added Swedish locale
- f0dcac6: docs update
- 9dc8c05: removed tap from Pagy#series
- e237ea6: add translation for Swedish (#145)
- 7d71699: lighter README and a few docs improvements
- f25b5f5: updated support extra examples with pagy_countess
- 6fa1d03: comments and docs updates
- 9f057e6: small improvement for the headers extra doc
- 2c53e76: a few docs changes for the migration guide
- 2a90e6a: stop following the GitFlow conventions (extra comlexity for no advantage for this project; too many merge commits; history difficult to follow)
- 198883c: Fix legacy changelog url (#144)
- Added "Current-Page" header to headers extra
- 016b377: added Current-Page default header to headers extra
- 4086181: fix compilant > compliant typos in docs
- 5d6edf6: reconciliation between test strings
- Fix for multiple pagy get wrong url (#143)
- Better documentation for responsive breakpoints (#140)
- e9f467a: fix for pagy_url_for not working with multiple pagy in the same request (#143)
- 75329b4: better configuration example and documentation for responsive breakpoints (#140)
- Added headers extra
- Added support for overflow :last_page to searchkick and elasticsearch_rails extras
- Added zh-hk locale
- Better docs
- 4e83993: updated docs
- 8bd19d6: added headers extra (#141)
- 9a26b04: added support for overflow :last_page to searchkick and elasticsearch_rails extras (#138)
- c5524fc: Add zh-hk language yml file (#139)
- 6d5841b: update travis setup
- 5bd7c0a: updated docs notes for the searchkick and elasticsearch_rails extras
- 0ca5539: updated comments in config/pagy.rb (#138)
- Fix for missing require in config/pagy.rb and fix for pt-br translation typos
- docs fixes and improvements
- 4e7b30f: update Repository Info section in README
- 835e8d2: Fix for missing require in config/pagy.rb and fix for pt-br translation typos (#134)
- 8cdffa1: updated consumption chart in README
- 91aa417: replaced efficiency table with resource-consumption chart; other minor fixes
- 964ab24: fix for wrong params in searchkick synopsis example
- 71baf56: added paginate-responder link to the HTTP header in the How to doc (#132)
- 05e218c: fix for indents in searchkick doc
- 7061086: added README comments for the docs/update branch
- b93259c: fix typos in searchkick readme (#129)
- 4156121: added how-to for custom count for custom scopes (#130); other minor adjustments
- 4c7b50a: docs fixes and additions (#128)
The following methods have been renamed. You only need to search and replace, because the funtionality has not been changed.
Legacy Name | New Name |
---|---|
pagy_nav_bootstrap |
pagy_bootstrap_nav |
pagy_nav_compact_bootstrap |
pagy_bootstrap_compact_nav |
pagy_nav_responsive_bootstrap |
pagy_bootstrap_responsive_nav |
Legacy Name | New Name |
---|---|
pagy_nav_bulma |
pagy_bulma_nav |
pagy_nav_compact_bulma |
pagy_bulma_compact_nav |
pagy_nav_responsive_bulma |
pagy_bulma_responsive_nav |
Legacy Name | New Name |
---|---|
pagy_nav_foundation |
pagy_foundation_nav |
pagy_nav_compact_foundation |
pagy_foundation_compact_nav |
pagy_nav_responsive_foundation |
pagy_foundation_responsive_nav |
Legacy Name | New Name |
---|---|
pagy_nav_materialize |
pagy_materialize_nav |
pagy_nav_compact_materialize |
pagy_materialize_compact_nav |
pagy_nav_responsive_materialize |
pagy_materialize_responsive_nav |
Legacy Name | New Name |
---|---|
pagy_plain_nav (pagy_nav alias) |
|
pagy_nav_compact |
pagy_plain_compact_nav |
pagy_nav_responsive |
pagy_plain_responsive_nav |
require "pagy/extras/navs" |
require "pagy/extras/plain" |
Legacy Name | New Name |
---|---|
pagy_nav_semantic |
pagy_semantic_nav |
pagy_nav_compact_semantic |
pagy_semantic_compact_nav |
pagy_nav_responsive_semantic |
pagy_semantic_responsive_nav |
Notice: You can skip this section if you did not override any nav helper.
The nav
CSS classes follow the same renaming rules of the helper methods. For example:
pagy-nav-responsive-bootstrap
is now pagy-bootstrap-responsive-nav
All the JSON tag classes are now pagy-json
, and the qualifier of the json (e.g. compact
, responsive
, ...) is now passed as the first argument in the array content. For example:
<script type="application/json" class="pagy-responsive-json">["#{id}", ...
is now
<script type="application/json" class="pagy-json">["responsive", "#{id}", ...
However the tags have been refactored to use the shared pagy_json_tag
helper. For example:
script = pagy_json_tag(:responsive, id, tags, responsive[:widths], responsive[:series])
- The
Pagy::Frontend::I18N
is nowPagy::I18n
- The
Pagy::I18n.load
method accepts params in different format: see the doc
- The
searchkick
extra has been refactored and its methods work in a different way: see the doc
- The
elasticsearch_rails
extra has been refactored and its methods work in a different way: see the doc
The pagy initializer has changed: please replace/update it: pagy.rb
- a03ff0b: updated README and docs
- 7bb34e3: refactoring of searchkick extra
- 22afe14: refactoring of elasticsearch_rails extra
- fc608e9: setup for ruby 1.9+ and jruby 1.7+
- 7948394: updated magic comments
- d8ce15f: updated Gemfile
- 8ad362d: conditional SingleCov
- 14a7c30: small change in pagy_bootstrap_compact_nav style
- 8550b67: removed fork from tests
- 532743d: simpler overflow module structure (backward compatible)
- 9c1212b: i18n refactoring:
- added multi-language
- simpler I18N format
- faster pagy_t method
- 1f3c86f: fixed warnings and a few backward incompatible statements
- a6a9371: replaced +'...' syntax with EMPTY + '...' syntax for backward compatibility
- 32984a3: removed empty string assignation (simpler and more efficient)
- e61b1e6: Removed deprecations:
- remove deprecation of method extras and extra CSS class in navs in modules
- remove deprecated method from
extras/shared
- remove extra CSS class in tests and templates
- remove the extras/navs.rb and DEPRECATIONS.md files
- remove support for overridden legacy helper in
pagy.js
- add a note in the GoRails section in the README
- ca18374: Cache gemset for faster Travis builds (#126)
- 71a3e5f: Always return the same object as Pagy.root (#125)* Update copyright notice to 2019 (#121)
- 11944e4: Fix typo in class name (#122)
- 40ef36d: travis badge links to branches
- 78141a3: Improve default German translation (#120)
- c0fe0df: minor typo corrections (#119)
- fixed responsive javascript error
- 332c6a2: fix for responsive javascript error in slow loading pages (#115)
- fixed issue with items extra rendered after pagy_nav
- 3ead159: fix for temp items variable in items extra (#117)
- Added Dutch locale
- Refactoring of plurals
- Javascript refactoring: fixes and improvements
- 70796d3: Add Dutch language (#116)Added Dutch dictionary
- b112f30: plurals.rb:
- added frozen variables
- added explicit 'zero' for :zero_one_few_may_other
- added :pl pluralization (#111)
- added README.md
- 6cf86af: added docs notes
- b05db4e: added optional target element to Pagy.init for AJAX support
- e35a9ae: refactoring of default element ids for helpers and deprecation:
- default ids are now constant also in different processes and compliant also with oder HTML versions
- simpler deprecation code
- cef823c: pagy.js responsive refactoring (#115):
- moved handling of window event listeners into the responsive function
- added resize delay to Pagy.responsive
- a64a8bd: fix for items test
- e9ab4a1: renamed argument items > fetched; removed redundant assignation
- Improved efficiency for count in backend and extras
- 01178cb: replaced enumerable #count for #size (suggested in #112)
- 0723228: count (and page) in *get_variables methods are set only when nil (alternative implementation of #112)
- Deprecation of frontend helpers (see Deprecations)
- Internal refactoring of javascript
- added
support
extra for features like: incremental, infinite, auto-scroll pagination
- 2bdb1e5: added support extra
- 055af34: added :cycle variable to Pagy
- c1680ec: add JSON/javascript deprecations
- 263c12d: better internal javascript naming
- 910facc: updated tests
- 6e8cde8: refactoring of json tags:
- single "pagy-json" class for all json tags
- removed prefix used for all pagy element ids
- extracted pagy_json_tag from frontend extras
- 98ce8e7: automatic ids based on hash must be strings
- cd8256e: added DEPRECATIONS file
- 6e3e1e4: deprecated and renamed navs helpers in code, tests and docs; renamed navs extension as plain; added :pagy_plain_nav alias of :pagy_nav
- 4bc72af: deprecated and renamed semantic navs in code, tests and docs
- a9c3822: deprecated and renamed materialize navs in code, tests and docs
- 5481f40: renamed foundation templates and updated docs
- f984f83: deprecated and renamed foundation navs in code, tests and docs
- 95045c3: renamed bulma templates and updated docs
- dbad41a: deprecated and renamed bulma navs in code, tests and docs
- e4f859f: renamed bootstrap templates and updated docs
- 35078ab: deprecated and renamed bootstrap navs in code, tests and docs
- 04ec860: added Pagy.deprecate method
- added
Pagy::Countless
support subclass - added
countless
extra integrated with the other extras
- fa547ad: reworded the doc notice about :pagy_countless_get_items returning an Array; fix typo in comment
- 8368a99: Synopsys > Synopsis
- 1b8a080: a few fixes for the countless tests
- 0bf2f46: Typo fix
- 2f93227: Test coverage for
Pagy::Countless
(#108) - c2a25b6: Add some tests for Countless extra (#108)
- 04fa7a2: added countless support to the items extra
- f272faf: added countless support to the overflow extra
- 7b25165: added countless sub-class and extra code
- 37cf51a: series can return an empty array if size is empty
- 7bf9d14: fix for a few missing lines in the extras docs
- The "Out Of Range" concept has been redefined as "Overflow" resulting in a few renaming. Since there are no changes in the logic, you can update by just searching and replacing (if present) a few string in your code:
"/out_of_range"
>"/overflow"
"OutOfRangeError"
>"OverflowError"
":out_of_range_mode"
>":overflow"
"out_of_range?
>"overflow?"
- 431e4db: redefined the "Out Of Range" concept as "Overflow" (#103):
- files: out_of_range* > overflow*
- extra name: out_of_range > overflow
- error class: OutOfRangeError > OverflowError
- module: OutOfRange > Overflow
- VARS: :out_of_range_mode > :overflow
- instance variable: @out_of_range > @overflow
- method: out_of_range? > overflow?
- a0b411a: added README note about semantic versioning
- e8a2251: fix for ArgumentError feedback in Pagy constructor should show the originally passed offending value (#104)
- Added German locale
- Added Norwegian locale
- 59064c2: Added Norwegian locale (#100)
- Added Elasticsearch Rails extra
- e0acbf6: fix for robocop offenses (#96)
- d082729: Added Elasticsearch Rails extra (#96)
- dd0575a: fix doc typo
- d3510a7: updated comments in plurals.rb
- 5ed458a: added README disclaimer
- 02b0a74: Update link to Semantic-UI pagination
- I18n refactoring
- Combo helpers and item selectors have been refactored: you should update your overridden helpers accordingly
- The i18n structure has changed, update your custom i18n locale file
- bab3bf8: Merge pull request #93 from ddnexus/i18n
- f8017c3: updated config/pagy.rb
- c461885: added ru plural proc
- 5680628: fix for wrong indentation in zh-cn
- 6998932: pagy.yml properly split into separate locale files
- e3048f2: improvements for ja tr and zh-cn
- c1aec4c: removed marginal pagy.nav.current key used only by foundation an fixed consistency in foundation helpers and templates
- 15e413b: refactoring of the composition of i18n strings for compact helpers and items selector
- added Japanese, Brazilian and Indonesian translations
- 67f1bb9: reordered translations
- 4ab3438: adding pt-br translation (#87)
- d1f8674: alpha-ordered translations
- 0311c85: Added Indonesian locale (#91)
- ce68624: add japanese translation (#89)
- 5e4f93d: corrected chinese translation (#88)
- 26654d4: updated README
- added Chinese locale
- added Russian locale
- 099731b: small improvement in i18n docs
- ef77ae2: Added ru translation (#84)
- d4b49d6: Fixed a typo in spanish locale. (#85)
- a91b72a: small description change for items selector UI
- a62b222: small refactoring of the trim extra
- c23505a: fix for doc typo
- added Spanish locale
- 6d498a1: Added Spanish locale (#82)
- 65db877: general docs improvements
- 5862b3f: updated README
- 6414395: added GoRails screencast link to README
- a8ad399: docs fixes and improvements
- 435e849: updated docs
- added Semantic extra
- b65a905: fix for page_link string and conflicts, added compact and responsive navs tests and docs (#73)
- f147cca: Semantic UI nav helper (#73)
- 429ac14: updated pagy.js requirements info
- The extras dir has been reorganized:
- the helpers in the
compact
andresponsive
extras have been integrated into the respective frontend extras (bootstrap
,bulma
,foundation
,materialize
andnavs
), so thecompact
andresponsive
extras are gone. You should remove them from the pagy.rb initializer, eventually adding thenavs
extra if you use its plain helpers. - The
templates
andjavascripts
dirs have been moved tolib
. If you use rails and thepagy.js
you should update theassets.paths
in the pagy.rb initializer.
- the helpers in the
- added Foundation extra
- ba7d046: added fixes and improvements for foundation extra:
- d78f85d: Foundation extra (#79)
- 13f37a0: restyling of extras in README, docs and initializer example
- added Searchkick extra
- 6143f5f: docs fixes
- 5227bd1: added searchkick references in docs, README and inititalizer example (#75)
- b9acf0c: Searchkick extra (#75)
- small bugs and compatibility fixes
- 1436833: added Post and Tutorials links and Credits section
- 4e400c6: items are adjusted only for non-empty pages (avoid sequel error for limit 0)
- 3abcc11: fix for sinatra: page_param must be converted to string
- ad8c311: fix for trim extra missing when current page=1
- 6f774d7: added missing doc menu for trim extra
- 5f6de56: added a few tests for the trim extra
- Added Trim extra
- Added Materialize extra
- b0e959b: added stars github button to docs
- 1dd38c9: added materialize extra (#44)
- 30c1a57: updated docs
- Improvements and fixes for the out_of_range extra
- 419af23: better comments and error message for unknown out_of_range_mode variable
- 48fa056: use case (#71)
- 36761a8: fix :last_page mode in out_of_range extra (#70)
- 5958dc5: out_of_range extra improvements (#68)
- 7177cd9: added note about the out_of_range exta to the README
- Added Out Of Range extra
- c52db2a: added out_of_range extra (#68)
- 37119ee: fixes for bulma extra in initializer_example.rb and docs
- 05729f6: removed redundant condition in Pagy initialize
- 2e75247: small fixes in CHANGELOG
- 3d732dd: docs for empty page OutOfRangeError (#69)
- a3be52e: Fixed screenshot name for compact bulma extra (#67)
- Added Bulma extra
- Added Turkish language in pagy dictionary
- Improved consistence and compatibility in extras
- 8fc91df: fix for "area" typos in bulma extra (#62) and consistency improvement across responsive helpers
- bb0060f: fix for window event listeners persisted by turbolinks (#64)
- d759f91: Bulma extra (#62)
- 9f09837: Fixed typo in some extras usage (#63)
- 2ce572a: Added Turkish locales (#58)
- dd361e1: replaced Array.from in pagy.js for extended compatibility
- bb1243d: fix typos
- da34b94: fix typo (#61)
- cdab354: added better I18n comments in initializer_example.rb
- 76fc273: used merge! in place of **
- All tests has been converted to the spec syntax
- b14f446: converted tests to spec syntax
- 0422568: cleanup of i81n plurals in code and docs
- 5a2db16: added a few missing references to docs
- 6028980: enabled rubocop Naming/UncommunicativeMethodParamName
- 1de470b: small improvements and fixes for docs
- 228109e: fix for typos
- 0a1ed94: updated initializer_example.rb
- The
pagy_nav_bootstrap_compact
andpagy_nav_boostrap_responsive
helpers have been renamed aspagy_nav_compact_bootstrap
andpagy_nav_responsive_bootstrap
to keep the consistency with the extras structure (and support the consistency of future framework additions). Please, rename them accordingly. - The
Pagy::Frontend::I18N.load_file
has been renamed asPagy::Frontend::I18N.load
and expects a hash as the argument. See the I18n doc. - The seldom used
Pagy::Frontend::I18N[plurals]
has been renamed asPagy::Frontend::I18N[plural]
. See the I18n doc. - Please, update your initializer file to the new initializer_example.rb
- 826798b: refactoring of I18N constant: added support for multiple static languages and plural rules
- b78b71e: better naming of json classes
- ea7c22b: breaking change for compact and responsive extras: renaming of pagy_nav_bootstrap_* helpers to pagy_nav_*_bootstrap, consistent with extras structure
- 7d1a573: internal consistency renaming of local/test variables; minor fixes and improvements
- 8ca5013: doc improvements
- 99081ee: small performance improvement for #51 and updated doc
- 5863ceb: add support for counting grouped collections (#51)
- The javascript used by the
compact
,items
andresponsive
extras has been refactored in order to avoid any usafe-inline vulnerability. The javascript files have been replaced by one shared file, and require to set an event listener or run a function on window load. See the commit below and the javascript doc for details.
- 50e304b: javascript refactoring in order to avoid any usafe-inline vulnerability (#52):
- removed inline scripts from all extras
- one single pagy.js file shared among all the extras
- the Pagy.init function should be executed at document load
- updated tests and docs
- 32d0afc: doc fix: UI selector > selector UI
- 100% test coverage for core code and extras
- c11dfcc: updated README
- f8728e7: added responsive extra tests
- 14ea356: added compact extra tests
- 2ac743c: added bootstrap extra test
- 159b65e: added i18n extra tests
- 4449c95: normalization of indentation and empty lines
- 9afa9d9: Default Frozen Strings for Ruby Files (#49)
- 036c87f: Fix typo in :page_param configuration (#48)
- Improved the Pagy::OutOfRangeError exception, now storing the failed Pagy object
- 9817659: improved OutOfRangeError exception (storing the failed Pagy object)
- 7195229: a few minor consistency fixes for the initializer_example.rb
- 00cd5bb: Fix typo (#45)
- 8b3a733: fix for header level in README
- Improvements for compact extra
- Refactoring of test structure and tasks
- Added items extra: Allow the client to request a custom number of items per page with an optional selector UI
- 45dd700: added array extra tests
- 623ce9e: Added items extra and tests
- 5902e8a: passed instance variables are not deleted from the vars hash
- e2efb89: refactoring of test structure
- 1cc335b: documentation updates
- 42ba053: improved pagy-compact.js
- 8c20fa2: Enable support for return key inside Pagy compact input (#43)
- d4b751c: Documentation updates
- 9f0dec9: fix for broken links in docs
- c41e823: additions and normalization of documentation and comments
- 38f9a49: fix for broken links in readme
- 0db9125: minor documentation improvements
- 8a0a5a8: broader parallel assignment in methods (improved performance)
- 18baa8b: small optimization (used a few less objects)
- 1d16e3d: documentation additions
- 62c420d: updated doc and charts
- Fix for I18n exception on startup
- 31b815d: fix for I18n exception on startup (#41)
- Improved readability and memory allocation
- All the core methods are tested
- Better documentation
- c25493a: added backend tests
- 48dbe17: docs small fixes and improvements
- 5e9b7d4: add Pagy::VARS[:item_path] empty default
- ce8d09a: add Pagy::VARS[:anchor] empty default
- 8789edd: improve readability of pagy_link_proc (#40):
- remove conditions to avoid extra spaces inside the html tags
- add Pagy::VARS[:link_extra] empty default
- 2f0d384: docs additions
- Refactoring of
I18N
to fix #39
Pagy::I18N
has been moved toPagy::Frontend::I18N
: you should update the initializer in case you set any of thePagy::I18N
variable. Read I18n for details.
- d85791e: Refactoring I18N to fix #39:
- moved I18N from Pagy to Pagy::Frontend - I18N_DATA moved to Pagy::Frontend::I18N[:data]
- I18N[:file] removed
- added I18N.load_file method
- updated initializer and doc
- 504b943: added missing tests to frontend_test.rb
- 6168df3: use actionable code coverage (#29)
- Fix for PostgreSQL:
collection.count(:all)
- 8a204dc: fix for count in Pagy::Backend (#36)
- 29ed221: added test_check_variable_defaults
- 1263540: indentation fixes for tests
- a927d57: improve testability by sorting tests into files that mirror lib + group by method (#37)
- 5a5178b: docs markdown normalization and README editing
- 11fbc49: examples was using responsive instead of i18n (#35)
- b9517d3: docs small fixes and improvements
- 8bc6900: fix for typos and omissions in initializer_example.rb
- a09558e: avoid uncoverable code by not using gemspec in Gemfile (#33)
- a585fe6: clean up gemspec (#32)
- ae48f13: test on all supported ruby versions and split out rubocop (#30)
- Added
:params
and:anchor
variables to control the generation of arbitrary URLs per pagy instance
- d185461: added :params and :anchor variables to control the generation of arbitrary URLs per pagy instance
- 62fd6c8: better forward improvements with pagy_url_for receiving the pagy instance instead of the single pagy_param
- 748de0d: readme and changelog improvement
- Added an initializer_example.rb that you can use as an easy template for Pagy configuration
- Integrated extras from
pagy-extras
gem into Pagy, now optionally required in the initializer - Refactored I18n: simpler code and simpler configuration now based on the
I18n
extra - Reorganized documentation and added a few more how-to topics
- Added the
:page_param
variable used to get the page number from and create the URL for the page links
- Extras are now integrated in Pagy. The
pagy-extras
gem has been discontinued: you should remove it and update your code as indicated here - Pagy I18n has been refactored and it's simpler to use. The main change is that the
Pagy::I18N[:gem]
variable has been removed, so if you want to use theI18n
gem in place of the internal Pagy implementation you need just torequire 'pagy/extra/i18n'
in your initializer. (see the I18n doc) pagy_url_for
now requires the pagy argument and it's called with 2 params: if you have overridden it, you should add the extra param.pagy_get_vars
now requires the vars argument and it's called with 2 params: if you have overridden it, you should add the extra param.pagy_array_get_vars
now requires the vars argument and it's called with 2 params: if you have overridden it, you should add the extra param.
- 3e2ad90: added CHANGELOG.md with the latest few versions (#23)
- f42811d: implemented :page_param (#20)
- 9040593: added doc about skipping single pages navs
- 605169a: added initializer_example.rb
- daa2c1b: I18n refactoring:
- simplified the pagy_t definition
- simplified the configuration of I18n now using the I18n extra to override the pagy_t
- modules are now required and not autoloaded
- updated doc
- 9b0d420: style cleanup (#24)
- dbc5a05: Add prev/next links to compact Bootstrap nav and improve HTML semantics (#21)
- f764cc1: refactoring extras:
- moved pagy-extra files into the extras dir - moved the templates dir into the extras dir
- updated the documentation
- befe92d: Fixes Travis Badge (#25)
- 3862d26: Travis (#22)
- 7050ee0: basic rubocop setup (#18)
- 7aee689: small docs improvements
- 92260b5: docs and comments refactoring, also updated for pagy-extras v0.2.0
- 46f235e: Remove a couple of Range allocations (#10)
- 39c5470: Only use and/or keywords for control flow (#12)
- 26bb29c: fix for last page items adjusted to 0 (#3)
- 860c579: small improvement: to_i called only once in core variables set
- b18f254: Merge pull request #5 from artinboghosian/patch-1
- 03d6ee8: Update README.md
- 358a806: a couple of links added to the doc
- fac1f34: docs small fixes and improvements
- e480d04: better handling of blank core variables
- b56ef9e: docs fixes and improvements
- 987be15: I18N[:plurals] proc uses symbols and returns a frozen string
- 6ea7a48: changes for PR #2: - use of local variable zero_one instead of constant I18N_PLURALS - VARS cannot be frozen
- fb8975b: Freeze class immutable constant variable at first
- ec8e268: created pagy-extras gem:
- moved pagy_nav_bootstrap method and templates
- updated docs files (fixes and use of relative links)
- facc4c3: unescaped notation for all erb usage
- 26c068f: moved require yaml in Frontend
- f5782d8: added css classes to pagy helper navs
- cee02c6: helper tags are strings
- 4788c3c: grouped the variables :initial, :before, :after and :final into one single :size array; #series can work with different sizes
- e610b82: minor docs fixes