docusign_dtr 0.3.10 → 1.0.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: 643cf52b28c061866930869eefd90ca559f8aa16d1ad8b801297b8da9548cbe3
4
- data.tar.gz: 3f6d09e7b011a402580ca36b548c52c3960c1ba8234237fbd41835927c510bab
3
+ metadata.gz: ea6ae4850d2555119bc50ac732b24db942f27a1643d3b2be97bd3e21abd1e2cf
4
+ data.tar.gz: 434d1ecac37e3c27ab030d87c9eb30719e08a37b58d5158ce06e030f4dd1901e
5
5
  SHA512:
6
- metadata.gz: cfadb43d94176d97bdc76e68feace1d6ffec9ff1f20fcd3150e61f2786ba6f056ba4d16d691d89ddf83151af790a542ea2e199e53dcb948c9b490688011f2f83
7
- data.tar.gz: 46b6e36676fe10ee50600243b45ad888c952f0f8730360c7aae7fcea52db16d044de3ae379061e4ea78226e356dd6cf4d0eec9195c6964bb2be8b1a488cb1e4c
6
+ metadata.gz: f8ff71ab38bc900b65aa6e65af10e36c71bdb761b14a75e4ca83f422d362c4b037f92959ab40820e9945411cc3e59b6e76bd5b1be66910ccab4153f25256ec0e
7
+ data.tar.gz: 79612bf482abbf73a1d942c1df91f6d66e5a439e65493757456be1eb559770b185e1da74e62a6c042582ce9d366c85c944337d1bcc400e75f6095cbb62a32f35
checksums.yaml.gz.sig CHANGED
Binary file
data/docusign_dtr.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.license = 'MIT'
15
15
  spec.cert_chain = ['certs/gem-public_cert.pem']
16
16
  spec.signing_key = File.expand_path('~/.ssh/gem-private_key.pem') if $PROGRAM_NAME.end_with?('gem')
17
- spec.required_ruby_version = '~> 2.5'
17
+ spec.required_ruby_version = '~> 2.7'
18
18
 
19
19
  raise 'RubyGems 2.5 or newer is required to protect against public gem pushes.' unless spec.respond_to?(:metadata)
20
20
 
@@ -25,17 +25,17 @@ Gem::Specification.new do |spec|
25
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
26
  spec.require_paths = ['lib']
27
27
 
28
- spec.add_runtime_dependency 'httparty', '~> 0.16'
28
+ spec.add_runtime_dependency 'httparty', '~> 0.20'
29
29
  spec.add_runtime_dependency 'jwt', '~> 2.1'
30
- spec.add_runtime_dependency 'plissken', '~> 1.2'
30
+ spec.add_runtime_dependency 'plissken', '~> 2'
31
31
  spec.add_runtime_dependency 'virtus', '~> 1.0'
32
- spec.add_development_dependency 'bundler', '~> 2.2.20'
33
- spec.add_development_dependency 'coveralls_reborn', '~> 0.24.0'
34
- spec.add_development_dependency 'pry', '~> 0.11'
35
- spec.add_development_dependency 'rake', '~> 12.3'
36
- spec.add_development_dependency 'rspec', '~> 3.8'
37
- spec.add_development_dependency 'rubocop', '~> 0.58'
38
- spec.add_development_dependency 'simplecov', '~> 0.18'
32
+ spec.add_development_dependency 'bundler', '~> 2'
33
+ spec.add_development_dependency 'coveralls_reborn', '~> 0.25.0'
34
+ spec.add_development_dependency 'pry', '~> 0.14'
35
+ spec.add_development_dependency 'rake', '~> 13'
36
+ spec.add_development_dependency 'rspec', '~> 3'
37
+ spec.add_development_dependency 'rubocop', '~> 1'
38
+ spec.add_development_dependency 'simplecov', '~> 0.21'
39
39
  spec.add_development_dependency 'travis', '~> 1.8'
40
- spec.add_development_dependency 'webmock', '~> 3.4'
40
+ spec.add_development_dependency 'webmock', '~> 3'
41
41
  end
@@ -5,8 +5,7 @@ module DocusignDtr
5
5
  class Base
6
6
  include HTTParty
7
7
 
8
- attr_accessor :config
9
- attr_accessor :token_response
8
+ attr_accessor :config, :token_response
10
9
 
11
10
  def initialize
12
11
  @config = DocusignDtr::Models::AuthConfig.new
@@ -3,7 +3,8 @@ module DocusignDtr
3
3
  module Auth
4
4
  class Code < Base
5
5
  attr_accessor :userinfo
6
- # rubocop:disable Metrics/ParameterLists
6
+
7
+ # rubocop:disable Metrics/ParameterLists, Lint/MissingSuper
7
8
  def initialize(integrator_key:,
8
9
  secret_key:,
9
10
  redirect_uri:,
@@ -19,7 +20,7 @@ module DocusignDtr
19
20
  test_mode: test_mode
20
21
  )
21
22
  end
22
- # rubocop:enable Metrics/ParameterLists
23
+ # rubocop:enable Metrics/ParameterLists, Lint/MissingSuper
23
24
 
24
25
  def request_token(code:, state: nil)
25
26
  raise 'State does not match. Possible CSRF!' if state && state != @config.state
@@ -3,7 +3,7 @@ module DocusignDtr
3
3
  module Auth
4
4
  class Jwt < Base
5
5
  EXPIRES_IN = 3600
6
- # rubocop:disable Metrics/ParameterLists
6
+ # rubocop:disable Metrics/ParameterLists, Lint/MissingSuper
7
7
  def initialize(integrator_key:,
8
8
  private_key:,
9
9
  user_guid:,
@@ -19,7 +19,7 @@ module DocusignDtr
19
19
  user_guid: user_guid
20
20
  )
21
21
  end
22
- # rubocop:enable Metrics/ParameterLists
22
+ # rubocop:enable Metrics/ParameterLists, Lint/MissingSuper
23
23
 
24
24
  def request_token
25
25
  response = self.class.post(auth_uri, query: access_token_params, headers: base_headers, timeout: 60)
@@ -145,13 +145,10 @@ module DocusignDtr
145
145
  end
146
146
 
147
147
  def snakify(object)
148
- if object.is_a? Array
149
- object.map(&:to_snake_keys)
150
- elsif object.is_a? String
151
- object
152
- else
153
- object.to_snake_keys
154
- end
148
+ return object.map(&:to_snake_keys) if object.is_a? Array
149
+ return object if object.is_a? String
150
+
151
+ object.to_snake_keys
155
152
  end
156
153
  end
157
154
  end
@@ -1,3 +1,3 @@
1
1
  module DocusignDtr
2
- VERSION = '0.3.10'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
  end
data/lib/docusign_dtr.rb CHANGED
@@ -30,7 +30,6 @@ require 'docusign_dtr/meta_task_date_type'
30
30
  require 'docusign_dtr/meta_timezone'
31
31
  require 'docusign_dtr/meta_transaction_side'
32
32
  require 'docusign_dtr/office'
33
- require 'docusign_dtr/office'
34
33
  require 'docusign_dtr/query_param_helper'
35
34
  require 'docusign_dtr/room'
36
35
  require 'docusign_dtr/task_list'
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docusign_dtr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loft47
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain:
11
11
  - |
@@ -34,7 +34,7 @@ cert_chain:
34
34
  bfgUM1+JsGql5MCHvShXf1M+AT1wcGucDBgBWYz0m9wZLez+sq5Z1UxErZmcZ4qX
35
35
  3lbLtz5C8s/BizpW9S2SmgWAxIXLJA3d
36
36
  -----END CERTIFICATE-----
37
- date: 2022-05-04 00:00:00.000000000 Z
37
+ date: 2022-10-26 00:00:00.000000000 Z
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: httparty
@@ -42,14 +42,14 @@ dependencies:
42
42
  requirements:
43
43
  - - "~>"
44
44
  - !ruby/object:Gem::Version
45
- version: '0.16'
45
+ version: '0.20'
46
46
  type: :runtime
47
47
  prerelease: false
48
48
  version_requirements: !ruby/object:Gem::Requirement
49
49
  requirements:
50
50
  - - "~>"
51
51
  - !ruby/object:Gem::Version
52
- version: '0.16'
52
+ version: '0.20'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: jwt
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -70,14 +70,14 @@ dependencies:
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: '1.2'
73
+ version: '2'
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.2'
80
+ version: '2'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: virtus
83
83
  requirement: !ruby/object:Gem::Requirement
@@ -98,98 +98,98 @@ dependencies:
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: 2.2.20
101
+ version: '2'
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
- version: 2.2.20
108
+ version: '2'
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: coveralls_reborn
111
111
  requirement: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: 0.24.0
115
+ version: 0.25.0
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - "~>"
121
121
  - !ruby/object:Gem::Version
122
- version: 0.24.0
122
+ version: 0.25.0
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: pry
125
125
  requirement: !ruby/object:Gem::Requirement
126
126
  requirements:
127
127
  - - "~>"
128
128
  - !ruby/object:Gem::Version
129
- version: '0.11'
129
+ version: '0.14'
130
130
  type: :development
131
131
  prerelease: false
132
132
  version_requirements: !ruby/object:Gem::Requirement
133
133
  requirements:
134
134
  - - "~>"
135
135
  - !ruby/object:Gem::Version
136
- version: '0.11'
136
+ version: '0.14'
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: rake
139
139
  requirement: !ruby/object:Gem::Requirement
140
140
  requirements:
141
141
  - - "~>"
142
142
  - !ruby/object:Gem::Version
143
- version: '12.3'
143
+ version: '13'
144
144
  type: :development
145
145
  prerelease: false
146
146
  version_requirements: !ruby/object:Gem::Requirement
147
147
  requirements:
148
148
  - - "~>"
149
149
  - !ruby/object:Gem::Version
150
- version: '12.3'
150
+ version: '13'
151
151
  - !ruby/object:Gem::Dependency
152
152
  name: rspec
153
153
  requirement: !ruby/object:Gem::Requirement
154
154
  requirements:
155
155
  - - "~>"
156
156
  - !ruby/object:Gem::Version
157
- version: '3.8'
157
+ version: '3'
158
158
  type: :development
159
159
  prerelease: false
160
160
  version_requirements: !ruby/object:Gem::Requirement
161
161
  requirements:
162
162
  - - "~>"
163
163
  - !ruby/object:Gem::Version
164
- version: '3.8'
164
+ version: '3'
165
165
  - !ruby/object:Gem::Dependency
166
166
  name: rubocop
167
167
  requirement: !ruby/object:Gem::Requirement
168
168
  requirements:
169
169
  - - "~>"
170
170
  - !ruby/object:Gem::Version
171
- version: '0.58'
171
+ version: '1'
172
172
  type: :development
173
173
  prerelease: false
174
174
  version_requirements: !ruby/object:Gem::Requirement
175
175
  requirements:
176
176
  - - "~>"
177
177
  - !ruby/object:Gem::Version
178
- version: '0.58'
178
+ version: '1'
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: simplecov
181
181
  requirement: !ruby/object:Gem::Requirement
182
182
  requirements:
183
183
  - - "~>"
184
184
  - !ruby/object:Gem::Version
185
- version: '0.18'
185
+ version: '0.21'
186
186
  type: :development
187
187
  prerelease: false
188
188
  version_requirements: !ruby/object:Gem::Requirement
189
189
  requirements:
190
190
  - - "~>"
191
191
  - !ruby/object:Gem::Version
192
- version: '0.18'
192
+ version: '0.21'
193
193
  - !ruby/object:Gem::Dependency
194
194
  name: travis
195
195
  requirement: !ruby/object:Gem::Requirement
@@ -210,14 +210,14 @@ dependencies:
210
210
  requirements:
211
211
  - - "~>"
212
212
  - !ruby/object:Gem::Version
213
- version: '3.4'
213
+ version: '3'
214
214
  type: :development
215
215
  prerelease: false
216
216
  version_requirements: !ruby/object:Gem::Requirement
217
217
  requirements:
218
218
  - - "~>"
219
219
  - !ruby/object:Gem::Version
220
- version: '3.4'
220
+ version: '3'
221
221
  description: Ruby library for Docusign DTR rest API
222
222
  email:
223
223
  - support@loft47.com
@@ -317,7 +317,7 @@ licenses:
317
317
  - MIT
318
318
  metadata:
319
319
  allowed_push_host: https://rubygems.org
320
- post_install_message:
320
+ post_install_message:
321
321
  rdoc_options: []
322
322
  require_paths:
323
323
  - lib
@@ -325,7 +325,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
325
325
  requirements:
326
326
  - - "~>"
327
327
  - !ruby/object:Gem::Version
328
- version: '2.5'
328
+ version: '2.7'
329
329
  required_rubygems_version: !ruby/object:Gem::Requirement
330
330
  requirements:
331
331
  - - ">="
@@ -333,7 +333,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
333
333
  version: '0'
334
334
  requirements: []
335
335
  rubygems_version: 3.1.6
336
- signing_key:
336
+ signing_key:
337
337
  specification_version: 4
338
338
  summary: Docusign DTR library
339
339
  test_files: []
metadata.gz.sig CHANGED
Binary file