tb_checkout 1.0.6 → 1.0.7

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e3560014c484a57a52918acaaf59787824300d7
4
- data.tar.gz: 3cda17fad3ef8bc01f1d082046bac3a7d4e66754
3
+ metadata.gz: eb3fc1ae37d51e94af4338396c822e2d1392a17e
4
+ data.tar.gz: 99c1376aef1929a46b5164a870d3b2b84e560236
5
5
  SHA512:
6
- metadata.gz: ebe45ae6b8648965a8b9a316af4d468e01099294969f921b1d6d7638e49534371f06c45bce6bf5ec336532d596ba70686631c4760edb106df31915f87ecca48d
7
- data.tar.gz: c9aad41fc87e1ded077830875aeddb2176300cc152ff892b4f9ce44347dfe426c704d96e9bf29585b6775a1b8e27e6494288dc8f405ac0a9b6cfcacec856d243
6
+ metadata.gz: 6f7d66476d2a23b70f1a0feaa2671ce1f6c25138509da0eb54c0a4de9a8811353d58dfc3cdccabfc6463dbd901d345b94dfff94a5a18a744822b8c0abba2a628
7
+ data.tar.gz: 1cfe8609867ef781b1bb6894f4a476bba0991c828cffbce5208964a1f63b2a95b0e5ad46ec3294c15e8fff70776620d22cc6b46e66255dddba61b69a55520b10
@@ -1,4 +1,4 @@
1
- class TbCheckout::Admin::CartsController < Spud::Admin::ApplicationController
1
+ class TbCheckout::Admin::CartsController < Admin::ApplicationController
2
2
  belongs_to_spud_app :shopping_carts
3
3
  before_action :setup_breadcrumb
4
4
  before_action :load_cart, :only => :show
@@ -1,4 +1,4 @@
1
- class TbCheckout::Admin::TransactionsController < Spud::Admin::ApplicationController
1
+ class TbCheckout::Admin::TransactionsController < Admin::ApplicationController
2
2
  belongs_to_spud_app :transactions
3
3
  add_breadcrumb 'Transactions', :tb_checkout_admin_transactions_path
4
4
  before_action :load_transaction, :only => :show
@@ -1,10 +1,10 @@
1
1
  module TbCheckout::Admin::TransactionsHelper
2
2
 
3
- def tb_checkout_status_label_for_transaction(status)
3
+ def tb_checkout_status_label_for_transaction(status)
4
4
  if status == 'captured'
5
5
  cls = 'success'
6
6
  elsif status == 'fail'
7
- cls = 'important'
7
+ cls = 'danger'
8
8
  elsif status == 'refunded' || status == 'voided'
9
9
  cls = 'warning'
10
10
  else
@@ -14,7 +14,7 @@ module TbCheckout
14
14
  end
15
15
  end
16
16
 
17
- initializer 'tb_checkout.admin' do |config|
17
+ initializer 'tb_checkout.admin', :before => 'tb_core.admin' do |config|
18
18
  Spud::Core.admin_applications += [{
19
19
  :name => 'Shopping Carts',
20
20
  :url => '/admin/carts',
@@ -1,3 +1,3 @@
1
1
  module TbCheckout
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tb_checkout
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Westlake Design
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-05 00:00:00.000000000 Z
11
+ date: 2015-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tb_core