diff --git a/.github/ISSUE_TEMPLATE/Code.yml b/.github/ISSUE_TEMPLATE/Code.yml index 2afe7e6fe..aad805a7b 100644 --- a/.github/ISSUE_TEMPLATE/Code.yml +++ b/.github/ISSUE_TEMPLATE/Code.yml @@ -19,7 +19,7 @@ body: attributes: label: 👀 Before submitting... options: - - label: I upgraded to pagy version 9.2.0 + - label: I upgraded to pagy version 9.2.1 required: true - label: I searched through the [Documentation](https://ddnexus.github.io/pagy/) required: true diff --git a/.github/latest_release_body.md b/.github/latest_release_body.md index 05b101e0f..ff70dfae8 100644 --- a/.github/latest_release_body.md +++ b/.github/latest_release_body.md @@ -6,13 +6,14 @@ - See the [Changelog](https://ddnexus.github.io/pagy/changelog) for possible breaking changes -### Changes in 9.2.0 +### Changes in 9.2.1 -- Simplify the keyset API: - - Deprecate the :after_latest variable in favour of :filter_newest - - Add the keyset argument to the :filter_newest lambda - - Rename protected after_latest_query > filter_newest_query +- Improve bin/pagy to dynamically find apps and descriptions +- Apps refactoring: + - Update rails to 8.0 + - Replace rails AR keyset apps with sinatra apps + - Improve consistency [CHANGELOG](https://ddnexus.github.io/pagy/changelog) diff --git a/CHANGELOG.md b/CHANGELOG.md index f245a8525..7f46d1c5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,14 @@ If you upgrade from version `< 9.0.0` see the following: - `:after_latest` keyset variable: use `:filter_newest`
+## Version 9.2.1 + +- Improve bin/pagy to dynamically find apps and descriptions +- Apps refactoring: + - Update rails to 8.0 + - Replace rails AR keyset apps with sinatra apps + - Improve consistency + ## Version 9.2.0 - Simplify the keyset API: diff --git a/Gemfile b/Gemfile index 04cc904cd..326050dc3 100644 --- a/Gemfile +++ b/Gemfile @@ -28,15 +28,13 @@ group :playground do gem 'groupdate' gem 'puma' gem 'rackup' - gem 'rails' + gem 'rails', '~> 8.0' gem 'rerun' gem 'rouge' gem 'sequel' gem 'sinatra' gem 'sinatra-contrib' - # activerecord/sqlite3_adapter.rb probably useless) constraint !!! - # https://github.com/rails/rails/blame/v7.1.3.4/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14 - gem 'sqlite3', '~> 1.4.0' + gem 'sqlite3' end # group :performance do diff --git a/Gemfile.lock b/Gemfile.lock index b37cec3c9..0db0e8891 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,71 +1,70 @@ PATH remote: gem specs: - pagy (9.2.0) + pagy (9.2.1) GEM remote: https://rubygems.org/ specs: - actioncable (7.2.2) - actionpack (= 7.2.2) - activesupport (= 7.2.2) + actioncable (8.0.0) + actionpack (= 8.0.0) + activesupport (= 8.0.0) nio4r (~> 2.0) websocket-driver (>= 0.6.1) zeitwerk (~> 2.6) - actionmailbox (7.2.2) - actionpack (= 7.2.2) - activejob (= 7.2.2) - activerecord (= 7.2.2) - activestorage (= 7.2.2) - activesupport (= 7.2.2) + actionmailbox (8.0.0) + actionpack (= 8.0.0) + activejob (= 8.0.0) + activerecord (= 8.0.0) + activestorage (= 8.0.0) + activesupport (= 8.0.0) mail (>= 2.8.0) - actionmailer (7.2.2) - actionpack (= 7.2.2) - actionview (= 7.2.2) - activejob (= 7.2.2) - activesupport (= 7.2.2) + actionmailer (8.0.0) + actionpack (= 8.0.0) + actionview (= 8.0.0) + activejob (= 8.0.0) + activesupport (= 8.0.0) mail (>= 2.8.0) rails-dom-testing (~> 2.2) - actionpack (7.2.2) - actionview (= 7.2.2) - activesupport (= 7.2.2) + actionpack (8.0.0) + actionview (= 8.0.0) + activesupport (= 8.0.0) nokogiri (>= 1.8.5) - racc - rack (>= 2.2.4, < 3.2) + rack (>= 2.2.4) rack-session (>= 1.0.1) rack-test (>= 0.6.3) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) useragent (~> 0.16) - actiontext (7.2.2) - actionpack (= 7.2.2) - activerecord (= 7.2.2) - activestorage (= 7.2.2) - activesupport (= 7.2.2) + actiontext (8.0.0) + actionpack (= 8.0.0) + activerecord (= 8.0.0) + activestorage (= 8.0.0) + activesupport (= 8.0.0) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.2.2) - activesupport (= 7.2.2) + actionview (8.0.0) + activesupport (= 8.0.0) builder (~> 3.1) erubi (~> 1.11) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) - activejob (7.2.2) - activesupport (= 7.2.2) + activejob (8.0.0) + activesupport (= 8.0.0) globalid (>= 0.3.6) - activemodel (7.2.2) - activesupport (= 7.2.2) - activerecord (7.2.2) - activemodel (= 7.2.2) - activesupport (= 7.2.2) + activemodel (8.0.0) + activesupport (= 8.0.0) + activerecord (8.0.0) + activemodel (= 8.0.0) + activesupport (= 8.0.0) timeout (>= 0.4.0) - activestorage (7.2.2) - actionpack (= 7.2.2) - activejob (= 7.2.2) - activerecord (= 7.2.2) - activesupport (= 7.2.2) + activestorage (8.0.0) + actionpack (= 8.0.0) + activejob (= 8.0.0) + activerecord (= 8.0.0) + activesupport (= 8.0.0) marcel (~> 1.0) - activesupport (7.2.2) + activesupport (8.0.0) base64 benchmark (>= 0.3) bigdecimal @@ -77,12 +76,13 @@ GEM minitest (>= 5.1) securerandom (>= 0.3) tzinfo (~> 2.0, >= 2.0.5) + uri (>= 0.13.1) addressable (2.8.7) public_suffix (>= 2.0.2, < 7.0) ansi (1.5.0) ast (2.4.2) base64 (0.2.0) - benchmark (0.3.0) + benchmark (0.4.0) bigdecimal (3.1.8) builder (3.3.0) concurrent-ruby (1.3.4) @@ -93,8 +93,16 @@ GEM domain_name (0.6.20240107) drb (2.2.1) erubi (1.13.0) + ffi (1.17.0-aarch64-linux-gnu) + ffi (1.17.0-aarch64-linux-musl) + ffi (1.17.0-arm-linux-gnu) + ffi (1.17.0-arm-linux-musl) + ffi (1.17.0-arm64-darwin) + ffi (1.17.0-x86-linux-gnu) + ffi (1.17.0-x86-linux-musl) ffi (1.17.0-x86_64-darwin) ffi (1.17.0-x86_64-linux-gnu) + ffi (1.17.0-x86_64-linux-musl) ffi-compiler (1.3.2) ffi (>= 1.15.5) rake @@ -117,7 +125,7 @@ GEM irb (1.14.1) rdoc (>= 4.0.0) reline (>= 0.4.2) - json (2.7.6) + json (2.8.1) language_server-protocol (3.17.0.3) listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) @@ -146,7 +154,7 @@ GEM mustermann (3.0.3) ruby2_keywords (~> 0.0.1) mutex_m (0.2.0) - net-imap (0.5.0) + net-imap (0.5.1) date net-protocol net-pop (0.1.2) @@ -156,6 +164,14 @@ GEM net-smtp (0.5.0) net-protocol nio4r (2.7.4) + nokogiri (1.16.7-aarch64-linux) + racc (~> 1.4) + nokogiri (1.16.7-arm-linux) + racc (~> 1.4) + nokogiri (1.16.7-arm64-darwin) + racc (~> 1.4) + nokogiri (1.16.7-x86-linux) + racc (~> 1.4) nokogiri (1.16.7-x86_64-darwin) racc (~> 1.4) nokogiri (1.16.7-x86_64-linux) @@ -163,12 +179,12 @@ GEM oj (3.16.7) bigdecimal (>= 3.0) ostruct (>= 0.2) - ostruct (0.6.0) + ostruct (0.6.1) parallel (1.26.3) - parser (3.3.5.1) + parser (3.3.6.0) ast (~> 2.4.1) racc - psych (5.1.2) + psych (5.2.0) stringio public_suffix (6.0.1) puma (6.4.3) @@ -184,20 +200,20 @@ GEM rack (>= 1.3) rackup (2.2.0) rack (>= 3) - rails (7.2.2) - actioncable (= 7.2.2) - actionmailbox (= 7.2.2) - actionmailer (= 7.2.2) - actionpack (= 7.2.2) - actiontext (= 7.2.2) - actionview (= 7.2.2) - activejob (= 7.2.2) - activemodel (= 7.2.2) - activerecord (= 7.2.2) - activestorage (= 7.2.2) - activesupport (= 7.2.2) + rails (8.0.0) + actioncable (= 8.0.0) + actionmailbox (= 8.0.0) + actionmailer (= 8.0.0) + actionpack (= 8.0.0) + actiontext (= 8.0.0) + actionview (= 8.0.0) + activejob (= 8.0.0) + activemodel (= 8.0.0) + activerecord (= 8.0.0) + activestorage (= 8.0.0) + activesupport (= 8.0.0) bundler (>= 1.15.0) - railties (= 7.2.2) + railties (= 8.0.0) rails-dom-testing (2.2.0) activesupport (>= 5.0.0) minitest @@ -205,9 +221,9 @@ GEM rails-html-sanitizer (1.6.0) loofah (~> 2.21) nokogiri (~> 1.14) - railties (7.2.2) - actionpack (= 7.2.2) - activesupport (= 7.2.2) + railties (8.0.0) + actionpack (= 8.0.0) + activesupport (= 8.0.0) irb (~> 1.13) rackup (>= 1.0.0) rake (>= 12.2) @@ -221,7 +237,7 @@ GEM rdoc (6.7.0) psych (>= 4.0.0) regexp_parser (2.9.2) - reline (0.5.10) + reline (0.5.11) io-console (~> 0.5) rematch (3.1.0) rerun (0.14.0) @@ -237,7 +253,7 @@ GEM rubocop-ast (>= 1.32.2, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.34.0) + rubocop-ast (1.34.1) parser (>= 3.3.1.0) rubocop-minitest (0.36.0) rubocop (>= 1.61, < 2.0) @@ -272,14 +288,24 @@ GEM rack-protection (= 4.0.0) sinatra (= 4.0.0) tilt (~> 2.0) - sqlite3 (1.4.4) - stringio (3.1.1) + sqlite3 (2.2.0-aarch64-linux-gnu) + sqlite3 (2.2.0-aarch64-linux-musl) + sqlite3 (2.2.0-arm-linux-gnu) + sqlite3 (2.2.0-arm-linux-musl) + sqlite3 (2.2.0-arm64-darwin) + sqlite3 (2.2.0-x86-linux-gnu) + sqlite3 (2.2.0-x86-linux-musl) + sqlite3 (2.2.0-x86_64-darwin) + sqlite3 (2.2.0-x86_64-linux-gnu) + sqlite3 (2.2.0-x86_64-linux-musl) + stringio (3.1.2) thor (1.3.2) tilt (2.4.0) - timeout (0.4.1) + timeout (0.4.2) tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (2.6.0) + uri (1.0.1) useragent (0.16.10) websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) @@ -287,8 +313,19 @@ GEM zeitwerk (2.7.1) PLATFORMS - x86_64-darwin-21 - x86_64-linux + aarch64-linux + aarch64-linux-gnu + aarch64-linux-musl + arm-linux + arm-linux-gnu + arm-linux-musl + arm64-darwin + x86-linux + x86-linux-gnu + x86-linux-musl + x86_64-darwin + x86_64-linux-gnu + x86_64-linux-musl DEPENDENCIES activesupport @@ -303,7 +340,7 @@ DEPENDENCIES puma rack rackup - rails + rails (~> 8.0) rake rematch rerun @@ -317,7 +354,7 @@ DEPENDENCIES simplecov sinatra sinatra-contrib - sqlite3 (~> 1.4.0) + sqlite3 BUNDLED WITH 2.5.11 diff --git a/README.md b/README.md index 96bb53835..bb8327a3c 100644 --- a/README.md +++ b/README.md @@ -282,7 +282,7 @@ See also the [How To Page](https://ddnexus.github.io/pagy/docs/how-to) -[](https://github.com/ddnexus/pagy/commits?author=ddnexus)[](https://github.com/ddnexus/pagy/commits?author=benkoshy)[](https://github.com/ddnexus/pagy/commits?author=grosser)[](https://github.com/ddnexus/pagy/commits?author=Earlopain)[](https://github.com/ddnexus/pagy/commits?author=workgena)[](https://github.com/ddnexus/pagy/commits?author=espen)[](https://github.com/ddnexus/pagy/commits?author=enzinia)[](https://github.com/ddnexus/pagy/commits?author=sunny)[](https://github.com/ddnexus/pagy/commits?author=molfar)[](https://github.com/ddnexus/pagy/commits?author=bquorning)[](https://github.com/ddnexus/pagy/commits?author=djpremier)[](https://github.com/ddnexus/pagy/commits?author=747)[](https://github.com/ddnexus/pagy/commits?author=tersor)[](https://github.com/ddnexus/pagy/commits?author=thomasklemm)[](https://github.com/ddnexus/pagy/commits?author=gamafranco)[](https://github.com/ddnexus/pagy/commits?author=tiagotex)[](https://github.com/ddnexus/pagy/commits?author=wimdavies)[](https://github.com/ddnexus/pagy/commits?author=renshuki)[](https://github.com/ddnexus/pagy/commits?author=berniechiu)[](https://github.com/ddnexus/pagy/commits?author=ashmaroli)[](https://github.com/ddnexus/pagy/commits?author=cseelus)[](https://github.com/ddnexus/pagy/commits?author=sabljak)[](https://github.com/ddnexus/pagy/commits?author=petergoldstein)[](https://github.com/ddnexus/pagy/commits?author=rainerborene)[](https://github.com/ddnexus/pagy/commits?author=rbngzlv)[](https://github.com/ddnexus/pagy/commits?author=simonneutert)[](https://github.com/ddnexus/pagy/commits?author=artplan1)[](https://github.com/ddnexus/pagy/commits?author=serghost)[](https://github.com/ddnexus/pagy/commits?author=Tolchi)[](https://github.com/ddnexus/pagy/commits?author=rogermarlow)[](https://github.com/ddnexus/pagy/commits?author=yenshirak)[](https://github.com/ddnexus/pagy/commits?author=rafaelmontas)[](https://github.com/ddnexus/pagy/commits?author=rafaeelaudibert)[](https://github.com/ddnexus/pagy/commits?author=pedrocarmona)[](https://github.com/ddnexus/pagy/commits?author=olleolleolle)[](https://github.com/ddnexus/pagy/commits?author=olieidel)[](https://github.com/ddnexus/pagy/commits?author=okuramasafumi)[](https://github.com/ddnexus/pagy/commits?author=WilliamHorel)[](https://github.com/ddnexus/pagy/commits?author=woller)[](https://github.com/ddnexus/pagy/commits?author=sk8higher)[](https://github.com/ddnexus/pagy/commits?author=muhammadnawzad)[](https://github.com/ddnexus/pagy/commits?author=ronald)[](https://github.com/ddnexus/pagy/commits?author=achmiral)[](https://github.com/ddnexus/pagy/commits?author=mauro-ni)[](https://github.com/ddnexus/pagy/commits?author=borama)[](https://github.com/ddnexus/pagy/commits?author=creativetags)[](https://github.com/ddnexus/pagy/commits?author=mcary)[](https://github.com/ddnexus/pagy/commits?author=marckohlbrugge)[](https://github.com/ddnexus/pagy/commits?author=fluser)[](https://github.com/ddnexus/pagy/commits?author=maful)[](https://github.com/ddnexus/pagy/commits?author=AngelGuerra)[](https://github.com/ddnexus/pagy/commits?author=tr4b4nt)[](https://github.com/ddnexus/pagy/commits?author=tiejianluo)[](https://github.com/ddnexus/pagy/commits?author=szTheory)[](https://github.com/ddnexus/pagy/commits?author=smoothdvd)[](https://github.com/ddnexus/pagy/commits?author=rhodes-david)[](https://github.com/ddnexus/pagy/commits?author=radinreth)[](https://github.com/ddnexus/pagy/commits?author=pranavbabu)[](https://github.com/ddnexus/pagy/commits?author=okliv)[](https://github.com/ddnexus/pagy/commits?author=nedimdz)[](https://github.com/ddnexus/pagy/commits?author=msdundar)[](https://github.com/ddnexus/pagy/commits?author=m-abdurrehman)[](https://github.com/ddnexus/pagy/commits?author=dwieringa)[](https://github.com/ddnexus/pagy/commits?author=jyuvaraj03)[](https://github.com/ddnexus/pagy/commits?author=YutoYasunaga)[](https://github.com/ddnexus/pagy/commits?author=iamyujinwon)[](https://github.com/ddnexus/pagy/commits?author=yhk1038)[](https://github.com/ddnexus/pagy/commits?author=ya-s-u)[](https://github.com/ddnexus/pagy/commits?author=yshmarov)[](https://github.com/ddnexus/pagy/commits?author=thattimc)[](https://github.com/ddnexus/pagy/commits?author=thomaschauffour)[](https://github.com/ddnexus/pagy/commits?author=snkashis)[](https://github.com/ddnexus/pagy/commits?author=sliminas)[](https://github.com/ddnexus/pagy/commits?author=LuukvH)[](https://github.com/ddnexus/pagy/commits?author=Federico-G)[](https://github.com/ddnexus/pagy/commits?author=egimenos)[](https://github.com/ddnexus/pagy/commits?author=elliotlarson)[](https://github.com/ddnexus/pagy/commits?author=hungdiep97)[](https://github.com/ddnexus/pagy/commits?author=davidwessman)[](https://github.com/ddnexus/pagy/commits?author=david-a-wheeler)[](https://github.com/ddnexus/pagy/commits?author=daniel-rikowski)[](https://github.com/ddnexus/pagy/commits?author=connie-feng)[](https://github.com/ddnexus/pagy/commits?author=MrMoins)[](https://github.com/ddnexus/pagy/commits?author=excid3)[](https://github.com/ddnexus/pagy/commits?author=cellvinchung)[](https://github.com/ddnexus/pagy/commits?author=brunoocasali)[](https://github.com/ddnexus/pagy/commits?author=branson-simplethread)[](https://github.com/ddnexus/pagy/commits?author=BrandonKlotz)[](https://github.com/ddnexus/pagy/commits?author=benjaminwols)[](https://github.com/ddnexus/pagy/commits?author=Atul9)[](https://github.com/ddnexus/pagy/commits?author=amenon)[](https://github.com/ddnexus/pagy/commits?author=artinboghosian)[](https://github.com/ddnexus/pagy/commits?author=antonzaharia)[](https://github.com/ddnexus/pagy/commits?author=PyrinAndrii)[](https://github.com/ddnexus/pagy/commits?author=andrew)[](https://github.com/ddnexus/pagy/commits?author=AliOsm)[](https://github.com/ddnexus/pagy/commits?author=AbelToy)[](https://github.com/ddnexus/pagy/commits?author=loed-idzinga)[](https://github.com/ddnexus/pagy/commits?author=epeirce)[](https://github.com/ddnexus/pagy/commits?author=kobusjoubert) +[](https://github.com/ddnexus/pagy/commits?author=ddnexus)[](https://github.com/ddnexus/pagy/commits?author=benkoshy)[](https://github.com/ddnexus/pagy/commits?author=grosser)[](https://github.com/ddnexus/pagy/commits?author=Earlopain)[](https://github.com/ddnexus/pagy/commits?author=workgena)[](https://github.com/ddnexus/pagy/commits?author=espen)[](https://github.com/ddnexus/pagy/commits?author=enzinia)[](https://github.com/ddnexus/pagy/commits?author=sunny)[](https://github.com/ddnexus/pagy/commits?author=molfar)[](https://github.com/ddnexus/pagy/commits?author=bquorning)[](https://github.com/ddnexus/pagy/commits?author=djpremier)[](https://github.com/ddnexus/pagy/commits?author=747)[](https://github.com/ddnexus/pagy/commits?author=tersor)[](https://github.com/ddnexus/pagy/commits?author=thomasklemm)[](https://github.com/ddnexus/pagy/commits?author=gamafranco)[](https://github.com/ddnexus/pagy/commits?author=tiagotex)[](https://github.com/ddnexus/pagy/commits?author=wimdavies)[](https://github.com/ddnexus/pagy/commits?author=renshuki)[](https://github.com/ddnexus/pagy/commits?author=berniechiu)[](https://github.com/ddnexus/pagy/commits?author=ashmaroli)[](https://github.com/ddnexus/pagy/commits?author=cseelus)[](https://github.com/ddnexus/pagy/commits?author=sabljak)[](https://github.com/ddnexus/pagy/commits?author=petergoldstein)[](https://github.com/ddnexus/pagy/commits?author=rainerborene)[](https://github.com/ddnexus/pagy/commits?author=rbngzlv)[](https://github.com/ddnexus/pagy/commits?author=simonneutert)[](https://github.com/ddnexus/pagy/commits?author=artplan1)[](https://github.com/ddnexus/pagy/commits?author=serghost)[](https://github.com/ddnexus/pagy/commits?author=Tolchi)[](https://github.com/ddnexus/pagy/commits?author=rogermarlow)[](https://github.com/ddnexus/pagy/commits?author=yenshirak)[](https://github.com/ddnexus/pagy/commits?author=rafaelmontas)[](https://github.com/ddnexus/pagy/commits?author=rafaeelaudibert)[](https://github.com/ddnexus/pagy/commits?author=pedrocarmona)[](https://github.com/ddnexus/pagy/commits?author=olleolleolle)[](https://github.com/ddnexus/pagy/commits?author=olieidel)[](https://github.com/ddnexus/pagy/commits?author=okuramasafumi)[](https://github.com/ddnexus/pagy/commits?author=WilliamHorel)[](https://github.com/ddnexus/pagy/commits?author=woller)[](https://github.com/ddnexus/pagy/commits?author=sk8higher)[](https://github.com/ddnexus/pagy/commits?author=muhammadnawzad)[](https://github.com/ddnexus/pagy/commits?author=ronald)[](https://github.com/ddnexus/pagy/commits?author=achmiral)[](https://github.com/ddnexus/pagy/commits?author=mauro-ni)[](https://github.com/ddnexus/pagy/commits?author=borama)[](https://github.com/ddnexus/pagy/commits?author=creativetags)[](https://github.com/ddnexus/pagy/commits?author=mcary)[](https://github.com/ddnexus/pagy/commits?author=marckohlbrugge)[](https://github.com/ddnexus/pagy/commits?author=fluser)[](https://github.com/ddnexus/pagy/commits?author=maful)[](https://github.com/ddnexus/pagy/commits?author=AngelGuerra)[](https://github.com/ddnexus/pagy/commits?author=tr4b4nt)[](https://github.com/ddnexus/pagy/commits?author=tiejianluo)[](https://github.com/ddnexus/pagy/commits?author=szTheory)[](https://github.com/ddnexus/pagy/commits?author=smoothdvd)[](https://github.com/ddnexus/pagy/commits?author=rhodes-david)[](https://github.com/ddnexus/pagy/commits?author=radinreth)[](https://github.com/ddnexus/pagy/commits?author=pranavbabu)[](https://github.com/ddnexus/pagy/commits?author=okliv)[](https://github.com/ddnexus/pagy/commits?author=nedimdz)[](https://github.com/ddnexus/pagy/commits?author=msdundar)[](https://github.com/ddnexus/pagy/commits?author=m-abdurrehman)[](https://github.com/ddnexus/pagy/commits?author=dwieringa)[](https://github.com/ddnexus/pagy/commits?author=jyuvaraj03)[](https://github.com/ddnexus/pagy/commits?author=YutoYasunaga)[](https://github.com/ddnexus/pagy/commits?author=iamyujinwon)[](https://github.com/ddnexus/pagy/commits?author=yhk1038)[](https://github.com/ddnexus/pagy/commits?author=ya-s-u)[](https://github.com/ddnexus/pagy/commits?author=yshmarov)[](https://github.com/ddnexus/pagy/commits?author=thattimc)[](https://github.com/ddnexus/pagy/commits?author=thomaschauffour)[](https://github.com/ddnexus/pagy/commits?author=snkashis)[](https://github.com/ddnexus/pagy/commits?author=sliminas)[](https://github.com/ddnexus/pagy/commits?author=LuukvH)[](https://github.com/ddnexus/pagy/commits?author=Federico-G)[](https://github.com/ddnexus/pagy/commits?author=egimenos)[](https://github.com/ddnexus/pagy/commits?author=elliotlarson)[](https://github.com/ddnexus/pagy/commits?author=hungdiep97)[](https://github.com/ddnexus/pagy/commits?author=davidwessman)[](https://github.com/ddnexus/pagy/commits?author=david-a-wheeler)[](https://github.com/ddnexus/pagy/commits?author=daniel-rikowski)[](https://github.com/ddnexus/pagy/commits?author=connie-feng)[](https://github.com/ddnexus/pagy/commits?author=MrMoins)[](https://github.com/ddnexus/pagy/commits?author=excid3)[](https://github.com/ddnexus/pagy/commits?author=cellvinchung)[](https://github.com/ddnexus/pagy/commits?author=brunoocasali)[](https://github.com/ddnexus/pagy/commits?author=branson-simplethread)[](https://github.com/ddnexus/pagy/commits?author=BrandonKlotz)[](https://github.com/ddnexus/pagy/commits?author=benjaminwols)[](https://github.com/ddnexus/pagy/commits?author=Atul9)[](https://github.com/ddnexus/pagy/commits?author=amenon)[](https://github.com/ddnexus/pagy/commits?author=artinboghosian)[](https://github.com/ddnexus/pagy/commits?author=antonzaharia)[](https://github.com/ddnexus/pagy/commits?author=PyrinAndrii)[](https://github.com/ddnexus/pagy/commits?author=andrew)[](https://github.com/ddnexus/pagy/commits?author=AliOsm)[](https://github.com/ddnexus/pagy/commits?author=AbelToy)[](https://github.com/ddnexus/pagy/commits?author=loed-idzinga)[](https://github.com/ddnexus/pagy/commits?author=epeirce)[](https://github.com/ddnexus/pagy/commits?author=kobusjoubert)
diff --git a/bun.lockb b/bun.lockb index 7c863aef6..873b69aa3 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/e2e/cy/open b/e2e/cy/open index 9ae47830b..cc28b5410 100755 --- a/e2e/cy/open +++ b/e2e/cy/open @@ -9,4 +9,4 @@ root="$(git rev-parse --show-toplevel)" . "$root/scripts/cd-and-back.sh" cd "$root/e2e" -start-test "bundle exec pagy $app -p $port" http://0.0.0.0:$port --no-install "cypress open" +start-test "bundle exec $root/gem/bin/pagy $app -p $port" http://0.0.0.0:$port --no-install "cypress open" diff --git a/e2e/cy/reconcile b/e2e/cy/reconcile index bd681ed41..99c635c27 100755 --- a/e2e/cy/reconcile +++ b/e2e/cy/reconcile @@ -13,7 +13,7 @@ echo > snapshots.js test () { NODE_NO_WARNINGS=1 \ - start-test "bundle exec pagy $app -p $port -q --no-install > /dev/null" "http://0.0.0.0:$port" \ + start-test "bundle exec $root/gem/bin/pagy $app -p $port -q --no-install > /dev/null" "http://0.0.0.0:$port" \ "cypress run --quiet --config baseUrl=http://0.0.0.0:$port --spec cypress/e2e/$app.cy.ts" } diff --git a/e2e/cy/test b/e2e/cy/test index 96d171349..b484709e7 100755 --- a/e2e/cy/test +++ b/e2e/cy/test @@ -11,7 +11,7 @@ cd "$root/e2e" test () { NODE_NO_WARNINGS=1 \ - start-test "bundle exec pagy $app -p $port -q --no-install > /dev/null" "http://0.0.0.0:$port" \ + start-test "bundle exec $root/gem/bin/pagy $app -p $port -q --no-install > /dev/null" "http://0.0.0.0:$port" \ "cypress run --quiet --config baseUrl=http://0.0.0.0:$port --spec cypress/e2e/$app.cy.ts" } diff --git a/e2e/snapshots.js b/e2e/snapshots.js index 1deef103c..91a548616 100644 --- a/e2e/snapshots.js +++ b/e2e/snapshots.js @@ -283,7 +283,7 @@ module.exports = { "6": "Displaying items 981-1000 of 1000 in total" } }, - "__version": "13.15.1", + "__version": "13.15.2", "[repro] Test helpers": { "[repro] Test #nav": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", diff --git a/gem/apps/calendar.ru b/gem/apps/calendar.ru index c150e541c..36b0ede3b 100644 --- a/gem/apps/calendar.ru +++ b/gem/apps/calendar.ru @@ -1,23 +1,24 @@ # frozen_string_literal: true -# Interactive showcase for the pagy calendar extra (https://ddnexus.github.io/pagy/docs/extras/calendar) - +# DESCRIPTION +# Showcase the calendar; reproduce related issues +# +# DOC +# https://ddnexus.github.io/pagy/playground/#5-calendar-app +# +# BIN HELP +# bundle exec pagy -h +# # DEV USAGE -# pagy clone calendar -# pagy ./calendar.ru - +# bundle exec pagy clone calendar +# bundle exec pagy ./calendar.ru +# # URL # http://0.0.0.0:8000 -# HELP -# pagy -h - -# DOC -# https://ddnexus.github.io/pagy/playground/#5-calendar-app - -VERSION = '9.2.0' +VERSION = '9.2.1' -# Gemfile +# Bundle require 'bundler/inline' require 'bundler' Bundler.configure @@ -25,10 +26,8 @@ gemfile(ENV['PAGY_INSTALL_BUNDLE'] == 'true') do source 'https://rubygems.org' gem 'groupdate' gem 'puma' - gem 'rails' - # activerecord/sqlite3_adapter.rb probably useless) constraint !!! - # https://github.com/rails/rails/blame/v7.1.3.4/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14 - gem 'sqlite3', '~> 1.4.0' + gem 'rails', '~> 8.0' + gem 'sqlite3' end # require 'rails/all' # too much stuff @@ -53,10 +52,8 @@ end # AR config dir = Rails.env.development? ? '.' : Dir.pwd # app dir in dev or pwd otherwise -unless File.writable?(dir) - warn "ERROR: directory #{dir.inspect} is not writable (the calendar-app needs to create DB files)" - exit 1 -end +abort "ERROR: Cannot create DB files: the directory #{dir.inspect} is not writable." \ + unless File.writable?(dir) # Pagy initializer require 'pagy/extras/calendar' @@ -78,8 +75,7 @@ ActiveRecord::Schema.define do end # Models -class Event < ActiveRecord::Base -end +class Event < ActiveRecord::Base; end # Helpers module EventsHelper @@ -173,7 +169,7 @@ TEMPLATE = <<~ERB

Pagy Calendar App

-

Self-contained, standalone Rails app implementing nested calendar pagination for year, month, day units.

+

Self-contained, standalone app implementing nested calendar pagination for year, month, day units.

See the Pagy Calendar Extra for details.

Please, report the following versions in any new issue.

Versions

diff --git a/gem/apps/demo.ru b/gem/apps/demo.ru index 4caf7b09e..5638ede0f 100644 --- a/gem/apps/demo.ru +++ b/gem/apps/demo.ru @@ -1,25 +1,27 @@ # frozen_string_literal: true -# Interactive showcase for all the pagy helpers and CSS styles - +# DESCRIPTION +# Showcase all the helpers and styles +# +# DOC +# https://ddnexus.github.io/pagy/playground/#3-demo-app +# +# BIN HELP +# bundle exec pagy -h +# # DEMO USAGE -# pagy demo - +# bundle exec pagy demo +# # DEV USAGE -# pagy clone demo -# pagy ./demo.ru - +# bundle exec pagy clone demo +# bundle exec pagy ./demo.ru +# # URL # http://0.0.0.0:8000 -# HELP -# pagy -h - -# DOC -# https://ddnexus.github.io/pagy/playground/#3-demo-app - -VERSION = '9.2.0' +VERSION = '9.2.1' +# Bundle require 'bundler/inline' require 'bundler' Bundler.configure @@ -45,10 +47,10 @@ require 'pagy/extras/limit' require 'pagy/extras/trim' Pagy::DEFAULT[:trim_extra] = false # opt-in trim -# sinatra setup +# Sinatra setup require 'sinatra/base' -# sinatra application +# Sinatra application class PagyDemo < Sinatra::Base configure do enable :inline_templates diff --git a/gem/apps/keyset_ar.ru b/gem/apps/keyset_ar.ru index 9ac3ca371..f6b2d77f6 100644 --- a/gem/apps/keyset_ar.ru +++ b/gem/apps/keyset_ar.ru @@ -1,69 +1,96 @@ # frozen_string_literal: true -# Starting point to reproduce keyset related pagy issues - +# DESCRIPTION +# Showcase the keyset ActiveRecord pagination +# +# DOC +# https://ddnexus.github.io/pagy/playground/#5-keyset-apps +# +# BIN HELP +# bundle exec pagy -h +# # DEV USAGE -# pagy clone rails -# pagy ./keyset.ru - +# bundle exec pagy clone keyset_ar +# bundle exec pagy ./keyset_ar.ru +# # URL # http://0.0.0.0:8000 -# HELP -# pagy -h - -# DOC -# https://ddnexus.github.io/pagy/playground/#5-keyset-app - -VERSION = '8.6.2' +VERSION = '9.2.1' -# Gemfile +# Bundle require 'bundler/inline' require 'bundler' Bundler.configure gemfile(ENV['PAGY_INSTALL_BUNDLE'] == 'true') do source 'https://rubygems.org' - gem 'oj' + gem 'activerecord' gem 'puma' - gem 'rails' - # activerecord/sqlite3_adapter.rb probably useless) constraint !!! - # https://github.com/rails/rails/blame/v7.1.3.4/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14 - gem 'sqlite3', '~> 1.4.0' + gem 'sinatra' + gem 'sinatra-contrib' + gem 'sqlite3' end -# require 'rails/all' # too much stuff -require 'action_controller/railtie' -require 'active_record' +# Pagy initializer +require 'pagy/extras/limit' +require 'pagy/extras/keyset' +require 'pagy/extras/pagy' +Pagy::DEFAULT[:limit] = 10 +Pagy::DEFAULT.freeze -OUTPUT = Rails.env.showcase? ? IO::NULL : $stdout +# Sinatra setup +require 'sinatra/base' +# Sinatra application +class PagyKeyset < Sinatra::Base + configure do + # Templates defined in the __END__ section as @@ ... + enable :inline_templates + end -# Rails config -class PagyKeyset < Rails::Application # :nodoc: - config.root = __dir__ - config.session_store :cookie_store, key: 'cookie_store_key' - Rails.application.credentials.secret_key_base = 'absolute_secret' + # Controller + include Pagy::Backend + # Root route/action + get '/' do + Time.zone = 'UTC' - config.logger = Logger.new(OUTPUT) - Rails.logger = config.logger + @order = { animal: :asc, name: :asc, birthdate: :desc, id: :asc } + @pagy, @pets = pagy_keyset(Pet.order(@order)) + erb :main + end + # Helper + helpers do + include Pagy::Frontend - routes.draw do - root to: 'pets#index' + def order_symbol(dir) + { asc: '↗', desc: '↘' }[dir] + end end end -dir = Rails.env.development? ? '.' : Dir.pwd # app dir in dev or pwd otherwise -unless File.writable?(dir) - warn "ERROR: directory #{dir.inspect} is not writable (the pagy-rails-app needs to create DB files)" - exit 1 +# ActiveRecord setup +require 'active_record' +# Log +output = ENV['APP_ENV'].equal?('showcase') ? IO::NULL : $stdout +ActiveRecord::Base.logger = Logger.new(output) +# SQLite DB files +dir = ENV['APP_ENV'].equal?('development') ? '.' : Dir.pwd # app dir in dev or pwd otherwise +abort "ERROR: Cannot create DB files: the directory #{dir.inspect} is not writable." \ + unless File.writable?(dir) +# Connection +ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: "#{dir}/tmp/pagy-keyset-ar.sqlite3") +# Schema +ActiveRecord::Schema.define do + create_table :pets, force: true do |t| + t.string :animal + t.string :name + t.date :birthdate + end end -# Pagy initializer -require 'pagy/extras/pagy' -require 'pagy/extras/limit' -require 'pagy/extras/keyset' -Pagy::DEFAULT[:limit] = 10 -Pagy::DEFAULT.freeze +# Models +class Pet < ActiveRecord::Base; end +# Data PETS = <<~PETS Luna | dog | 2018-03-10 Coco | cat | 2019-05-15 @@ -117,21 +144,6 @@ PETS = <<~PETS Coco | dog | 2023-05-27 PETS -# Activerecord initializer -ActiveRecord::Base.logger = Logger.new(OUTPUT) -ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: "#{dir}/tmp/pagy-keyset-ar.sqlite3") -ActiveRecord::Schema.define do - create_table :pets, force: true do |t| - t.string :animal - t.string :name - t.date :birthdate - end -end - -# Models -class Pet < ActiveRecord::Base -end - # DB seed pets = [] PETS.each_line(chomp: true) do |pet| @@ -140,97 +152,75 @@ PETS.each_line(chomp: true) do |pet| end Pet.insert_all(pets) -# Helpers -module PetsHelper - include Pagy::Frontend - - def order_symbol(dir) - { asc: '↗', desc: '↘' }[dir] - end -end - -# Controllers -class PetsController < ActionController::Base # :nodoc: - include Rails.application.routes.url_helpers - include Pagy::Backend - - def index - Time.zone = 'UTC' - - @order = { animal: :asc, name: :asc, birthdate: :desc, id: :asc } - @pagy, @pets = pagy_keyset(Pet.order(@order)) - render inline: TEMPLATE - end -end - -TEMPLATE = <<~ERB - - - - - Pagy Keyset App - - - - - - -
-

Pagy Keyset App

-

Self-contained, standalone Rails app usable to easily reproduce any keyset related pagy issue with ActiveRecord sets.

-

Please, report the following versions in any new issue.

-

Versions

- - -

Collection

-
- - - - - - - - <% @pets.each do |pet| %> - - - - - - - <% end %> -
animal <%== order_symbol(@order[:animal]) %>name <%== order_symbol(@order[:name]) %>birthdate <%== order_symbol(@order[:birthdate]) %>id <%== order_symbol(@order[:id]) %>
<%= pet.animal %><%= pet.name %><%= pet.birthdate %><%= pet.id %>
-
-

-

-
- - - -ERB - run PagyKeyset + +__END__ + +@@ layout + + + + + Pagy Keyset App + + + + + <%= yield %> + + + +@@ main +
+

Pagy Keyset App

+

Self-contained, standalone app usable to easily reproduce any keyset related pagy issue with ActiveRecord sets.

+

Please, report the following versions in any new issue.

+

Versions

+ + +

Collection

+
+ + + + + + + + <% @pets.each do |pet| %> + + + + + + + <% end %> +
animal <%= order_symbol(@order[:animal]) %>name <%= order_symbol(@order[:name]) %>birthdate <%= order_symbol(@order[:birthdate]) %>id <%= order_symbol(@order[:id]) %>
<%= pet.animal %><%= pet.name %><%= pet.birthdate %><%= pet.id %>
+
+

+

+
diff --git a/gem/apps/keyset_s.ru b/gem/apps/keyset_s.ru index 329b71c48..e8e6b22c4 100644 --- a/gem/apps/keyset_s.ru +++ b/gem/apps/keyset_s.ru @@ -1,70 +1,94 @@ # frozen_string_literal: true -# Starting point to reproduce keyset related pagy issues - +# DESCRIPTION +# Showcase the keyset ActiveRecord pagination +# +# DOC +# https://ddnexus.github.io/pagy/playground/#5-keyset-apps +# +# BIN HELP +# bundle exec pagy -h +# # DEV USAGE -# pagy clone rails -# pagy ./keyset.ru - +# bundle exec pagy clone keyset_ar +# bundle exec pagy ./keyset_ar.ru +# # URL # http://0.0.0.0:8000 -# HELP -# pagy -h - -# DOC -# https://ddnexus.github.io/pagy/playground/#5-keyset-app - -VERSION = '8.6.2' +VERSION = '9.2.1' -# Gemfile +# Bundle require 'bundler/inline' require 'bundler' Bundler.configure gemfile(ENV['PAGY_INSTALL_BUNDLE'] == 'true') do source 'https://rubygems.org' - gem 'oj' gem 'puma' - gem 'rails' - # activerecord/sqlite3_adapter.rb probably useless) constraint !!! - # https://github.com/rails/rails/blame/v7.1.3.4/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14 - gem 'sqlite3', '~> 1.4.0' gem 'sequel' + gem 'sinatra' + gem 'sinatra-contrib' + gem 'sqlite3' end -# require 'rails/all' # too much stuff -require 'action_controller/railtie' -require 'sequel' - -OUTPUT = Rails.env.showcase? ? IO::NULL : $stdout +# Pagy initializer +require 'pagy/extras/limit' +require 'pagy/extras/keyset' +require 'pagy/extras/pagy' +Pagy::DEFAULT[:limit] = 10 +Pagy::DEFAULT.freeze -# Rails config -class PagyKeyset < Rails::Application # :nodoc: - config.root = __dir__ - config.session_store :cookie_store, key: 'cookie_store_key' - Rails.application.credentials.secret_key_base = 'absolute_secret' +# Sinatra setup +require 'sinatra/base' +require 'logger' +# Sinatra application +class PagyKeyset < Sinatra::Base + configure do + # Templates defined in the __END__ section as @@ ... + enable :inline_templates + end - config.logger = Logger.new(OUTPUT) - Rails.logger = config.logger + # Controller + include Pagy::Backend + # Root route/action + get '/' do + @order = { animal: :asc, name: :asc, birthdate: :desc, id: :asc } + @pagy, @pets = pagy_keyset(Pet.order(:animal, :name, Sequel.desc(:birthdate), :id)) + erb :main + end + # Helper + helpers do + include Pagy::Frontend - routes.draw do - root to: 'pets#index' + def order_symbol(dir) + { asc: '↗', desc: '↘' }[dir] + end end end -dir = Rails.env.development? ? '.' : Dir.pwd # app dir in dev or pwd otherwise +# Sequel setup +require 'sequel' +Sequel.default_timezone = :utc +# SQLite DB files +dir = ENV['APP_ENV'].equal?('development') ? '.' : Dir.pwd # app dir in dev or pwd otherwise +abort "ERROR: Cannot create DB files: the directory #{dir.inspect} is not writable." \ unless File.writable?(dir) - warn "ERROR: directory #{dir.inspect} is not writable (the pagy-rails-app needs to create DB files)" - exit 1 +# Connection +output = ENV['APP_ENV'].equal?('showcase') ? IO::NULL : $stdout +DB = Sequel.connect(adapter: 'sqlite', user: 'root', password: 'password', host: 'localhost', port: '3306', + database: "#{dir}/tmp/pagy-keyset-s.sqlite3", max_connections: 10, loggers: [Logger.new(output)]) +# Schema +DB.create_table! :pets do + primary_key :id + String :animal, unique: false, null: false + String :name, unique: false, null: false + Date :birthdate, unique: false, null: false end -# Pagy initializer -require 'pagy/extras/pagy' -require 'pagy/extras/limit' -require 'pagy/extras/keyset' -Pagy::DEFAULT[:limit] = 10 -Pagy::DEFAULT.freeze +# Models +class Pet < Sequel::Model; end +# Data PETS = <<~PETS Luna | dog | 2018-03-10 Coco | cat | 2019-05-15 @@ -118,121 +142,81 @@ PETS = <<~PETS Coco | dog | 2023-05-27 PETS -Sequel.default_timezone = :utc - -## Sequel initializer -DB = Sequel.connect(adapter: 'sqlite', user: 'root', password: 'password', host: 'localhost', port: '3306', - database: "#{dir}/tmp/pagy-keyset-s.sqlite3", max_connections: 10, loggers: [Logger.new(OUTPUT)]) - -DB.create_table! :pets do - primary_key :id - String :animal, unique: false, null: false - String :name, unique: false, null: false - Date :birthdate, unique: false, null: false -end - dataset = DB[:pets] - PETS.each_line(chomp: true) do |pet| name, animal, birthdate = pet.split('|').map(&:strip) dataset.insert(name:, animal:, birthdate:) end -# Models -class Pet < Sequel::Model -end - -# Helpers -module PetsHelper - include Pagy::Frontend - - def order_symbol(dir) - { asc: '↗', desc: '↘' }[dir] - end -end - -# Controllers -class PetsController < ActionController::Base # :nodoc: - include Rails.application.routes.url_helpers - include Pagy::Backend - - def index - Time.zone = 'UTC' - - @order = { animal: :asc, name: :asc, birthdate: :desc, id: :asc } - @pagy, @pets = pagy_keyset(Pet.order(:animal, :name, Sequel.desc(:birthdate), :id)) - render inline: TEMPLATE - end -end - -TEMPLATE = <<~ERB - - - - - Pagy Keyset App - - - - - - -
-

Pagy Keyset App

-

Self-contained, standalone Rails app usable to easily reproduce any keyset related pagy issue with Sequel sets.

-

Please, report the following versions in any new issue.

-

Versions

- - -

Collection

-
- - - - - - - - <% @pets.each do |pet| %> - - - - - - - <% end %> -
animal <%== order_symbol(@order[:animal]) %>name <%== order_symbol(@order[:name]) %>birthdate <%== order_symbol(@order[:birthdate]) %>id <%== order_symbol(@order[:id]) %>
<%= pet.animal %><%= pet.name %><%= pet.birthdate %><%= pet.id %>
-
-

-

-
- - - -ERB - run PagyKeyset + +__END__ + +@@ layout + + + + + Pagy Keyset App + + + + + <%= yield %> + + + +@@ main +
+

Pagy Keyset App

+

Self-contained, standalone app usable to easily reproduce any keyset related pagy issue with ActiveRecord sets.

+

Please, report the following versions in any new issue.

+

Versions

+ + +

Collection

+
+ + + + + + + + <% @pets.each do |pet| %> + + + + + + + <% end %> +
animal <%= order_symbol(@order[:animal]) %>name <%= order_symbol(@order[:name]) %>birthdate <%= order_symbol(@order[:birthdate]) %>id <%= order_symbol(@order[:id]) %>
<%= pet.animal %><%= pet.name %><%= pet.birthdate %><%= pet.id %>
+
+

+

+
diff --git a/gem/apps/rails.ru b/gem/apps/rails.ru index c3d38096f..384548a58 100644 --- a/gem/apps/rails.ru +++ b/gem/apps/rails.ru @@ -1,21 +1,22 @@ # frozen_string_literal: true -# Starting point to reproduce rails related pagy issues - +# DESCRIPTION +# Reproduce rails related issues +# +# DOC +# https://ddnexus.github.io/pagy/playground/#2-rails-app +# +# BIN HELP +# bundle exec pagy -h +# # DEV USAGE -# pagy clone rails -# pagy ./rails.ru - +# bundle exec pagy clone rails +# bundle exec pagy ./rails.ru +# # URL # http://0.0.0.0:8000 -# HELP -# pagy -h - -# DOC -# https://ddnexus.github.io/pagy/playground/#2-rails-app - -VERSION = '9.2.0' +VERSION = '9.2.1' # Gemfile require 'bundler/inline' @@ -25,10 +26,8 @@ gemfile(ENV['PAGY_INSTALL_BUNDLE'] == 'true') do source 'https://rubygems.org' gem 'oj' gem 'puma' - gem 'rails' - # activerecord/sqlite3_adapter.rb probably useless) constraint !!! - # https://github.com/rails/rails/blame/v7.1.3.4/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14 - gem 'sqlite3', '~> 1.4.0' + gem 'rails', '~> 8.0' + gem 'sqlite3' end # require 'rails/all' # too much stuff diff --git a/gem/apps/repro.ru b/gem/apps/repro.ru index 0fb2b0df3..ed15bd07d 100644 --- a/gem/apps/repro.ru +++ b/gem/apps/repro.ru @@ -1,22 +1,24 @@ # frozen_string_literal: true -# Starting point app to try pagy or reproduce issues - +# DESCRIPTION +# Reproduce generic/simple issues +# +# DOC +# https://ddnexus.github.io/pagy/playground/#1-repro-app +# +# BIN HELP +# bundle exec pagy -h +# # DEV USAGE -# pagy clone repro -# pagy ./repro.ru - +# bundle exec pagy clone repro +# bundle exec pagy ./repro.ru +# # URL # http://0.0.0.0:8000 -# HELP -# pagy -h - -# DOC -# https://ddnexus.github.io/pagy/playground/#1-repro-app - -VERSION = '9.2.0' +VERSION = '9.2.1' +# Bundle require 'bundler/inline' require 'bundler' Bundler.configure @@ -36,6 +38,7 @@ require 'pagy/extras/overflow' Pagy::DEFAULT[:overflow] = :empty_page Pagy::DEFAULT.freeze +# Sinatra setup require 'sinatra/base' # Sinatra application class PagyRepro < Sinatra::Base @@ -141,7 +144,7 @@ __END__ @@ main

Pagy Repro App

-

Self-contained, standalone Sinatra app usable to easily reproduce any pagy issue.

+

Self-contained, standalone app usable to easily reproduce any pagy issue.

Please, report the following versions in any new issue.

Versions