5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-05-17 06:50:49 +00:00

BREAKING CHANGE: deprecar sucker punch en favor de que

This commit is contained in:
f 2023-03-28 20:21:52 -03:00
parent 3e6288fefe
commit 39e997d0ca
6 changed files with 17 additions and 15 deletions

View file

@ -68,7 +68,7 @@ gem 'rollups', git: 'https://github.com/fauno/rollup.git', branch: 'update'
gem 'rubyzip'
gem 'rugged'
gem 'concurrent-ruby-ext'
gem 'sucker_punch'
gem 'que'
gem 'symbol-fstring', require: 'fstring/all'
gem 'terminal-table'
gem 'validates_hostname'

View file

@ -119,9 +119,6 @@ GEM
colorator (1.1.0)
commonmarker (0.21.2-x86_64-linux-musl)
ruby-enum (~> 0.5)
concurrent-ruby (1.1.9)
concurrent-ruby-ext (1.1.9-x86_64-linux-musl)
concurrent-ruby (= 1.1.9)
crass (1.0.6)
database_cleaner (2.0.1)
database_cleaner-active_record (~> 2.0.0)
@ -374,6 +371,7 @@ GEM
pundit (2.1.1)
activesupport (>= 3.0.0)
racc (1.6.0-x86_64-linux-musl)
que (2.2.0)
rack (2.2.3)
rack-cors (1.1.1)
rack (>= 2.0.0)
@ -510,8 +508,6 @@ GEM
sprockets (>= 3.0.0)
sqlite3 (1.4.2-x86_64-linux-musl)
stackprof (0.2.17-x86_64-linux-musl)
sucker_punch (3.0.1)
concurrent-ruby (~> 1.0)
sutty-archives (2.5.4)
jekyll (>= 3.6, < 5.0)
sutty-liquid (0.7.4)
@ -619,6 +615,7 @@ DEPENDENCIES
pry
puma
pundit
que
rack-cors
rack-mini-profiler
rails (~> 6)
@ -638,7 +635,6 @@ DEPENDENCIES
spring-watcher-listen (~> 2.0.0)
sqlite3
stackprof
sucker_punch
sutty-liquid (>= 0.7.3)
symbol-fstring
terminal-table

View file

@ -2,7 +2,7 @@
# Base para trabajos
class ApplicationJob < ActiveJob::Base
include SuckerPunch::Job
include Que::ActiveJob::JobExtensions
private

View file

@ -66,7 +66,7 @@ Rails.application.configure do
# Use a real queuing backend for Active Job (and separate queues per
# environment)
config.active_job.queue_adapter = :sucker_punch
config.active_job.queue_adapter = :que
config.active_job.queue_name_prefix = "sutty_#{Rails.env}"
config.action_mailer.perform_caching = false

View file

@ -1,6 +0,0 @@
# frozen_string_literal: true
# Enviar una notificación cuando falla una tarea
SuckerPunch.exception_handler = lambda { |ex, _klass, _args|
ExceptionNotifier.notify_exception(ex)
}

View file

@ -0,0 +1,12 @@
# frozen_string_literal: true
# Que
class CreateQueTables < ActiveRecord::Migration[6.1]
def up
Que.migrate! version: 7
end
def down
Que.migrate! version: 0
end
end