panda_doc 0.6.0 → 0.7.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: 15388d36657b02a29ab9ab4113517330173b50363488d5570075acfc97fd2644
4
- data.tar.gz: cd93797418157b2922fb6bda62452548f03714b4296f92bb50c453e9836ecd86
3
+ metadata.gz: 8849ee8f7c8311a7eb442ff4c1b059c94a6ec87fb039a23cc74b1dd06c0c6873
4
+ data.tar.gz: 4563201e0b177abf440381dc8f06ccf876603f9c9c45d34a71d54786ae615144
5
5
  SHA512:
6
- metadata.gz: 3edd1e118866f67d64c4d9ba9b46518f3ec786253166e34f3e93c1e975597ab43b90543dc9da6d804bcf6c3b13542e819ac112233b4568c4f77be677c3a273b6
7
- data.tar.gz: c8e74fe1e14ef159991fd514f5ac906b51d54a183bbc55996a6dcc6d4dc5b0c330c3545843f231adec953e4f16af107d34406c6318ac88ae5a36fbc2046b0e17
6
+ metadata.gz: 74541a952ad1c7f327e220dd197ce0213fd2d9de697fb5e2743f46b72b5a2e1df94e7c801cf5b833406fac61751de1cbc4b2af643b7daa3b4c10f69e25cd34fa
7
+ data.tar.gz: 04ff0e440faac7e29d5f8b6bfa9ffe9f8bf31f0399eeeab18f6cc9940be1b482d74c47915c21d2b40b396328fca5bce3c1c37f172dcb13adfb1f97a55aece404
@@ -0,0 +1,11 @@
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
6
+ version: 2
7
+ updates:
8
+ - package-ecosystem: "bundler"
9
+ directory: "/"
10
+ schedule:
11
+ interval: "daily"
@@ -13,15 +13,15 @@ jobs:
13
13
  fail-fast: false
14
14
  matrix:
15
15
  ruby:
16
+ - '3.2'
16
17
  - '3.1'
17
18
  - '3.0'
18
19
  - '2.7'
19
- - '2.6'
20
20
  include:
21
- - ruby: '3.1'
21
+ - ruby: '3.2'
22
22
  coverage: '1'
23
23
  steps:
24
- - uses: actions/checkout@v2
24
+ - uses: actions/checkout@v3
25
25
  with:
26
26
  submodules: true
27
27
  - name: Setup Ruby
@@ -31,7 +31,7 @@ jobs:
31
31
  - name: Update rubygems
32
32
  run: |
33
33
  gem update --system
34
- - uses: actions/cache@v2
34
+ - uses: actions/cache@v3
35
35
  with:
36
36
  path: vendor/bundle
37
37
  key: bundle-use-ruby-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
@@ -47,7 +47,7 @@ jobs:
47
47
  run: |
48
48
  bundle exec rake spec
49
49
  - name: Publish code coverage
50
- if: ${{ matrix.coverage == '1' }}
51
- uses: paambaati/codeclimate-action@v3.0.0
50
+ if: ${{ matrix.coverage == '1' && github.actor != 'dependabot[bot]' }}
51
+ uses: paambaati/codeclimate-action@v3.1.1
52
52
  env:
53
53
  CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
@@ -0,0 +1,72 @@
1
+ # For most projects, this workflow file will not need changing; you simply need
2
+ # to commit it to your repository.
3
+ #
4
+ # You may wish to alter this file to override the set of languages analyzed,
5
+ # or to provide custom queries or build logic.
6
+ #
7
+ # ******** NOTE ********
8
+ # We have attempted to detect the languages in your repository. Please check
9
+ # the `language` matrix defined below to confirm you have the correct set of
10
+ # supported CodeQL languages.
11
+ #
12
+ name: "CodeQL"
13
+
14
+ on:
15
+ push:
16
+ branches: [ main ]
17
+ pull_request:
18
+ # The branches below must be a subset of the branches above
19
+ branches: [ main ]
20
+ schedule:
21
+ - cron: '17 0 * * 5'
22
+
23
+ jobs:
24
+ analyze:
25
+ name: Analyze
26
+ runs-on: ubuntu-latest
27
+ permissions:
28
+ actions: read
29
+ contents: read
30
+ security-events: write
31
+
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ language: [ 'ruby' ]
36
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37
+ # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38
+
39
+ steps:
40
+ - name: Checkout repository
41
+ uses: actions/checkout@v3
42
+
43
+ # Initializes the CodeQL tools for scanning.
44
+ - name: Initialize CodeQL
45
+ uses: github/codeql-action/init@v2
46
+ with:
47
+ languages: ${{ matrix.language }}
48
+ # If you wish to specify custom queries, you can do so here or in a config file.
49
+ # By default, queries listed here will override any specified in a config file.
50
+ # Prefix the list here with "+" to use these queries and those in the config file.
51
+
52
+ # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53
+ # queries: security-extended,security-and-quality
54
+
55
+
56
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57
+ # If this step fails, then you should remove it and run the build manually (see below)
58
+ - name: Autobuild
59
+ uses: github/codeql-action/autobuild@v2
60
+
61
+ # ℹ️ Command-line programs to run using the OS shell.
62
+ # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63
+
64
+ # If the Autobuild fails above, remove it and uncomment the following three lines.
65
+ # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66
+
67
+ # - run: |
68
+ # echo "Run, Build Application using script"
69
+ # ./location_of_script_within_repo/buildscript.sh
70
+
71
+ - name: Perform CodeQL Analysis
72
+ uses: github/codeql-action/analyze@v2
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.2
1
+ 3.2.2
data/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.7.0][] (2023-06-07)
8
+
9
+ New:
10
+
11
+ - Drop ruby 2.6
12
+ - Update to Faraday 2
13
+
7
14
  ## [0.6.0][] (2022-05-04)
8
15
 
9
16
  New:
@@ -197,7 +204,8 @@ Fixes:
197
204
 
198
205
  - Initial release
199
206
 
200
- [Unreleased]: https://github.com/opti/panda_doc/compare/v0.6.0...HEAD
207
+ [Unreleased]: https://github.com/opti/panda_doc/compare/v0.7.0...HEAD
208
+ [0.7.0]: https://github.com/opti/panda_doc/compare/v0.6.0...v0.7.0
201
209
  [0.6.0]: https://github.com/opti/panda_doc/compare/v0.5.3...v0.6.0
202
210
  [0.5.3]: https://github.com/opti/panda_doc/compare/v0.5.2...v0.5.3
203
211
  [0.5.2]: https://github.com/opti/panda_doc/compare/v0.5.1...v0.5.2
data/Gemfile CHANGED
@@ -5,9 +5,9 @@ gemspec
5
5
 
6
6
  gem "bundler"
7
7
  gem "rake", ">= 10.0"
8
- gem "rspec", "~> 3.4"
8
+ gem "rspec", "~> 3.12"
9
9
  gem "byebug"
10
10
 
11
11
  group :test do
12
- gem "simplecov", "~> 0.17.1", require: false
12
+ gem "simplecov", "~> 0.22.0", require: false
13
13
  end
data/Gemfile.lock CHANGED
@@ -1,85 +1,71 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- panda_doc (0.6.0)
4
+ panda_doc (0.7.0)
5
5
  dry-configurable
6
6
  dry-struct
7
- faraday (>= 0.9.2, < 2.0)
8
- faraday_middleware (>= 0.10.0, < 2.0)
7
+ faraday (>= 2.0.1, < 3.0)
8
+ faraday-multipart (>= 1.0.0, < 2.0)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
13
  byebug (11.1.3)
14
- concurrent-ruby (1.1.9)
15
- diff-lcs (1.4.4)
14
+ concurrent-ruby (1.2.2)
15
+ diff-lcs (1.5.0)
16
16
  docile (1.4.0)
17
- dry-configurable (0.13.0)
17
+ dry-configurable (1.0.1)
18
+ dry-core (~> 1.0, < 2)
19
+ zeitwerk (~> 2.6)
20
+ dry-core (1.0.0)
18
21
  concurrent-ruby (~> 1.0)
19
- dry-core (~> 0.6)
20
- dry-container (0.9.0)
22
+ zeitwerk (~> 2.6)
23
+ dry-inflector (1.0.0)
24
+ dry-logic (1.5.0)
21
25
  concurrent-ruby (~> 1.0)
22
- dry-configurable (~> 0.13, >= 0.13.0)
23
- dry-core (0.7.1)
24
- concurrent-ruby (~> 1.0)
25
- dry-inflector (0.2.1)
26
- dry-logic (1.2.0)
27
- concurrent-ruby (~> 1.0)
28
- dry-core (~> 0.5, >= 0.5)
29
- dry-struct (1.4.0)
30
- dry-core (~> 0.5, >= 0.5)
31
- dry-types (~> 1.5)
26
+ dry-core (~> 1.0, < 2)
27
+ zeitwerk (~> 2.6)
28
+ dry-struct (1.6.0)
29
+ dry-core (~> 1.0, < 2)
30
+ dry-types (>= 1.7, < 2)
32
31
  ice_nine (~> 0.11)
33
- dry-types (1.5.1)
32
+ zeitwerk (~> 2.6)
33
+ dry-types (1.7.1)
34
34
  concurrent-ruby (~> 1.0)
35
- dry-container (~> 0.3)
36
- dry-core (~> 0.5, >= 0.5)
37
- dry-inflector (~> 0.1, >= 0.1.2)
38
- dry-logic (~> 1.0, >= 1.0.2)
39
- faraday (1.8.0)
40
- faraday-em_http (~> 1.0)
41
- faraday-em_synchrony (~> 1.0)
42
- faraday-excon (~> 1.1)
43
- faraday-httpclient (~> 1.0.1)
44
- faraday-net_http (~> 1.0)
45
- faraday-net_http_persistent (~> 1.1)
46
- faraday-patron (~> 1.0)
47
- faraday-rack (~> 1.0)
48
- multipart-post (>= 1.2, < 3)
35
+ dry-core (~> 1.0)
36
+ dry-inflector (~> 1.0)
37
+ dry-logic (~> 1.4)
38
+ zeitwerk (~> 2.6)
39
+ faraday (2.7.6)
40
+ faraday-net_http (>= 2.0, < 3.1)
49
41
  ruby2_keywords (>= 0.0.4)
50
- faraday-em_http (1.0.0)
51
- faraday-em_synchrony (1.0.0)
52
- faraday-excon (1.1.0)
53
- faraday-httpclient (1.0.1)
54
- faraday-net_http (1.0.1)
55
- faraday-net_http_persistent (1.2.0)
56
- faraday-patron (1.0.0)
57
- faraday-rack (1.0.0)
58
- faraday_middleware (1.2.0)
59
- faraday (~> 1.0)
42
+ faraday-multipart (1.0.4)
43
+ multipart-post (~> 2)
44
+ faraday-net_http (3.0.2)
60
45
  ice_nine (0.11.2)
61
- json (2.6.1)
62
- multipart-post (2.1.1)
46
+ multipart-post (2.3.0)
63
47
  rake (13.0.6)
64
- rspec (3.10.0)
65
- rspec-core (~> 3.10.0)
66
- rspec-expectations (~> 3.10.0)
67
- rspec-mocks (~> 3.10.0)
68
- rspec-core (3.10.1)
69
- rspec-support (~> 3.10.0)
70
- rspec-expectations (3.10.1)
48
+ rspec (3.12.0)
49
+ rspec-core (~> 3.12.0)
50
+ rspec-expectations (~> 3.12.0)
51
+ rspec-mocks (~> 3.12.0)
52
+ rspec-core (3.12.2)
53
+ rspec-support (~> 3.12.0)
54
+ rspec-expectations (3.12.3)
71
55
  diff-lcs (>= 1.2.0, < 2.0)
72
- rspec-support (~> 3.10.0)
73
- rspec-mocks (3.10.2)
56
+ rspec-support (~> 3.12.0)
57
+ rspec-mocks (3.12.5)
74
58
  diff-lcs (>= 1.2.0, < 2.0)
75
- rspec-support (~> 3.10.0)
76
- rspec-support (3.10.3)
59
+ rspec-support (~> 3.12.0)
60
+ rspec-support (3.12.0)
77
61
  ruby2_keywords (0.0.5)
78
- simplecov (0.17.1)
62
+ simplecov (0.22.0)
79
63
  docile (~> 1.1)
80
- json (>= 1.8, < 3)
81
- simplecov-html (~> 0.10.0)
82
- simplecov-html (0.10.2)
64
+ simplecov-html (~> 0.11)
65
+ simplecov_json_formatter (~> 0.1)
66
+ simplecov-html (0.12.3)
67
+ simplecov_json_formatter (0.1.4)
68
+ zeitwerk (2.6.8)
83
69
 
84
70
  PLATFORMS
85
71
  ruby
@@ -89,8 +75,8 @@ DEPENDENCIES
89
75
  byebug
90
76
  panda_doc!
91
77
  rake (>= 10.0)
92
- rspec (~> 3.4)
93
- simplecov (~> 0.17.1)
78
+ rspec (~> 3.12)
79
+ simplecov (~> 0.22.0)
94
80
 
95
81
  BUNDLED WITH
96
- 2.3.13
82
+ 2.4.13
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
  [![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
- [![Code Climate](https://codeclimate.com/github/opti/panda_doc/badges/gpa.svg)](https://codeclimate.com/github/opti/panda_doc)
8
- [![Test Coverage](https://codeclimate.com/github/opti/panda_doc/badges/coverage.svg)](https://codeclimate.com/github/opti/panda_doc/coverage)
7
+ [![Maintainability](https://api.codeclimate.com/v1/badges/ab0b236ae2c499659214/maintainability)](https://codeclimate.com/github/opti/panda_doc/maintainability)
8
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/ab0b236ae2c499659214/test_coverage)](https://codeclimate.com/github/opti/panda_doc/test_coverage)
9
9
 
10
10
  ## Installation
11
11
 
@@ -5,11 +5,11 @@ module PandaDoc
5
5
  extend self
6
6
 
7
7
  def create(data)
8
- respond(ApiClient.request(:post, "/documents", data))
8
+ respond(ApiClient.request(:post, "/documents", **data))
9
9
  end
10
10
 
11
11
  def send(uuid, **data)
12
- respond(ApiClient.request(:post, "/documents/#{uuid}/send", data))
12
+ respond(ApiClient.request(:post, "/documents/#{uuid}/send", **data))
13
13
  end
14
14
 
15
15
  def find(uuid)
@@ -22,7 +22,7 @@ module PandaDoc
22
22
 
23
23
  def session(uuid, **data)
24
24
  respond(
25
- ApiClient.request(:post, "/documents/#{uuid}/session", data),
25
+ ApiClient.request(:post, "/documents/#{uuid}/session", **data),
26
26
  type: :session
27
27
  )
28
28
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PandaDoc
4
- VERSION = "0.6.0"
4
+ VERSION = "0.7.0"
5
5
  end
data/lib/panda_doc.rb CHANGED
@@ -4,7 +4,7 @@ require "forwardable"
4
4
  require "json"
5
5
 
6
6
  require "faraday"
7
- require "faraday_middleware"
7
+ require "faraday/multipart"
8
8
  require "dry-struct"
9
9
  require "dry-configurable"
10
10
 
data/panda_doc.gemspec CHANGED
@@ -19,9 +19,9 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = []
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.required_ruby_version = ">= 2.5"
23
- spec.add_dependency "faraday", ">= 0.9.2", "< 2.0"
24
- spec.add_dependency "faraday_middleware", ">= 0.10.0", "< 2.0"
22
+ spec.required_ruby_version = ">= 2.7"
23
+ spec.add_dependency "faraday", ">= 2.0.1", "< 3.0"
24
+ spec.add_dependency "faraday-multipart", ">= 1.0.0", "< 2.0"
25
25
  spec.add_dependency "dry-configurable"
26
26
  spec.add_dependency "dry-struct"
27
27
  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.6.0
4
+ version: 0.7.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: 2022-05-05 00:00:00.000000000 Z
11
+ date: 2023-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -16,27 +16,27 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.2
19
+ version: 2.0.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '2.0'
22
+ version: '3.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.2
29
+ version: 2.0.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '2.0'
32
+ version: '3.0'
33
33
  - !ruby/object:Gem::Dependency
34
- name: faraday_middleware
34
+ name: faraday-multipart
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 0.10.0
39
+ version: 1.0.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '2.0'
@@ -46,7 +46,7 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 0.10.0
49
+ version: 1.0.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: '2.0'
@@ -85,7 +85,9 @@ executables: []
85
85
  extensions: []
86
86
  extra_rdoc_files: []
87
87
  files:
88
+ - ".github/dependabot.yml"
88
89
  - ".github/workflows/ci.yml"
90
+ - ".github/workflows/codeql-analysis.yml"
89
91
  - ".gitignore"
90
92
  - ".rspec"
91
93
  - ".ruby-version"
@@ -129,14 +131,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
129
131
  requirements:
130
132
  - - ">="
131
133
  - !ruby/object:Gem::Version
132
- version: '2.5'
134
+ version: '2.7'
133
135
  required_rubygems_version: !ruby/object:Gem::Requirement
134
136
  requirements:
135
137
  - - ">="
136
138
  - !ruby/object:Gem::Version
137
139
  version: '0'
138
140
  requirements: []
139
- rubygems_version: 3.3.13
141
+ rubygems_version: 3.4.13
140
142
  signing_key:
141
143
  specification_version: 4
142
144
  summary: Ruby wrapper for PandaDoc.com API