hellosign-api 1.0.2 → 1.0.5

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: 9923bd26e3ef3c8c7dd0da7d59f68be7cd4ed663e4198732afdc11a39fcd45b4
4
- data.tar.gz: ec531a679e4715426c022d7357512d372f834f6a826328020d0be624c700bcc8
3
+ metadata.gz: 5d58b51d0771dffb7e056cc4d754d8b2a09741f74d2d011d065f05269bba52c1
4
+ data.tar.gz: ce1a575005e7ea6fd5e5ff4705f163b2735b38e64fadf790db3084eb19f37f6b
5
5
  SHA512:
6
- metadata.gz: a92e8cc3cd2577f2d9b3e5966af68cdd84d04d29363159db6c6b5dd5cfaf4af17a16330367a98978189a4a864b3a2e37e2ce2554f88ba162fb432b5d9dfef9db
7
- data.tar.gz: 9e0aea4595bec82750d3b27c2dbe32e59e44dd08435cbcf11b1caa9888350430d0c572c02b1da174ccb03ea06b5b64d120b98b35acdfa0ebbeaa44a028543bce
6
+ metadata.gz: 8f4431930761f16cc12871ab00a0fb432e936f61e9628c08200fbfc063c95d93c870b5f5750882194ad26a8f12523503783a0948c20dbc322ec59e95d788d4b5
7
+ data.tar.gz: c8f0d8a5981861b6f4e2c304db0a70d6bcb29d49219dcd9a3e5ca113bdf3492facaf2fbab0e4ba470298b1a3068943ab2ad8bcca5f62b2c2c97dc72a3744b18d
data/CONTRIBUTING.md CHANGED
@@ -6,7 +6,7 @@ We're excited you're considering contributing to our project! Your patches are e
6
6
 
