caboose-cms 0.5.80 → 0.5.81
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/controllers/caboose/checkout_controller.rb +1 -1
- data/app/controllers/caboose/store_controller.rb +1 -0
- data/app/models/caboose/schema.rb +2 -1
- data/app/models/caboose/store_config.rb +2 -1
- data/app/views/caboose/store/admin_edit.html.erb +25 -23
- data/lib/caboose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmUyOTgzMzk0YTA4ZTA5MmVmN2VkOTkxYThlZDAwYTcxNGJmMjljOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDQzYzMxNDJmODcxM2I2NmYzNjFkZjAxZGE2NDg0N2FjYzI1YjdmMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWJiOGQ5NDdjOWYwYmFkMmM1NjFlYjczYTU4ZTQ1ZDA5YTlkMjRlMmM0NzA2
|
10
|
+
OWEzOTY3ZDc2YjEwYjYxOWQ0YzgxODllNjA2MzI0MGJjMjcwYWIzMTA2NzRk
|
11
|
+
ZjRiNmNiOGViYTU1NGIzYWZmMDEzNGYxMTlkNTU5MGE4NDFjMmU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MWY5YjIzYTNiNTk2MGE2OTRkM2Q5YjRkOWRmNmUxNjY3ZTFmYzgwZTg3YzIy
|
14
|
+
N2E0Yjc3Mzk0YjgyMWY3MTk5Nzg2NDBiNmJhYWE1MDdkY2IxOWVhYTkzZmZk
|
15
|
+
ZTQ1OWU4NDQ4NDMxNDEyMzA4NTJlNDY0YTdhYzFiNjIwMTA0ODM=
|
@@ -84,7 +84,7 @@ module Caboose
|
|
84
84
|
:relay_response => 'TRUE',
|
85
85
|
:relay_url => "#{request.protocol}#{request.host_with_port}/checkout/authnet-relay",
|
86
86
|
:transaction_type => 'AUTH_ONLY',
|
87
|
-
:test =>
|
87
|
+
:test => sc.pp_testing
|
88
88
|
)
|
89
89
|
@request = request
|
90
90
|
@show_relay = params[:show_relay] && params[:show_relay].to_i == 1
|
@@ -26,6 +26,7 @@ module Caboose
|
|
26
26
|
when 'pp_name' then sc.pp_name = value
|
27
27
|
when 'pp_username' then sc.pp_username = value
|
28
28
|
when 'pp_password' then sc.pp_password = value
|
29
|
+
when 'pp_testing' then sc.pp_testing = value
|
29
30
|
when 'ups_username' then sc.ups_username = value
|
30
31
|
when 'ups_password' then sc.ups_password = value
|
31
32
|
when 'ups_key' then sc.ups_key = value
|
@@ -556,7 +556,8 @@ class Caboose::Schema < Caboose::Utilities::Schema
|
|
556
556
|
[ :site_id , :integer ],
|
557
557
|
[ :pp_name , :string ],
|
558
558
|
[ :pp_username , :string ],
|
559
|
-
[ :pp_password , :string ],
|
559
|
+
[ :pp_password , :string ],
|
560
|
+
[ :pp_testing , :boolean , { :default => true }],
|
560
561
|
[ :ups_username , :string ],
|
561
562
|
[ :ups_password , :string ],
|
562
563
|
[ :ups_key , :string ],
|
@@ -9,6 +9,7 @@ sc = @store_config
|
|
9
9
|
<p><div id='storeconfig_<%= sc.id %>_pp_name' ></div></p>
|
10
10
|
<p><div id='storeconfig_<%= sc.id %>_pp_username' ></div></p>
|
11
11
|
<p><div id='storeconfig_<%= sc.id %>_pp_password' ></div></p>
|
12
|
+
<p><div id='storeconfig_<%= sc.id %>_pp_testing' ></div></p>
|
12
13
|
|
13
14
|
<h2>Fulfillment Contacts</h2>
|
14
15
|
<p><div id='storeconfig_<%= sc.id %>_fulfillment_email' ></div></p>
|
@@ -64,29 +65,30 @@ $(document).ready(function() {
|
|
64
65
|
update_url: '/admin/store',
|
65
66
|
authenticity_token: '<%= form_authenticity_token %>',
|
66
67
|
attributes: [
|
67
|
-
{ name: 'pp_name' , nice_name: 'Type' , type: 'select'
|
68
|
-
{ name: 'pp_username' , nice_name: 'Username' , type: 'text'
|
69
|
-
{ name: 'pp_password' , nice_name: 'Password' , type: 'text'
|
70
|
-
{ name: '
|
71
|
-
{ name: '
|
72
|
-
{ name: '
|
73
|
-
{ name: '
|
74
|
-
{ name: '
|
75
|
-
{ name: '
|
76
|
-
{ name: '
|
77
|
-
{ name: '
|
78
|
-
{ name: '
|
79
|
-
{ name: '
|
80
|
-
{ name: '
|
81
|
-
{ name: '
|
82
|
-
{ name: '
|
83
|
-
{ name: '
|
84
|
-
{ name: '
|
85
|
-
{ name: '
|
86
|
-
{ name: '
|
87
|
-
{ name: '
|
88
|
-
{ name: '
|
89
|
-
{ name: '
|
68
|
+
{ name: 'pp_name' , nice_name: 'Type' , type: 'select' , value: <%= raw Caboose.json(sc.pp_name ) %>, width: 400 , options_url: '/admin/store/payment-processor-options' },
|
69
|
+
{ name: 'pp_username' , nice_name: 'Username' , type: 'text' , value: <%= raw Caboose.json(sc.pp_username ) %>, width: 400 },
|
70
|
+
{ name: 'pp_password' , nice_name: 'Password' , type: 'text' , value: <%= raw Caboose.json(sc.pp_password ) %>, width: 400 },
|
71
|
+
{ name: 'pp_testing' , nice_name: 'Test Mode' , type: 'checkbox' , value: <%= raw Caboose.json(sc.pp_testing ? 1 : 0 ) %>, width: 400 },
|
72
|
+
{ name: 'fulfillment_email' , nice_name: 'Fulfillment Email' , type: 'text' , value: <%= raw Caboose.json(sc.fulfillment_email ) %>, width: 400 },
|
73
|
+
{ name: 'shipping_email' , nice_name: 'Shipping Email' , type: 'text' , value: <%= raw Caboose.json(sc.shipping_email ) %>, width: 400 },
|
74
|
+
{ name: 'handling_percentage' , nice_name: 'Handling Percentage' , type: 'text' , value: <%= raw Caboose.json(sc.handling_percentage ) %>, width: 400 },
|
75
|
+
{ name: 'length_unit' , nice_name: 'Length' , type: 'select' , value: <%= raw Caboose.json(sc.length_unit ) %>, width: 400 , options_url: '/admin/store/length-unit-options' },
|
76
|
+
{ name: 'weight_unit' , nice_name: 'Weight' , type: 'select' , value: <%= raw Caboose.json(sc.weight_unit ) %>, width: 400 , options_url: '/admin/store/weight-unit-options' },
|
77
|
+
{ name: 'ups_username' , nice_name: 'UPS Username' , type: 'text' , value: <%= raw Caboose.json(sc.ups_username ) %>, width: 400 },
|
78
|
+
{ name: 'ups_password' , nice_name: 'UPS Password' , type: 'text' , value: <%= raw Caboose.json(sc.ups_password ) %>, width: 400 },
|
79
|
+
{ name: 'ups_key' , nice_name: 'UPS Key' , type: 'text' , value: <%= raw Caboose.json(sc.ups_key ) %>, width: 400 },
|
80
|
+
{ name: 'ups_origin_account' , nice_name: 'UPS Origin Account' , type: 'text' , value: <%= raw Caboose.json(sc.ups_origin_account ) %>, width: 400 },
|
81
|
+
{ name: 'usps_username' , nice_name: 'USPS Username' , type: 'text' , value: <%= raw Caboose.json(sc.usps_username ) %>, width: 400 },
|
82
|
+
{ name: 'usps_secret_key' , nice_name: 'USPS Secret Key' , type: 'text' , value: <%= raw Caboose.json(sc.usps_secret_key ) %>, width: 400 },
|
83
|
+
{ name: 'usps_publishable_key' , nice_name: 'USPS Publishable Key' , type: 'text' , value: <%= raw Caboose.json(sc.usps_publishable_key ) %>, width: 400 },
|
84
|
+
{ name: 'fedex_username' , nice_name: 'FedEx Username' , type: 'text' , value: <%= raw Caboose.json(sc.fedex_username ) %>, width: 400 },
|
85
|
+
{ name: 'fedex_password' , nice_name: 'FedEx Password' , type: 'text' , value: <%= raw Caboose.json(sc.fedex_password ) %>, width: 400 },
|
86
|
+
{ name: 'fedex_key' , nice_name: 'FedEx Key' , type: 'text' , value: <%= raw Caboose.json(sc.fedex_key ) %>, width: 400 },
|
87
|
+
{ name: 'fedex_account' , nice_name: 'FedEx Account' , type: 'text' , value: <%= raw Caboose.json(sc.fedex_account ) %>, width: 400 },
|
88
|
+
{ name: 'origin_country' , nice_name: 'Country' , type: 'text' , value: <%= raw Caboose.json(sc.origin_country ) %>, width: 400 },
|
89
|
+
{ name: 'origin_state' , nice_name: 'State' , type: 'text' , value: <%= raw Caboose.json(sc.origin_state ) %>, width: 400 },
|
90
|
+
{ name: 'origin_city' , nice_name: 'City' , type: 'text' , value: <%= raw Caboose.json(sc.origin_city ) %>, width: 400 },
|
91
|
+
{ name: 'origin_zip' , nice_name: 'Zip' , type: 'text' , value: <%= raw Caboose.json(sc.origin_zip ) %>, width: 400 }
|
90
92
|
]
|
91
93
|
});
|
92
94
|
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.81
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|