Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Jan 18, 2024
2 parents 25fe110 + a369429 commit 757d2e3
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
GEM=pagy
VERSION=6.4.2
VERSION=6.4.3
3 changes: 0 additions & 3 deletions .github/workflows/pagy-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ jobs:
strategy:
matrix:
include:
- ruby-version: '3.0'
env:
BUNDLE_GEMFILE: .github/gemfiles/default
- ruby-version: '3.1'
env:
BUNDLE_GEMFILE: .github/gemfiles/default
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
ruby-version: '3.1'
- run: bundle install

- name: Dotenv Action
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ None

<hr>

## Version 6.4.3

- Exclude coverage for prepend conditional, ruby < 3.0 syntax for prepend

## Version 6.4.2

- Better module overrides in jsonapi
Expand Down
2 changes: 1 addition & 1 deletion lib/config/pagy.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# Pagy initializer file (6.4.2)
# Pagy initializer file (6.4.3)
# Customize only what you really need and notice that the core Pagy works also without any of the following lines.
# Should you just cherry pick part of this file, please maintain the require-order of the extras

Expand Down
4 changes: 2 additions & 2 deletions lib/javascripts/pagy-dev.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/javascripts/pagy-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const Pagy = (() => {
const trim = (link, param) => link.replace(new RegExp(`(\\?|&amp;)${param}=1\\b(?!&amp;)|\\b${param}=1&amp;`), "");
// Public interface
return {
version: "6.4.2",
version: "6.4.3",
// Scan for elements with a "data-pagy" attribute and call their init functions with the decoded args
init(arg) {
const target = arg instanceof Element ? arg : document;
Expand Down
2 changes: 1 addition & 1 deletion lib/javascripts/pagy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/pagy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Core class
class Pagy
VERSION = '6.4.2'
VERSION = '6.4.3'

# Root pathname to get the path of Pagy files like templates or dictionaries
def self.root
Expand Down
8 changes: 5 additions & 3 deletions lib/pagy/extras/jsonapi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ def pagy_get_items_size(vars)
end
# Swap the next lines in ruby 3.0+ baseline
# ItemsExtra::Backend.prepend ItemsExtraOverride if defined?(ItemsExtra::Backend)
# :nocov:
Backend.prepend ItemsExtraOverride if defined?(ItemsExtra::Backend)
# :nocov:

# Module overriding UrlHelper
module UrlHelperOverride
Expand All @@ -75,8 +77,8 @@ def pagy_set_query_params(page, vars, params)
end
end
# Swap the next lines in ruby 3.0+ baseline
UrlHelpers.prepend UrlHelperOverride
# Backend.prepend UrlHelperOverride
# Frontend.prepend UrlHelperOverride
# UrlHelpers.prepend UrlHelperOverride
Backend.prepend UrlHelperOverride
Frontend.prepend UrlHelperOverride
end
end
2 changes: 1 addition & 1 deletion retype.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ url: https://ddnexus.github.io/pagy

branding:
title: Pagy
label: 6.4.2
label: 6.4.3
colors:
label:
text: "#FFFFFF"
Expand Down
2 changes: 1 addition & 1 deletion src/pagy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const Pagy = (() => {

// Public interface
return {
version: "6.4.2",
version: "6.4.3",

// Scan for elements with a "data-pagy" attribute and call their init functions with the decoded args
init(arg?:Element|never) {
Expand Down

0 comments on commit 757d2e3

Please sign in to comment.