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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f3162ad52306cd17518aa01d30384f68645fb11
|
4
|
+
data.tar.gz: 3748712c16db8d80b35bde24fea0fbf6504e890f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
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.
|
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-
|
11
|
+
date: 2014-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|