Skip to content

Commit b087347

Browse files
committedMar 8, 2017
Remove all resque references
1 parent 6ff6c39 commit b087347

File tree

12 files changed

+3
-315
lines changed

12 files changed

+3
-315
lines changed
 

‎Gemfile

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ gem 'machinist', '>= 2.0.0.beta2'
1616
gem 'pundit'
1717
gem 'gibbon', '>= 2'
1818
gem 'redis', '3.3.0'
19-
gem 'resque', '1.26.0', require: 'resque/server'
2019
gem 'sidekiq'
2120
gem 'puma'
2221
gem 'platform-api'

‎Gemfile.lock

-17
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ GEM
249249
mini_portile2 (2.1.0)
250250
minitest (5.10.1)
251251
moneta (0.8.0)
252-
mono_logger (1.1.0)
253252
multi_json (1.12.1)
254253
multipart-post (2.0.0)
255254
netrc (0.11.0)
@@ -320,16 +319,8 @@ GEM
320319
nokogiri (~> 1.5)
321320
trollop (~> 2.1)
322321
redis (3.3.0)
323-
redis-namespace (1.5.2)
324-
redis (~> 3.0, >= 3.0.4)
325322
responders (2.3.0)
326323
railties (>= 4.2.0, < 5.1)
327-
resque (1.26.0)
328-
mono_logger (~> 1.0)
329-
multi_json (~> 1.0)
330-
redis-namespace (~> 1.3)
331-
sinatra (>= 0.9.2)
332-
vegas (~> 0.1.2)
333324
rest-client (2.0.0)
334325
http-cookie (>= 1.0.2, < 2.0)
335326
mime-types (>= 1.16, < 4.0)
@@ -371,10 +362,6 @@ GEM
371362
json (>= 1.8, < 3)
372363
simplecov-html (~> 0.10.0)
373364
simplecov-html (0.10.0)
374-
sinatra (1.4.7)
375-
rack (~> 1.5)
376-
rack-protection (~> 1.4)
377-
tilt (>= 1.3, < 3)
378365
slop (3.6.0)
379366
spring (2.0.0)
380367
activesupport (>= 4.2)
@@ -387,15 +374,12 @@ GEM
387374
sprockets (>= 3.0.0)
388375
thor (0.19.4)
389376
thread_safe (0.3.5)
390-
tilt (2.0.5)
391377
trollop (2.1.2)
392378
tzinfo (1.2.2)
393379
thread_safe (~> 0.1)
394380
unf (0.1.4)
395381
unf_ext
396382
unf_ext (0.0.7.2)
397-
vegas (0.1.11)
398-
rack (>= 1.0.0)
399383
warden (1.2.6)
400384
rack (>= 1.0)
401385
webmock (2.3.1)
@@ -433,7 +417,6 @@ DEPENDENCIES
433417
rails-api
434418
rails_stdout_logging
435419
redis (= 3.3.0)
436-
resque (= 1.26.0)
437420
rmagick
438421
rspec-activemodel-mocks
439422
rspec-rails

‎Rakefile

-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
33

44
require File.expand_path('../config/application', __FILE__)
5-
require 'resque/tasks'
65

76
Rails.application.load_tasks

‎app/models/form_entry.rb

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require './app/resque_jobs/mailchimp_sync.rb'
2-
31
class FormEntry < ActiveRecord::Base
42
include Mailchimpable
53

‎app/resque_jobs/mailchimp_sync.rb

-68
This file was deleted.

‎config/initializers/resque.rb

-7
This file was deleted.

‎lib/tasks/resque.rake

-3
This file was deleted.

‎spec/controllers/mobilizations/form_entries_controller_spec.rb

+1-4
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
expect(response.status).to be 200
6969
end
7070

71-
it "should put a message on Resque" do
71+
it "should put a message on Sidekiq" do
7272
form_entry = widget.form_entries.first
7373
sidekiq_jobs = MailchimpSyncWorker.jobs
7474
expect(sidekiq_jobs.size).to eq(1)
@@ -78,7 +78,6 @@
7878

7979
context "invalid email" do
8080
before do
81-
Resque.redis.flushall
8281
post(
8382
:create,
8483
mobilization_id: widget.mobilization.id,
@@ -102,7 +101,6 @@
102101

103102
context "invalid nome" do
104103
before do
105-
Resque.redis.flushall
106104
post(
107105
:create,
108106
mobilization_id: widget.mobilization.id,
@@ -141,7 +139,6 @@
141139
].each do |dados|
142140
context "missing #{dados[:field_name]}" do
143141
before do
144-
Resque.redis.flushall
145142
post(
146143
:create,
147144
mobilization_id: widget.mobilization.id,

‎spec/models/activist_pressure_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
it { should have_one :mobilization }
99
it { should have_one :community }
1010

11-
describe "Puts a message in Resque queue" do
11+
describe "Puts a message in sidekiq queue" do
1212
before do
1313
activistPressure=ActivistPressure.new id:15
1414
activistPressure.async_update_mailchimp

‎spec/models/donation_spec.rb

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
describe '#async_update_mailchimp' do
1717
let(:donation) { Donation.new id: 52 }
18-
let(:resque_job) { Resque.peek(:mailchimp_synchro) }
1918

2019
before do
2120
donation.async_update_mailchimp

‎spec/models/form_entry_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
end
4949
end
5050

51-
describe "Puts a message in Resque queue" do
51+
describe "Puts a message in sidekiq queue" do
5252
before do
5353
@form_entry=FormEntry.new id:25
5454
@form_entry.async_send_to_mailchimp

‎spec/resque_jobs/mailchimp_sync_spec.rb

-209
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.