caboose-cms 0.5.66 → 0.5.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/app/controllers/caboose/checkout_controller.rb +10 -0
- data/app/mailers/caboose/orders_mailer.rb +6 -1
- data/app/views/caboose/orders_mailer/test_email.html.erb +1 -0
- data/config/routes.rb +1 -0
- data/lib/caboose/version.rb +1 -1
- metadata +2 -2
- data/app/views/caboose/products/#Untitled-1# +0 -0
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2ZhMTk0MmMzMWRkNTA1MjkzODk2Njc4OGRkODIwYTJlMDhmMTgwNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODkzOTY4NTFkY2ZlMGM2OWZhYmI2ODE3ZGE3ZmQ4ZmRjNjU2MGY3Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTIwNTFkM2QzMmI1NmIzM2M1NDdmZjI3MWVkYTEwY2NlYjE4NTA1NzJlZGY3
|
10
|
+
NmU2ZjUyM2ZkNzk3NzQ1YmFlZTc2NWQ3ODdkNjIzZjM1MjZmZWI3ZDMwMTc5
|
11
|
+
NzAxNWJlNmIzYzNmY2RmYzUyZTRkYmEyZDc2ZjU3YzIxMDNlMDc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzYwOWZkNmY4NDUwNDZmODJmMjNhMmNlZmFhN2RlODBmZjNjN2ZiNDZiOTMz
|
14
|
+
MTVmMGU1NDQyNDY0NjcwMzRlMmMyZTVlMmJmNGQ3ZjcwMDYzZTZhMDI0MGVi
|
15
|
+
ODYzNzI1YmFkYzVlM2EzMjdhMjgwYTRlMWJjMDhmYzEwMTY0YzM=
|
@@ -15,6 +15,16 @@ module Caboose
|
|
15
15
|
redirect_to '/checkout/step-one'
|
16
16
|
end
|
17
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
|
+
|
18
28
|
# GET /checkout/step-one
|
19
29
|
def step_one
|
20
30
|
if logged_in?
|
@@ -1,5 +1,6 @@
|
|
1
1
|
module Caboose
|
2
2
|
class OrdersMailer < ActionMailer::Base
|
3
|
+
default :from => 'lockerroombiz@gmail.com'
|
3
4
|
|
4
5
|
#before_action :configure
|
5
6
|
#def configure(site_id)
|
@@ -16,7 +17,11 @@ module Caboose
|
|
16
17
|
# default_options[:from] = delivery_options[:user_name]
|
17
18
|
# delivery_method.settings.merge!(delivery_options)
|
18
19
|
#end
|
19
|
-
|
20
|
+
|
21
|
+
def test_email
|
22
|
+
mail(:to => 'william@nine.is', :subject => "Test #{DateTime.now.strftime('%H:%M:%S')}")
|
23
|
+
end
|
24
|
+
|
20
25
|
# Sends a confirmation email to the customer about a new order
|
21
26
|
def customer_new_order(order)
|
22
27
|
@order = order
|
@@ -0,0 +1 @@
|
|
1
|
+
<p>Test <%= DateTime.now.strftime('%H:%M:%S') %></p>
|
data/config/routes.rb
CHANGED
@@ -355,6 +355,7 @@ Caboose::Engine.routes.draw do
|
|
355
355
|
get '/checkout/step-three' => 'checkout#step_three'
|
356
356
|
get '/checkout/step-four' => 'checkout#step_four'
|
357
357
|
get '/checkout/thanks' => 'checkout#thanks'
|
358
|
+
get '/checkout/test-email' => 'checkout#test_email'
|
358
359
|
|
359
360
|
get '/checkout/authnet-profile-form' => 'checkout#authnet_profile_form'
|
360
361
|
put '/checkout/address' => 'checkout#update_address'
|
data/lib/caboose/version.rb
CHANGED
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.
|
4
|
+
version: 0.5.67
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
@@ -745,6 +745,7 @@ files:
|
|
745
745
|
- app/views/caboose/orders_mailer/customer_status_updated.html.erb
|
746
746
|
- app/views/caboose/orders_mailer/fulfillment_new_order.html.erb
|
747
747
|
- app/views/caboose/orders_mailer/shipping_order_ready.html.erb
|
748
|
+
- app/views/caboose/orders_mailer/test_email.html.erb
|
748
749
|
- app/views/caboose/pages/_admin_footer.html.erb
|
749
750
|
- app/views/caboose/pages/_admin_header.html.erb
|
750
751
|
- app/views/caboose/pages/_content.html.erb
|
@@ -778,7 +779,6 @@ files:
|
|
778
779
|
- app/views/caboose/posts/admin_new.html.erb
|
779
780
|
- app/views/caboose/posts/detail.html.erb
|
780
781
|
- app/views/caboose/posts/index.html.erb
|
781
|
-
- app/views/caboose/products/#Untitled-1#
|
782
782
|
- app/views/caboose/products/_admin_footer.html.erb
|
783
783
|
- app/views/caboose/products/_admin_header.html.erb
|
784
784
|
- app/views/caboose/products/_sort_options.html.erb
|
File without changes
|