caboose-cms 0.5.80 → 0.5.81

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzUxZWI0NmFhMDliZTZmMzAwY2U1ZjRkN2NmYTE2OTk3ZjkwYzVkMA==
4
+ ZmUyOTgzMzk0YTA4ZTA5MmVmN2VkOTkxYThlZDAwYTcxNGJmMjljOQ==
5
5
  data.tar.gz: !binary |-
6
- NzA0NTQyNThlYWM3MDNlM2FlZDIyNTQ5YThmMmRlMDc5YzI0MWI4YQ==
6
+ MDQzYzMxNDJmODcxM2I2NmYzNjFkZjAxZGE2NDg0N2FjYzI1YjdmMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2FlMjZkNjZjMDY1MWNhYTdkYjI1ZjFmOTVmZDMxMWM4NzdlNzhkZjBmN2Nm
10
- MzFmYzlhY2ViYTA0NDQ4YjZjOGNhMjMxYTAzMGQ0NjhkM2ViMTMxODQ0ODRl
11
- NDJjNzM0YzA4ZDc3ZGRmMDNjMzgwODk5ZDA0YjNmZDA2MmRmN2U=
9
+ OWJiOGQ5NDdjOWYwYmFkMmM1NjFlYjczYTU4ZTQ1ZDA5YTlkMjRlMmM0NzA2
10
+ OWEzOTY3ZDc2YjEwYjYxOWQ0YzgxODllNjA2MzI0MGJjMjcwYWIzMTA2NzRk
11
+ ZjRiNmNiOGViYTU1NGIzYWZmMDEzNGYxMTlkNTU5MGE4NDFjMmU=
12
12
  data.tar.gz: !binary |-
13
- YzNjNmY5NDdkNTkwZDBhZmQzY2UyYmRlYzI4MjAzMDM2ZWY5YmJmYjVhNmNm
14
- ZGNkODg5ODM0NTZiYTU2OTVhY2YzMzBkOGI5MmE2NmY3OTNlNGZhYzBlOTg4
15
- NGQ4NzIxYTYyZjlkYzA3ZThkN2FjYmFhYTkyMjRmYzI4MWE4NWE=
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 => true
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 ],
@@ -7,7 +7,8 @@ module Caboose
7
7
  :site_id,
8
8
  :pp_name,
9
9
  :pp_username,
10
- :pp_password,
10
+ :pp_password,
11
+ :pp_testing,
11
12
  :ups_username,
12
13
  :ups_password,
13
14
  :ups_key,
@@ -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' , value: <%= raw Caboose.json(sc.pp_name ) %>, width: 400 , options_url: '/admin/store/payment-processor-options' },
68
- { name: 'pp_username' , nice_name: 'Username' , type: 'text' , value: <%= raw Caboose.json(sc.pp_username ) %>, width: 400 },
69
- { name: 'pp_password' , nice_name: 'Password' , type: 'text' , value: <%= raw Caboose.json(sc.pp_password ) %>, width: 400 },
70
- { name: 'fulfillment_email' , nice_name: 'Fulfillment Email' , type: 'text' , value: <%= raw Caboose.json(sc.fulfillment_email ) %>, width: 400 },
71
- { name: 'shipping_email' , nice_name: 'Shipping Email' , type: 'text' , value: <%= raw Caboose.json(sc.shipping_email ) %>, width: 400 },
72
- { name: 'handling_percentage' , nice_name: 'Handling Percentage' , type: 'text' , value: <%= raw Caboose.json(sc.handling_percentage ) %>, width: 400 },
73
- { name: 'length_unit' , nice_name: 'Length' , type: 'select' , value: <%= raw Caboose.json(sc.length_unit ) %>, width: 400 , options_url: '/admin/store/length-unit-options' },
74
- { name: 'weight_unit' , nice_name: 'Weight' , type: 'select' , value: <%= raw Caboose.json(sc.weight_unit ) %>, width: 400 , options_url: '/admin/store/weight-unit-options' },
75
- { name: 'ups_username' , nice_name: 'UPS Username' , type: 'text' , value: <%= raw Caboose.json(sc.ups_username ) %>, width: 400 },
76
- { name: 'ups_password' , nice_name: 'UPS Password' , type: 'text' , value: <%= raw Caboose.json(sc.ups_password ) %>, width: 400 },
77
- { name: 'ups_key' , nice_name: 'UPS Key' , type: 'text' , value: <%= raw Caboose.json(sc.ups_key ) %>, width: 400 },
78
- { name: 'ups_origin_account' , nice_name: 'UPS Origin Account' , type: 'text' , value: <%= raw Caboose.json(sc.ups_origin_account ) %>, width: 400 },
79
- { name: 'usps_username' , nice_name: 'USPS Username' , type: 'text' , value: <%= raw Caboose.json(sc.usps_username ) %>, width: 400 },
80
- { name: 'usps_secret_key' , nice_name: 'USPS Secret Key' , type: 'text' , value: <%= raw Caboose.json(sc.usps_secret_key ) %>, width: 400 },
81
- { name: 'usps_publishable_key' , nice_name: 'USPS Publishable Key' , type: 'text' , value: <%= raw Caboose.json(sc.usps_publishable_key ) %>, width: 400 },
82
- { name: 'fedex_username' , nice_name: 'FedEx Username' , type: 'text' , value: <%= raw Caboose.json(sc.fedex_username ) %>, width: 400 },
83
- { name: 'fedex_password' , nice_name: 'FedEx Password' , type: 'text' , value: <%= raw Caboose.json(sc.fedex_password ) %>, width: 400 },
84
- { name: 'fedex_key' , nice_name: 'FedEx Key' , type: 'text' , value: <%= raw Caboose.json(sc.fedex_key ) %>, width: 400 },
85
- { name: 'fedex_account' , nice_name: 'FedEx Account' , type: 'text' , value: <%= raw Caboose.json(sc.fedex_account ) %>, width: 400 },
86
- { name: 'origin_country' , nice_name: 'Country' , type: 'text' , value: <%= raw Caboose.json(sc.origin_country ) %>, width: 400 },
87
- { name: 'origin_state' , nice_name: 'State' , type: 'text' , value: <%= raw Caboose.json(sc.origin_state ) %>, width: 400 },
88
- { name: 'origin_city' , nice_name: 'City' , type: 'text' , value: <%= raw Caboose.json(sc.origin_city ) %>, width: 400 },
89
- { name: 'origin_zip' , nice_name: 'Zip' , type: 'text' , value: <%= raw Caboose.json(sc.origin_zip ) %>, width: 400 }
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
 
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.80'
2
+ VERSION = '0.5.81'
3
3
  end
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.80
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-04 00:00:00.000000000 Z
11
+ date: 2015-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg