panda_doc 0.13.1 → 0.15.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 +4 -4
- data/.github/workflows/ci.yml +10 -5
- data/.ruby-version +1 -1
- data/CHANGELOG.md +13 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +17 -17
- data/README.md +2 -2
- data/lib/panda_doc/document_section.rb +7 -0
- data/lib/panda_doc/objects/document.rb +7 -0
- data/lib/panda_doc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16c9633e2dad18d0c7f07d3602be24c397ddd73bdc42ef1352eb7da4148f8e95
|
|
4
|
+
data.tar.gz: d240ad552cceb1169984302136a40139f81b4fd35775dbfaeb6ac2601ffe825b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e479832e090fc7d006e6d20150ec9128303745ac75d331773a3eaa8e53f44b66320248a8dc7ee8cbd77158f7424ced646afabb978d30b292c26a0845d6078b53
|
|
7
|
+
data.tar.gz: 0b7715b7f173c8512d3853e3f921c64442c0b2c67d8eca6f8736a447622a4356c238e167ff839367ca3dbf52e7882409b1a3fc5bdaf8e03fea633e507233a9cb
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -6,6 +6,10 @@ on:
|
|
|
6
6
|
pull_request:
|
|
7
7
|
branches: [main]
|
|
8
8
|
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
id-token: write # Required for OIDC
|
|
12
|
+
|
|
9
13
|
jobs:
|
|
10
14
|
specs:
|
|
11
15
|
runs-on: ubuntu-latest
|
|
@@ -13,12 +17,12 @@ jobs:
|
|
|
13
17
|
fail-fast: false
|
|
14
18
|
matrix:
|
|
15
19
|
ruby:
|
|
20
|
+
- '4.0'
|
|
16
21
|
- '3.4'
|
|
17
22
|
- '3.3'
|
|
18
23
|
- '3.2'
|
|
19
|
-
- '3.1'
|
|
20
24
|
include:
|
|
21
|
-
- ruby: '
|
|
25
|
+
- ruby: '4.0'
|
|
22
26
|
coverage: '1'
|
|
23
27
|
steps:
|
|
24
28
|
- uses: actions/checkout@v4
|
|
@@ -48,6 +52,7 @@ jobs:
|
|
|
48
52
|
bundle exec rake spec
|
|
49
53
|
- name: Publish code coverage
|
|
50
54
|
if: ${{ matrix.coverage == '1' && github.actor != 'dependabot[bot]' && github.ref_name == 'main' }}
|
|
51
|
-
uses:
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
uses: qltysh/qlty-action/coverage@v2
|
|
56
|
+
with:
|
|
57
|
+
oidc: true
|
|
58
|
+
files: coverage/coverage.json
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
4.0.0
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
|
+
|
|
7
|
+
## [0.15.0][]
|
|
8
|
+
|
|
9
|
+
New:
|
|
10
|
+
|
|
11
|
+
- Adds the ability to get the a document section upload's status. (by @lannon)
|
|
12
|
+
|
|
13
|
+
## [0.14.0][]
|
|
14
|
+
|
|
15
|
+
New:
|
|
16
|
+
|
|
17
|
+
- Add new optional fields to Document (by @lannon)
|
|
18
|
+
|
|
6
19
|
## [0.13.1][]
|
|
7
20
|
|
|
8
21
|
Fixes:
|
|
@@ -15,7 +28,6 @@ New:
|
|
|
15
28
|
|
|
16
29
|
- Add Document Sections list and delete actions (by @lannon)
|
|
17
30
|
|
|
18
|
-
|
|
19
31
|
## [0.12.0][] (2025-06-20)
|
|
20
32
|
|
|
21
33
|
New:
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
panda_doc (0.
|
|
4
|
+
panda_doc (0.15.0)
|
|
5
5
|
dry-configurable
|
|
6
6
|
dry-struct
|
|
7
7
|
faraday (>= 2.0.1, < 3.0)
|
|
@@ -41,41 +41,41 @@ GEM
|
|
|
41
41
|
dry-inflector (~> 1.0)
|
|
42
42
|
dry-logic (~> 1.4)
|
|
43
43
|
zeitwerk (~> 2.6)
|
|
44
|
-
faraday (2.
|
|
44
|
+
faraday (2.14.1)
|
|
45
45
|
faraday-net_http (>= 2.0, < 3.5)
|
|
46
46
|
json
|
|
47
47
|
logger
|
|
48
|
-
faraday-multipart (1.
|
|
48
|
+
faraday-multipart (1.2.0)
|
|
49
49
|
multipart-post (~> 2.0)
|
|
50
|
-
faraday-net_http (3.4.
|
|
51
|
-
net-http (
|
|
50
|
+
faraday-net_http (3.4.2)
|
|
51
|
+
net-http (~> 0.5)
|
|
52
52
|
ice_nine (0.11.2)
|
|
53
|
-
json (2.
|
|
53
|
+
json (2.18.1)
|
|
54
54
|
logger (1.7.0)
|
|
55
55
|
multipart-post (2.4.1)
|
|
56
|
-
net-http (0.
|
|
57
|
-
uri
|
|
58
|
-
rake (13.3.
|
|
59
|
-
rspec (3.13.
|
|
56
|
+
net-http (0.9.1)
|
|
57
|
+
uri (>= 0.11.1)
|
|
58
|
+
rake (13.3.1)
|
|
59
|
+
rspec (3.13.2)
|
|
60
60
|
rspec-core (~> 3.13.0)
|
|
61
61
|
rspec-expectations (~> 3.13.0)
|
|
62
62
|
rspec-mocks (~> 3.13.0)
|
|
63
|
-
rspec-core (3.13.
|
|
63
|
+
rspec-core (3.13.6)
|
|
64
64
|
rspec-support (~> 3.13.0)
|
|
65
65
|
rspec-expectations (3.13.5)
|
|
66
66
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
67
67
|
rspec-support (~> 3.13.0)
|
|
68
|
-
rspec-mocks (3.13.
|
|
68
|
+
rspec-mocks (3.13.7)
|
|
69
69
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
70
70
|
rspec-support (~> 3.13.0)
|
|
71
|
-
rspec-support (3.13.
|
|
71
|
+
rspec-support (3.13.6)
|
|
72
72
|
simplecov (0.22.0)
|
|
73
73
|
docile (~> 1.1)
|
|
74
74
|
simplecov-html (~> 0.11)
|
|
75
75
|
simplecov_json_formatter (~> 0.1)
|
|
76
|
-
simplecov-html (0.13.
|
|
76
|
+
simplecov-html (0.13.2)
|
|
77
77
|
simplecov_json_formatter (0.1.4)
|
|
78
|
-
uri (1.
|
|
78
|
+
uri (1.1.1)
|
|
79
79
|
zeitwerk (2.7.2)
|
|
80
80
|
|
|
81
81
|
PLATFORMS
|
|
@@ -87,7 +87,7 @@ DEPENDENCIES
|
|
|
87
87
|
panda_doc!
|
|
88
88
|
rake (>= 10.0)
|
|
89
89
|
rspec (~> 3.13)
|
|
90
|
-
simplecov
|
|
90
|
+
simplecov
|
|
91
91
|
|
|
92
92
|
BUNDLED WITH
|
|
93
|
-
|
|
93
|
+
4.0.6
|
data/README.md
CHANGED
|
@@ -4,8 +4,8 @@ PandaDoc gem is a simple wrapper for PandaDoc.com API. Please check the official
|
|
|
4
4
|
API [documenation](https://developers.pandadoc.com) for more details.
|
|
5
5
|
|
|
6
6
|
[](https://github.com/opti/panda_doc/actions/workflows/ci.yml)
|
|
7
|
-
[](https://qlty.sh/gh/opti/projects/panda_doc)
|
|
8
|
+
[](https://qlty.sh/gh/opti/projects/panda_doc)
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
@@ -25,6 +25,13 @@ module PandaDoc
|
|
|
25
25
|
)
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
+
def upload_status(document_uuid, upload_uuid)
|
|
29
|
+
respond(
|
|
30
|
+
ApiClient.request(:get, "/documents/#{document_uuid}/sections/uploads/#{upload_uuid}"),
|
|
31
|
+
type: :document_section
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
|
|
28
35
|
private
|
|
29
36
|
|
|
30
37
|
def respond(response, type: :document)
|
|
@@ -11,7 +11,11 @@ module PandaDoc
|
|
|
11
11
|
attribute :date_created, Types::Params::DateTime
|
|
12
12
|
attribute :date_modified, Types::Params::DateTime
|
|
13
13
|
attribute? :expiration_date, Types::Params::DateTime.optional
|
|
14
|
+
attribute? :date_completed, Types::Params::DateTime.optional
|
|
15
|
+
attribute? :date_sent, Types::Params::DateTime.optional
|
|
16
|
+
attribute? :content_date_modified, Types::Params::DateTime.optional
|
|
14
17
|
attribute :version, Types::String.optional
|
|
18
|
+
attribute? :ref_number, Types::String.optional
|
|
15
19
|
|
|
16
20
|
attribute? :tokens, Types::Array.of(Objects::Token)
|
|
17
21
|
attribute? :fields, Types::Array.of(Objects::Field)
|
|
@@ -20,6 +24,9 @@ module PandaDoc
|
|
|
20
24
|
alias_method :created_at, :date_created
|
|
21
25
|
alias_method :updated_at, :date_modified
|
|
22
26
|
alias_method :expires_at, :expiration_date
|
|
27
|
+
alias_method :completed_at, :date_completed
|
|
28
|
+
alias_method :sent_at, :date_sent
|
|
29
|
+
alias_method :content_modified_at, :content_date_modified
|
|
23
30
|
end
|
|
24
31
|
end
|
|
25
32
|
end
|
data/lib/panda_doc/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: panda_doc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.15.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Igor Pstyga
|
|
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
156
156
|
- !ruby/object:Gem::Version
|
|
157
157
|
version: '0'
|
|
158
158
|
requirements: []
|
|
159
|
-
rubygems_version:
|
|
159
|
+
rubygems_version: 4.0.6
|
|
160
160
|
specification_version: 4
|
|
161
161
|
summary: Ruby wrapper for PandaDoc.com API
|
|
162
162
|
test_files: []
|