effective_orders 1.2.1 → 1.2.2

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: 18b94b140cb5e27733403db8ff5c2f2d5334ec53
4
- data.tar.gz: 5b50dd174ecb6da78ffadcedc8268c75dc238815
3
+ metadata.gz: 5f3162ad52306cd17518aa01d30384f68645fb11
4
+ data.tar.gz: 3748712c16db8d80b35bde24fea0fbf6504e890f
5
5
  SHA512:
6
- metadata.gz: 0a7cab5b36a1ef78644e174b338862e256ab15a7d7f5debbcb41174eec48958b22b52bb9b1826aac9b5caa0b95daf7f62f70f1fbe1de142c878573ed47f3c569
7
- data.tar.gz: 80193c2d5065a6fc1689a267cbe3efb8225898fbbaa3026103ecdf0914b54d2f7e7c3b5e15de67473e05ca032271c56088b8d66456325e9759ec69f466870683
6
+ metadata.gz: 8646c88938044957e87db4e1f8f73e3bafd71aa208fe80b5e2e8ac787e5e1f6768d07490c97e7e56933396a0d426594f25772a1c833fb26e5598c3f8b4316189
7
+ data.tar.gz: 8d795803eea0083d0e521cd3cb4d584c48e3aaf06d4036fc42c53ee3274aa4aa684d3eba471fc4537a9dfdf7fbad842af869f7f8729875901d9a74d7ca484df8
@@ -13,7 +13,7 @@
13
13
  = hidden_field_tag(:email, order.user.try(:email))
14
14
  = hidden_field_tag(:cust_id, order.user.to_param)
15
15
 
16
- - moneris_order_id = "#{order.to_param.to_i + EffectiveOrders.moneris[:order_nudge].to_i}"
16
+ - moneris_order_id = "#{order.to_param.gsub(/[^0-9]/, '').to_i + EffectiveOrders.moneris[:order_nudge].to_i}"
17
17
  - if EffectiveOrders.moneris[:include_billing_name_in_order_id] == true
18
18
  - moneris_order_id = moneris_order_id + '-' + order.billing_name.parameterize
19
19
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '1.2.1'.freeze
2
+ VERSION = '1.2.2'.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.2.1
4
+ version: 1.2.2
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: 2014-12-24 00:00:00.000000000 Z
11
+ date: 2014-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails