Skip to content

Commit 993698e

Browse files
authored
Merge from docusealco/wip
2 parents f627277 + fcdc44d commit 993698e

44 files changed

Lines changed: 284 additions & 165 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ENV OPENSSL_CONF=/app/openssl_legacy.cnf
5050

5151
WORKDIR /app
5252

53-
RUN echo '@edge https://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories && apk add --no-cache sqlite-dev libpq-dev mariadb-dev vips-dev@edge redis libheif@edge vips-heif@edge gcompat ttf-freefont && mkdir /fonts && rm /usr/share/fonts/freefont/FreeSans.otf
53+
RUN echo '@edge https://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories && apk add --no-cache sqlite-dev libpq-dev mariadb-dev vips-dev@edge yaml-dev redis libheif@edge vips-heif@edge gcompat ttf-freefont && mkdir /fonts && rm /usr/share/fonts/freefont/FreeSans.otf
5454

5555
RUN echo $'.include = /etc/ssl/openssl.cnf\n\
5656
\n\

Gemfile.lock

Lines changed: 86 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (8.0.1)
5-
actionpack (= 8.0.1)
6-
activesupport (= 8.0.1)
4+
actioncable (8.0.2.1)
5+
actionpack (= 8.0.2.1)
6+
activesupport (= 8.0.2.1)
77
nio4r (~> 2.0)
88
websocket-driver (>= 0.6.1)
99
zeitwerk (~> 2.6)
10-
actionmailbox (8.0.1)
11-
actionpack (= 8.0.1)
12-
activejob (= 8.0.1)
13-
activerecord (= 8.0.1)
14-
activestorage (= 8.0.1)
15-
activesupport (= 8.0.1)
10+
actionmailbox (8.0.2.1)
11+
actionpack (= 8.0.2.1)
12+
activejob (= 8.0.2.1)
13+
activerecord (= 8.0.2.1)
14+
activestorage (= 8.0.2.1)
15+
activesupport (= 8.0.2.1)
1616
mail (>= 2.8.0)
17-
actionmailer (8.0.1)
18-
actionpack (= 8.0.1)
19-
actionview (= 8.0.1)
20-
activejob (= 8.0.1)
21-
activesupport (= 8.0.1)
17+
actionmailer (8.0.2.1)
18+
actionpack (= 8.0.2.1)
19+
actionview (= 8.0.2.1)
20+
activejob (= 8.0.2.1)
21+
activesupport (= 8.0.2.1)
2222
mail (>= 2.8.0)
2323
rails-dom-testing (~> 2.2)
24-
actionpack (8.0.1)
25-
actionview (= 8.0.1)
26-
activesupport (= 8.0.1)
24+
actionpack (8.0.2.1)
25+
actionview (= 8.0.2.1)
26+
activesupport (= 8.0.2.1)
2727
nokogiri (>= 1.8.5)
2828
rack (>= 2.2.4)
2929
rack-session (>= 1.0.1)
3030
rack-test (>= 0.6.3)
3131
rails-dom-testing (~> 2.2)
3232
rails-html-sanitizer (~> 1.6)
3333
useragent (~> 0.16)
34-
actiontext (8.0.1)
35-
actionpack (= 8.0.1)
36-
activerecord (= 8.0.1)
37-
activestorage (= 8.0.1)
38-
activesupport (= 8.0.1)
34+
actiontext (8.0.2.1)
35+
actionpack (= 8.0.2.1)
36+
activerecord (= 8.0.2.1)
37+
activestorage (= 8.0.2.1)
38+
activesupport (= 8.0.2.1)
3939
globalid (>= 0.6.0)
4040
nokogiri (>= 1.8.5)
41-
actionview (8.0.1)
42-
activesupport (= 8.0.1)
41+
actionview (8.0.2.1)
42+
activesupport (= 8.0.2.1)
4343
builder (~> 3.1)
4444
erubi (~> 1.11)
4545
rails-dom-testing (~> 2.2)
4646
rails-html-sanitizer (~> 1.6)
47-
activejob (8.0.1)
48-
activesupport (= 8.0.1)
47+
activejob (8.0.2.1)
48+
activesupport (= 8.0.2.1)
4949
globalid (>= 0.3.6)
50-
activemodel (8.0.1)
51-
activesupport (= 8.0.1)
52-
activerecord (8.0.1)
53-
activemodel (= 8.0.1)
54-
activesupport (= 8.0.1)
50+
activemodel (8.0.2.1)
51+
activesupport (= 8.0.2.1)
52+
activerecord (8.0.2.1)
53+
activemodel (= 8.0.2.1)
54+
activesupport (= 8.0.2.1)
5555
timeout (>= 0.4.0)
56-
activestorage (8.0.1)
57-
actionpack (= 8.0.1)
58-
activejob (= 8.0.1)
59-
activerecord (= 8.0.1)
60-
activesupport (= 8.0.1)
56+
activestorage (8.0.2.1)
57+
actionpack (= 8.0.2.1)
58+
activejob (= 8.0.2.1)
59+
activerecord (= 8.0.2.1)
60+
activesupport (= 8.0.2.1)
6161
marcel (~> 1.0)
62-
activesupport (8.0.1)
62+
activesupport (8.0.2.1)
6363
base64
6464
benchmark (>= 0.3)
6565
bigdecimal
@@ -104,17 +104,17 @@ GEM
104104
faraday_middleware (~> 1.0, >= 1.0.0.rc1)
105105
net-http-persistent (~> 4.0)
106106
nokogiri (~> 1, >= 1.10.8)
107-
base64 (0.2.0)
107+
base64 (0.3.0)
108108
bcrypt (3.1.20)
109-
benchmark (0.4.0)
109+
benchmark (0.4.1)
110110
better_html (2.1.1)
111111
actionview (>= 6.0)
112112
activesupport (>= 6.0)
113113
ast (~> 2.0)
114114
erubi (~> 1.4)
115115
parser (>= 2.4)
116116
smart_properties
117-
bigdecimal (3.1.8)
117+
bigdecimal (3.2.2)
118118
bindex (0.8.1)
119119
bootsnap (1.18.4)
120120
msgpack (~> 1.2)
@@ -141,8 +141,8 @@ GEM
141141
cldr-plurals-runtime-rb (1.1.0)
142142
cmdparse (3.0.7)
143143
coderay (1.1.3)
144-
concurrent-ruby (1.3.4)
145-
connection_pool (2.4.1)
144+
concurrent-ruby (1.3.5)
145+
connection_pool (2.5.3)
146146
crack (1.0.0)
147147
bigdecimal
148148
rexml
@@ -174,8 +174,9 @@ GEM
174174
rake (>= 12.0.0, < 14.0.0)
175175
docile (1.4.1)
176176
dotenv (3.1.7)
177-
drb (2.2.1)
177+
drb (2.2.3)
178178
email_typo (0.2.3)
179+
erb (5.0.2)
179180
erb_lint (0.7.0)
180181
activesupport
181182
better_html (>= 2.0.1)
@@ -276,13 +277,14 @@ GEM
276277
openssl (>= 2.2.1)
277278
htmlentities (4.3.4)
278279
httpclient (2.8.3)
279-
i18n (1.14.6)
280+
i18n (1.14.7)
280281
concurrent-ruby (~> 1.0)
281282
image_processing (1.13.0)
282283
mini_magick (>= 4.9.5, < 5)
283284
ruby-vips (>= 2.0.17, < 3)
284-
io-console (0.8.0)
285-
irb (1.14.3)
285+
io-console (0.8.1)
286+
irb (1.15.2)
287+
pp (>= 0.6.0)
286288
rdoc (>= 4.0.0)
287289
reline (>= 0.4.2)
288290
jmespath (1.6.2)
@@ -300,13 +302,13 @@ GEM
300302
letter_opener (~> 1.9)
301303
railties (>= 6.1)
302304
rexml
303-
logger (1.6.4)
305+
logger (1.7.0)
304306
lograge (0.14.0)
305307
actionpack (>= 4)
306308
activesupport (>= 4)
307309
railties (>= 4)
308310
request_store (~> 1.0)
309-
loofah (2.23.1)
311+
loofah (2.24.1)
310312
crass (~> 1.0.2)
311313
nokogiri (>= 1.12.0)
312314
mail (2.8.1)
@@ -320,22 +322,22 @@ GEM
320322
mini_magick (4.13.2)
321323
mini_mime (1.1.5)
322324
mini_portile2 (2.8.9)
323-
minitest (5.25.4)
325+
minitest (5.25.5)
324326
msgpack (1.7.5)
325327
multi_json (1.15.0)
326328
multipart-post (2.4.1)
327329
mutex_m (0.3.0)
328330
mysql2 (0.5.6)
329331
net-http-persistent (4.0.5)
330332
connection_pool (~> 2.2)
331-
net-imap (0.5.6)
333+
net-imap (0.5.9)
332334
date
333335
net-protocol
334336
net-pop (0.1.2)
335337
net-protocol
336338
net-protocol (0.2.2)
337339
timeout
338-
net-smtp (0.5.0)
340+
net-smtp (0.5.1)
339341
net-protocol
340342
nio4r (2.7.4)
341343
nokogiri (1.18.9)
@@ -365,6 +367,8 @@ GEM
365367
ast (~> 2.4.1)
366368
racc
367369
pg (1.5.9)
370+
pp (0.6.2)
371+
prettyprint
368372
premailer (1.27.0)
369373
addressable
370374
css_parser (>= 1.19.0)
@@ -375,42 +379,44 @@ GEM
375379
premailer (~> 1.7, >= 1.7.9)
376380
pretender (0.5.0)
377381
actionpack (>= 6.1)
382+
prettyprint (0.2.0)
378383
pry (0.15.0)
379384
coderay (~> 1.1)
380385
method_source (~> 1.0)
381386
pry-rails (0.3.11)
382387
pry (>= 0.13.0)
383-
psych (5.2.2)
388+
psych (5.2.6)
384389
date
385390
stringio
386391
public_suffix (6.0.1)
387392
puma (6.5.0)
388393
nio4r (~> 2.0)
389394
racc (1.8.1)
390-
rack (3.1.16)
395+
rack (3.2.0)
391396
rack-proxy (0.7.7)
392397
rack
393-
rack-session (2.0.0)
398+
rack-session (2.1.1)
399+
base64 (>= 0.1.0)
394400
rack (>= 3.0.0)
395-
rack-test (2.1.0)
401+
rack-test (2.2.0)
396402
rack (>= 1.3)
397403
rackup (2.2.1)
398404
rack (>= 3)
399-
rails (8.0.1)
400-
actioncable (= 8.0.1)
401-
actionmailbox (= 8.0.1)
402-
actionmailer (= 8.0.1)
403-
actionpack (= 8.0.1)
404-
actiontext (= 8.0.1)
405-
actionview (= 8.0.1)
406-
activejob (= 8.0.1)
407-
activemodel (= 8.0.1)
408-
activerecord (= 8.0.1)
409-
activestorage (= 8.0.1)
410-
activesupport (= 8.0.1)
405+
rails (8.0.2.1)
406+
actioncable (= 8.0.2.1)
407+
actionmailbox (= 8.0.2.1)
408+
actionmailer (= 8.0.2.1)
409+
actionpack (= 8.0.2.1)
410+
actiontext (= 8.0.2.1)
411+
actionview (= 8.0.2.1)
412+
activejob (= 8.0.2.1)
413+
activemodel (= 8.0.2.1)
414+
activerecord (= 8.0.2.1)
415+
activestorage (= 8.0.2.1)
416+
activesupport (= 8.0.2.1)
411417
bundler (>= 1.15.0)
412-
railties (= 8.0.1)
413-
rails-dom-testing (2.2.0)
418+
railties (= 8.0.2.1)
419+
rails-dom-testing (2.3.0)
414420
activesupport (>= 5.0.0)
415421
minitest
416422
nokogiri (>= 1.6)
@@ -424,22 +430,23 @@ GEM
424430
actionview (> 3.1)
425431
activesupport (> 3.1)
426432
railties (> 3.1)
427-
railties (8.0.1)
428-
actionpack (= 8.0.1)
429-
activesupport (= 8.0.1)
433+
railties (8.0.2.1)
434+
actionpack (= 8.0.2.1)
435+
activesupport (= 8.0.2.1)
430436
irb (~> 1.13)
431437
rackup (>= 1.0.0)
432438
rake (>= 12.2)
433439
thor (~> 1.0, >= 1.2.2)
434440
zeitwerk (~> 2.6)
435441
rainbow (3.1.1)
436-
rake (13.2.1)
437-
rdoc (6.10.0)
442+
rake (13.3.0)
443+
rdoc (6.14.2)
444+
erb
438445
psych (>= 4.0.0)
439446
redis-client (0.23.0)
440447
connection_pool
441448
regexp_parser (2.9.3)
442-
reline (0.6.0)
449+
reline (0.6.2)
443450
io-console (~> 0.5)
444451
representable (3.2.0)
445452
declarative (< 0.1.0)
@@ -538,7 +545,7 @@ GEM
538545
sqlite3 (2.5.0-arm64-darwin)
539546
sqlite3 (2.5.0-x86_64-linux-gnu)
540547
sqlite3 (2.5.0-x86_64-linux-musl)
541-
stringio (3.1.2)
548+
stringio (3.1.7)
542549
strip_attributes (1.14.1)
543550
activemodel (>= 3.0, < 9.0)
544551
thor (1.4.0)
@@ -574,12 +581,13 @@ GEM
574581
crack (>= 0.3.2)
575582
hashdiff (>= 0.4.0, < 2.0.0)
576583
webrick (1.9.1)
577-
websocket-driver (0.7.6)
584+
websocket-driver (0.8.0)
585+
base64
578586
websocket-extensions (>= 0.1.0)
579587
websocket-extensions (0.1.5)
580588
xpath (3.2.0)
581589
nokogiri (~> 1.8)
582-
zeitwerk (2.7.1)
590+
zeitwerk (2.7.3)
583591

