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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98e9aba1a801006a95a2abb83b43f9159a6418c466dc974968aad742995f9149
4
- data.tar.gz: 0b93f94d0160b56f28538a9cce16e5bc1c94d1a3a5bd54e274615c4fd138a21d
3
+ metadata.gz: 1afface08169c7095a5f803b7b88ecf448c4fe5cbb925d58359a7d66bb223c72
4
+ data.tar.gz: efa5cb8c5e9053935c3dea13d68eb66b99c30ff94290896577d9a7e0989a022b
5
5
  SHA512:
6
- metadata.gz: 75bb1f44091a2ae65c4617a6cc1a524bd0c748483f1592fa875324aabd63dab567cbb9034436cbef25546187e9026378183fa0ddc441208b6404576f93003d41
7
- data.tar.gz: 99d6d4ee0ec0df00f223df729ab359ca499b642126632a24757ef232d894cb60bfe17399e899bbd3e5d09df4c71a7d9a312276271c607439a8b15e67dad79d40
6
+ metadata.gz: 33533553c400e8ca55f542d46f1186f7c66f353290799d45bbd9925683830bf178a21514dae2f2d9e166778000f33d5d79bad01d8caa4b3c58ab858228dcb7bc
7
+ data.tar.gz: fe0407b3b3d08b60d22ecc9bc2afb74272a8b791e789a4edbd9480ed36c90d6ceb397a93b55c7c9a28108bfca17001c58e5eb8f75023f840ac7ad971a849e71d
@@ -1,6 +1,6 @@
1
1
  module Spree
2
- module Emails
3
- module OrderDecorator
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
- module Emails
3
- module ReimbursementDecorator
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
- module Emails
3
- module ShipmentHandlerDecorator
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
@@ -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.8.3
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-06-13 00:00:00.000000000 Z
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.8.3
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.8.3
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/order_decorator.rb
95
- - app/models/spree/emails/reimbursement_decorator.rb
96
- - app/models/spree/emails/shipment_handler_decorator.rb
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.8.3
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.8.3
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: