caboose-cms 0.5.66 → 0.5.67

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
- NjAwYzgzNGY1MmNjMzE4ODI0OGI0NjE4MjIwMWVmN2VlOTZmZDYwZQ==
4
+ M2ZhMTk0MmMzMWRkNTA1MjkzODk2Njc4OGRkODIwYTJlMDhmMTgwNQ==
5
5
  data.tar.gz: !binary |-
6
- Mzk0OTQwMTljMjMyZTIzYmRiNTQwODkzYzQzYzdkZjFjN2Y2ZDUxNw==
6
+ ODkzOTY4NTFkY2ZlMGM2OWZhYmI2ODE3ZGE3ZmQ4ZmRjNjU2MGY3Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzJhMjFjMmIwYzFlMzZkNTA3MjkxMDU3MDZiOWNhOWU4NzlkMmI4ZDcwZDk0
10
- MGRjNmFjOWZlOWJkZjJjZTJhZWViZjVkZjEwZTlkZWNhNDUxN2RjM2RiNzUw
11
- M2U0ODAyMDM0NjM1NGY1OWZiODc2NTQ1N2YzNTY4MWY5YmM0N2I=
9
+ YTIwNTFkM2QzMmI1NmIzM2M1NDdmZjI3MWVkYTEwY2NlYjE4NTA1NzJlZGY3
10
+ NmU2ZjUyM2ZkNzk3NzQ1YmFlZTc2NWQ3ODdkNjIzZjM1MjZmZWI3ZDMwMTc5
11
+ NzAxNWJlNmIzYzNmY2RmYzUyZTRkYmEyZDc2ZjU3YzIxMDNlMDc=
12
12
  data.tar.gz: !binary |-
13
- MDEzM2E0Y2NlODU2MWY5NDRmYmZiZTE5ZGM4N2EwYzUwZjQwOWZmZjAyOGQw
14
- MjU1YzQ4YzcwY2E4NDAxMzVkZmM0MDNhMWJkMWU4YmIyMzA2MWQyOTQzNGQ3
15
- OTg1YzA4ZWZkNTg2NzQzMmJmZmM1NjY3YjA5NDMwNDk1NDg3YTc=
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>
@@ -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'
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.66'
2
+ VERSION = '0.5.67'
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.66
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