Skip to content

Commit 374258e

Browse files
fix error display and add webforms gem
1 parent cb1d6bf commit 374258e

File tree

3 files changed

+23
-14
lines changed

3 files changed

+23
-14
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ gem 'docusign_maestro', '~> 1.0.0.rc1'
7575
gem 'docusign_monitor', '~> 1.2.0'
7676
gem 'docusign_rooms', '~> 1.3.0'
7777
gem 'omniauth-oauth2', '~> 1.8.0'
78+
gem 'docusign_webforms', '~> 1.0.0'
7879
gem 'omniauth-rails_csrf_protection'
7980

8081
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem

Gemfile.lock

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ GEM
9898
coffee-script-source
9999
execjs
100100
coffee-script-source (1.12.2)
101-
concurrent-ruby (1.2.3)
101+
concurrent-ruby (1.3.1)
102102
crass (1.0.6)
103103
date (3.3.4)
104104
docusign_admin (1.3.0)
@@ -111,12 +111,12 @@ GEM
111111
json (~> 2.1, >= 2.1.0)
112112
jwt (~> 2.2, >= 2.2.1)
113113
typhoeus (~> 1.0, >= 1.0.1)
114-
docusign_esign (4.0.0.rc1)
114+
docusign_esign (4.0.0)
115115
addressable (~> 2.7, >= 2.7.0)
116116
json (~> 2.1, >= 2.1.0)
117117
jwt (~> 2.2, >= 2.2.1)
118118
typhoeus (~> 1.0, >= 1.0.1)
119-
docusign_maestro (1.0.0.rc1)
119+
docusign_maestro (1.0.0)
120120
addressable (~> 2.7, >= 2.7.0)
121121
json (~> 2.1, >= 2.1.0)
122122
jwt (~> 2.2, >= 2.2.1)
@@ -131,6 +131,11 @@ GEM
131131
json (~> 2.1, >= 2.1.0)
132132
jwt (~> 2.2, >= 2.2.1)
133133
typhoeus (~> 1.0, >= 1.0.1)
134+
docusign_webforms (1.0.0)
135+
addressable (~> 2.7, >= 2.7.0)
136+
json (~> 2.1, >= 2.1.0)
137+
jwt (~> 2.2, >= 2.2.1)
138+
typhoeus (~> 1.0, >= 1.0.1)
134139
erubi (1.12.0)
135140
ethon (0.16.0)
136141
ffi (>= 1.15.0)
@@ -139,8 +144,8 @@ GEM
139144
faraday-net_http (>= 2.0, < 3.2)
140145
faraday-net_http (3.1.0)
141146
net-http
142-
ffi (1.16.3)
143-
ffi (1.16.3-x64-mingw-ucrt)
147+
ffi (1.17.0-x64-mingw-ucrt)
148+
ffi (1.17.0-x86_64-linux-gnu)
144149
globalid (1.2.1)
145150
activesupport (>= 6.1)
146151
hashie (5.0.0)
@@ -168,13 +173,13 @@ GEM
168173
matrix (0.4.2)
169174
method_source (1.1.0)
170175
mini_mime (1.1.5)
171-
minitest (5.22.3)
176+
minitest (5.23.1)
172177
msgpack (1.7.2)
173178
multi_xml (0.7.1)
174179
bigdecimal (~> 3.1)
175180
net-http (0.4.1)
176181
uri
177-
net-imap (0.4.11)
182+
net-imap (0.4.12)
178183
date
179184
net-protocol
180185
net-pop (0.1.2)
@@ -206,7 +211,7 @@ GEM
206211
actionpack (>= 4.2)
207212
omniauth (~> 2.0)
208213
parallel (1.24.0)
209-
parser (3.3.1.0)
214+
parser (3.3.2.0)
210215
ast (~> 2.4.1)
211216
racc
212217
power_assert (2.0.3)
@@ -220,7 +225,7 @@ GEM
220225
public_suffix (5.0.5)
221226
puma (6.1.1)
222227
nio4r (~> 2.0)
223-
racc (1.7.3)
228+
racc (1.8.0)
224229
rack (2.2.9)
225230
rack-protection (3.2.0)
226231
base64 (>= 0.1.0)
@@ -258,10 +263,11 @@ GEM
258263
rainbow (3.1.1)
259264
rake (13.2.1)
260265
rb-fsevent (0.11.2)
261-
rb-inotify (0.10.1)
266+
rb-inotify (0.11.1)
262267
ffi (~> 1.0)
263-
regexp_parser (2.9.1)
264-
rexml (3.2.6)
268+
regexp_parser (2.9.2)
269+
rexml (3.2.8)
270+
strscan (>= 3.0.9)
265271
rubocop (1.48.1)
266272
json (~> 2.3)
267273
parallel (~> 1.10)
@@ -306,6 +312,7 @@ GEM
306312
sprockets (>= 3.0.0)
307313
sqlite3 (1.6.9-x64-mingw-ucrt)
308314
sqlite3 (1.6.9-x86_64-linux)
315+
strscan (3.1.0)
309316
test-unit (3.6.2)
310317
power_assert
311318
thor (1.3.1)
@@ -337,7 +344,7 @@ GEM
337344
websocket-extensions (0.1.5)
338345
xpath (3.2.0)
339346
nokogiri (~> 1.8)
340-
zeitwerk (2.6.14)
347+
zeitwerk (2.6.15)
341348

342349
PLATFORMS
343350
x64-mingw-ucrt
@@ -355,6 +362,7 @@ DEPENDENCIES
355362
docusign_maestro (~> 1.0.0.rc1)
356363
docusign_monitor (~> 1.2.0)
357364
docusign_rooms (~> 1.3.0)
365+
docusign_webforms (~> 1.0.0)
358366
jbuilder (~> 2.11.5)
359367
listen (~> 3.8.0)
360368
matrix (~> 0.4.2)

app/controllers/eg_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def check_auth(api)
9292
def handle_error(e)
9393
error = JSON.parse e.response_body
9494
@error_code = e.code || error['errorCode']
95-
@error_message = error['error_description'] || error['message']
95+
@error_message = error['error_description'] || error['message'] || error['error']
9696
render 'ds_common/error'
9797
end
9898

0 commit comments

Comments
 (0)