Skip to content

Latest commit

 

History

History
101 lines (74 loc) · 6.17 KB

CHANGELOG.md

File metadata and controls

101 lines (74 loc) · 6.17 KB

CHANGELOG

Version 0.8.1

Important Changes:

  • Added :params and :anchor variables to control the generation of arbitrary URLs per pagy instance

Commits

  • 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

Version 0.8.0

Important Changes:

  • 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

Breaking changes:

  • 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 the I18n gem in place of the internal pagy implementation you need just to require '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.

Commits

  • 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

Version 0.7.2

Commits

  • 527cd8e: simplification of pagy_url_for
  • 144c997: URIs are always joined with forward slash (#11)

Version 0.7.1

Commits

  • 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

Version 0.7.0

Commits

  • 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

Version 0.6.0

Commits

  • 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