spree_emails 4.8.3 → 4.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/spree/{emails/order_decorator.rb → order/emails.rb} +2 -4
- data/app/models/spree/{emails/reimbursement_decorator.rb → reimbursement/emails.rb} +2 -4
- data/app/models/spree/{emails/shipment_handler_decorator.rb → shipment/emails.rb} +2 -6
- data/lib/spree/emails/engine.rb +0 -8
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1afface08169c7095a5f803b7b88ecf448c4fe5cbb925d58359a7d66bb223c72
|
4
|
+
data.tar.gz: efa5cb8c5e9053935c3dea13d68eb66b99c30ff94290896577d9a7e0989a022b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33533553c400e8ca55f542d46f1186f7c66f353290799d45bbd9925683830bf178a21514dae2f2d9e166778000f33d5d79bad01d8caa4b3c58ab858228dcb7bc
|
7
|
+
data.tar.gz: fe0407b3b3d08b60d22ecc9bc2afb74272a8b791e789a4edbd9480ed36c90d6ceb397a93b55c7c9a28108bfca17001c58e5eb8f75023f840ac7ad971a849e71d
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Spree
|
2
|
-
|
3
|
-
module
|
2
|
+
class Order < Spree::Base
|
3
|
+
module Emails
|
4
4
|
def deliver_order_confirmation_email
|
5
5
|
OrderMailer.confirm_email(id).deliver_later
|
6
6
|
update_column(:confirmation_delivered, true)
|
@@ -21,8 +21,6 @@ module Spree
|
|
21
21
|
def send_cancel_email
|
22
22
|
OrderMailer.cancel_email(id).deliver_later
|
23
23
|
end
|
24
|
-
|
25
|
-
::Spree::Order.prepend(self)
|
26
24
|
end
|
27
25
|
end
|
28
26
|
end
|
@@ -1,11 +1,9 @@
|
|
1
1
|
module Spree
|
2
|
-
|
3
|
-
module
|
2
|
+
class Reimbursement < Spree::Base
|
3
|
+
module Emails
|
4
4
|
def send_reimbursement_email
|
5
5
|
Spree::ReimbursementMailer.reimbursement_email(id).deliver_later
|
6
6
|
end
|
7
|
-
|
8
|
-
::Spree::Reimbursement.prepend(self)
|
9
7
|
end
|
10
8
|
end
|
11
9
|
end
|
@@ -1,13 +1,9 @@
|
|
1
1
|
module Spree
|
2
|
-
|
3
|
-
module
|
4
|
-
protected
|
5
|
-
|
2
|
+
class Shipment < Spree::Base
|
3
|
+
module Emails
|
6
4
|
def send_shipped_email
|
7
5
|
ShipmentMailer.shipped_email(@shipment.id).deliver_later
|
8
6
|
end
|
9
|
-
|
10
|
-
::Spree::ShipmentHandler.prepend(self)
|
11
7
|
end
|
12
8
|
end
|
13
9
|
end
|
data/lib/spree/emails/engine.rb
CHANGED
@@ -5,14 +5,6 @@ module Spree
|
|
5
5
|
class Engine < Rails::Engine
|
6
6
|
isolate_namespace Spree
|
7
7
|
engine_name 'spree_emails'
|
8
|
-
|
9
|
-
def self.activate
|
10
|
-
Dir.glob(File.join(File.dirname(__FILE__), '../../../app/**/*_decorator*.rb')).sort.each do |c|
|
11
|
-
Rails.configuration.cache_classes ? require(c) : load(c)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
config.to_prepare &method(:activate).to_proc
|
16
8
|
end
|
17
9
|
end
|
18
10
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_emails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-08-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_core
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 4.
|
20
|
+
version: 4.9.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 4.
|
27
|
+
version: 4.9.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: actionmailer
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,9 +91,9 @@ files:
|
|
91
91
|
- app/mailers/spree/reimbursement_mailer.rb
|
92
92
|
- app/mailers/spree/shipment_mailer.rb
|
93
93
|
- app/mailers/spree/test_mailer.rb
|
94
|
-
- app/models/spree/emails
|
95
|
-
- app/models/spree/emails
|
96
|
-
- app/models/spree/emails
|
94
|
+
- app/models/spree/order/emails.rb
|
95
|
+
- app/models/spree/reimbursement/emails.rb
|
96
|
+
- app/models/spree/shipment/emails.rb
|
97
97
|
- app/views/layouts/spree/base_mailer.html.erb
|
98
98
|
- app/views/spree/order_mailer/cancel_email.html.erb
|
99
99
|
- app/views/spree/order_mailer/cancel_email.text.erb
|
@@ -134,9 +134,9 @@ licenses:
|
|
134
134
|
- BSD-3-Clause
|
135
135
|
metadata:
|
136
136
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
137
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v4.
|
137
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v4.9.0
|
138
138
|
documentation_uri: https://docs.spreecommerce.org/
|
139
|
-
source_code_uri: https://github.com/spree/spree/tree/v4.
|
139
|
+
source_code_uri: https://github.com/spree/spree/tree/v4.9.0
|
140
140
|
post_install_message:
|
141
141
|
rdoc_options: []
|
142
142
|
require_paths:
|