- Added labels to all input tags for improved usability and compliance
- Fixed a few HTML typos and rendundant or illegal attributes
- Improved Sinatra app usable for experiment with pagy and providing support for ode issues
- Documentation inprovements
- 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 searchkik 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