Skip to content

Commit

Permalink
Drop sucker_punch in favor of vanilla async
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Dec 6, 2016
1 parent d44fa3e commit aa03fb2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
4 changes: 0 additions & 4 deletions Gemfile
Expand Up @@ -9,10 +9,6 @@ group :ci do
gem 'pg'
end

group :development do
gem 'sucker_punch', require: %w(sucker_punch sucker_punch/async_syntax)
end

group :development, :test do
gem 'faker'
gem 'fakeweb'
Expand Down
3 changes: 0 additions & 3 deletions Gemfile.lock
Expand Up @@ -268,8 +268,6 @@ GEM
state_machines-activerecord (0.4.0)
activerecord (>= 4.1, < 5.1)
state_machines-activemodel (>= 0.3.0)
sucker_punch (2.0.2)
concurrent-ruby (~> 1.0.0)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.5)
Expand Down Expand Up @@ -304,7 +302,6 @@ DEPENDENCIES
simplecov
spy
sqlite3
sucker_punch

BUNDLED WITH
1.13.6
6 changes: 4 additions & 2 deletions test/dummy/config/environments/development.rb
Expand Up @@ -38,6 +38,8 @@

# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true

config.active_job.queue_adapter = :sucker_punch
if Rails.application.config_for(:database)['adapter'] == 'sqlite3'
Shipit::DeferredTouch.enabled = false
end
config.active_job.queue_adapter = :async
end
4 changes: 0 additions & 4 deletions test/dummy/db/seeds.rb
Expand Up @@ -6,8 +6,6 @@

# Cheap hack to allow rake db:seed to work
module Shipit
previous_deferred_touch = Shipit::DeferredTouch.enabled
Shipit::DeferredTouch.enabled = false
Stack.send(:define_method, :setup_hooks) {}
Stack.send(:define_method, :sync_github) {}
Commit.send(:define_method, :fetch_stats!) {}
Expand Down Expand Up @@ -180,6 +178,4 @@ def create_chunks
ended_at: Time.now.utc,
)
end
ensure
Shipit::DeferredTouch.enabled = previous_deferred_touch
end

0 comments on commit aa03fb2

Please sign in to comment.