panda_doc 0.5.3 → 0.6.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 +53 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +24 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +8 -8
- data/README.md +1 -1
- data/lib/panda_doc/failure_result.rb +0 -1
- data/lib/panda_doc/objects/recipient.rb +8 -5
- data/lib/panda_doc/version.rb +1 -1
- metadata +5 -4
- data/.travis.yml +0 -32
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 15388d36657b02a29ab9ab4113517330173b50363488d5570075acfc97fd2644
|
|
4
|
+
data.tar.gz: cd93797418157b2922fb6bda62452548f03714b4296f92bb50c453e9836ecd86
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3edd1e118866f67d64c4d9ba9b46518f3ec786253166e34f3e93c1e975597ab43b90543dc9da6d804bcf6c3b13542e819ac112233b4568c4f77be677c3a273b6
|
|
7
|
+
data.tar.gz: c8e74fe1e14ef159991fd514f5ac906b51d54a183bbc55996a6dcc6d4dc5b0c330c3545843f231adec953e4f16af107d34406c6318ac88ae5a36fbc2046b0e17
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
name: Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
specs:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
strategy:
|
|
13
|
+
fail-fast: false
|
|
14
|
+
matrix:
|
|
15
|
+
ruby:
|
|
16
|
+
- '3.1'
|
|
17
|
+
- '3.0'
|
|
18
|
+
- '2.7'
|
|
19
|
+
- '2.6'
|
|
20
|
+
include:
|
|
21
|
+
- ruby: '3.1'
|
|
22
|
+
coverage: '1'
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v2
|
|
25
|
+
with:
|
|
26
|
+
submodules: true
|
|
27
|
+
- name: Setup Ruby
|
|
28
|
+
uses: ruby/setup-ruby@v1
|
|
29
|
+
with:
|
|
30
|
+
ruby-version: ${{ matrix.ruby }}
|
|
31
|
+
- name: Update rubygems
|
|
32
|
+
run: |
|
|
33
|
+
gem update --system
|
|
34
|
+
- uses: actions/cache@v2
|
|
35
|
+
with:
|
|
36
|
+
path: vendor/bundle
|
|
37
|
+
key: bundle-use-ruby-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
|
|
38
|
+
restore-keys: |
|
|
39
|
+
bundle-use-ruby-${{ matrix.ruby }}-
|
|
40
|
+
- name: Bundle install
|
|
41
|
+
run: |
|
|
42
|
+
bundle config path vendor/bundle
|
|
43
|
+
bundle install --jobs 4 --retry 3
|
|
44
|
+
- name: Run specs
|
|
45
|
+
env:
|
|
46
|
+
SIMPLECOV: ${{ matrix.coverage }}
|
|
47
|
+
run: |
|
|
48
|
+
bundle exec rake spec
|
|
49
|
+
- name: Publish code coverage
|
|
50
|
+
if: ${{ matrix.coverage == '1' }}
|
|
51
|
+
uses: paambaati/codeclimate-action@v3.0.0
|
|
52
|
+
env:
|
|
53
|
+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.1.2
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,28 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.6.0][] (2022-05-04)
|
|
8
|
+
|
|
9
|
+
New:
|
|
10
|
+
|
|
11
|
+
- Add `roles`, `shared_link` and `contact_id` to the recipient in the document details response:
|
|
12
|
+
```ruby
|
|
13
|
+
document = PandaDoc::Document.details("uuid")
|
|
14
|
+
document.recipients.first.roles
|
|
15
|
+
=> ["Signer", "Reviewer"]
|
|
16
|
+
|
|
17
|
+
document.recipients.first.shared_link
|
|
18
|
+
=> "https://app.pandadoc.com/document/b7f11ea3c09d1c11208cc122457d4f3a2829d364"
|
|
19
|
+
|
|
20
|
+
document.recipients.first.contact_id
|
|
21
|
+
=> "7kqXgjFejB2toXxjcC5jfZ"
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Fixes:
|
|
25
|
+
|
|
26
|
+
- Fixes #11 - make `FailureResult#response` public
|
|
27
|
+
- Fixes #8 - make `Recipient` attributes optional
|
|
28
|
+
|
|
7
29
|
## [0.5.3][] (2021-11-03)
|
|
8
30
|
|
|
9
31
|
Fixes:
|
|
@@ -175,7 +197,8 @@ Fixes:
|
|
|
175
197
|
|
|
176
198
|
- Initial release
|
|
177
199
|
|
|
178
|
-
[Unreleased]: https://github.com/opti/panda_doc/compare/v0.
|
|
200
|
+
[Unreleased]: https://github.com/opti/panda_doc/compare/v0.6.0...HEAD
|
|
201
|
+
[0.6.0]: https://github.com/opti/panda_doc/compare/v0.5.3...v0.6.0
|
|
179
202
|
[0.5.3]: https://github.com/opti/panda_doc/compare/v0.5.2...v0.5.3
|
|
180
203
|
[0.5.2]: https://github.com/opti/panda_doc/compare/v0.5.1...v0.5.2
|
|
181
204
|
[0.5.1]: https://github.com/opti/panda_doc/compare/v0.5.0...v0.5.1
|
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.6.0)
|
|
5
5
|
dry-configurable
|
|
6
6
|
dry-struct
|
|
7
7
|
faraday (>= 0.9.2, < 2.0)
|
|
@@ -58,6 +58,7 @@ GEM
|
|
|
58
58
|
faraday_middleware (1.2.0)
|
|
59
59
|
faraday (~> 1.0)
|
|
60
60
|
ice_nine (0.11.2)
|
|
61
|
+
json (2.6.1)
|
|
61
62
|
multipart-post (2.1.1)
|
|
62
63
|
rake (13.0.6)
|
|
63
64
|
rspec (3.10.0)
|
|
@@ -74,12 +75,11 @@ GEM
|
|
|
74
75
|
rspec-support (~> 3.10.0)
|
|
75
76
|
rspec-support (3.10.3)
|
|
76
77
|
ruby2_keywords (0.0.5)
|
|
77
|
-
simplecov (0.
|
|
78
|
+
simplecov (0.17.1)
|
|
78
79
|
docile (~> 1.1)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
simplecov-html (0.
|
|
82
|
-
simplecov_json_formatter (0.1.3)
|
|
80
|
+
json (>= 1.8, < 3)
|
|
81
|
+
simplecov-html (~> 0.10.0)
|
|
82
|
+
simplecov-html (0.10.2)
|
|
83
83
|
|
|
84
84
|
PLATFORMS
|
|
85
85
|
ruby
|
|
@@ -90,7 +90,7 @@ DEPENDENCIES
|
|
|
90
90
|
panda_doc!
|
|
91
91
|
rake (>= 10.0)
|
|
92
92
|
rspec (~> 3.4)
|
|
93
|
-
simplecov
|
|
93
|
+
simplecov (~> 0.17.1)
|
|
94
94
|
|
|
95
95
|
BUNDLED WITH
|
|
96
|
-
2.
|
|
96
|
+
2.3.13
|
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
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
|
-
[](https://github.com/opti/panda_doc/actions/workflows/ci.yml)
|
|
7
7
|
[](https://codeclimate.com/github/opti/panda_doc)
|
|
8
8
|
[](https://codeclimate.com/github/opti/panda_doc/coverage)
|
|
9
9
|
|
|
@@ -4,13 +4,16 @@ module PandaDoc
|
|
|
4
4
|
module Objects
|
|
5
5
|
class Recipient < Base
|
|
6
6
|
attribute? :id, Types::Coercible::String.optional
|
|
7
|
-
attribute :email, Types::Coercible::String
|
|
8
|
-
attribute :first_name, Types::Coercible::String.optional
|
|
9
|
-
attribute :last_name, Types::Coercible::String.optional
|
|
10
|
-
attribute :recipient_type, Types::Coercible::String
|
|
11
|
-
attribute :has_completed, Types::Params::Bool
|
|
7
|
+
attribute? :email, Types::Coercible::String
|
|
8
|
+
attribute? :first_name, Types::Coercible::String.optional
|
|
9
|
+
attribute? :last_name, Types::Coercible::String.optional
|
|
10
|
+
attribute? :recipient_type, Types::Coercible::String
|
|
11
|
+
attribute? :has_completed, Types::Params::Bool
|
|
12
12
|
attribute? :role, Types::Coercible::String.optional
|
|
13
13
|
attribute? :type, Types::Coercible::String.optional
|
|
14
|
+
attribute? :roles, Types::Array.of(Types::Coercible::String)
|
|
15
|
+
attribute? :contact_id, Types::Coercible::String.optional
|
|
16
|
+
attribute? :shared_link, Types::Coercible::String.optional
|
|
14
17
|
end
|
|
15
18
|
end
|
|
16
19
|
end
|
data/lib/panda_doc/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: panda_doc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Igor Pstyga
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-05-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -85,9 +85,10 @@ executables: []
|
|
|
85
85
|
extensions: []
|
|
86
86
|
extra_rdoc_files: []
|
|
87
87
|
files:
|
|
88
|
+
- ".github/workflows/ci.yml"
|
|
88
89
|
- ".gitignore"
|
|
89
90
|
- ".rspec"
|
|
90
|
-
- ".
|
|
91
|
+
- ".ruby-version"
|
|
91
92
|
- CHANGELOG.md
|
|
92
93
|
- Gemfile
|
|
93
94
|
- Gemfile.lock
|
|
@@ -135,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
135
136
|
- !ruby/object:Gem::Version
|
|
136
137
|
version: '0'
|
|
137
138
|
requirements: []
|
|
138
|
-
rubygems_version: 3.
|
|
139
|
+
rubygems_version: 3.3.13
|
|
139
140
|
signing_key:
|
|
140
141
|
specification_version: 4
|
|
141
142
|
summary: Ruby wrapper for PandaDoc.com API
|
data/.travis.yml
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
os: linux
|
|
3
|
-
dist: xenial
|
|
4
|
-
|
|
5
|
-
cache:
|
|
6
|
-
- bundler
|
|
7
|
-
|
|
8
|
-
rvm:
|
|
9
|
-
- 2.5
|
|
10
|
-
- 2.6
|
|
11
|
-
- 2.7
|
|
12
|
-
- 3.0
|
|
13
|
-
|
|
14
|
-
env:
|
|
15
|
-
global:
|
|
16
|
-
- CC_TEST_REPORTER_ID=d1d9c0636042863489880dbdf1c8865721b9b70f4199d612d77ee2dcfc803704
|
|
17
|
-
|
|
18
|
-
before_install:
|
|
19
|
-
- gem update --system
|
|
20
|
-
- gem install bundler
|
|
21
|
-
|
|
22
|
-
before_script:
|
|
23
|
-
- bundle update
|
|
24
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
25
|
-
- chmod +x ./cc-test-reporter
|
|
26
|
-
- ./cc-test-reporter before-build
|
|
27
|
-
|
|
28
|
-
script:
|
|
29
|
-
- bin/rake
|
|
30
|
-
|
|
31
|
-
after_script:
|
|
32
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|