584592
PLATFORMS
585593
aarch64-linux

app/controllers/accounts_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def update
2727
unless URI.parse(@encrypted_config.value.to_s).class.in?([URI::HTTP, URI::HTTPS])
2828
@encrypted_config.errors.add(:value, I18n.t('should_be_a_valid_url'))
2929

30-
return render :show, status: :unprocessable_entity
30+
return render :show, status: :unprocessable_content
3131
end
3232

3333
@encrypted_config.save!
@@ -39,7 +39,7 @@ def update
3939
redirect_to settings_account_path, notice: I18n.t('account_information_has_been_updated')
4040
end
4141
rescue ActiveRecord::RecordInvalid
42-
render :show, status: :unprocessable_entity
42+
render :show, status: :unprocessable_content
4343
end
4444

4545
def destroy

app/controllers/api/api_base_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ApiBaseController < ActionController::API
1616
check_authorization
1717

1818
rescue_from Params::BaseValidator::InvalidParameterError do |e|
19-
render json: { error: e.message }, status: :unprocessable_entity
19+
render json: { error: e.message }, status: :unprocessable_content
2020
end
2121

2222
rescue_from RateLimit::LimitApproached do |e|
@@ -33,7 +33,7 @@ class ApiBaseController < ActionController::API
3333
rescue_from JSON::ParserError do |e|
3434
Rollbar.warning(e) if defined?(Rollbar)
3535

36-
render json: { error: "JSON parse error: #{e.message}" }, status: :unprocessable_entity
36+
render json: { error: "JSON parse error: #{e.message}" }, status: :unprocessable_content
3737
end
3838
end
3939

app/controllers/api/attachments_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ def create
1616
if ImageUtils.blank?(image)
1717
Rollbar.error("Empty signature: #{submitter.id}") if defined?(Rollbar)
1818

19-
return render json: { error: "#{params[:type]} is empty" }, status: :unprocessable_entity
19+
return render json: { error: "#{params[:type]} is empty" }, status: :unprocessable_content
2020
end
2121

2222
if ImageUtils.error?(image)
2323
Rollbar.error("Error signature: #{submitter.id}") if defined?(Rollbar)
2424

2525
return render json: { error: "#{params[:type]} error, try to sign on another device" },
26-
status: :unprocessable_entity
26+
status: :unprocessable_content
2727
end
2828
end
2929

0 commit comments

Comments
 (0)