mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 19:55:16 +00:00
upgrade pagy (#628)
This commit is contained in:
parent
3148995958
commit
6b21c0f402
3 changed files with 16 additions and 1 deletions
2
Gemfile
2
Gemfile
|
|
@ -90,6 +90,8 @@ gem "ahoy_matey"
|
|||
gem "geocoder"
|
||||
gem "ahoy_captain", git: "https://github.com/johnmcdowall/ahoy_captain.git", branch: "fix_importmaps"
|
||||
|
||||
gem "pagy", "~> 43.0"
|
||||
|
||||
# Airtable syncing
|
||||
gem "norairrecord", "~> 0.4.1"
|
||||
|
||||
|
|
|
|||
|
|
@ -323,7 +323,9 @@ GEM
|
|||
faraday-net_http_persistent
|
||||
net-http-persistent
|
||||
ostruct (0.6.3)
|
||||
pagy (9.4.0)
|
||||
pagy (43.0.6)
|
||||
json
|
||||
yaml
|
||||
paper_trail (17.0.0)
|
||||
activerecord (>= 7.1)
|
||||
request_store (~> 1.4)
|
||||
|
|
@ -601,6 +603,7 @@ DEPENDENCIES
|
|||
letter_opener_web (~> 3.0)
|
||||
memory_profiler
|
||||
norairrecord (~> 0.4.1)
|
||||
pagy (~> 43.0)
|
||||
paper_trail
|
||||
pg
|
||||
propshaft
|
||||
|
|
|
|||
10
config/initializers/ahoy_captain_pagy_patch.rb
Normal file
10
config/initializers/ahoy_captain_pagy_patch.rb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# pagy did a massive update, reworked a bunch of shit, but ahoy-captain is still using the old API
|
||||
# this is a fuck ass workaround to update the version of pagy but not make ahoy-captain crash and burn builds
|
||||
# https://github.com/ddnexus/pagy/releases/tag/v43.0.0
|
||||
|
||||
class Pagy
|
||||
module Frontend
|
||||
# null
|
||||
end
|
||||
Backend = Method unless const_defined?(:Backend)
|
||||
end
|
||||
Loading…
Add table
Reference in a new issue