mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-21 11:31:49 +00:00
BREAKING CHANGE: deprecar sucker punch en favor de que
This commit is contained in:
parent
3e6288fefe
commit
39e997d0ca
6 changed files with 17 additions and 15 deletions
2
Gemfile
2
Gemfile
|
@ -68,7 +68,7 @@ gem 'rollups', git: 'https://github.com/fauno/rollup.git', branch: 'update'
|
||||||
gem 'rubyzip'
|
gem 'rubyzip'
|
||||||
gem 'rugged'
|
gem 'rugged'
|
||||||
gem 'concurrent-ruby-ext'
|
gem 'concurrent-ruby-ext'
|
||||||
gem 'sucker_punch'
|
gem 'que'
|
||||||
gem 'symbol-fstring', require: 'fstring/all'
|
gem 'symbol-fstring', require: 'fstring/all'
|
||||||
gem 'terminal-table'
|
gem 'terminal-table'
|
||||||
gem 'validates_hostname'
|
gem 'validates_hostname'
|
||||||
|
|
|
@ -119,9 +119,6 @@ GEM
|
||||||
colorator (1.1.0)
|
colorator (1.1.0)
|
||||||
commonmarker (0.21.2-x86_64-linux-musl)
|
commonmarker (0.21.2-x86_64-linux-musl)
|
||||||
ruby-enum (~> 0.5)
|
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)
|
crass (1.0.6)
|
||||||
database_cleaner (2.0.1)
|
database_cleaner (2.0.1)
|
||||||
database_cleaner-active_record (~> 2.0.0)
|
database_cleaner-active_record (~> 2.0.0)
|
||||||
|
@ -374,6 +371,7 @@ GEM
|
||||||
pundit (2.1.1)
|
pundit (2.1.1)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
racc (1.6.0-x86_64-linux-musl)
|
racc (1.6.0-x86_64-linux-musl)
|
||||||
|
que (2.2.0)
|
||||||
rack (2.2.3)
|
rack (2.2.3)
|
||||||
rack-cors (1.1.1)
|
rack-cors (1.1.1)
|
||||||
rack (>= 2.0.0)
|
rack (>= 2.0.0)
|
||||||
|
@ -510,8 +508,6 @@ GEM
|
||||||
sprockets (>= 3.0.0)
|
sprockets (>= 3.0.0)
|
||||||
sqlite3 (1.4.2-x86_64-linux-musl)
|
sqlite3 (1.4.2-x86_64-linux-musl)
|
||||||
stackprof (0.2.17-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)
|
sutty-archives (2.5.4)
|
||||||
jekyll (>= 3.6, < 5.0)
|
jekyll (>= 3.6, < 5.0)
|
||||||
sutty-liquid (0.7.4)
|
sutty-liquid (0.7.4)
|
||||||
|
@ -619,6 +615,7 @@ DEPENDENCIES
|
||||||
pry
|
pry
|
||||||
puma
|
puma
|
||||||
pundit
|
pundit
|
||||||
|
que
|
||||||
rack-cors
|
rack-cors
|
||||||
rack-mini-profiler
|
rack-mini-profiler
|
||||||
rails (~> 6)
|
rails (~> 6)
|
||||||
|
@ -638,7 +635,6 @@ DEPENDENCIES
|
||||||
spring-watcher-listen (~> 2.0.0)
|
spring-watcher-listen (~> 2.0.0)
|
||||||
sqlite3
|
sqlite3
|
||||||
stackprof
|
stackprof
|
||||||
sucker_punch
|
|
||||||
sutty-liquid (>= 0.7.3)
|
sutty-liquid (>= 0.7.3)
|
||||||
symbol-fstring
|
symbol-fstring
|
||||||
terminal-table
|
terminal-table
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Base para trabajos
|
# Base para trabajos
|
||||||
class ApplicationJob < ActiveJob::Base
|
class ApplicationJob < ActiveJob::Base
|
||||||
include SuckerPunch::Job
|
include Que::ActiveJob::JobExtensions
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ Rails.application.configure do
|
||||||
|
|
||||||
# Use a real queuing backend for Active Job (and separate queues per
|
# Use a real queuing backend for Active Job (and separate queues per
|
||||||
# environment)
|
# environment)
|
||||||
config.active_job.queue_adapter = :sucker_punch
|
config.active_job.queue_adapter = :que
|
||||||
config.active_job.queue_name_prefix = "sutty_#{Rails.env}"
|
config.active_job.queue_name_prefix = "sutty_#{Rails.env}"
|
||||||
|
|
||||||
config.action_mailer.perform_caching = false
|
config.action_mailer.perform_caching = false
|
||||||
|
|
|
@ -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)
|
|
||||||
}
|
|
12
db/migrate/20230328231029_create_que_tables.rb
Normal file
12
db/migrate/20230328231029_create_que_tables.rb
Normal 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
|
Loading…
Reference in a new issue