-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3080 from nebulab/kennyadsl/cleanup-core-tasks
Deprecate core tasks and migration scripts
- Loading branch information
Showing
11 changed files
with
36 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
class RenameBogusGateways < ActiveRecord::Migration[5.0] | ||
# This migration was only performing a data migration useful updating to | ||
# Solidus v2.3. | ||
# Once the update is done, this is no more required to run so we can clean | ||
# this file to just be a noop. | ||
# For more info on the original content see: | ||
# https://github.com/solidusio/solidus/pull/2001 | ||
|
||
def up | ||
require 'solidus/migrations/rename_gateways' | ||
say_with_time 'Renaming bogus gateways into payment methods' do | ||
Solidus::Migrations::RenameGateways.new.up | ||
end | ||
# no-op | ||
end | ||
|
||
def down | ||
require 'solidus/migrations/rename_gateways' | ||
say_with_time 'Renaming bogus payment methods into gateways' do | ||
Solidus::Migrations::RenameGateways.new.down | ||
end | ||
# no-op | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
namespace :email do | ||
desc 'Sends test email to specified address - Example: [email protected] bundle exec rake email:test' | ||
task test: :environment do | ||
Spree::Deprecation.warn("rake email:test has been deprecated and will be removed with Solidus 3.0") | ||
|
||
raise ArgumentError, "Must pass EMAIL environment variable. Example: [email protected] bundle exec rake email:test" unless ENV['EMAIL'].present? | ||
Spree::TestMailer.test_email(ENV['EMAIL']).deliver! | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ | |
let(:user) { create(:user) } | ||
|
||
it "confirm_email accepts a user id as an alternative to a User object" do | ||
Spree::TestMailer.test_email('[email protected]') | ||
Spree::Deprecation.silence do | ||
Spree::TestMailer.test_email('[email protected]') | ||
end | ||
end | ||
end |