adf_builder 1.4.0 → 1.5.0

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: 440064d9196befba72c7a471b56db7a5b31f28b0521b7d2fbd0588e09fe9d0d9
4
- data.tar.gz: fd917e6692abc141a2d1aa4e8c84c47b3ce7ce2ea3061cf6006364d8d51dbf9a
3
+ metadata.gz: 4427fa5879e80b83c94ffb041d1324ff0760d1e7728a8e323715b42a4639846b
4
+ data.tar.gz: 1449df8f0387179b263c5fbca4221342c9e435776094e7c3cb06b056ffbcea3d
5
5
  SHA512:
6
- metadata.gz: a1f11e9074f3a54daa855ac0a1ba732cc7924552ac717efda4f62d2db53aee311d960221eb226a163853a3f7aac52c05feabcdb4b6dc2af554288129123b42ab
7
- data.tar.gz: 9a0f287c7182b673ce9230d01f609f0644e5e4094117a794aab5fc5f53a96b86f8115dd89357b0f07e7ccf9ff4e8e965128e2fe06aa6c9a3d6a1f6da9b906f7a
6
+ metadata.gz: 1f8abcc3c63d4b3da98a29f405f3867615554511f656289fa1bc2d736b9120f4973637373d4c7cdd94b81ce1aeafdf9be1aaec41980582037720b9930835d776
7
+ data.tar.gz: 432988541dcb6e88212419a59bebbc89ffa5fd3d6e3c8ac772adacee9f9d8f7ec2a553214c3b511a91e78c08c4d2939d528e168a5177b1ca76285a531565e4f9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [1.5.0] - 2026-01-19
2
+ - **Provider Node Support**:
3
+ - Implemented `Provider` node with support for `name`, `service`, `url`, `email`, `phone`, and `contact`.
4
+ - Enforced `name` presence for `Provider`.
5
+ - **Validation Improvements**:
6
+ - `Phone`: Updated allowed types to include `:voice` and removed `:phone` (strictly following spec).
7
+ - `Serializer`: Fixed `primarycontact` being serialized as a child element instead of an attribute.
8
+
1
9
  ## [1.4.0] - 2026-01-19
2
10
  - **Vendor & Customer Validation Improvements**:
3
11
  - `Vendor`: Now requires `vendorname` and `contact`.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- adf_builder (1.3.1)
4
+ adf_builder (1.5.0)
5
5
  ox (~> 2.14)
6
6
 
7
7
  GEM
@@ -7,6 +7,7 @@ module AdfBuilder
7
7
  super
8
8
  @tag_name = :provider
9
9
  end
10
+ validates_presence_of :name
10
11
 
11
12
  def id(value, sequence: nil, source: nil)
12
13
  add_child(Id.new(value, sequence: sequence, source: source))
@@ -18,7 +18,7 @@ module AdfBuilder
18
18
  ISO_3166 = %w[US CA MX GB DE FR GR IT ES JP CN IN BR RU ZA AU NZ KR SE NO FI DK NL BE CH].freeze
19
19
 
20
20
  class Phone < Node
21
- validates_inclusion_of :type, in: %i[phone fax cellphone pager]
21
+ validates_inclusion_of :type, in: %i[voice fax cellphone pager]
22
22
  validates_inclusion_of :time, in: %i[morning afternoon evening nopreference day]
23
23
  validates_inclusion_of :preferredcontact, in: [0, 1, "0", "1"]
24
24
 
@@ -83,6 +83,7 @@ module AdfBuilder
83
83
  %i[
84
84
  part type status sequence source id valid preferredcontact time
85
85
  interest units width height alttext limit currency delta relativeto line
86
+ primarycontact
86
87
  ].include?(key)
87
88
  end
88
89
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AdfBuilder
4
- VERSION = "1.4.0"
4
+ VERSION = "1.5.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adf_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - marcus.salinas