mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 14:36:23 +00:00
actualización a rails 6.1
This commit is contained in:
parent
f7828127d8
commit
3f19e79366
17 changed files with 300 additions and 227 deletions
214
Gemfile.lock
214
Gemfile.lock
|
@ -37,61 +37,65 @@ GIT
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
actioncable (6.0.3.4)
|
actioncable (6.1.0)
|
||||||
actionpack (= 6.0.3.4)
|
actionpack (= 6.1.0)
|
||||||
|
activesupport (= 6.1.0)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
websocket-driver (>= 0.6.1)
|
websocket-driver (>= 0.6.1)
|
||||||
actionmailbox (6.0.3.4)
|
actionmailbox (6.1.0)
|
||||||
actionpack (= 6.0.3.4)
|
actionpack (= 6.1.0)
|
||||||
activejob (= 6.0.3.4)
|
activejob (= 6.1.0)
|
||||||
activerecord (= 6.0.3.4)
|
activerecord (= 6.1.0)
|
||||||
activestorage (= 6.0.3.4)
|
activestorage (= 6.1.0)
|
||||||
activesupport (= 6.0.3.4)
|
activesupport (= 6.1.0)
|
||||||
mail (>= 2.7.1)
|
mail (>= 2.7.1)
|
||||||
actionmailer (6.0.3.4)
|
actionmailer (6.1.0)
|
||||||
actionpack (= 6.0.3.4)
|
actionpack (= 6.1.0)
|
||||||
actionview (= 6.0.3.4)
|
actionview (= 6.1.0)
|
||||||
activejob (= 6.0.3.4)
|
activejob (= 6.1.0)
|
||||||
|
activesupport (= 6.1.0)
|
||||||
mail (~> 2.5, >= 2.5.4)
|
mail (~> 2.5, >= 2.5.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
actionpack (6.0.3.4)
|
actionpack (6.1.0)
|
||||||
actionview (= 6.0.3.4)
|
actionview (= 6.1.0)
|
||||||
activesupport (= 6.0.3.4)
|
activesupport (= 6.1.0)
|
||||||
rack (~> 2.0, >= 2.0.8)
|
rack (~> 2.0, >= 2.0.9)
|
||||||
rack-test (>= 0.6.3)
|
rack-test (>= 0.6.3)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
||||||
actiontext (6.0.3.4)
|
actiontext (6.1.0)
|
||||||
actionpack (= 6.0.3.4)
|
actionpack (= 6.1.0)
|
||||||
activerecord (= 6.0.3.4)
|
activerecord (= 6.1.0)
|
||||||
activestorage (= 6.0.3.4)
|
activestorage (= 6.1.0)
|
||||||
activesupport (= 6.0.3.4)
|
activesupport (= 6.1.0)
|
||||||
nokogiri (>= 1.8.5)
|
nokogiri (>= 1.8.5)
|
||||||
actionview (6.0.3.4)
|
actionview (6.1.0)
|
||||||
activesupport (= 6.0.3.4)
|
activesupport (= 6.1.0)
|
||||||
builder (~> 3.1)
|
builder (~> 3.1)
|
||||||
erubi (~> 1.4)
|
erubi (~> 1.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
||||||
activejob (6.0.3.4)
|
activejob (6.1.0)
|
||||||
activesupport (= 6.0.3.4)
|
activesupport (= 6.1.0)
|
||||||
globalid (>= 0.3.6)
|
globalid (>= 0.3.6)
|
||||||
activemodel (6.0.3.4)
|
activemodel (6.1.0)
|
||||||
activesupport (= 6.0.3.4)
|
activesupport (= 6.1.0)
|
||||||
activerecord (6.0.3.4)
|
activerecord (6.1.0)
|
||||||
activemodel (= 6.0.3.4)
|
activemodel (= 6.1.0)
|
||||||
activesupport (= 6.0.3.4)
|
activesupport (= 6.1.0)
|
||||||
activestorage (6.0.3.4)
|
activestorage (6.1.0)
|
||||||
actionpack (= 6.0.3.4)
|
actionpack (= 6.1.0)
|
||||||
activejob (= 6.0.3.4)
|
activejob (= 6.1.0)
|
||||||
activerecord (= 6.0.3.4)
|
activerecord (= 6.1.0)
|
||||||
|
activesupport (= 6.1.0)
|
||||||
marcel (~> 0.3.1)
|
marcel (~> 0.3.1)
|
||||||
activesupport (6.0.3.4)
|
mimemagic (~> 0.3.2)
|
||||||
|
activesupport (6.1.0)
|
||||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||||
i18n (>= 0.7, < 2)
|
i18n (>= 1.6, < 2)
|
||||||
minitest (~> 5.1)
|
minitest (>= 5.1)
|
||||||
tzinfo (~> 1.1)
|
tzinfo (~> 2.0)
|
||||||
zeitwerk (~> 2.2, >= 2.2.2)
|
zeitwerk (~> 2.3)
|
||||||
addressable (2.7.0)
|
addressable (2.7.0)
|
||||||
public_suffix (>= 2.0.2, < 5.0)
|
public_suffix (>= 2.0.2, < 5.0)
|
||||||
adhesiones-jekyll-theme (0.2.1)
|
adhesiones-jekyll-theme (0.2.1)
|
||||||
|
@ -104,17 +108,17 @@ GEM
|
||||||
jekyll-relative-urls (~> 0.0)
|
jekyll-relative-urls (~> 0.0)
|
||||||
jekyll-seo-tag (~> 2.1)
|
jekyll-seo-tag (~> 2.1)
|
||||||
ast (2.4.1)
|
ast (2.4.1)
|
||||||
autoprefixer-rails (10.0.1.0)
|
autoprefixer-rails (10.1.0.0)
|
||||||
execjs
|
execjs
|
||||||
bcrypt (3.1.16)
|
bcrypt (3.1.16)
|
||||||
benchmark-ips (2.8.3)
|
benchmark-ips (2.8.4)
|
||||||
bindex (0.8.1)
|
bindex (0.8.1)
|
||||||
blazer (2.2.7)
|
blazer (2.4.0)
|
||||||
activerecord (>= 5)
|
activerecord (>= 5)
|
||||||
chartkick (>= 3.2)
|
chartkick (>= 3.2)
|
||||||
railties (>= 5)
|
railties (>= 5)
|
||||||
safely_block (>= 0.1.1)
|
safely_block (>= 0.1.1)
|
||||||
bootstrap (4.5.2)
|
bootstrap (4.5.3)
|
||||||
autoprefixer-rails (>= 9.1.0)
|
autoprefixer-rails (>= 9.1.0)
|
||||||
popper_js (>= 1.14.3, < 2)
|
popper_js (>= 1.14.3, < 2)
|
||||||
sassc-rails (>= 2.0.0)
|
sassc-rails (>= 2.0.0)
|
||||||
|
@ -127,7 +131,7 @@ GEM
|
||||||
rack (>= 1.0.0)
|
rack (>= 1.0.0)
|
||||||
rack-test (>= 0.5.4)
|
rack-test (>= 0.5.4)
|
||||||
xpath (>= 2.0, < 4.0)
|
xpath (>= 2.0, < 4.0)
|
||||||
chartkick (3.4.1)
|
chartkick (3.4.2)
|
||||||
childprocess (3.0.0)
|
childprocess (3.0.0)
|
||||||
coderay (1.1.3)
|
coderay (1.1.3)
|
||||||
colorator (1.1.0)
|
colorator (1.1.0)
|
||||||
|
@ -154,7 +158,7 @@ GEM
|
||||||
warden (~> 1.2.3)
|
warden (~> 1.2.3)
|
||||||
devise-i18n (1.9.2)
|
devise-i18n (1.9.2)
|
||||||
devise (>= 4.7.1)
|
devise (>= 4.7.1)
|
||||||
devise_invitable (2.0.2)
|
devise_invitable (2.0.3)
|
||||||
actionmailer (>= 5.0)
|
actionmailer (>= 5.0)
|
||||||
devise (>= 4.6)
|
devise (>= 4.6)
|
||||||
dotenv (2.7.6)
|
dotenv (2.7.6)
|
||||||
|
@ -176,7 +180,7 @@ GEM
|
||||||
em-websocket (0.5.2)
|
em-websocket (0.5.2)
|
||||||
eventmachine (>= 0.12.9)
|
eventmachine (>= 0.12.9)
|
||||||
http_parser.rb (~> 0.6.0)
|
http_parser.rb (~> 0.6.0)
|
||||||
email_address (0.1.18)
|
email_address (0.1.19)
|
||||||
netaddr (>= 2.0.4, < 3)
|
netaddr (>= 2.0.4, < 3)
|
||||||
simpleidn
|
simpleidn
|
||||||
errbase (0.2.0)
|
errbase (0.2.0)
|
||||||
|
@ -193,16 +197,16 @@ GEM
|
||||||
railties (>= 5.0.0)
|
railties (>= 5.0.0)
|
||||||
fast_blank (1.0.0)
|
fast_blank (1.0.0)
|
||||||
fast_jsonparser (0.5.0)
|
fast_jsonparser (0.5.0)
|
||||||
ffi (1.13.1)
|
ffi (1.14.2)
|
||||||
flamegraph (0.9.5)
|
flamegraph (0.9.5)
|
||||||
forwardable-extended (2.6.0)
|
forwardable-extended (2.6.0)
|
||||||
friendly_id (5.4.0)
|
friendly_id (5.4.1)
|
||||||
activerecord (>= 4.0.0)
|
activerecord (>= 4.0.0)
|
||||||
get_process_mem (0.2.7)
|
get_process_mem (0.2.7)
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
globalid (0.4.2)
|
globalid (0.4.2)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
haml (5.2.0)
|
haml (5.2.1)
|
||||||
temple (>= 0.8.0)
|
temple (>= 0.8.0)
|
||||||
tilt
|
tilt
|
||||||
haml-lint (0.999.999)
|
haml-lint (0.999.999)
|
||||||
|
@ -231,10 +235,10 @@ GEM
|
||||||
icalendar (2.7.0)
|
icalendar (2.7.0)
|
||||||
ice_cube (~> 0.16)
|
ice_cube (~> 0.16)
|
||||||
ice_cube (0.16.3)
|
ice_cube (0.16.3)
|
||||||
image_processing (1.12.0)
|
image_processing (1.12.1)
|
||||||
mini_magick (>= 4.9.5, < 5)
|
mini_magick (>= 4.9.5, < 5)
|
||||||
ruby-vips (>= 2.0.17, < 3)
|
ruby-vips (>= 2.0.17, < 3)
|
||||||
inline_svg (1.7.1)
|
inline_svg (1.7.2)
|
||||||
activesupport (>= 3.0)
|
activesupport (>= 3.0)
|
||||||
nokogiri (>= 1.6)
|
nokogiri (>= 1.6)
|
||||||
jbuilder (2.10.1)
|
jbuilder (2.10.1)
|
||||||
|
@ -255,17 +259,17 @@ GEM
|
||||||
jekyll-liquify-alt (0.1.2)
|
jekyll-liquify-alt (0.1.2)
|
||||||
jekyll (~> 4)
|
jekyll (~> 4)
|
||||||
jekyll-locales (0.1.12)
|
jekyll-locales (0.1.12)
|
||||||
jekyll-lunr (0.1.2)
|
jekyll-lunr (0.2.0)
|
||||||
loofah (~> 2.4)
|
loofah (~> 2.4)
|
||||||
jekyll-node-modules (0.1.0)
|
jekyll-node-modules (0.1.0)
|
||||||
jekyll (~> 4)
|
jekyll (~> 4)
|
||||||
jekyll-order (0.1.2)
|
jekyll-order (0.1.2)
|
||||||
jekyll-relative-urls (0.0.5)
|
jekyll-relative-urls (0.0.6)
|
||||||
jekyll (>= 3.8, < 5)
|
jekyll (~> 4)
|
||||||
jekyll-sass-converter (2.1.0)
|
jekyll-sass-converter (2.1.0)
|
||||||
sassc (> 2.0.1, < 3.0)
|
sassc (> 2.0.1, < 3.0)
|
||||||
jekyll-seo-tag (2.6.1)
|
jekyll-seo-tag (2.7.1)
|
||||||
jekyll (>= 3.3, < 5.0)
|
jekyll (>= 3.8, < 5.0)
|
||||||
jekyll-turbolinks (0.0.5)
|
jekyll-turbolinks (0.0.5)
|
||||||
jekyll (~> 4)
|
jekyll (~> 4)
|
||||||
turbolinks-source (~> 5)
|
turbolinks-source (~> 5)
|
||||||
|
@ -286,13 +290,13 @@ GEM
|
||||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||||
rb-inotify (~> 0.9, >= 0.9.7)
|
rb-inotify (~> 0.9, >= 0.9.7)
|
||||||
ruby_dep (~> 1.2)
|
ruby_dep (~> 1.2)
|
||||||
lockbox (0.4.9)
|
lockbox (0.6.1)
|
||||||
lograge (0.11.2)
|
lograge (0.11.2)
|
||||||
actionpack (>= 4)
|
actionpack (>= 4)
|
||||||
activesupport (>= 4)
|
activesupport (>= 4)
|
||||||
railties (>= 4)
|
railties (>= 4)
|
||||||
request_store (~> 1.0)
|
request_store (~> 1.0)
|
||||||
loofah (2.7.0)
|
loofah (2.8.0)
|
||||||
crass (~> 1.0.2)
|
crass (~> 1.0.2)
|
||||||
nokogiri (>= 1.5.9)
|
nokogiri (>= 1.5.9)
|
||||||
mail (2.7.1)
|
mail (2.7.1)
|
||||||
|
@ -304,7 +308,7 @@ GEM
|
||||||
method_source (1.0.0)
|
method_source (1.0.0)
|
||||||
mimemagic (0.3.5)
|
mimemagic (0.3.5)
|
||||||
mini_histogram (0.3.1)
|
mini_histogram (0.3.1)
|
||||||
mini_magick (4.10.1)
|
mini_magick (4.11.0)
|
||||||
mini_mime (1.0.2)
|
mini_mime (1.0.2)
|
||||||
mini_portile2 (2.4.0)
|
mini_portile2 (2.4.0)
|
||||||
minima (2.5.1)
|
minima (2.5.1)
|
||||||
|
@ -312,7 +316,7 @@ GEM
|
||||||
jekyll-feed (~> 0.9)
|
jekyll-feed (~> 0.9)
|
||||||
jekyll-seo-tag (~> 2.1)
|
jekyll-seo-tag (~> 2.1)
|
||||||
minitest (5.14.2)
|
minitest (5.14.2)
|
||||||
mobility (0.8.13)
|
mobility (1.0.1)
|
||||||
i18n (>= 0.6.10, < 2)
|
i18n (>= 0.6.10, < 2)
|
||||||
request_store (~> 1.0)
|
request_store (~> 1.0)
|
||||||
netaddr (2.0.4)
|
netaddr (2.0.4)
|
||||||
|
@ -320,32 +324,32 @@ GEM
|
||||||
nokogiri (1.10.10)
|
nokogiri (1.10.10)
|
||||||
mini_portile2 (~> 2.4.0)
|
mini_portile2 (~> 2.4.0)
|
||||||
orm_adapter (0.5.0)
|
orm_adapter (0.5.0)
|
||||||
parallel (1.19.2)
|
parallel (1.20.1)
|
||||||
parser (2.7.2.0)
|
parser (2.7.2.0)
|
||||||
ast (~> 2.4.1)
|
ast (~> 2.4.1)
|
||||||
pathutil (0.16.2)
|
pathutil (0.16.2)
|
||||||
forwardable-extended (~> 2.6)
|
forwardable-extended (~> 2.6)
|
||||||
pg (1.2.3)
|
pg (1.2.3)
|
||||||
popper_js (1.16.0)
|
popper_js (1.16.0)
|
||||||
prometheus_exporter (0.5.3)
|
prometheus_exporter (0.6.0)
|
||||||
pry (0.13.1)
|
pry (0.13.1)
|
||||||
coderay (~> 1.1)
|
coderay (~> 1.1)
|
||||||
method_source (~> 1.0)
|
method_source (~> 1.0)
|
||||||
public_suffix (4.0.6)
|
public_suffix (4.0.6)
|
||||||
puma (5.0.2)
|
puma (5.1.1)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
pundit (2.1.0)
|
pundit (2.1.0)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
rack (2.2.3)
|
rack (2.2.3)
|
||||||
rack-cors (1.1.1)
|
rack-cors (1.1.1)
|
||||||
rack (>= 2.0.0)
|
rack (>= 2.0.0)
|
||||||
rack-mini-profiler (2.1.0)
|
rack-mini-profiler (2.2.1)
|
||||||
rack (>= 1.2.0)
|
rack (>= 1.2.0)
|
||||||
rack-proxy (0.6.5)
|
rack-proxy (0.6.5)
|
||||||
rack
|
rack
|
||||||
rack-test (1.1.0)
|
rack-test (1.1.0)
|
||||||
rack (>= 1.0, < 3)
|
rack (>= 1.0, < 3)
|
||||||
radios-comunitarias-jekyll-theme (0.1.3)
|
radios-comunitarias-jekyll-theme (0.1.4)
|
||||||
jekyll (~> 4.0)
|
jekyll (~> 4.0)
|
||||||
jekyll-data (~> 1.1)
|
jekyll-data (~> 1.1)
|
||||||
jekyll-feed (~> 0.9)
|
jekyll-feed (~> 0.9)
|
||||||
|
@ -356,20 +360,20 @@ GEM
|
||||||
jekyll-relative-urls (~> 0.0)
|
jekyll-relative-urls (~> 0.0)
|
||||||
jekyll-seo-tag (~> 2.1)
|
jekyll-seo-tag (~> 2.1)
|
||||||
jekyll-turbolinks (~> 0)
|
jekyll-turbolinks (~> 0)
|
||||||
rails (6.0.3.4)
|
rails (6.1.0)
|
||||||
actioncable (= 6.0.3.4)
|
actioncable (= 6.1.0)
|
||||||
actionmailbox (= 6.0.3.4)
|
actionmailbox (= 6.1.0)
|
||||||
actionmailer (= 6.0.3.4)
|
actionmailer (= 6.1.0)
|
||||||
actionpack (= 6.0.3.4)
|
actionpack (= 6.1.0)
|
||||||
actiontext (= 6.0.3.4)
|
actiontext (= 6.1.0)
|
||||||
actionview (= 6.0.3.4)
|
actionview (= 6.1.0)
|
||||||
activejob (= 6.0.3.4)
|
activejob (= 6.1.0)
|
||||||
activemodel (= 6.0.3.4)
|
activemodel (= 6.1.0)
|
||||||
activerecord (= 6.0.3.4)
|
activerecord (= 6.1.0)
|
||||||
activestorage (= 6.0.3.4)
|
activestorage (= 6.1.0)
|
||||||
activesupport (= 6.0.3.4)
|
activesupport (= 6.1.0)
|
||||||
bundler (>= 1.3.0)
|
bundler (>= 1.15.0)
|
||||||
railties (= 6.0.3.4)
|
railties (= 6.1.0)
|
||||||
sprockets-rails (>= 2.0.0)
|
sprockets-rails (>= 2.0.0)
|
||||||
rails-dom-testing (2.0.3)
|
rails-dom-testing (2.0.3)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
|
@ -381,18 +385,18 @@ GEM
|
||||||
railties (>= 6.0.0, < 7)
|
railties (>= 6.0.0, < 7)
|
||||||
rails_warden (0.6.0)
|
rails_warden (0.6.0)
|
||||||
warden (>= 1.2.0)
|
warden (>= 1.2.0)
|
||||||
railties (6.0.3.4)
|
railties (6.1.0)
|
||||||
actionpack (= 6.0.3.4)
|
actionpack (= 6.1.0)
|
||||||
activesupport (= 6.0.3.4)
|
activesupport (= 6.1.0)
|
||||||
method_source
|
method_source
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
thor (>= 0.20.3, < 2.0)
|
thor (~> 1.0)
|
||||||
rainbow (3.0.0)
|
rainbow (3.0.0)
|
||||||
rake (13.0.1)
|
rake (13.0.3)
|
||||||
rb-fsevent (0.10.4)
|
rb-fsevent (0.10.4)
|
||||||
rb-inotify (0.10.1)
|
rb-inotify (0.10.1)
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
recursero-jekyll-theme (0.1.1)
|
recursero-jekyll-theme (0.1.2)
|
||||||
jekyll (~> 4.0)
|
jekyll (~> 4.0)
|
||||||
jekyll-data (~> 1.1)
|
jekyll-data (~> 1.1)
|
||||||
jekyll-feed (~> 0.9)
|
jekyll-feed (~> 0.9)
|
||||||
|
@ -409,7 +413,7 @@ GEM
|
||||||
jekyll-unique-urls (~> 0.1)
|
jekyll-unique-urls (~> 0.1)
|
||||||
sutty-archives (~> 2.2)
|
sutty-archives (~> 2.2)
|
||||||
sutty-liquid (~> 0.1)
|
sutty-liquid (~> 0.1)
|
||||||
redis (4.2.2)
|
redis (4.2.5)
|
||||||
redis-actionpack (5.2.0)
|
redis-actionpack (5.2.0)
|
||||||
actionpack (>= 5, < 7)
|
actionpack (>= 5, < 7)
|
||||||
redis-rack (>= 2.1.0, < 3)
|
redis-rack (>= 2.1.0, < 3)
|
||||||
|
@ -426,29 +430,29 @@ GEM
|
||||||
redis-store (>= 1.2, < 2)
|
redis-store (>= 1.2, < 2)
|
||||||
redis-store (1.9.0)
|
redis-store (1.9.0)
|
||||||
redis (>= 4, < 5)
|
redis (>= 4, < 5)
|
||||||
regexp_parser (1.8.1)
|
regexp_parser (2.0.1)
|
||||||
request_store (1.5.0)
|
request_store (1.5.0)
|
||||||
rack (>= 1.4)
|
rack (>= 1.4)
|
||||||
responders (3.0.1)
|
responders (3.0.1)
|
||||||
actionpack (>= 5.0)
|
actionpack (>= 5.0)
|
||||||
railties (>= 5.0)
|
railties (>= 5.0)
|
||||||
rexml (3.2.4)
|
rexml (3.2.4)
|
||||||
rouge (3.23.0)
|
rouge (3.26.0)
|
||||||
rubocop (0.93.0)
|
rubocop (1.6.1)
|
||||||
parallel (~> 1.10)
|
parallel (~> 1.10)
|
||||||
parser (>= 2.7.1.5)
|
parser (>= 2.7.1.5)
|
||||||
rainbow (>= 2.2.2, < 4.0)
|
rainbow (>= 2.2.2, < 4.0)
|
||||||
regexp_parser (>= 1.8)
|
regexp_parser (>= 1.8, < 3.0)
|
||||||
rexml
|
rexml
|
||||||
rubocop-ast (>= 0.6.0)
|
rubocop-ast (>= 1.2.0, < 2.0)
|
||||||
ruby-progressbar (~> 1.7)
|
ruby-progressbar (~> 1.7)
|
||||||
unicode-display_width (>= 1.4.0, < 2.0)
|
unicode-display_width (>= 1.4.0, < 2.0)
|
||||||
rubocop-ast (0.7.1)
|
rubocop-ast (1.3.0)
|
||||||
parser (>= 2.7.1.5)
|
parser (>= 2.7.1.5)
|
||||||
rubocop-rails (2.8.1)
|
rubocop-rails (2.9.1)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
rack (>= 1.1)
|
rack (>= 1.1)
|
||||||
rubocop (>= 0.87.0)
|
rubocop (>= 0.90.0, < 2.0)
|
||||||
ruby-enum (0.8.0)
|
ruby-enum (0.8.0)
|
||||||
i18n
|
i18n
|
||||||
ruby-filemagic (0.7.2)
|
ruby-filemagic (0.7.2)
|
||||||
|
@ -458,7 +462,7 @@ GEM
|
||||||
ffi (~> 1.9)
|
ffi (~> 1.9)
|
||||||
ruby_dep (1.5.0)
|
ruby_dep (1.5.0)
|
||||||
rubyzip (2.3.0)
|
rubyzip (2.3.0)
|
||||||
rugged (1.0.1)
|
rugged (1.1.0)
|
||||||
safe_yaml (1.0.5)
|
safe_yaml (1.0.5)
|
||||||
safely_block (0.3.0)
|
safely_block (0.3.0)
|
||||||
errbase (>= 0.1.1)
|
errbase (>= 0.1.1)
|
||||||
|
@ -473,7 +477,7 @@ GEM
|
||||||
selenium-webdriver (3.142.7)
|
selenium-webdriver (3.142.7)
|
||||||
childprocess (>= 0.5, < 4.0)
|
childprocess (>= 0.5, < 4.0)
|
||||||
rubyzip (>= 1.2.2)
|
rubyzip (>= 1.2.2)
|
||||||
semantic_range (2.3.0)
|
semantic_range (2.3.1)
|
||||||
share-to-fediverse-jekyll-theme (0.1.4)
|
share-to-fediverse-jekyll-theme (0.1.4)
|
||||||
jekyll (~> 4.0)
|
jekyll (~> 4.0)
|
||||||
jekyll-data (~> 1.1)
|
jekyll-data (~> 1.1)
|
||||||
|
@ -497,10 +501,10 @@ GEM
|
||||||
activesupport (>= 4.0)
|
activesupport (>= 4.0)
|
||||||
sprockets (>= 3.0.0)
|
sprockets (>= 3.0.0)
|
||||||
sqlite3 (1.4.2)
|
sqlite3 (1.4.2)
|
||||||
stackprof (0.2.15)
|
stackprof (0.2.16)
|
||||||
sucker_punch (2.1.2)
|
sucker_punch (2.1.2)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
sutty-archives (2.5.0)
|
sutty-archives (2.5.2)
|
||||||
jekyll (>= 3.6, < 5.0)
|
jekyll (>= 3.6, < 5.0)
|
||||||
sutty-donaciones-jekyll-theme (0.1.2)
|
sutty-donaciones-jekyll-theme (0.1.2)
|
||||||
jekyll (~> 4.0)
|
jekyll (~> 4.0)
|
||||||
|
@ -519,7 +523,8 @@ GEM
|
||||||
jekyll-include-cache (~> 0)
|
jekyll-include-cache (~> 0)
|
||||||
jekyll-relative-urls (~> 0.0)
|
jekyll-relative-urls (~> 0.0)
|
||||||
jekyll-seo-tag (~> 2.1)
|
jekyll-seo-tag (~> 2.1)
|
||||||
sutty-liquid (0.3.0)
|
sutty-liquid (0.6.2)
|
||||||
|
fast_blank (~> 1.0)
|
||||||
jekyll (~> 4)
|
jekyll (~> 4)
|
||||||
sutty-minima (2.5.0)
|
sutty-minima (2.5.0)
|
||||||
jekyll (>= 3.5, < 5.0)
|
jekyll (>= 3.5, < 5.0)
|
||||||
|
@ -531,14 +536,13 @@ GEM
|
||||||
terminal-table (1.8.0)
|
terminal-table (1.8.0)
|
||||||
unicode-display_width (~> 1.1, >= 1.1.1)
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
||||||
thor (1.0.1)
|
thor (1.0.1)
|
||||||
thread_safe (0.3.6)
|
|
||||||
tilt (2.0.10)
|
tilt (2.0.10)
|
||||||
timecop (0.9.1)
|
timecop (0.9.2)
|
||||||
turbolinks (5.2.1)
|
turbolinks (5.2.1)
|
||||||
turbolinks-source (~> 5.2)
|
turbolinks-source (~> 5.2)
|
||||||
turbolinks-source (5.2.0)
|
turbolinks-source (5.2.0)
|
||||||
tzinfo (1.2.8)
|
tzinfo (2.0.4)
|
||||||
thread_safe (~> 0.1)
|
concurrent-ruby (~> 1.0)
|
||||||
uglifier (4.2.0)
|
uglifier (4.2.0)
|
||||||
execjs (>= 0.3.0, < 3)
|
execjs (>= 0.3.0, < 3)
|
||||||
unf (0.1.4)
|
unf (0.1.4)
|
||||||
|
@ -550,7 +554,7 @@ GEM
|
||||||
activesupport (>= 3.0)
|
activesupport (>= 3.0)
|
||||||
warden (1.2.9)
|
warden (1.2.9)
|
||||||
rack (>= 2.0.9)
|
rack (>= 2.0.9)
|
||||||
web-console (4.0.4)
|
web-console (4.1.0)
|
||||||
actionview (>= 6.0.0)
|
actionview (>= 6.0.0)
|
||||||
activemodel (>= 6.0.0)
|
activemodel (>= 6.0.0)
|
||||||
bindex (>= 0.4.0)
|
bindex (>= 0.4.0)
|
||||||
|
@ -565,7 +569,7 @@ GEM
|
||||||
websocket-extensions (0.1.5)
|
websocket-extensions (0.1.5)
|
||||||
xpath (3.2.0)
|
xpath (3.2.0)
|
||||||
nokogiri (~> 1.8)
|
nokogiri (~> 1.8)
|
||||||
zeitwerk (2.4.1)
|
zeitwerk (2.4.2)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
load File.expand_path("spring", __dir__)
|
||||||
APP_PATH = File.expand_path('../config/application', __dir__)
|
APP_PATH = File.expand_path('../config/application', __dir__)
|
||||||
require_relative '../config/boot'
|
require_relative '../config/boot'
|
||||||
require 'rails/commands'
|
require 'rails/commands'
|
||||||
|
|
1
bin/rake
1
bin/rake
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
load File.expand_path("spring", __dir__)
|
||||||
require_relative '../config/boot'
|
require_relative '../config/boot'
|
||||||
require 'rake'
|
require 'rake'
|
||||||
Rake.application.run
|
Rake.application.run
|
||||||
|
|
|
@ -21,7 +21,7 @@ FileUtils.chdir APP_ROOT do
|
||||||
system('bundle check') || system!('bundle install')
|
system('bundle check') || system!('bundle install')
|
||||||
|
|
||||||
# Install JavaScript dependencies
|
# Install JavaScript dependencies
|
||||||
# system('bin/yarn')
|
system! 'bin/yarn'
|
||||||
|
|
||||||
# puts "\n== Copying sample files =="
|
# puts "\n== Copying sample files =="
|
||||||
# unless File.exist?('config/database.yml')
|
# unless File.exist?('config/database.yml')
|
||||||
|
|
19
bin/spring
19
bin/spring
|
@ -1,18 +1,11 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
if !defined?(Spring) && [nil, "development", "test"].include?(ENV["RAILS_ENV"])
|
||||||
# This file loads spring without using Bundler, in order to be fast.
|
# Load Spring without loading other gems in the Gemfile, for speed.
|
||||||
# It gets overwritten when you run the `spring binstub` command.
|
require "bundler"
|
||||||
|
Bundler.locked_gems.specs.find { |spec| spec.name == "spring" }&.tap do |spring|
|
||||||
unless defined?(Spring)
|
|
||||||
require 'rubygems'
|
|
||||||
require 'bundler'
|
|
||||||
|
|
||||||
lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
|
|
||||||
spring = lockfile.specs.detect { |spec| spec.name == 'spring' }
|
|
||||||
if spring
|
|
||||||
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
|
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
|
||||||
gem 'spring', spring.version
|
gem "spring", spring.version
|
||||||
require 'spring/binstub'
|
require "spring/binstub"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
14
bin/yarn
14
bin/yarn
|
@ -1,9 +1,17 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
require 'pathname'
|
||||||
|
|
||||||
APP_ROOT = File.expand_path('..', __dir__)
|
APP_ROOT = File.expand_path('..', __dir__)
|
||||||
Dir.chdir(APP_ROOT) do
|
Dir.chdir(APP_ROOT) do
|
||||||
begin
|
executable_path = ENV["PATH"].split(File::PATH_SEPARATOR).find do |path|
|
||||||
exec "yarnpkg", *ARGV
|
normalized_path = File.expand_path(path)
|
||||||
rescue Errno::ENOENT
|
|
||||||
|
normalized_path != __dir__ && File.executable?(Pathname.new(normalized_path).join('yarn'))
|
||||||
|
end
|
||||||
|
|
||||||
|
if executable_path
|
||||||
|
exec File.expand_path(Pathname.new(executable_path).join('yarn')), *ARGV
|
||||||
|
else
|
||||||
$stderr.puts "Yarn executable was not detected in the system."
|
$stderr.puts "Yarn executable was not detected in the system."
|
||||||
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
|
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -5,3 +5,4 @@
|
||||||
require_relative 'config/environment'
|
require_relative 'config/environment'
|
||||||
|
|
||||||
run Rails.application
|
run Rails.application
|
||||||
|
Rails.application.load_server
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Sutty
|
||||||
class Application < Rails::Application
|
class Application < Rails::Application
|
||||||
# Initialize configuration defaults for originally generated Rails
|
# Initialize configuration defaults for originally generated Rails
|
||||||
# version.
|
# version.
|
||||||
config.load_defaults 6.0
|
config.load_defaults 6.1
|
||||||
|
|
||||||
# Settings in config/environments/* take precedence over those
|
# Settings in config/environments/* take precedence over those
|
||||||
# specified here. Application configuration can go into files in
|
# specified here. Application configuration can go into files in
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
require 'active_support/core_ext/integer/time'
|
||||||
|
|
||||||
Rails.application.configure do
|
Rails.application.configure do
|
||||||
# Settings specified here will take precedence over those in
|
# Settings specified here will take precedence over those in
|
||||||
# config/application.rb.
|
# config/application.rb.
|
||||||
|
@ -18,8 +20,9 @@ Rails.application.configure do
|
||||||
|
|
||||||
# Enable/disable caching. By default caching is disabled.
|
# Enable/disable caching. By default caching is disabled.
|
||||||
# Run rails dev:cache to toggle caching.
|
# Run rails dev:cache to toggle caching.
|
||||||
if Rails.root.join('tmp/caching-dev.txt').exist?
|
if Rails.root.join('tmp', 'caching-dev.txt').exist?
|
||||||
config.action_controller.perform_caching = true
|
config.action_controller.perform_caching = true
|
||||||
|
config.action_controller.enable_fragment_cache_logging = true
|
||||||
|
|
||||||
config.cache_store = :redis_cache_store, { url: ENV['REDIS_SERVER'] }
|
config.cache_store = :redis_cache_store, { url: ENV['REDIS_SERVER'] }
|
||||||
config.public_file_server.headers = {
|
config.public_file_server.headers = {
|
||||||
|
@ -43,6 +46,12 @@ Rails.application.configure do
|
||||||
# Print deprecation notices to the Rails logger.
|
# Print deprecation notices to the Rails logger.
|
||||||
config.active_support.deprecation = :log
|
config.active_support.deprecation = :log
|
||||||
|
|
||||||
|
# Raise exceptions for disallowed deprecations.
|
||||||
|
config.active_support.disallowed_deprecation = :raise
|
||||||
|
|
||||||
|
# Tell Active Support which deprecation messages to disallow.
|
||||||
|
config.active_support.disallowed_deprecation_warnings = []
|
||||||
|
|
||||||
# Raise an error on page load if there are pending migrations.
|
# Raise an error on page load if there are pending migrations.
|
||||||
config.active_record.migration_error = :page_load
|
config.active_record.migration_error = :page_load
|
||||||
|
|
||||||
|
@ -58,12 +67,18 @@ Rails.application.configure do
|
||||||
config.assets.quiet = true
|
config.assets.quiet = true
|
||||||
|
|
||||||
# Raises error for missing translations.
|
# Raises error for missing translations.
|
||||||
# config.action_view.raise_on_missing_translations = true
|
# config.i18n.raise_on_missing_translations = true
|
||||||
|
|
||||||
|
# Annotate rendered view with file names.
|
||||||
|
# config.action_view.annotate_rendered_view_with_filenames = true
|
||||||
|
|
||||||
# Use an evented file watcher to asynchronously detect changes in source code,
|
# Use an evented file watcher to asynchronously detect changes in source code,
|
||||||
# routes, locales, etc. This feature depends on the listen gem.
|
# routes, locales, etc. This feature depends on the listen gem.
|
||||||
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
||||||
|
|
||||||
|
# Uncomment if you wish to allow Action Cable access from any origin.
|
||||||
|
# config.action_cable.disable_request_forgery_protection = true
|
||||||
|
|
||||||
config.action_mailer.default_options = { from: ENV['DEFAULT_FROM'] }
|
config.action_mailer.default_options = { from: ENV['DEFAULT_FROM'] }
|
||||||
config.action_mailer.perform_caching = false
|
config.action_mailer.perform_caching = false
|
||||||
config.action_mailer.delivery_method = :letter_opener
|
config.action_mailer.delivery_method = :letter_opener
|
||||||
|
@ -73,4 +88,11 @@ Rails.application.configure do
|
||||||
Rails.application.routes.default_url_options[:host] = 'panel.sutty.local'
|
Rails.application.routes.default_url_options[:host] = 'panel.sutty.local'
|
||||||
Rails.application.routes.default_url_options[:port] = 3000
|
Rails.application.routes.default_url_options[:port] = 3000
|
||||||
Rails.application.routes.default_url_options[:protocol] = 'https'
|
Rails.application.routes.default_url_options[:protocol] = 'https'
|
||||||
|
|
||||||
|
config.middleware.use ExceptionNotification::Rack,
|
||||||
|
email: {
|
||||||
|
email_prefix: '[ERROR] ',
|
||||||
|
sender_address: ENV['DEFAULT_FROM'],
|
||||||
|
exception_recipients: ENV['EXCEPTION_TO']
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
require 'active_support/core_ext/integer/time'
|
||||||
|
|
||||||
Rails.application.configure do
|
Rails.application.configure do
|
||||||
# Settings specified here will take precedence over those in
|
# Settings specified here will take precedence over those in
|
||||||
# config/application.rb.
|
# config/application.rb.
|
||||||
|
@ -57,7 +59,7 @@ Rails.application.configure do
|
||||||
config.log_level = :info
|
config.log_level = :info
|
||||||
|
|
||||||
# Prepend all log lines with the following tags.
|
# Prepend all log lines with the following tags.
|
||||||
config.log_tags = [:request_id]
|
config.log_tags = %i[request_id]
|
||||||
|
|
||||||
# Use a different cache store in production.
|
# Use a different cache store in production.
|
||||||
config.cache_store = :redis_cache_store, { url: ENV['REDIS_SERVER'] }
|
config.cache_store = :redis_cache_store, { url: ENV['REDIS_SERVER'] }
|
||||||
|
@ -81,6 +83,12 @@ Rails.application.configure do
|
||||||
# Send deprecation notices to registered listeners.
|
# Send deprecation notices to registered listeners.
|
||||||
config.active_support.deprecation = :notify
|
config.active_support.deprecation = :notify
|
||||||
|
|
||||||
|
# Log disallowed deprecations.
|
||||||
|
config.active_support.disallowed_deprecation = :log
|
||||||
|
|
||||||
|
# Tell Active Support which deprecation messages to disallow.
|
||||||
|
config.active_support.disallowed_deprecation_warnings = []
|
||||||
|
|
||||||
config.lograge.enabled = true
|
config.lograge.enabled = true
|
||||||
# Use default logging formatter so that PID and timestamp are not
|
# Use default logging formatter so that PID and timestamp are not
|
||||||
# suppressed.
|
# suppressed.
|
||||||
|
@ -100,9 +108,8 @@ Rails.application.configure do
|
||||||
# Do not dump schema after migrations.
|
# Do not dump schema after migrations.
|
||||||
config.active_record.dump_schema_after_migration = false
|
config.active_record.dump_schema_after_migration = false
|
||||||
|
|
||||||
# Inserts middleware to perform automatic connection switching.
|
# Inserts middleware to perform automatic connection switching. The
|
||||||
#
|
# `database_selector` hash is used to pass options to the
|
||||||
# The `database_selector` hash is used to pass options to the
|
|
||||||
# DatabaseSelector middleware. The `delay` is used to determine how
|
# DatabaseSelector middleware. The `delay` is used to determine how
|
||||||
# long to wait after a write to send a subsequent read to the primary.
|
# long to wait after a write to send a subsequent read to the primary.
|
||||||
#
|
#
|
||||||
|
@ -118,9 +125,10 @@ Rails.application.configure do
|
||||||
# The DatabaseSelector middleware is designed as such you can define
|
# The DatabaseSelector middleware is designed as such you can define
|
||||||
# your own strategy for connection switching and pass that into the
|
# your own strategy for connection switching and pass that into the
|
||||||
# middleware through these configuration options.
|
# middleware through these configuration options.
|
||||||
|
#
|
||||||
# config.active_record.database_selector = { delay: 2.seconds }
|
# config.active_record.database_selector = { delay: 2.seconds }
|
||||||
# config.active_record.database_resolver =
|
# config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
|
||||||
# ActiveRecord::Middleware::DatabaseSelector::Resolver
|
# config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
|
||||||
# config.active_record.database_resolver_context =
|
# config.active_record.database_resolver_context =
|
||||||
# ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
|
# ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
#
|
require 'active_support/core_ext/integer/time'
|
||||||
|
|
||||||
# The test environment is used exclusively to run your application's
|
# The test environment is used exclusively to run your application's
|
||||||
# test suite. You never need to work with it otherwise. Remember that
|
# test suite. You never need to work with it otherwise. Remember that
|
||||||
# your test database is "scratch space" for the test suite and is wiped
|
# your test database is "scratch space" for the test suite and is wiped
|
||||||
|
@ -10,7 +11,8 @@ Rails.application.configure do
|
||||||
# Settings specified here will take precedence over those in
|
# Settings specified here will take precedence over those in
|
||||||
# config/application.rb.
|
# config/application.rb.
|
||||||
|
|
||||||
config.cache_classes = true
|
config.cache_classes = false
|
||||||
|
config.action_view.cache_template_loading = true
|
||||||
|
|
||||||
# Do not eager load code on boot. This avoids loading your whole
|
# Do not eager load code on boot. This avoids loading your whole
|
||||||
# application just for the purpose of running a single test. If you
|
# application just for the purpose of running a single test. If you
|
||||||
|
@ -51,6 +53,15 @@ Rails.application.configure do
|
||||||
# Print deprecation notices to the stderr.
|
# Print deprecation notices to the stderr.
|
||||||
config.active_support.deprecation = :stderr
|
config.active_support.deprecation = :stderr
|
||||||
|
|
||||||
|
# Raise exceptions for disallowed deprecations.
|
||||||
|
config.active_support.disallowed_deprecation = :raise
|
||||||
|
|
||||||
|
# Tell Active Support which deprecation messages to disallow.
|
||||||
|
config.active_support.disallowed_deprecation_warnings = []
|
||||||
|
|
||||||
# Raises error for missing translations.
|
# Raises error for missing translations.
|
||||||
# config.action_view.raise_on_missing_translations = true
|
# config.i18n.raise_on_missing_translations = true
|
||||||
|
|
||||||
|
# Annotate rendered view with file names.
|
||||||
|
# config.action_view.annotate_rendered_view_with_filenames = true
|
||||||
end
|
end
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
||||||
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
# Rails.backtrace_cleaner.add_silencer { |line| /my_noisy_library/.match?(line) }
|
||||||
|
|
||||||
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code
|
||||||
# Rails.backtrace_cleaner.remove_silencers!
|
# by setting BACKTRACE=1 before calling your invocation, like "BACKTRACE=1 ./bin/rails runner 'MyClass.perform'".
|
||||||
|
Rails.backtrace_cleaner.remove_silencers! if ENV['BACKTRACE']
|
||||||
|
|
|
@ -22,10 +22,10 @@ module ActionDispatch
|
||||||
# Post. Esto es para que las URLs no lleven un ?locale=XX
|
# Post. Esto es para que las URLs no lleven un ?locale=XX
|
||||||
# innecesario y además porque generan conflictos en la subida de
|
# innecesario y además porque generan conflictos en la subida de
|
||||||
# archivos de ActionText.
|
# archivos de ActionText.
|
||||||
def generate(name, options, path_parameters, parameterize = nil)
|
def generate(name, options, path_parameters)
|
||||||
options.delete(:locale) unless options[:controller] == 'posts'
|
options.delete(:locale) unless options[:controller] == 'posts'
|
||||||
|
|
||||||
generate_original(name, options, path_parameters, parameterize)
|
generate_original(name, options, path_parameters)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -3,4 +3,6 @@
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# Configure sensitive parameters which will be filtered from the log file.
|
# Configure sensitive parameters which will be filtered from the log file.
|
||||||
Rails.application.config.filter_parameters += [:password]
|
Rails.application.config.filter_parameters += %i[
|
||||||
|
password passw secret token _key crypt salt certificate otp ssn
|
||||||
|
]
|
||||||
|
|
|
@ -1,97 +1,109 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
Mobility.configure do |config|
|
Mobility.configure do |config|
|
||||||
# Sets the default backend to use in models. This can be overridden in
|
# PLUGINS
|
||||||
# models by passing +backend: ...+ to +translates+.
|
config.plugins do
|
||||||
config.default_backend = :key_value
|
# Backend
|
||||||
|
#
|
||||||
# By default, Mobility uses the +translates+ class method in models to
|
# Sets the default backend to use in models. This can be overridden in models
|
||||||
# describe translated attributes, but you can configure this method to
|
# by passing +backend: ...+ to +translates+.
|
||||||
# be whatever you like. This may be useful if using Mobility alongside
|
#
|
||||||
# another translation gem which uses the same method name.
|
# To default to a different backend globally, replace +:key_value+ by another
|
||||||
config.accessor_method = :translates
|
# backend name.
|
||||||
|
#
|
||||||
# To query on translated attributes, you need to append a scope to
|
backend :key_value
|
||||||
# your model. The name of this scope is +i18n+ by default, but this
|
|
||||||
# can be changed to something else.
|
# ActiveRecord
|
||||||
config.query_method = :i18n
|
#
|
||||||
|
# Defines ActiveRecord as ORM, and enables ActiveRecord-specific plugins.
|
||||||
# Uncomment and remove (or add) items to (from) this list to
|
active_record
|
||||||
# completely disable/enable plugins globally (so they cannot be used
|
|
||||||
# and are never even loaded). Note that if you remove an item from the
|
# Accessors
|
||||||
# list, you will not be able to use the plugin at all, and any options
|
#
|
||||||
# for the plugin will be ignored by models. (In most cases, you
|
# Define reader and writer methods for translated attributes. Remove either
|
||||||
# probably don't want to change this.)
|
# to disable globally, or pass +reader: false+ or +writer: false+ to
|
||||||
|
# +translates+ in any translated model.
|
||||||
|
#
|
||||||
|
reader
|
||||||
|
writer
|
||||||
|
|
||||||
|
# Backend Reader
|
||||||
|
#
|
||||||
|
# Defines reader to access the backend for any attribute, of the form
|
||||||
|
# +<attribute>_backend+.
|
||||||
|
#
|
||||||
|
backend_reader
|
||||||
|
#
|
||||||
|
# Or pass an interpolation string to define a different pattern:
|
||||||
|
# backend_reader "%s_translations"
|
||||||
|
|
||||||
|
# Query
|
||||||
|
#
|
||||||
|
# Defines a scope on the model class which allows querying on
|
||||||
|
# translated attributes. The default scope is named +i18n+, pass a different
|
||||||
|
# name as default to change the global default, or to +translates+ in any
|
||||||
|
# model to change it for that model alone.
|
||||||
|
#
|
||||||
|
query
|
||||||
|
|
||||||
|
# Cache
|
||||||
|
#
|
||||||
|
# Comment out to disable caching reads and writes.
|
||||||
|
#
|
||||||
|
cache
|
||||||
|
|
||||||
|
# Dirty
|
||||||
|
#
|
||||||
|
# Uncomment this line to include and enable globally:
|
||||||
|
dirty
|
||||||
|
#
|
||||||
|
# Or uncomment this line to include but disable by default, and only enable
|
||||||
|
# per model by passing +dirty: true+ to +translates+.
|
||||||
|
# dirty false
|
||||||
|
|
||||||
|
# Fallbacks
|
||||||
|
#
|
||||||
|
# Uncomment line below to enable fallbacks, using +I18n.fallbacks+.
|
||||||
|
fallbacks
|
||||||
|
#
|
||||||
|
# Or uncomment this line to enable fallbacks with a global default.
|
||||||
|
# fallbacks { :pt => :en }
|
||||||
|
|
||||||
|
# Presence
|
||||||
|
#
|
||||||
|
# Converts blank strings to nil on reads and writes. Comment out to
|
||||||
|
# disable.
|
||||||
|
#
|
||||||
|
presence
|
||||||
|
|
||||||
|
# Default
|
||||||
|
#
|
||||||
|
# Set a default translation per attributes. When enabled, passing +default:
|
||||||
|
# 'foo'+ sets a default translation string to show in case no translation is
|
||||||
|
# present. Can also be passed a proc.
|
||||||
|
#
|
||||||
|
# default 'foo'
|
||||||
|
|
||||||
|
# Fallthrough Accessors
|
||||||
|
#
|
||||||
|
# Uses method_missing to define locale-specific accessor methods like
|
||||||
|
# +title_en+, +title_en=+, +title_fr+, +title_fr=+ for each translated
|
||||||
|
# attribute. If you know what set of locales you want to support, it's
|
||||||
|
# generally better to use Locale Accessors (or both together) since
|
||||||
|
# +method_missing+ is very slow. (You can use both fallthrough and locale
|
||||||
|
# accessor plugins together without conflict.)
|
||||||
#
|
#
|
||||||
# config.plugins = %i[
|
|
||||||
# query
|
|
||||||
# cache
|
|
||||||
# dirty
|
|
||||||
# fallbacks
|
|
||||||
# presence
|
|
||||||
# default
|
|
||||||
# attribute_methods
|
|
||||||
# fallthrough_accessors
|
# fallthrough_accessors
|
||||||
# locale_accessors
|
|
||||||
# ]
|
|
||||||
|
|
||||||
# The translation cache is on by default, but you can turn it off by
|
# Locale Accessors
|
||||||
# uncommenting this line. (This may be helpful in debugging.)
|
|
||||||
#
|
#
|
||||||
# config.default_options[:cache] = false
|
# Uses +def+ to define accessor methods for a set of locales. By default uses
|
||||||
|
# +I18n.available_locales+, but you can pass the set of locales with
|
||||||
# Dirty tracking is disabled by default. Uncomment this line to enable
|
# +translates+ and/or set a global default here.
|
||||||
# it. If you enable this, you should also enable +locale_accessors+
|
|
||||||
# by default (see below).
|
|
||||||
#
|
#
|
||||||
# config.default_options[:dirty] = true
|
locale_accessors
|
||||||
|
|
||||||
# No fallbacks are used by default. To define default fallbacks,
|
|
||||||
# uncomment and set the default fallback option value here. A "true"
|
|
||||||
# value will use whatever is defined by +I18n.fallbacks+ (if defined),
|
|
||||||
# or alternatively will fallback to your +I18n.default_locale+.
|
|
||||||
#
|
#
|
||||||
config.default_options[:fallbacks] = true
|
# Or define specific defaults by uncommenting line below
|
||||||
|
# locale_accessors [:en, :ja]
|
||||||
# The Presence plugin converts empty strings to nil when fetching and
|
end
|
||||||
# setting translations. By default it is on, uncomment this line to
|
|
||||||
# turn it off.
|
|
||||||
#
|
|
||||||
# config.default_options[:presence] = false
|
|
||||||
|
|
||||||
# Set a default value to use if the translation is nil. By default
|
|
||||||
# this is off, uncomment and set a default to use it across all models
|
|
||||||
# (you probably don't want to do that).
|
|
||||||
#
|
|
||||||
# config.default_options[:default] = ...
|
|
||||||
|
|
||||||
# Uncomment to enable locale_accessors by default on models. A true
|
|
||||||
# value will use the locales defined either in
|
|
||||||
# Rails.application.config.i18n.available_locales or
|
|
||||||
# I18n.available_locales. If you want something else, pass an array
|
|
||||||
# of locales instead.
|
|
||||||
#
|
|
||||||
# config.default_options[:locale_accessors] = true
|
|
||||||
|
|
||||||
# Uncomment to enable fallthrough accessors by default on models. This
|
|
||||||
# will allow you to call any method with a suffix like _en or _pt_br,
|
|
||||||
# and Mobility will catch the suffix and convert it into a locale in
|
|
||||||
# +method_missing+. If you don't need this kind of open-ended
|
|
||||||
# fallthrough behavior, it's better to use locale_accessors instead
|
|
||||||
# (which define methods) since method_missing is very slow. (You can
|
|
||||||
# use both fallthrough and locale accessor plugins together without
|
|
||||||
# conflict.)
|
|
||||||
#
|
|
||||||
# Note: The dirty plugin enables fallthrough_accessors by default.
|
|
||||||
#
|
|
||||||
# config.default_options[:fallthrough_accessors] = true
|
|
||||||
|
|
||||||
# You can also include backend-specific default options. For example,
|
|
||||||
# if you want to default to using the text-type translation table with
|
|
||||||
# the KeyValue backend, you can set that as a default by uncommenting
|
|
||||||
# this line, or change it to :string to default to the string-type
|
|
||||||
# translation table instead. (For other backends, this option is
|
|
||||||
# ignored.)
|
|
||||||
#
|
|
||||||
# config.default_options[:type] = :text
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -7,8 +7,14 @@
|
||||||
# minimum and maximum; this matches the default thread size of Active
|
# minimum and maximum; this matches the default thread size of Active
|
||||||
# Record.
|
# Record.
|
||||||
#
|
#
|
||||||
threads_count = ENV.fetch('RAILS_MAX_THREADS') { 1 }
|
max_threads_count = ENV.fetch('RAILS_MAX_THREADS') { 5 }
|
||||||
threads threads_count, threads_count
|
min_threads_count = ENV.fetch('RAILS_MIN_THREADS') { max_threads_count }
|
||||||
|
threads min_threads_count, max_threads_count
|
||||||
|
|
||||||
|
# Specifies the `worker_timeout` threshold that Puma will use to wait before
|
||||||
|
# terminating a worker in development environments.
|
||||||
|
#
|
||||||
|
worker_timeout 3600 if ENV.fetch('RAILS_ENV', 'development') == 'development'
|
||||||
|
|
||||||
# Specifies the `port` that Puma will listen on to receive requests;
|
# Specifies the `port` that Puma will listen on to receive requests;
|
||||||
# default is 3000.
|
# default is 3000.
|
||||||
|
@ -19,6 +25,9 @@ port ENV.fetch('PORT') { 3000 }
|
||||||
#
|
#
|
||||||
environment ENV.fetch('RAILS_ENV') { 'development' }
|
environment ENV.fetch('RAILS_ENV') { 'development' }
|
||||||
|
|
||||||
|
# Specifies the `pidfile` that Puma will use.
|
||||||
|
pidfile ENV.fetch('PIDFILE') { 'tmp/pids/server.pid' }
|
||||||
|
|
||||||
# Specifies the number of `workers` to boot in clustered mode. Workers
|
# Specifies the number of `workers` to boot in clustered mode. Workers
|
||||||
# are forked webserver processes. If using threads and workers together
|
# are forked webserver processes. If using threads and workers together
|
||||||
# the concurrency of the application would be max `threads` * `workers`.
|
# the concurrency of the application would be max `threads` * `workers`.
|
||||||
|
@ -37,8 +46,6 @@ preload_app!
|
||||||
# Allow puma to be restarted by `rails restart` command.
|
# Allow puma to be restarted by `rails restart` command.
|
||||||
plugin :tmp_restart
|
plugin :tmp_restart
|
||||||
|
|
||||||
pidfile 'tmp/puma.pid'
|
|
||||||
|
|
||||||
# If you are preloading your application and using Active Record, it's
|
# If you are preloading your application and using Active Record, it's
|
||||||
# recommended that you close any connections to the database before workers
|
# recommended that you close any connections to the database before workers
|
||||||
# are forked to prevent connection leakage.
|
# are forked to prevent connection leakage.
|
||||||
|
@ -59,7 +66,8 @@ on_worker_boot do
|
||||||
|
|
||||||
if Rails.env.production?
|
if Rails.env.production?
|
||||||
require 'prometheus_exporter/instrumentation'
|
require 'prometheus_exporter/instrumentation'
|
||||||
PrometheusExporter::Instrumentation::ActiveRecord.start(custom_labels: { type: 'puma_worker' }, config_labels: %i[database host])
|
PrometheusExporter::Instrumentation::ActiveRecord.start(custom_labels: { type: 'puma_worker' },
|
||||||
|
config_labels: %i[database host])
|
||||||
PrometheusExporter::Instrumentation::Puma.start
|
PrometheusExporter::Instrumentation::Puma.start
|
||||||
PrometheusExporter::Instrumentation::Process.start(type: 'web')
|
PrometheusExporter::Instrumentation::Process.start(type: 'web')
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
local:
|
local:
|
||||||
service: Disk
|
service: Disk
|
||||||
|
public: true
|
||||||
root: <%= Rails.root.join('_storage') %>
|
root: <%= Rails.root.join('_storage') %>
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
|
Loading…
Reference in a new issue