caboose-cms 0.5.67 → 0.5.68

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2ZhMTk0MmMzMWRkNTA1MjkzODk2Njc4OGRkODIwYTJlMDhmMTgwNQ==
4
+ MDdiMzBlZWU2NWJmMGY0NGE4YjA2MDE5NDQ0NWRjYWMxNTI1N2IxYQ==
5
5
  data.tar.gz: !binary |-
6
- ODkzOTY4NTFkY2ZlMGM2OWZhYmI2ODE3ZGE3ZmQ4ZmRjNjU2MGY3Mw==
6
+ ZTU0N2YyMWZhYzY2ZmZmYzkxMjg2ODE1YjYwYTA4NWY3OThkOTM2ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTIwNTFkM2QzMmI1NmIzM2M1NDdmZjI3MWVkYTEwY2NlYjE4NTA1NzJlZGY3
10
- NmU2ZjUyM2ZkNzk3NzQ1YmFlZTc2NWQ3ODdkNjIzZjM1MjZmZWI3ZDMwMTc5
11
- NzAxNWJlNmIzYzNmY2RmYzUyZTRkYmEyZDc2ZjU3YzIxMDNlMDc=
9
+ YWVlODIxMTE2ZTE2ZDFhYWJmZjRlYWM2MTIwZTA3MTI5ODhmNDg2YjU2OGJm
10
+ OWEyMzM0ZTUzYzdkYjk4MjZkMGQzZDc5NzkzNTU1OTkyNDY4YTNhZjcxMmI0
11
+ M2RlMDEzNzQxMjc4NTRiYWNiNGE3MzYxN2RhMTgyYjQ1ODRjNzQ=
12
12
  data.tar.gz: !binary |-
13
- MzYwOWZkNmY4NDUwNDZmODJmMjNhMmNlZmFhN2RlODBmZjNjN2ZiNDZiOTMz
14
- MTVmMGU1NDQyNDY0NjcwMzRlMmMyZTVlMmJmNGQ3ZjcwMDYzZTZhMDI0MGVi
15
- ODYzNzI1YmFkYzVlM2EzMjdhMjgwYTRlMWJjMDhmYzEwMTY0YzM=
13
+ MTVlY2M1ZTAyMWMxMGI2NzU4YTY5OWU3ODIxZWE2MzYzYWVhN2FjZmNhMDkz
14
+ Yzg3ZTM2MWMzZjUwNTJlYmE0MzY0MTMxMmE3OGYyMGMyZGJlMjhjM2Y4M2E2
15
+ OTIxMTc3NmMyNGVhNjljMzRiNDJhNTBiOTkyOTc3MjQ1Y2U3MjY=
@@ -14,16 +14,6 @@ module Caboose
14
14
  def index
15
15
  redirect_to '/checkout/step-one'
16
16
  end
17
-
18
- # Test Email
19
- def test_email
20
-
21
- m = OrdersMailer.configure_for_site(@site.id).test_email
22
- Caboose.log(m.delivery_method.settings)
23
- m.deliver
24
-
25
- render :json => DateTime.now
26
- end
27
17
 
28
18
  # GET /checkout/step-one
29
19
  def step_one
@@ -266,8 +256,8 @@ module Caboose
266
256
  order.status = 'pending'
267
257
 
268
258
  # Send out emails
269
- OrdersMailer.customer_new_order(order).deliver
270
- OrdersMailer.fulfillment_new_order(order).deliver
259
+ OrdersMailer.configure_for_site(@site.id).customer_new_order(order).deliver
260
+ OrdersMailer.configure_for_site(@site.id).fulfillment_new_order(order).deliver
271
261
 
272
262
  # Emit order event
273
263
  Caboose.plugin_hook('order_authorized', order)
@@ -74,7 +74,7 @@ module Caboose
74
74
  end
75
75
  end
76
76
  if send_status_email
77
- OrdersMailer.customer_status_updated(li.order).deliver
77
+ OrdersMailer.configure_for_site(@site.id).customer_status_updated(li.order).deliver
78
78
  end
79
79
  resp.success = save && li.save
80
80
  render :json => resp
@@ -84,7 +84,7 @@ module Caboose
84
84
  bob.password_reset_sent = DateTime.now
85
85
  bob.save
86
86
 
87
- LoginMailer.forgot_password_email(bob).deliver
87
+ LoginMailer.configure_for_site(@site.id).forgot_password_email(bob).deliver
88
88
 
89
89
  resp.success = "We just sent you an email. The reset link inside is good for 3 days."
90
90
  render :json => resp
@@ -96,7 +96,7 @@ module Caboose
96
96
  end
97
97
  end
98
98
  if send_status_email
99
- OrdersMailer.customer_status_updated(li.order).deliver
99
+ OrdersMailer.configure_for_site(@site.id).customer_status_updated(li.order).deliver
100
100
  end
101
101
  resp.success = save && li.save
102
102
  render :json => resp
@@ -1,6 +1,6 @@
1
1
  module Caboose
2
2
  class OrdersMailer < ActionMailer::Base
3
- default :from => 'lockerroombiz@gmail.com'
3
+ #default :from => 'lockerroombiz@gmail.com'
4
4
 
5
5
  #before_action :configure
6
6
  #def configure(site_id)
@@ -16,11 +16,7 @@ module Caboose
16
16
  # }
17
17
  # default_options[:from] = delivery_options[:user_name]
18
18
  # delivery_method.settings.merge!(delivery_options)
19
- #end
20
-
21
- def test_email
22
- mail(:to => 'william@nine.is', :subject => "Test #{DateTime.now.strftime('%H:%M:%S')}")
23
- end
19
+ #end
24
20
 
25
21
  # Sends a confirmation email to the customer about a new order
26
22
  def customer_new_order(order)
@@ -134,7 +134,7 @@ module Caboose
134
134
  end
135
135
 
136
136
  def resend_confirmation
137
- OrdersMailer.customer_new_order(self).deliver
137
+ OrdersMailer.configure_for_site(self.site_id).customer_new_order(self).deliver
138
138
  end
139
139
 
140
140
  def test?
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.67'
2
+ VERSION = '0.5.68'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.67
4
+ version: 0.5.68
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry