effective_addresses 1.11.4 → 1.11.5

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
  SHA256:
3
- metadata.gz: fdee75d31b431c6efbde72fe1cd277cd95dce281445616a819a8559087d1401f
4
- data.tar.gz: b0fb7c4babcb490b5ffc877c47d5f5e811411a8bf76524815646bb7e58fd8a8e
3
+ metadata.gz: 462909b8877432bfb469f0eb29be15ca0d3df18b460fb9934edac0f075edf9cd
4
+ data.tar.gz: 6f6640661408ae453e0f45f6ce7de24af149f305ccdc3d651bb93c6663d6f2f0
5
5
  SHA512:
6
- metadata.gz: 65dea3c72e2738550087312d8134d641ca97d782966e5042f31e880ab57d056643a17217f4c171aba21b3a19862fa66cd08e276a2a835185c51455212121cc13
7
- data.tar.gz: 701feaed5e27cac932a97aa5e3e8351a1a7c1f525479b54422c41d5a267172cc4752bab75f3ec5502fc53d62f3cb6b8c955cc58a2c281499e3b6d786dc31b552
6
+ metadata.gz: 42551a5eaed319cee5f651b01acf9a8052b67b3941beeac66bd12e235aae7331fd35b917bcdee080a0a6c672c04af2906dc8b1e5805d2c466a4717dd9284cde4
7
+ data.tar.gz: 36d4c75e0b511e96cfa94405436482f6cca52e7d4c79b9017313823212fe855b7f90a380c860d9ddf35fb458661d402d37f08b3d4827946df1327a34bd6ec521
@@ -8,6 +8,13 @@
8
8
  - if ((f.object.errors.include?(method) && !f.object.errors.include?(:addresses)) rescue false)
9
9
  = f.errors method
10
10
 
11
+ - if fa.object.category == 'shipping' && f.object.respond_to?(:shipping_address_same_as_billing?)
12
+ = fa.check_box :shipping_address_same_as_billing,
13
+ label: 'Shipping address is same as billing address',
14
+ required: false,
15
+ feedback: false,
16
+ input_html: { checked: same_as_billing }
17
+
11
18
  - if local_assigns[:use_full_name] || EffectiveAddresses.use_full_name || fa.object.errors.include?(:full_name)
12
19
  = fa.text_field :full_name,
13
20
  required: required,
@@ -74,10 +81,3 @@
74
81
  disabled: same_as_billing,
75
82
  input_html: { 'data-effective-address-postal-code' => uuid },
76
83
  wrapper: wrapper_options
77
-
78
- - if fa.object.category == 'shipping' && f.object.respond_to?(:shipping_address_same_as_billing?)
79
- = fa.check_box :shipping_address_same_as_billing,
80
- label: 'Shipping address is same as billing address',
81
- required: false,
82
- feedback: false,
83
- input_html: { checked: same_as_billing }
@@ -6,6 +6,13 @@
6
6
  - if ((f.object.errors.include?(method) && !f.object.errors.include?(:addresses)) rescue false)
7
7
  - fa.object.errors.add(:address1, f.object.errors[method].first)
8
8
 
9
+ - if fa.object.category == 'shipping' && f.object.respond_to?(:shipping_address_same_as_billing?)
10
+ = fa.input :shipping_address_same_as_billing,
11
+ as: :boolean,
12
+ label: 'Shipping address is same as billing address',
13
+ required: false,
14
+ input_html: { checked: shipping_address_same_as_billing }
15
+
9
16
  - field_order.each do |field|
10
17
 
11
18
  - case field
@@ -74,10 +81,3 @@
74
81
  input_html: { 'data-effective-address-postal-code' => uuid },
75
82
  disabled: shipping_address_same_as_billing,
76
83
  wrapper_html: { style: ('display: none;' if shipping_address_same_as_billing) }
77
-
78
- - if fa.object.category == 'shipping' && f.object.respond_to?(:shipping_address_same_as_billing?)
79
- = fa.input :shipping_address_same_as_billing,
80
- as: :boolean,
81
- label: 'Shipping address is same as billing address',
82
- required: false,
83
- input_html: { checked: shipping_address_same_as_billing }
@@ -1,3 +1,3 @@
1
1
  module EffectiveAddresses
2
- VERSION = '1.11.4'.freeze
2
+ VERSION = '1.11.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_addresses
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.4
4
+ version: 1.11.5
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: 2024-05-17 00:00:00.000000000 Z
11
+ date: 2024-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails