effective_orders 1.3.11 → 1.3.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af710edf99578878bacdcce95b3d827f5184b38a
4
- data.tar.gz: f53b57430f9785bb9ac98883e812e0f05abb8f54
3
+ metadata.gz: 6c7b3b018e79698ed00c4de4515e215fe8ee9ffc
4
+ data.tar.gz: d28eecbbe23937b8a46b2a21214fb8dbf3c57023
5
5
  SHA512:
6
- metadata.gz: 3f387ac552ed74da717e4bc03fb49c925a3d23d62beb96926af315224fd3ba2495d030b2b3b7979680d6772a589ae94c11fb518c6b99a89a8eb1f89cf3616e7f
7
- data.tar.gz: 71da5bf1a545577db61919b749674140178b9f85d777718eef190135437f80a06bf0248aca474ee1776d896a9062bab36298353549edc2bc59b1a35cbb0c3cbd
6
+ metadata.gz: 00bf45972290436dab97bd5202b7343cfde44dd31d9bbf2ae8305378384fa7d4af3d0e4ed75d959b9913567ea4828e3c6cddf5e9f10a268a9d3d7983f18d2887
7
+ data.tar.gz: fcedfdc649cabf1724a7381ae5ec31d1f116956dcbc78a7d37191096647dc1377a0a0594842412e57e75d02dad02b412bcf4fcf341930101718cf10b4210b107
@@ -1,6 +1,12 @@
1
1
  = render order
2
2
 
3
3
  .effective-order.effective-order-purchase-actions
4
+ - if EffectiveOrders.allow_pretend_purchase_in_production
5
+ = render :partial => '/effective/orders/pretend/form', locals: {label: 'Purchase Order', order: order, purchased_redirect_url: purchased_redirect_url, declined_redirect_url: declined_redirect_url}
6
+ %p= EffectiveOrders.allow_pretend_purchase_in_production_message
7
+ - elsif (Rails.env.development? || Rails.env.test?)
8
+ = render :partial => '/effective/orders/pretend/form', locals: {label: 'Purchase Order (development only)', order: order, purchased_redirect_url: purchased_redirect_url, declined_redirect_url: declined_redirect_url}
9
+
4
10
  - if EffectiveOrders.moneris_enabled
5
11
  = render :partial => '/effective/orders/moneris/form', :locals => {:order => order, :purchased_redirect_url => purchased_redirect_url, :declined_redirect_url => declined_redirect_url}
6
12
 
@@ -10,9 +16,4 @@
10
16
  - if EffectiveOrders.stripe_enabled
11
17
  = render :partial => '/effective/orders/stripe/form', :locals => {:order => order}
12
18
 
13
- - if EffectiveOrders.allow_pretend_purchase_in_production
14
- = link_to 'Purchase Order', effective_orders.pretend_purchase_path(order, :purchased_redirect_url => purchased_redirect_url, :declined_redirect_url => declined_redirect_url), :class => 'btn btn-primary', :data => {'disable_with' => 'Purchasing...' }
15
- %p= EffectiveOrders.allow_pretend_purchase_in_production_message
16
- - elsif (Rails.env.development? || Rails.env.test?)
17
- = link_to 'Purchase Order (development only)', effective_orders.pretend_purchase_path(order, :purchased_redirect_url => purchased_redirect_url, :declined_redirect_url => declined_redirect_url), :class => 'btn btn-primary', :data => {'disable_with' => 'Purchasing...' }
18
19
 
@@ -0,0 +1,2 @@
1
+ = form_tag(effective_orders.pretend_purchase_path(order, :purchased_redirect_url => purchased_redirect_url, :declined_redirect_url => declined_redirect_url), method: :post) do
2
+ = submit_tag label, :class => 'btn btn-primary', :data => {'disable_with' => 'Purchasing...' }
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '1.3.11'.freeze
2
+ VERSION = '1.3.12'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_orders
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.11
4
+ version: 1.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-14 00:00:00.000000000 Z
11
+ date: 2015-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -394,6 +394,7 @@ files:
394
394
  - app/views/effective/orders/my_sales.html.haml
395
395
  - app/views/effective/orders/new.html.haml
396
396
  - app/views/effective/orders/paypal/_form.html.haml
397
+ - app/views/effective/orders/pretend/_form.html.haml
397
398
  - app/views/effective/orders/purchased.html.haml
398
399
  - app/views/effective/orders/show.html.haml
399
400
  - app/views/effective/orders/stripe/_form.html.haml