panda_doc 0.5.3 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e8b044f3c9707cdd0ecf3221f1384a07d4922b38fdc2090305461c28ae9d11e
4
- data.tar.gz: fa8015cd7e818ec99f2b0f384d85aaf2b7ebf52e2efa736e1ecf991337ad16a4
3
+ metadata.gz: 15388d36657b02a29ab9ab4113517330173b50363488d5570075acfc97fd2644
4
+ data.tar.gz: cd93797418157b2922fb6bda62452548f03714b4296f92bb50c453e9836ecd86
5
5
  SHA512:
6
- metadata.gz: 26e731f8d0000c15aca640832505f34b3c636176550508028cd397201d8aa38d58fdf30f04a85e56fca5d94b6154528155fbd376d07bdfab09b0880ce17498b2
7
- data.tar.gz: 976f8dde2e6abdf86e574140bd6f5178aa20ca5373e29e531d09bd1015a1317a8ebff10948e5d7d0fd78590b7b653ec8cf557d5c7300e92a1f8b50832a74b70b
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.5.3...HEAD
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
@@ -9,5 +9,5 @@ gem "rspec", "~> 3.4"
9
9
  gem "byebug"
10
10
 
11
11
  group :test do
12
- gem "simplecov", require: false
12
+ gem "simplecov", "~> 0.17.1", require: false
13
13
  end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- panda_doc (0.5.3)
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.21.2)
78
+ simplecov (0.17.1)
78
79
  docile (~> 1.1)
79
- simplecov-html (~> 0.11)
80
- simplecov_json_formatter (~> 0.1)
81
- simplecov-html (0.12.3)
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.2.30
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
- [![Build Status](https://travis-ci.org/opti/panda_doc.svg?branch=master)](http://travis-ci.org/opti/panda_doc)
6
+ [![Build Status](https://github.com/opti/panda_doc/actions/workflows/ci.yml/badge.svg)](https://github.com/opti/panda_doc/actions/workflows/ci.yml)
7
7
  [![Code Climate](https://codeclimate.com/github/opti/panda_doc/badges/gpa.svg)](https://codeclimate.com/github/opti/panda_doc)
8
8
  [![Test Coverage](https://codeclimate.com/github/opti/panda_doc/badges/coverage.svg)](https://codeclimate.com/github/opti/panda_doc/coverage)
9
9
 
@@ -9,7 +9,6 @@ module PandaDoc
9
9
  attr_reader :error
10
10
 
11
11
  attr_reader :response
12
- private :response
13
12
 
14
13
  def initialize(response)
15
14
  @response = response
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PandaDoc
4
- VERSION = "0.5.3"
4
+ VERSION = "0.6.0"
5
5
  end
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.5.3
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: 2021-11-03 00:00:00.000000000 Z
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
- - ".travis.yml"
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.2.30
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