7
7
  * Make sure you have a [GitHub account](https://github.com/signup/free)
8
8
  * Make sure you have a [HelloSign account](http://www.hellosign.com)
9
- * Submit a new [issue ticket](https://github.com/HelloFax/hellosign-ruby-sdk/issues), assuming one does not already exist.
9
+ * Submit a new [issue ticket](https://github.com/withgrayce/hellosign-api/issues), assuming one does not already exist.
10
10
  * Clearly describe the issue including steps to reproduce when it is a bug.
11
11
  * Make sure to include the version you are using which has the issue (and confirm that the issue you are having has not been fixed in a later version)
12
12
  * Fork the repository on GitHub
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in hello_sign.gemspec
3
+ # Specify your gem's dependencies in hellosign-api.gemspec
4
4
  gemspec
5
5
 
6
6
  group :development, :spec do
@@ -43,12 +43,12 @@ Gem::Specification.new do |spec|
43
43
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
44
44
  spec.require_paths = ['lib']
45
45
 
46
- spec.add_development_dependency 'bundler', '~> 1', '>= 1.5'
47
- spec.add_development_dependency 'rake', '~> 13', '>= 13.0.0'
48
- spec.add_development_dependency 'rspec', '~> 3', '>= 3.0.0'
49
- spec.add_development_dependency 'webmock', '~> 3', '>= 3.0.0'
50
- spec.add_runtime_dependency 'faraday', '~> 2', '>= 2.0.0'
51
- spec.add_runtime_dependency 'faraday-multipart', '~> 1', '>= 1.0.0'
52
- spec.add_runtime_dependency 'multi_json', '~> 1', '>= 1.0.0'
53
- spec.add_runtime_dependency 'mime-types', '~> 3', '>= 3.0.0'
46
+ spec.add_development_dependency 'bundler', '>= 1.5'
47
+ spec.add_development_dependency 'rake', '>= 13.0.0'
48
+ spec.add_development_dependency 'rspec', '>= 3.0.0'
49
+ spec.add_development_dependency 'webmock', '>= 3.0.0'
50
+ spec.add_runtime_dependency 'faraday', '>= 2.0.0'
51
+ spec.add_runtime_dependency 'faraday-multipart', '>= 1.0.0'
52
+ spec.add_runtime_dependency 'multi_json', '>= 1.0.0'
53
+ spec.add_runtime_dependency 'mime-types', '>= 3.0.0'
54
54
  end
@@ -156,11 +156,11 @@ module HelloSign
156
156
 
157
157
  if options[:no_auth]
158
158
  elsif auth_token
159
- connection.authorization :Bearer, auth_token
159
+ connection.request :authorization, 'Bearer', -> { auth_token }
160
160
  elsif api_key
161
- connection.basic_auth api_key, ''
161
+ connection.request :authorization, :basic, api_key, ''
162
162
  elsif email_address
163
- connection.basic_auth email_address, password
163
+ connection.request :authorization, :basic, email_address, password
164
164
  else
165
165
  end
166
166
  if proxy_uri
@@ -31,7 +31,7 @@ module HelloSign
31
31
  DEFAULT_OAUTH_ENDPOINT = 'https://app.hellosign.com'
32
32
  VALID_OPTIONS_KEYS = [:end_point, :oauth_end_point, :api_version, :user_agent, :client_id, :client_secret, :email_address, :password, :api_key, :auth_token, :log_level, :logging, :proxy_uri, :proxy_user, :proxy_pass, :timeout]
33
33
 
34
- DEFAULT_USER_AGENT = "hellosign-ruby-sdk/" + HelloSign::VERSION
34
+ DEFAULT_USER_AGENT = "hellosign-api/" + HelloSign::VERSION
35
35
 
36
36
  attr_accessor *VALID_OPTIONS_KEYS
37
37
 
@@ -21,5 +21,5 @@
21
21
  # SOFTWARE.
22
22
 
23
23
  module HelloSign
24
- VERSION = '1.0.2'
24
+ VERSION = '1.0.5'
25
25
  end
@@ -1,4 +1,4 @@
1
- # A wrapper that allows requiring via the Gemfile name ('hellosign-ruby-sdk')
2
- # This allows you to require either 'hello_sign' (unchanged) or 'hellosign-ruby-sdk' in your code
1
+ # A wrapper that allows requiring via the Gemfile name ('hellosign-api')
2
+ # This allows you to require either 'hello_sign' (unchanged) or 'hellosign-api' in your code
3
3
 
4
4
  require 'hello_sign'
metadata CHANGED
@@ -1,22 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hellosign-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - HelloSign, Aubrey Holland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-10 00:00:00.000000000 Z
11
+ date: 2022-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
19
  version: '1.5'
@@ -24,9 +21,6 @@ dependencies:
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '1'
30
24
  - - ">="
31
25
  - !ruby/object:Gem::Version
32
26
  version: '1.5'
@@ -34,9 +28,6 @@ dependencies:
34
28
  name: rake
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '13'
40
31
  - - ">="
41
32
  - !ruby/object:Gem::Version
42
33
  version: 13.0.0
@@ -44,9 +35,6 @@ dependencies:
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
46
37
  requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '13'
50
38
  - - ">="
51
39
  - !ruby/object:Gem::Version
52
40
  version: 13.0.0
@@ -54,9 +42,6 @@ dependencies:
54
42
  name: rspec
55
43
  requirement: !ruby/object:Gem::Requirement
56
44
  requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '3'
60
45
  - - ">="
61
46
  - !ruby/object:Gem::Version
62
47
  version: 3.0.0
@@ -64,9 +49,6 @@ dependencies:
64
49
  prerelease: false
65
50
  version_requirements: !ruby/object:Gem::Requirement
66
51
  requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '3'
70
52
  - - ">="
71
53
  - !ruby/object:Gem::Version
72
54
  version: 3.0.0
@@ -74,9 +56,6 @@ dependencies:
74
56
  name: webmock
75
57
  requirement: !ruby/object:Gem::Requirement
76
58
  requirements:
77
- - - "~>"
78
- - !ruby/object:Gem::Version
79
- version: '3'
80
59
  - - ">="
81
60
  - !ruby/object:Gem::Version
82
61
  version: 3.0.0
@@ -84,9 +63,6 @@ dependencies:
84
63
  prerelease: false
85
64
  version_requirements: !ruby/object:Gem::Requirement
86
65
  requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '3'
90
66
  - - ">="
91
67
  - !ruby/object:Gem::Version
92
68
  version: 3.0.0
@@ -94,9 +70,6 @@ dependencies:
94
70
  name: faraday
95
71
  requirement: !ruby/object:Gem::Requirement
96
72
  requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: '2'
100
73
  - - ">="
101
74
  - !ruby/object:Gem::Version
102
75
  version: 2.0.0
@@ -104,9 +77,6 @@ dependencies:
104
77
  prerelease: false
105
78
  version_requirements: !ruby/object:Gem::Requirement
106
79
  requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '2'
110
80
  - - ">="
111
81
  - !ruby/object:Gem::Version
112
82
  version: 2.0.0
@@ -114,9 +84,6 @@ dependencies:
114
84
  name: faraday-multipart
115
85
  requirement: !ruby/object:Gem::Requirement
116
86
  requirements:
117
- - - "~>"
118
- - !ruby/object:Gem::Version
119
- version: '1'
120
87
  - - ">="
121
88
  - !ruby/object:Gem::Version
122
89
  version: 1.0.0
@@ -124,9 +91,6 @@ dependencies:
124
91
  prerelease: false
125
92
  version_requirements: !ruby/object:Gem::Requirement
126
93
  requirements:
127
- - - "~>"
128
- - !ruby/object:Gem::Version
129
- version: '1'
130
94
  - - ">="
131
95
  - !ruby/object:Gem::Version
132
96
  version: 1.0.0
@@ -134,9 +98,6 @@ dependencies:
134
98
  name: multi_json
135
99
  requirement: !ruby/object:Gem::Requirement
136
100
  requirements:
137
- - - "~>"
138
- - !ruby/object:Gem::Version
139
- version: '1'
140
101
  - - ">="
141
102
  - !ruby/object:Gem::Version
142
103
  version: 1.0.0
@@ -144,9 +105,6 @@ dependencies:
144
105
  prerelease: false
145
106
  version_requirements: !ruby/object:Gem::Requirement
146
107
  requirements:
147
- - - "~>"
148
- - !ruby/object:Gem::Version
149
- version: '1'
150
108
  - - ">="
151
109
  - !ruby/object:Gem::Version
152
110
  version: 1.0.0
@@ -154,9 +112,6 @@ dependencies:
154
112
  name: mime-types
155
113
  requirement: !ruby/object:Gem::Requirement
156
114
  requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '3'
160
115
  - - ">="
161
116
  - !ruby/object:Gem::Version
162
117
  version: 3.0.0
@@ -164,9 +119,6 @@ dependencies:
164
119
  prerelease: false
165
120
  version_requirements: !ruby/object:Gem::Requirement
166
121
  requirements:
167
- - - "~>"
168
- - !ruby/object:Gem::Version
169
- version: '3'
170
122
  - - ">="
171
123
  - !ruby/object:Gem::Version
172
124
  version: 3.0.0
@@ -214,7 +166,7 @@ files:
214
166
  - lib/hello_sign/resource/template_draft.rb
215
167
  - lib/hello_sign/resource/unclaimed_draft.rb
216
168
  - lib/hello_sign/version.rb
217
- - lib/hellosign-ruby-sdk.rb
169
+ - lib/hellosign-api.rb
218
170
  - spec/fixtures/account.json
219
171
  - spec/fixtures/api_app.json
220
172
  - spec/fixtures/api_apps.json