From 77bd38c136bf0e879c57c18406ea2d562266f1bb Mon Sep 17 00:00:00 2001 From: John Lannon Date: Tue, 22 Jul 2025 11:27:53 -0500 Subject: [PATCH 1/4] fix: make `DocumentSection` attributes optional Only the `uuid` and `name` attributes are present on results from the list operation. This marks the other attributes as optional. --- lib/panda_doc/objects/document_section.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/panda_doc/objects/document_section.rb b/lib/panda_doc/objects/document_section.rb index a00a783..5a79a55 100644 --- a/lib/panda_doc/objects/document_section.rb +++ b/lib/panda_doc/objects/document_section.rb @@ -2,12 +2,12 @@ module PandaDoc module Objects class DocumentSection < Base attribute :uuid, Types::String - attribute :document_uuid, Types::String - attribute :status, Types::Custom::DocumentStatus + attribute? :document_uuid, Types::String + attribute? :status, Types::Custom::DocumentStatus attribute :name, Types::String - attribute :date_created, Types::Params::DateTime - attribute :date_modified, Types::Params::DateTime + attribute? :date_created, Types::Params::DateTime + attribute? :date_modified, Types::Params::DateTime alias_method :created_at, :date_created alias_method :updated_at, :date_modified From cf1f8a642c0dbd80745f8f4ead6265c588042f41 Mon Sep 17 00:00:00 2001 From: John Lannon Date: Tue, 22 Jul 2025 11:28:33 -0500 Subject: [PATCH 2/4] Release v0.13.1 Fixes `DocumentSection` optional attributes issue --- CHANGELOG.md | 6 ++++++ Gemfile.lock | 2 +- lib/panda_doc/version.rb | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56bfd81..a69ee9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +## [0.13.1][] (2021-11-03) + +Fixes: + +- Fixes #62 - make Document Sections attribute optional (@lannon) + ## [0.13.0][] (2025-07-21) New: diff --git a/Gemfile.lock b/Gemfile.lock index 9521e56..c7c30d9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - panda_doc (0.13.0) + panda_doc (0.13.1) dry-configurable dry-struct faraday (>= 2.0.1, < 3.0) diff --git a/lib/panda_doc/version.rb b/lib/panda_doc/version.rb index 17b7646..8f226b8 100644 --- a/lib/panda_doc/version.rb +++ b/lib/panda_doc/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module PandaDoc - VERSION = "0.13.0" + VERSION = "0.13.1" end From 6465de672e633c002c06b77734c723dce1382c70 Mon Sep 17 00:00:00 2001 From: John Lannon Date: Tue, 22 Jul 2025 11:32:14 -0500 Subject: [PATCH 3/4] fix: changelog --- CHANGELOG.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a69ee9c..9b119d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,26 +3,26 @@ All notable changes to this project will be documented in this file. ## [Unreleased] -## [0.13.1][] (2021-11-03) +## [0.13.1]() Fixes: - Fixes #62 - make Document Sections attribute optional (@lannon) -## [0.13.0][] (2025-07-21) +## [0.13.0]() New: - Add Document Sections list and delete actions (by @lannon) -## [0.12.0][] (2025-06-20) +## [0.12.0](2025-06-20) New: - Add Document Sections support (by @andrewvy) -## [0.11.0][] (2025-04-19) +## [0.11.0] (2025-04-19) New: From 7b010ea5e72a8aa428406e26c5afe2e68cac585a Mon Sep 17 00:00:00 2001 From: John Lannon Date: Tue, 22 Jul 2025 11:33:31 -0500 Subject: [PATCH 4/4] fix: changelog formatting --- CHANGELOG.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b119d2..912ea68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,26 +3,26 @@ All notable changes to this project will be documented in this file. ## [Unreleased] -## [0.13.1]() +## [0.13.1][] Fixes: - Fixes #62 - make Document Sections attribute optional (@lannon) -## [0.13.0]() +## [0.13.0][] New: - Add Document Sections list and delete actions (by @lannon) -## [0.12.0](2025-06-20) +## [0.12.0][] (2025-06-20) New: - Add Document Sections support (by @andrewvy) -## [0.11.0] (2025-04-19) +## [0.11.0][] (2025-04-19) New: