locomotive_ecommerce_plugin 1.0.5 → 1.0.6

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
- Mzk3NzczNzY3NmNjYzY5NDliNmM4YjcyNjE3M2VmYTRiZjg2ZWYwMQ==
4
+ YzVmNmI3ZjgzOGIzOGI1MDUzM2NiYzI2MWMzZDNmMmQ2NWZlMWI1Mg==
5
5
  data.tar.gz: !binary |-
6
- ZTU0MGE3NzUyZTk3NjQ0NzQ0MTI3MmI5ZTdkMmUzOTAyZWI4NTE4ZA==
6
+ ODExMmIxMTljODY5YjMyZDViYjc1MzY3ZDU4NTIwMjg4ZGZmMGZjMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTE5NTU3YTY5YTc5MWJkYWI1OGZlOThjMTY4M2MxMjVmYWNmYjUxZmM4Yjli
10
- ZDlkZWMwODBiMTMyNTMxMmJmOGI4ODc2YzhhNGRjYmYxODg5MzJiN2Y4MjVi
11
- YmMyZWVkMTI2ZTA5NTE4ZTVkYTBlODU3MzJiZTkxM2QxNThlZmU=
9
+ ODljODY5YjUzYjZkZjdiNWYyN2YyYTk4YzdkMDg3ZGMzMDA5YWRhNmMwNTBm
10
+ ODc5MTQ3OGFjOGNkZmNhMzhkNjc0YTZkODUzNzFiZjFiYmI1ODg3ZjMwMDgy
11
+ YjM0NGVkODcyYzBiYThiZjJjZWY5NTg5YzczYmQzM2FiY2JhM2U=
12
12
  data.tar.gz: !binary |-
13
- ZDFhNjgwMDE3NDdiM2U4NGI2ZjVjOWJmMzUyMWQ5MTVjYmUwOWIyNDJjYTA3
14
- NmQ4ZTlkODdiMTk0MGJiYmY4NGUwOTBjMDc2YTcyNjNlYzM5NDUzOGY0Y2Nm
15
- NjgzZWUyZTQ4ZWJlYTk5OGUzYWM4NjBkYzQzNGU3OWEyYjc5OTc=
13
+ YTUzZGUxYjI4MmE2NWI4YjQ3ZjE0ZmZlOTlmYWEyMDE5YjAyNmQ3YTNmNTcz
14
+ Zjg5NDIzZWM3Y2M3ZWZlYWVkMTgyMmRhNjMxMzdjYzcyM2U1YmFmYzhlNjNm
15
+ OTExMWI5NTA1OTA4NWUzZTdiMDAyYTI0ODZmZDJhOGU5NjhiNzE=
@@ -115,10 +115,12 @@ module Locomotive
115
115
  query_hash = {}
116
116
  query_hash[name_field] = self.shipping_method
117
117
  method = ct.entries.where(query_hash).first
118
- if method && self.cart.purchase_total > price_break
119
- @shipping = method.send(over_field).to_f
120
- elsif method
121
- @shipping = method.send(under_field).to_f
118
+ if method && method.respond_to?(over_field) && method.respond_to?(under_field)
119
+ if self.cart.purchase_total > price_break
120
+ @shipping = method.send(over_field).to_f
121
+ else
122
+ @shipping = method.send(under_field).to_f
123
+ end
122
124
  end
123
125
  end
124
126
  @shipping
@@ -1,5 +1,5 @@
1
1
  module Locomotive
2
2
  module Ecommerce
3
- VERSION = "1.0.5"
3
+ VERSION = "1.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locomotive_ecommerce_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colibri Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-17 00:00:00.000000000 Z
11
+ date: 2014-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails