panda_doc 0.5.2 → 0.5.3

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: 938b67938cf84a02e6802c7ef853a78ee72ca7b2740bba88755ed9fe3e6f0e8b
4
- data.tar.gz: 3681e085fe2eee6e82cbe1e7b9a8fcc927e9fb5ab72131dc02ef09408195cd19
3
+ metadata.gz: 3e8b044f3c9707cdd0ecf3221f1384a07d4922b38fdc2090305461c28ae9d11e
4
+ data.tar.gz: fa8015cd7e818ec99f2b0f384d85aaf2b7ebf52e2efa736e1ecf991337ad16a4
5
5
  SHA512:
6
- metadata.gz: d64a56918d67ccbfa579956f3e8c91f631d02bc9a7a69fe725a85ded8b7c998842f29eab7e9e0f3509e0b9c1d34dee21fe93f6602e609865afc557bc5ef5b3a6
7
- data.tar.gz: be7325842c2769b862a24a7a376d15a64d661bf65c0a92f37b18ffe0838c85fdd6ef65687143f4174477018138e2227ab30d6bd8a80662ec81d66111d95ece3d
6
+ metadata.gz: 26e731f8d0000c15aca640832505f34b3c636176550508028cd397201d8aa38d58fdf30f04a85e56fca5d94b6154528155fbd376d07bdfab09b0880ce17498b2
7
+ data.tar.gz: 976f8dde2e6abdf86e574140bd6f5178aa20ca5373e29e531d09bd1015a1317a8ebff10948e5d7d0fd78590b7b653ec8cf557d5c7300e92a1f8b50832a74b70b
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
data/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.5.3][] (2021-11-03)
8
+
9
+ Fixes:
10
+
11
+ - Fixes #5 - make `placeholder` attribute optional (@acuster77)
12
+
7
13
  ## [0.5.2][] (2021-03-08)
8
14
 
9
15
  Fixes:
@@ -169,7 +175,8 @@ Fixes:
169
175
 
170
176
  - Initial release
171
177
 
172
- [Unreleased]: https://github.com/opti/panda_doc/compare/v0.5.2...HEAD
178
+ [Unreleased]: https://github.com/opti/panda_doc/compare/v0.5.3...HEAD
179
+ [0.5.3]: https://github.com/opti/panda_doc/compare/v0.5.2...v0.5.3
173
180
  [0.5.2]: https://github.com/opti/panda_doc/compare/v0.5.1...v0.5.2
174
181
  [0.5.1]: https://github.com/opti/panda_doc/compare/v0.5.0...v0.5.1
175
182
  [0.5.0]: https://github.com/opti/panda_doc/compare/v0.4.3...v0.5.0
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", require: false
13
13
  end
data/Gemfile.lock ADDED
@@ -0,0 +1,96 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ panda_doc (0.5.3)
5
+ dry-configurable
6
+ dry-struct
7
+ faraday (>= 0.9.2, < 2.0)
8
+ faraday_middleware (>= 0.10.0, < 2.0)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ byebug (11.1.3)
14
+ concurrent-ruby (1.1.9)
15
+ diff-lcs (1.4.4)
16
+ docile (1.4.0)
17
+ dry-configurable (0.13.0)
18
+ concurrent-ruby (~> 1.0)
19
+ dry-core (~> 0.6)
20
+ dry-container (0.9.0)
21
+ 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)
32
+ ice_nine (~> 0.11)
33
+ dry-types (1.5.1)
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)
49
+ 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)
60
+ ice_nine (0.11.2)
61
+ multipart-post (2.1.1)
62
+ rake (13.0.6)
63
+ rspec (3.10.0)
64
+ rspec-core (~> 3.10.0)
65
+ rspec-expectations (~> 3.10.0)
66
+ rspec-mocks (~> 3.10.0)
67
+ rspec-core (3.10.1)
68
+ rspec-support (~> 3.10.0)
69
+ rspec-expectations (3.10.1)
70
+ diff-lcs (>= 1.2.0, < 2.0)
71
+ rspec-support (~> 3.10.0)
72
+ rspec-mocks (3.10.2)
73
+ diff-lcs (>= 1.2.0, < 2.0)
74
+ rspec-support (~> 3.10.0)
75
+ rspec-support (3.10.3)
76
+ ruby2_keywords (0.0.5)
77
+ simplecov (0.21.2)
78
+ 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)
83
+
84
+ PLATFORMS
85
+ ruby
86
+
87
+ DEPENDENCIES
88
+ bundler
89
+ byebug
90
+ panda_doc!
91
+ rake (>= 10.0)
92
+ rspec (~> 3.4)
93
+ simplecov
94
+
95
+ BUNDLED WITH
96
+ 2.2.30
@@ -22,9 +22,9 @@ module PandaDoc
22
22
  @url_prefix = "/public/v1"
23
23
  @connection = Faraday.new(PandaDoc.configuration.endpoint) do |conn|
24
24
  if PandaDoc.configuration.api_key
25
- conn.authorization "API-Key", PandaDoc.configuration.api_key
25
+ conn.request :authorization, "API-Key", PandaDoc.configuration.api_key
26
26
  else
27
- conn.authorization :Bearer, PandaDoc.configuration.access_token
27
+ conn.request :authorization, :Bearer, PandaDoc.configuration.access_token
28
28
  end
29
29
 
30
30
  if multipart
@@ -8,6 +8,6 @@ module PandaDoc
8
8
  setting :api_key
9
9
  setting :logger
10
10
 
11
- setting :endpoint, "https://api.pandadoc.com"
11
+ setting :endpoint, default: "https://api.pandadoc.com"
12
12
  end
13
13
  end
@@ -6,7 +6,7 @@ module PandaDoc
6
6
  attribute :uuid, Types::Coercible::String
7
7
  attribute :name, Types::Coercible::String.optional
8
8
  attribute :title, Types::Coercible::String.optional
9
- attribute :placeholder, Types::Coercible::String.optional
9
+ attribute? :placeholder, Types::Coercible::String.optional
10
10
  attribute :value, Types::Nil | Types::Hash | Types::Coercible::String
11
11
  attribute? :assigned_to, PandaDoc::Objects::Recipient
12
12
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PandaDoc
4
- VERSION = "0.5.2"
4
+ VERSION = "0.5.3"
5
5
  end
data/panda_doc.gemspec CHANGED
@@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
22
22
  spec.required_ruby_version = ">= 2.5"
23
23
  spec.add_dependency "faraday", ">= 0.9.2", "< 2.0"
24
24
  spec.add_dependency "faraday_middleware", ">= 0.10.0", "< 2.0"
25
- spec.add_dependency "dry-configurable", "~> 0.11"
26
- spec.add_dependency "dry-struct", "~> 1.3"
25
+ spec.add_dependency "dry-configurable"
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.5.2
4
+ version: 0.5.3
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-03-09 00:00:00.000000000 Z
11
+ date: 2021-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -54,30 +54,30 @@ dependencies:
54
54
  name: dry-configurable
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - "~>"
57
+ - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: '0.11'
59
+ version: '0'
60
60
  type: :runtime
61
61
  prerelease: false
62
62
  version_requirements: !ruby/object:Gem::Requirement
63
63
  requirements:
64
- - - "~>"
64
+ - - ">="
65
65
  - !ruby/object:Gem::Version
66
- version: '0.11'
66
+ version: '0'
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: dry-struct
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - "~>"
71
+ - - ">="
72
72
  - !ruby/object:Gem::Version
73
- version: '1.3'
73
+ version: '0'
74
74
  type: :runtime
75
75
  prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - "~>"
78
+ - - ">="
79
79
  - !ruby/object:Gem::Version
80
- version: '1.3'
80
+ version: '0'
81
81
  description: Ruby wrapper for PandaDoc.com API
82
82
  email:
83
83
  - igor.pstyga@gmail.com
@@ -90,6 +90,7 @@ files:
90
90
  - ".travis.yml"
91
91
  - CHANGELOG.md
92
92
  - Gemfile
93
+ - Gemfile.lock
93
94
  - LICENSE.txt
94
95
  - README.md
95
96
  - Rakefile
@@ -134,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
135
  - !ruby/object:Gem::Version
135
136
  version: '0'
136
137
  requirements: []
137
- rubygems_version: 3.2.3
138
+ rubygems_version: 3.2.30
138
139
  signing_key:
139
140
  specification_version: 4
140
141
  summary: Ruby wrapper for PandaDoc.com API