Commit c42d259d by source_reader

migrated to rails 6.1

parent 2f731e42
...@@ -2,12 +2,12 @@ source 'https://rubygems.org' ...@@ -2,12 +2,12 @@ source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.0.3.6' gem 'rails', '~> 6.1'
# Use SCSS for stylesheets # Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0' #gem 'sass-rails' #, '~> 5.0'
# Use Uglifier as compressor for JavaScript assets # Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0' gem 'uglifier'#, '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views # Use CoffeeScript for .coffee assets and views
# gem 'coffee-rails', '~> 4.1.0' # gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes # See https://github.com/rails/execjs#readme for more supported runtimes
...@@ -18,12 +18,12 @@ gem 'jquery-rails' ...@@ -18,12 +18,12 @@ gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks' gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0' gem 'jbuilder'#, '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api. # bundle exec rake doc:rails generates the API under doc/api.
#gem 'sdoc', '~> 0.4.0', group: :doc #gem 'sdoc', '~> 0.4.0', group: :doc
# revert from 3.1.13 due to armhf bug # revert from 3.1.13 due to armhf bug
gem 'bcrypt', '3.1.12' gem 'bcrypt'#, '3.1.12'
# Use Unicorn as the app server # Use Unicorn as the app server
# gem 'unicorn' # gem 'unicorn'
...@@ -43,7 +43,7 @@ gem 'rubocop-rspec' ...@@ -43,7 +43,7 @@ gem 'rubocop-rspec'
group :development, :test do group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console # Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug' gem 'byebug'
gem 'rspec-rails', '~> 3.1' gem 'rspec-rails'#, '~> 3.1'
gem 'rubocop', require: false gem 'rubocop', require: false
gem 'vcr' gem 'vcr'
gem 'webmock' gem 'webmock'
...@@ -56,9 +56,9 @@ group :development, :test do ...@@ -56,9 +56,9 @@ group :development, :test do
gem 'spring-commands-rspec' gem 'spring-commands-rspec'
gem 'terminal-notifier-guard' gem 'terminal-notifier-guard'
gem 'terminal-notifier' gem 'terminal-notifier'
gem 'capistrano', '~> 3.6' gem 'capistrano'#, '~> 3.6'
gem 'capistrano-rails', '~> 1.2' gem 'capistrano-rails'#, '~> 1.2'
gem 'capistrano-rbenv', '~> 2.0' gem 'capistrano-rbenv'#, '~> 2.0'
gem 'capistrano-passenger' gem 'capistrano-passenger'
gem 'thin' gem 'thin'
end end
......
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
actioncable (6.0.3.6) actioncable (6.1.7.3)
actionpack (= 6.0.3.6) actionpack (= 6.1.7.3)
activesupport (= 6.1.7.3)
nio4r (~> 2.0) nio4r (~> 2.0)
websocket-driver (>= 0.6.1) websocket-driver (>= 0.6.1)
actionmailbox (6.0.3.6) actionmailbox (6.1.7.3)
actionpack (= 6.0.3.6) actionpack (= 6.1.7.3)
activejob (= 6.0.3.6) activejob (= 6.1.7.3)
activerecord (= 6.0.3.6) activerecord (= 6.1.7.3)
activestorage (= 6.0.3.6) activestorage (= 6.1.7.3)
activesupport (= 6.0.3.6) activesupport (= 6.1.7.3)
mail (>= 2.7.1) mail (>= 2.7.1)
actionmailer (6.0.3.6) actionmailer (6.1.7.3)
actionpack (= 6.0.3.6) actionpack (= 6.1.7.3)
actionview (= 6.0.3.6) actionview (= 6.1.7.3)
activejob (= 6.0.3.6) activejob (= 6.1.7.3)
activesupport (= 6.1.7.3)
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.6) actionpack (6.1.7.3)
actionview (= 6.0.3.6) actionview (= 6.1.7.3)
activesupport (= 6.0.3.6) activesupport (= 6.1.7.3)
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.6) actiontext (6.1.7.3)
actionpack (= 6.0.3.6) actionpack (= 6.1.7.3)
activerecord (= 6.0.3.6) activerecord (= 6.1.7.3)
activestorage (= 6.0.3.6) activestorage (= 6.1.7.3)
activesupport (= 6.0.3.6) activesupport (= 6.1.7.3)
nokogiri (>= 1.8.5) nokogiri (>= 1.8.5)
actionview (6.0.3.6) actionview (6.1.7.3)
activesupport (= 6.0.3.6) activesupport (= 6.1.7.3)
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.6) activejob (6.1.7.3)
activesupport (= 6.0.3.6) activesupport (= 6.1.7.3)
globalid (>= 0.3.6) globalid (>= 0.3.6)
activemodel (6.0.3.6) activemodel (6.1.7.3)
activesupport (= 6.0.3.6) activesupport (= 6.1.7.3)
activerecord (6.0.3.6) activerecord (6.1.7.3)
activemodel (= 6.0.3.6) activemodel (= 6.1.7.3)
activesupport (= 6.0.3.6) activesupport (= 6.1.7.3)
activestorage (6.0.3.6) activestorage (6.1.7.3)
actionpack (= 6.0.3.6) actionpack (= 6.1.7.3)
activejob (= 6.0.3.6) activejob (= 6.1.7.3)
activerecord (= 6.0.3.6) activerecord (= 6.1.7.3)
marcel (~> 1.0.0) activesupport (= 6.1.7.3)
activesupport (6.0.3.6) marcel (~> 1.0)
mini_mime (>= 1.1.0)
activesupport (6.1.7.3)
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.8.4)
public_suffix (>= 2.0.2, < 5.0) public_suffix (>= 2.0.2, < 6.0)
airbrussh (1.4.0) airbrussh (1.4.1)
sshkit (>= 1.6.1, != 1.7.0) sshkit (>= 1.6.1, != 1.7.0)
ansi (1.5.0) ansi (1.5.0)
ast (2.4.2) ast (2.4.2)
bcrypt (3.1.12) bcrypt (3.1.18)
bcrypt (3.1.12-x64-mingw32)
bindex (0.8.1) bindex (0.8.1)
bootsnap (1.7.0) bootsnap (1.16.0)
msgpack (~> 1.0) msgpack (~> 1.2)
builder (3.2.4) builder (3.2.4)
byebug (11.1.3) byebug (11.1.3)
capistrano (3.15.0) capistrano (3.17.3)
airbrussh (>= 1.0.0) airbrussh (>= 1.0.0)
i18n i18n
rake (>= 10.0.0) rake (>= 10.0.0)
sshkit (>= 1.9.0) sshkit (>= 1.9.0)
capistrano-bundler (2.0.1) capistrano-bundler (2.1.0)
capistrano (~> 3.1) capistrano (~> 3.1)
capistrano-passenger (0.2.0) capistrano-passenger (0.2.1)
capistrano (~> 3.0) capistrano (~> 3.0)
capistrano-rails (1.6.1) capistrano-rails (1.6.2)
capistrano (~> 3.1) capistrano (~> 3.1)
capistrano-bundler (>= 1.1, < 3) capistrano-bundler (>= 1.1, < 3)
capistrano-rbenv (2.2.0) capistrano-rbenv (2.2.0)
capistrano (~> 3.1) capistrano (~> 3.1)
sshkit (~> 1.3) sshkit (~> 1.3)
capybara (3.35.3) capybara (3.39.2)
addressable addressable
matrix
mini_mime (>= 0.1.3) mini_mime (>= 0.1.3)
nokogiri (~> 1.8) nokogiri (~> 1.8)
rack (>= 1.6.0) rack (>= 1.6.0)
...@@ -93,7 +97,7 @@ GEM ...@@ -93,7 +97,7 @@ GEM
regexp_parser (>= 1.5, < 3.0) regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2) xpath (~> 3.2)
coderay (1.1.3) coderay (1.1.3)
concurrent-ruby (1.1.8) concurrent-ruby (1.2.2)
coveralls (0.7.1) coveralls (0.7.1)
multi_json (~> 1.3) multi_json (~> 1.3)
rest-client rest-client
...@@ -103,91 +107,86 @@ GEM ...@@ -103,91 +107,86 @@ GEM
crack (0.4.5) crack (0.4.5)
rexml rexml
crass (1.0.6) crass (1.0.6)
cucumber (5.3.0) cucumber (8.0.0)
builder (~> 3.2, >= 3.2.4) builder (~> 3.2, >= 3.2.4)
cucumber-core (~> 8.0, >= 8.0.1) cucumber-ci-environment (~> 9.0, >= 9.0.4)
cucumber-create-meta (~> 2.0, >= 2.0.2) cucumber-core (~> 11.0, >= 11.0.0)
cucumber-cucumber-expressions (~> 10.3, >= 10.3.0) cucumber-cucumber-expressions (~> 15.1, >= 15.1.1)
cucumber-gherkin (~> 15.0, >= 15.0.2) cucumber-gherkin (~> 23.0, >= 23.0.1)
cucumber-html-formatter (~> 9.0, >= 9.0.0) cucumber-html-formatter (~> 19.1, >= 19.1.0)
cucumber-messages (~> 13.1, >= 13.1.0) cucumber-messages (~> 18.0, >= 18.0.0)
cucumber-wire (~> 4.0, >= 4.0.1) diff-lcs (~> 1.5, >= 1.5.0)
diff-lcs (~> 1.4, >= 1.4.4) mime-types (~> 3.4, >= 3.4.1)
multi_test (~> 0.1, >= 0.1.2) multi_test (~> 1.1, >= 1.1.0)
sys-uname (~> 1.2, >= 1.2.1) sys-uname (~> 1.2, >= 1.2.2)
cucumber-core (8.0.1) cucumber-ci-environment (9.2.0)
cucumber-gherkin (~> 15.0, >= 15.0.2) cucumber-core (11.0.0)
cucumber-messages (~> 13.0, >= 13.0.1) cucumber-gherkin (~> 23.0, >= 23.0.1)
cucumber-tag-expressions (~> 2.0, >= 2.0.4) cucumber-messages (~> 18.0, >= 18.0.0)
cucumber-create-meta (2.0.4) cucumber-tag-expressions (~> 4.1, >= 4.1.0)
cucumber-messages (~> 13.1, >= 13.1.0) cucumber-cucumber-expressions (15.2.0)
sys-uname (~> 1.2, >= 1.2.1) cucumber-gherkin (23.0.1)
cucumber-cucumber-expressions (10.3.0) cucumber-messages (~> 18.0, >= 18.0.0)
cucumber-gherkin (15.0.2) cucumber-html-formatter (19.2.0)
cucumber-messages (~> 13.0, >= 13.0.1) cucumber-messages (~> 18.0, >= 18.0.0)
cucumber-html-formatter (9.0.0) cucumber-messages (18.0.0)
cucumber-messages (~> 13.0, >= 13.0.1) cucumber-rails (2.6.1)
cucumber-messages (13.2.1)
protobuf-cucumber (~> 3.10, >= 3.10.8)
cucumber-rails (2.2.0)
capybara (>= 2.18, < 4) capybara (>= 2.18, < 4)
cucumber (>= 3.0.2, < 6) cucumber (>= 3.2, < 9)
mime-types (~> 3.2) mime-types (~> 3.3)
nokogiri (~> 1.8) nokogiri (~> 1.10)
rails (>= 5.0, < 7) railties (>= 5.0, < 8)
cucumber-tag-expressions (2.0.4) rexml (~> 3.0)
cucumber-wire (4.0.1) webrick (~> 1.7)
cucumber-core (~> 8.0, >= 8.0.1) cucumber-tag-expressions (4.1.0)
cucumber-cucumber-expressions (~> 10.3, >= 10.3.0) daemons (1.4.1)
cucumber-messages (~> 13.0, >= 13.0.1) database_cleaner (2.0.2)
daemons (1.3.1) database_cleaner-active_record (>= 2, < 3)
database_cleaner (2.0.0) database_cleaner-active_record (2.1.0)
database_cleaner-active_record (~> 2.0.0)
database_cleaner-active_record (2.0.0)
activerecord (>= 5.a) activerecord (>= 5.a)
database_cleaner-core (~> 2.0.0) database_cleaner-core (~> 2.0.0)
database_cleaner-core (2.0.0) database_cleaner-core (2.0.1)
devise (4.7.3) date (3.3.3)
devise (4.9.2)
bcrypt (~> 3.0) bcrypt (~> 3.0)
orm_adapter (~> 0.1) orm_adapter (~> 0.1)
railties (>= 4.1.0) railties (>= 4.1.0)
responders responders
warden (~> 1.2.3) warden (~> 1.2.3)
devise_invitable (2.0.3) devise_invitable (2.0.8)
actionmailer (>= 5.0) actionmailer (>= 5.0)
devise (>= 4.6) devise (>= 4.6)
devise_token_auth (1.1.4) devise_token_auth (1.2.2)
bcrypt (~> 3.0) bcrypt (~> 3.0)
devise (> 3.5.2, < 5) devise (> 3.5.2, < 5)
rails (>= 4.2.0, < 6.1) rails (>= 4.2.0, < 7.1)
sprockets (= 3.7.2) diff-lcs (1.5.0)
diff-lcs (1.4.4) docile (1.4.0)
docile (1.3.5)
domain_name (0.5.20190701) domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0) unf (>= 0.0.5, < 1.0.0)
erubi (1.10.0) erubi (1.12.0)
eventmachine (1.2.7) eventmachine (1.2.7)
eventmachine (1.2.7-x64-mingw32) eventmachine (1.2.7-x64-mingw32)
execjs (2.7.0) execjs (2.8.1)
factory_bot (6.1.0) factory_bot (6.2.1)
activesupport (>= 5.0.0) activesupport (>= 5.0.0)
factory_bot_rails (6.1.0) factory_bot_rails (6.2.0)
factory_bot (~> 6.1.0) factory_bot (~> 6.2.0)
railties (>= 5.0.0) railties (>= 5.0.0)
faker (2.15.1) faker (3.2.0)
i18n (>= 1.6, < 2) i18n (>= 1.8.11, < 2)
ffi (1.14.2) ffi (1.15.5)
ffi (1.14.2-x64-mingw32) ffi (1.15.5-x64-mingw32)
formatador (0.2.5) formatador (1.1.0)
globalid (0.4.2) globalid (1.1.0)
activesupport (>= 4.2.0) activesupport (>= 5.0)
guard (2.16.2) guard (2.18.0)
formatador (>= 0.2.4) formatador (>= 0.2.4)
listen (>= 2.7, < 4.0) listen (>= 2.7, < 4.0)
lumberjack (>= 1.0.12, < 2.0) lumberjack (>= 1.0.12, < 2.0)
nenv (~> 0.1) nenv (~> 0.1)
notiffany (~> 0.0) notiffany (~> 0.0)
pry (>= 0.9.12) pry (>= 0.13.0)
shellany (~> 0.0) shellany (~> 0.0)
thor (>= 0.18.1) thor (>= 0.18.1)
guard-compat (1.2.1) guard-compat (1.2.1)
...@@ -195,118 +194,129 @@ GEM ...@@ -195,118 +194,129 @@ GEM
guard (~> 2.1) guard (~> 2.1)
guard-compat (~> 1.1) guard-compat (~> 1.1)
rspec (>= 2.99.0, < 4.0) rspec (>= 2.99.0, < 4.0)
guard-rubocop (1.4.0) guard-rubocop (1.5.0)
guard (~> 2.0) guard (~> 2.0)
rubocop (< 2.0) rubocop (< 2.0)
hashdiff (1.0.1) hashdiff (1.0.1)
http-accept (1.7.0) http-accept (1.7.0)
http-cookie (1.0.3) http-cookie (1.0.5)
domain_name (~> 0.5) domain_name (~> 0.5)
httparty (0.18.1) httparty (0.21.0)
mime-types (~> 3.0) mini_mime (>= 1.0.0)
multi_xml (>= 0.5.2) multi_xml (>= 0.5.2)
i18n (1.8.9) i18n (1.14.1)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
jbuilder (2.11.2) jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0) activesupport (>= 5.0.0)
jquery-rails (4.4.0) jquery-rails (4.5.1)
rails-dom-testing (>= 1, < 3) rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0) railties (>= 4.2.0)
thor (>= 0.14, < 2.0) thor (>= 0.14, < 2.0)
listen (3.4.1) json (2.6.3)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3) rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10) rb-inotify (~> 0.9, >= 0.9.10)
loofah (2.9.0) loofah (2.21.3)
crass (~> 1.0.2) crass (~> 1.0.2)
nokogiri (>= 1.5.9) nokogiri (>= 1.12.0)
lumberjack (1.2.8) lumberjack (1.2.8)
mail (2.7.1) mail (2.8.1)
mini_mime (>= 0.1.1) mini_mime (>= 0.1.1)
marcel (1.0.0) net-imap
net-pop
net-smtp
marcel (1.0.2)
matrix (0.4.2)
method_source (1.0.0) method_source (1.0.0)
middleware (0.1.0) mime-types (3.4.1)
mime-types (3.3.1)
mime-types-data (~> 3.2015) mime-types-data (~> 3.2015)
mime-types-data (3.2020.1104) mime-types-data (3.2023.0218.1)
mini_magick (4.11.0) mini_magick (4.12.0)
mini_mime (1.0.3) mini_mime (1.1.2)
mini_portile2 (2.5.0) mini_portile2 (2.8.2)
minitest (5.14.4) minitest (5.18.1)
msgpack (1.4.2) msgpack (1.7.1)
multi_json (1.15.0) multi_json (1.15.0)
multi_test (0.1.2) multi_test (1.1.0)
multi_xml (0.6.0) multi_xml (0.6.0)
nenv (0.3.0) nenv (0.3.0)
net-scp (3.0.0) net-imap (0.3.6)
net-ssh (>= 2.6.5, < 7.0.0) date
net-ssh (6.1.0) net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.1)
timeout
net-scp (4.0.0)
net-ssh (>= 2.6.5, < 8.0.0)
net-smtp (0.3.3)
net-protocol
net-ssh (7.1.0)
netrc (0.11.0) netrc (0.11.0)
nio4r (2.5.7) nio4r (2.5.9)
nokogiri (1.11.2) nokogiri (1.15.2)
mini_portile2 (~> 2.5.0) mini_portile2 (~> 2.8.2)
racc (~> 1.4) racc (~> 1.4)
nokogiri (1.11.2-x64-mingw32) nokogiri (1.15.2-x64-mingw32)
racc (~> 1.4) racc (~> 1.4)
notiffany (0.1.3) notiffany (0.1.3)
nenv (~> 0.1) nenv (~> 0.1)
shellany (~> 0.0) shellany (~> 0.0)
oj (3.11.2) oj (3.15.0)
orm_adapter (0.5.0) orm_adapter (0.5.0)
parallel (1.20.1) parallel (1.23.0)
parser (3.0.0.0) parser (3.2.2.3)
ast (~> 2.4.1) ast (~> 2.4.1)
pg (1.2.3) racc
pg (1.2.3-x64-mingw32) pg (1.5.3)
protobuf-cucumber (3.10.8) pg (1.5.3-x64-mingw32)
activesupport (>= 3.2) pry (0.14.2)
middleware
thor
thread_safe
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 (5.0.1)
racc (1.5.2) racc (1.7.1)
rack (2.2.3) rack (2.2.7)
rack-cors (1.1.1) rack-cors (2.0.1)
rack (>= 2.0.0) rack (>= 2.0.0)
rack-test (1.1.0) rack-test (2.1.0)
rack (>= 1.0, < 3) rack (>= 1.3)
rails (6.0.3.6) rails (6.1.7.3)
actioncable (= 6.0.3.6) actioncable (= 6.1.7.3)
actionmailbox (= 6.0.3.6) actionmailbox (= 6.1.7.3)
actionmailer (= 6.0.3.6) actionmailer (= 6.1.7.3)
actionpack (= 6.0.3.6) actionpack (= 6.1.7.3)
actiontext (= 6.0.3.6) actiontext (= 6.1.7.3)
actionview (= 6.0.3.6) actionview (= 6.1.7.3)
activejob (= 6.0.3.6) activejob (= 6.1.7.3)
activemodel (= 6.0.3.6) activemodel (= 6.1.7.3)
activerecord (= 6.0.3.6) activerecord (= 6.1.7.3)
activestorage (= 6.0.3.6) activestorage (= 6.1.7.3)
activesupport (= 6.0.3.6) activesupport (= 6.1.7.3)
bundler (>= 1.3.0) bundler (>= 1.15.0)
railties (= 6.0.3.6) railties (= 6.1.7.3)
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)
nokogiri (>= 1.6) nokogiri (>= 1.6)
rails-html-sanitizer (1.3.0) rails-html-sanitizer (1.6.0)
loofah (~> 2.3) loofah (~> 2.21)
railties (6.0.3.6) nokogiri (~> 1.14)
actionpack (= 6.0.3.6) railties (6.1.7.3)
activesupport (= 6.0.3.6) actionpack (= 6.1.7.3)
activesupport (= 6.1.7.3)
method_source method_source
rake (>= 0.8.7) rake (>= 12.2)
thor (>= 0.20.3, < 2.0) thor (~> 1.0)
rainbow (3.0.0) rainbow (3.1.1)
rake (13.0.3) rake (13.0.6)
rb-fsevent (0.10.4) rb-fsevent (0.11.2)
rb-inotify (0.10.1) rb-inotify (0.10.1)
ffi (~> 1.0) ffi (~> 1.0)
regexp_parser (2.0.3) regexp_parser (2.8.1)
responders (3.0.1) responders (3.1.0)
actionpack (>= 5.0) actionpack (>= 5.2)
railties (>= 5.0) railties (>= 5.2)
rest-client (2.1.0) rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0) http-accept (>= 1.7.0, < 2.0)
http-cookie (>= 1.0.2, < 2.0) http-cookie (>= 1.0.2, < 2.0)
...@@ -318,57 +328,52 @@ GEM ...@@ -318,57 +328,52 @@ GEM
http-cookie (>= 1.0.2, < 2.0) http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0) mime-types (>= 1.16, < 4.0)
netrc (~> 0.8) netrc (~> 0.8)
rexml (3.2.4) rexml (3.2.5)
rspec (3.9.0) rspec (3.12.0)
rspec-core (~> 3.9.0) rspec-core (~> 3.12.0)
rspec-expectations (~> 3.9.0) rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.9.0) rspec-mocks (~> 3.12.0)
rspec-core (3.9.3) rspec-core (3.12.2)
rspec-support (~> 3.9.3) rspec-support (~> 3.12.0)
rspec-expectations (3.9.4) rspec-expectations (3.12.3)
diff-lcs (>= 1.2.0, < 2.0) diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0) rspec-support (~> 3.12.0)
rspec-json_expectations (2.2.0) rspec-json_expectations (2.2.0)
rspec-mocks (3.9.1) rspec-mocks (3.12.5)
diff-lcs (>= 1.2.0, < 2.0) diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0) rspec-support (~> 3.12.0)
rspec-rails (3.9.1) rspec-rails (6.0.3)
actionpack (>= 3.0) actionpack (>= 6.1)
activesupport (>= 3.0) activesupport (>= 6.1)
railties (>= 3.0) railties (>= 6.1)
rspec-core (~> 3.9.0) rspec-core (~> 3.12)
rspec-expectations (~> 3.9.0) rspec-expectations (~> 3.12)
rspec-mocks (~> 3.9.0) rspec-mocks (~> 3.12)
rspec-support (~> 3.9.0) rspec-support (~> 3.12)
rspec-support (3.9.4) rspec-support (3.12.0)
rubocop (1.9.1) rubocop (1.52.1)
json (~> 2.3)
parallel (~> 1.10) parallel (~> 1.10)
parser (>= 3.0.0.0) parser (>= 3.2.2.3)
rainbow (>= 2.2.2, < 4.0) rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0) regexp_parser (>= 1.8, < 3.0)
rexml rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.2.0, < 2.0) rubocop-ast (>= 1.28.0, < 2.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0) unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.4.1) rubocop-ast (1.29.0)
parser (>= 2.7.1.5) parser (>= 3.2.1.0)
rubocop-rspec (2.2.0) rubocop-capybara (2.18.0)
rubocop (~> 1.0) rubocop (~> 1.41)
rubocop-ast (>= 1.1.0) rubocop-factory_bot (2.23.1)
ruby-progressbar (1.11.0) rubocop (~> 1.33)
sass (3.7.4) rubocop-rspec (2.22.0)
sass-listen (~> 4.0.0) rubocop (~> 1.33)
sass-listen (4.0.0) rubocop-capybara (~> 2.17)
rb-fsevent (~> 0.9, >= 0.9.4) rubocop-factory_bot (~> 2.22)
rb-inotify (~> 0.9, >= 0.9.7) ruby-progressbar (1.13.0)
sass-rails (5.1.0)
railties (>= 5.2.0)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
shellany (0.0.1) shellany (0.0.1)
simplecov (0.21.2) simplecov (0.22.0)
docile (~> 1.1) docile (~> 1.1)
simplecov-html (~> 0.11) simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1) simplecov_json_formatter (~> 0.1)
...@@ -377,84 +382,85 @@ GEM ...@@ -377,84 +382,85 @@ GEM
simplecov simplecov
terminal-table terminal-table
simplecov-html (0.12.3) simplecov-html (0.12.3)
simplecov_json_formatter (0.1.2) simplecov_json_formatter (0.1.4)
spring (2.1.1) spring (4.1.1)
spring-commands-rspec (1.0.4) spring-commands-rspec (1.0.4)
spring (>= 0.9.1) spring (>= 0.9.1)
sprockets (3.7.2) sprockets (4.2.0)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
rack (> 1, < 3) rack (>= 2.2.4, < 4)
sprockets-rails (3.2.2) sprockets-rails (3.4.2)
actionpack (>= 4.0) actionpack (>= 5.2)
activesupport (>= 4.0) activesupport (>= 5.2)
sprockets (>= 3.0.0) sprockets (>= 3.0.0)
sqlite3 (1.4.2) sqlite3 (1.6.3)
sshkit (1.21.2) mini_portile2 (~> 2.8.0)
sqlite3 (1.6.3-x64-mingw32)
sshkit (1.21.4)
net-scp (>= 1.1.2) net-scp (>= 1.1.2)
net-ssh (>= 2.8.0) net-ssh (>= 2.8.0)
sync (0.5.0) sync (0.5.0)
sys-uname (1.2.2) sys-uname (1.2.3)
ffi (~> 1.1) ffi (~> 1.1)
term-ansicolor (1.7.1) term-ansicolor (1.7.1)
tins (~> 1.0) tins (~> 1.0)
terminal-notifier (2.0.0) terminal-notifier (2.0.0)
terminal-notifier-guard (1.7.0) terminal-notifier-guard (1.7.0)
terminal-table (3.0.0) terminal-table (3.0.2)
unicode-display_width (~> 1.1, >= 1.1.1) unicode-display_width (>= 1.1.1, < 3)
thin (1.8.0) thin (1.8.2)
daemons (~> 1.0, >= 1.0.9) daemons (~> 1.0, >= 1.0.9)
eventmachine (~> 1.0, >= 1.0.4) eventmachine (~> 1.0, >= 1.0.4)
rack (>= 1, < 3) rack (>= 1, < 3)
thor (1.1.0) thor (1.2.2)
thread_safe (0.3.6) timeout (0.3.2)
tilt (2.0.10) tins (1.32.1)
tins (1.28.0)
sync sync
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.9) tzinfo (2.0.6)
thread_safe (~> 0.1) concurrent-ruby (~> 1.0)
tzinfo-data (1.2021.1) tzinfo-data (1.2023.3)
tzinfo (>= 1.0.0) tzinfo (>= 1.0.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)
unf_ext unf_ext
unf_ext (0.0.7.7) unf_ext (0.0.8.2)
unf_ext (0.0.7.7-x64-mingw32) unicode-display_width (2.4.2)
unicode-display_width (1.7.0) vcr (6.1.0)
vcr (6.0.0)
warden (1.2.9) warden (1.2.9)
rack (>= 2.0.9) rack (>= 2.0.9)
web-console (4.1.0) web-console (4.2.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)
railties (>= 6.0.0) railties (>= 6.0.0)
webmock (3.11.2) webmock (3.18.1)
addressable (>= 2.3.6) addressable (>= 2.8.0)
crack (>= 0.3.2) crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0) hashdiff (>= 0.4.0, < 2.0.0)
websocket-driver (0.7.3) webrick (1.8.1)
websocket-driver (0.7.5)
websocket-extensions (>= 0.1.0) websocket-extensions (>= 0.1.0)
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.2) zeitwerk (2.6.8)
PLATFORMS PLATFORMS
ruby ruby
x64-mingw32 x64-mingw32
DEPENDENCIES DEPENDENCIES
bcrypt (= 3.1.12) bcrypt
bootsnap bootsnap
byebug byebug
capistrano (~> 3.6) capistrano
capistrano-passenger capistrano-passenger
capistrano-rails (~> 1.2) capistrano-rails
capistrano-rbenv (~> 2.0) capistrano-rbenv
coveralls coveralls
cucumber-rails cucumber-rails
database_cleaner database_cleaner
...@@ -466,18 +472,17 @@ DEPENDENCIES ...@@ -466,18 +472,17 @@ DEPENDENCIES
guard-rspec guard-rspec
guard-rubocop guard-rubocop
httparty httparty
jbuilder (~> 2.0) jbuilder
jquery-rails jquery-rails
mini_magick mini_magick
oj oj
pg pg
rack-cors rack-cors
rails (~> 6.0.3.6) rails (~> 6.1)
rspec-json_expectations rspec-json_expectations
rspec-rails (~> 3.1) rspec-rails
rubocop rubocop
rubocop-rspec rubocop-rspec
sass-rails (~> 5.0)
simplecov simplecov
simplecov-console simplecov-console
spring spring
...@@ -488,10 +493,10 @@ DEPENDENCIES ...@@ -488,10 +493,10 @@ DEPENDENCIES
thin thin
turbolinks turbolinks
tzinfo-data tzinfo-data
uglifier (>= 1.3.0) uglifier
vcr vcr
web-console web-console
webmock webmock
BUNDLED WITH BUNDLED WITH
1.17.2 2.4.14
class ProxyController < ActionController::Base class ProxyController < ActionController::Base
skip_before_action :verify_authenticity_token #skip_before_action :verify_authenticity_token
# /app/id.json is DataApp#show # /app/id.json is DataApp#show
......
...@@ -8,7 +8,7 @@ class DbDataTypeValidator < ActiveModel::Validator ...@@ -8,7 +8,7 @@ class DbDataTypeValidator < ActiveModel::Validator
return if record.db_elements.count.zero? return if record.db_elements.count.zero?
# TODO: check for valid format strings (float32, uint8, etc) # TODO: check for valid format strings (float32, uint8, etc)
unless record.db_elements.count == record.column_count unless record.db_elements.count == record.column_count
record.errors[:base] << "must have #{record.column_count} elements for format #{record.data_type}" record.errors.add(:base, "must have #{record.column_count} elements for format #{record.data_type}")
end end
end end
end end
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
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"
#!/usr/bin/env ruby #!/usr/bin/env ruby
require_relative '../config/boot' require_relative "../config/boot"
require 'rake' require "rake"
Rake.application.run Rake.application.run
#!/usr/bin/env ruby #!/usr/bin/env ruby
require 'fileutils' require "fileutils"
# path to your application root. # path to your application root.
APP_ROOT = File.expand_path('..', __dir__) APP_ROOT = File.expand_path('..', __dir__)
...@@ -9,8 +9,8 @@ def system!(*args) ...@@ -9,8 +9,8 @@ def system!(*args)
end end
FileUtils.chdir APP_ROOT do FileUtils.chdir APP_ROOT do
# This script is a way to setup or update your development environment automatically. # This script is a way to set up or update your development environment automatically.
# This script is idempotent, so that you can run it at anytime and get an expectable outcome. # This script is idempotent, so that you can run it at any time and get an expectable outcome.
# Add necessary setup steps to this file. # Add necessary setup steps to this file.
puts '== Installing dependencies ==' puts '== Installing dependencies =='
......
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'spring' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)
require "rubygems"
require "bundler/setup"
load Gem.bin_path("spring", "spring")
# frozen_string_literal: true
# This file is used by Rack-based servers to start the application. # This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__) require_relative "config/environment"
run Rails.application run Rails.application
Rails.application.load_server
require_relative 'boot' require_relative "boot"
require "rails" require "rails"
# Pick the frameworks you want: # Pick the frameworks you want:
...@@ -8,7 +8,7 @@ require "active_record/railtie" ...@@ -8,7 +8,7 @@ require "active_record/railtie"
require "active_storage/engine" require "active_storage/engine"
require "action_controller/railtie" require "action_controller/railtie"
require "action_mailer/railtie" require "action_mailer/railtie"
# require "action_mailbox/engine" require "action_mailbox/engine"
# require "action_text/engine" # require "action_text/engine"
require "action_view/railtie" require "action_view/railtie"
# require "action_cable/engine" # require "action_cable/engine"
...@@ -26,9 +26,13 @@ module ControlPanel ...@@ -26,9 +26,13 @@ module ControlPanel
config.middleware.use Rack::Deflater config.middleware.use Rack::Deflater
# Settings in config/environments/* take precedence over those specified here. # Configuration for the application, engines, and railties goes here.
# Application configuration should go into files in config/initializers #
# -- all .rb files in that directory are automatically loaded. # These settings can be overridden in specific environments using the files
# in config/environments, which are processed later.
#
# config.time_zone = "Central Time (US & Canada)"
# config.eager_load_paths << Rails.root.join("extras")
# Only loads a smaller set of middleware suitable for API only apps. # Only loads a smaller set of middleware suitable for API only apps.
# Middleware like session, flash, cookies can be added back manually. # Middleware like session, flash, cookies can be added back manually.
......
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
require 'bundler/setup' # Set up gems listed in the Gemfile. require "bundler/setup" # Set up gems listed in the Gemfile.
require 'bootsnap/setup' # Speed up boot time by caching expensive operations. require "bootsnap/setup" # Speed up boot time by caching expensive operations.
# Load the Rails application. # Load the Rails application.
require_relative 'application' require_relative "application"
# Initialize the Rails application. # Initialize the Rails application.
Rails.application.initialize! Rails.application.initialize!
require "active_support/core_ext/integer/time"
Rails.application.configure do Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb. # Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on # In the development environment your application's code is reloaded any time
# every request. This slows down response time but is perfect for development # it changes. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes. # since you don't have to restart the web server when you make code changes.
config.cache_classes = false config.cache_classes = false
...@@ -15,8 +17,6 @@ Rails.application.configure do ...@@ -15,8 +17,6 @@ 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.cache_store = :memory_store config.cache_store = :memory_store
config.public_file_server.headers = { config.public_file_server.headers = {
'Cache-Control' => "public, max-age=#{2.days.to_i}" 'Cache-Control' => "public, max-age=#{2.days.to_i}"
...@@ -27,8 +27,8 @@ Rails.application.configure do ...@@ -27,8 +27,8 @@ Rails.application.configure do
config.cache_store = :null_store config.cache_store = :null_store
end end
# Store uploaded files on the local file system (see config/storage.yml for options) # Store uploaded files on the local file system (see config/storage.yml for options).
# config.active_storage.service = :local config.active_storage.service = :local
# Don't care if the mailer can't send. # Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false config.action_mailer.raise_delivery_errors = false
...@@ -42,6 +42,12 @@ Rails.application.configure do ...@@ -42,6 +42,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
...@@ -49,13 +55,19 @@ Rails.application.configure do ...@@ -49,13 +55,19 @@ Rails.application.configure do
config.active_record.verbose_query_logs = true config.active_record.verbose_query_logs = 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.middleware.insert_before 0, Rack::Cors do config.middleware.insert_before 0, Rack::Cors do
allow do allow do
origins '*' origins '*'
......
require "active_support/core_ext/integer/time"
Rails.application.configure do Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb. # Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests. # Code is not reloaded between requests.
config.cache_classes = true config.cache_classes = true
# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
# config.require_master_key = true
# Eager load code on boot. This eager loads most of Rails and # Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web servers # your application in memory, allowing both threaded web servers
# and those relying on copy on write to perform better. # and those relying on copy on write to perform better.
...@@ -16,39 +14,31 @@ Rails.application.configure do ...@@ -16,39 +14,31 @@ Rails.application.configure do
# Full error reports are disabled and caching is turned on. # Full error reports are disabled and caching is turned on.
config.consider_all_requests_local = false config.consider_all_requests_local = false
config.action_controller.perform_caching = true
# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
# config.require_master_key = true
# Disable serving static files from the `/public` folder by default since # Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this. # Apache or NGINX already handles this.
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
# config.assets.css_compressor = :sass
# TODO: add asset compilation to pipeline
config.assets.compile = true
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
# Enable serving of images, stylesheets, and JavaScripts from an asset server. # Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.action_controller.asset_host = 'http://assets.example.com' # config.asset_host = 'http://assets.example.com'
# Specifies the header that your server uses for sending files. # Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
# Mount Action Cable outside main process or domain # Store uploaded files on the local file system (see config/storage.yml for options).
# config.action_cable.mount_path = nil config.active_storage.service = :local
# config.action_cable.url = 'wss://example.com/cable'
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = false # config.force_ssl = true
# Use the lowest log level to ensure availability of diagnostic information # Include generic and useful information about system operation, but avoid logging too much
# when problems arise. # information to avoid inadvertent exposure of personally identifiable information (PII).
config.log_level = :warn 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 = [ :request_id ]
...@@ -56,9 +46,15 @@ Rails.application.configure do ...@@ -56,9 +46,15 @@ Rails.application.configure do
# Use a different cache store in production. # Use a different cache store in production.
# config.cache_store = :mem_cache_store # config.cache_store = :mem_cache_store
# Use a real queuing backend for Active Job (and separate queues per environment) # Use a real queuing backend for Active Job (and separate queues per environment).
# config.active_job.queue_adapter = :resque # config.active_job.queue_adapter = :resque
# config.active_job.queue_name_prefix = "control_panel_#{Rails.env}" # config.active_job.queue_name_prefix = "control_panel_production"
config.action_mailer.perform_caching = false
# Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
# config.action_mailer.raise_delivery_errors = false
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation cannot be found). # the I18n.default_locale when a translation cannot be found).
...@@ -67,11 +63,17 @@ Rails.application.configure do ...@@ -67,11 +63,17 @@ 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 = []
# Use default logging formatter so that PID and timestamp are not suppressed. # Use default logging formatter so that PID and timestamp are not suppressed.
config.log_formatter = ::Logger::Formatter.new config.log_formatter = ::Logger::Formatter.new
# Use a different logger for distributed setups. # Use a different logger for distributed setups.
# require 'syslog/logger' # require "syslog/logger"
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
if ENV["RAILS_LOG_TO_STDOUT"].present? if ENV["RAILS_LOG_TO_STDOUT"].present?
...@@ -96,4 +98,24 @@ Rails.application.configure do ...@@ -96,4 +98,24 @@ Rails.application.configure do
config.send_emails = false config.send_emails = false
# Inserts middleware to perform automatic connection switching.
# The `database_selector` hash is used to pass options to the DatabaseSelector
# middleware. The `delay` is used to determine how long to wait after a write
# to send a subsequent read to the primary.
#
# The `database_resolver` class is used by the middleware to determine which
# database is appropriate to use based on the time delay.
#
# The `database_resolver_context` class is used by the middleware to set
# timestamps for the last write to the primary. The resolver uses the context
# class timestamps to determine how long to wait before reading from the
# replica.
#
# By default Rails will store a last write timestamp in the session. The
# DatabaseSelector middleware is designed as such you can define your own
# strategy for connection switching and pass that into the middleware through
# these configuration options.
# config.active_record.database_selector = { delay: 2.seconds }
# config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
# config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
end end
require "active_support/core_ext/integer/time"
# The test environment is used exclusively to run your application's
# 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
# and recreated between test runs. Don't rely on the data there!
Rails.application.configure do Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb. # Settings specified here will take precedence over those in config/application.rb.
# The test environment is used exclusively to run your application's
# 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
# and recreated between test runs. Don't rely on the data there!
config.cache_classes = true config.cache_classes = true
# Do not eager load code on boot. This avoids loading your whole application # Do not eager load code on boot. This avoids loading your whole application
...@@ -28,6 +31,10 @@ Rails.application.configure do ...@@ -28,6 +31,10 @@ Rails.application.configure do
# Disable request forgery protection in test environment. # Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false config.action_controller.allow_forgery_protection = false
# Store uploaded files on the local file system in a temporary directory.
config.active_storage.service = :test
config.action_mailer.perform_caching = false config.action_mailer.perform_caching = false
# Tell Action Mailer not to deliver emails to the real world. # Tell Action Mailer not to deliver emails to the real world.
...@@ -38,16 +45,23 @@ Rails.application.configure do ...@@ -38,16 +45,23 @@ 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
# Raises error for missing translations # Raise exceptions for disallowed deprecations.
# config.action_view.raise_on_missing_translations = true config.active_support.disallowed_deprecation = :raise
# display custom label in page header # display custom label in page header
# #
config.node_name = "Test Environment" config.node_name = "Test Environment"
# enable password recovery and e-mail invitations # enable password recovery and e-mail invitations
# NOTE: configure smtp.rb with SMTP server details # NOTE: configure smtp.rb with SMTP server details
# #
config.send_emails = false config.send_emails = false
# Tell Active Support which deprecation messages to disallow.
config.active_support.disallowed_deprecation_warnings = []
# Raises error for missing translations.
# config.i18n.raise_on_missing_translations = true
# Annotate rendered view with file names.
# config.action_view.annotate_rendered_view_with_filenames = true
end end
# Be sure to restart your server when you modify this file.
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.0'
# Add additional assets to the asset load path.
# Rails.application.config.assets.paths << Emoji.images_path
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in the app/assets
# folder are already added.
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
# 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"]
# 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.
Rails.application.config.filter_parameters += [:password] Rails.application.config.filter_parameters += [:password]
Rails.application.config.filter_parameters << lambda do |key, value| Rails.application.config.filter_parameters << lambda do |key, value|
value.replace('[BASE64 STRING OMITTED]') if key == 'redux_json' || key == 'image' value.replace('[BASE64 STRING OMITTED]') if key == 'redux_json' || key == 'image'
end end
# Configure sensitive parameters which will be filtered from the log file.
Rails.application.config.filter_parameters += [
:passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
]
# Be sure to restart your server when you modify this file.
#
# This file contains migration options to ease your Rails 5.0 upgrade.
#
# Once upgraded flip defaults one by one to migrate to the new default.
#
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
# Enable per-form CSRF tokens. Previous versions had false.
Rails.application.config.action_controller.per_form_csrf_tokens = false
# Enable origin-checking CSRF mitigation. Previous versions had false.
Rails.application.config.action_controller.forgery_protection_origin_check = false
# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
# Previous versions had false.
ActiveSupport.to_time_preserves_timezone = false
# Require `belongs_to` associations by default. Previous versions had false.
Rails.application.config.active_record.belongs_to_required_by_default = false
#Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
# Be sure to restart your server when you modify this file.
#
# This file contains migration options to ease your Rails 5.2 upgrade.
#
# Once upgraded flip defaults one by one to migrate to the new default.
#
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
# Make Active Record use stable #cache_key alongside new #cache_version method.
# This is needed for recyclable cache keys.
Rails.application.config.active_record.cache_versioning = true
# Use AES-256-GCM authenticated encryption for encrypted cookies.
# Also, embed cookie expiry in signed or encrypted cookies for increased security.
#
# This option is not backwards compatible with earlier Rails versions.
# It's best enabled when your entire app is migrated and stable on 5.2.
#
# Existing cookies will be converted on read then written with the new scheme.
Rails.application.config.action_dispatch.use_authenticated_cookie_encryption = true
# Use AES-256-GCM authenticated encryption as default cipher for encrypting messages
# instead of AES-256-CBC, when use_authenticated_message_encryption is set to true.
Rails.application.config.active_support.use_authenticated_message_encryption = true
# Add default protection from forgery to ActionController::Base instead of in
# ApplicationController.
Rails.application.config.action_controller.default_protect_from_forgery = true
# Store boolean values are in sqlite3 databases as 1 and 0 instead of 't' and
# 'f' after migrating old data.
#Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
# Use SHA-1 instead of MD5 to generate non-sensitive digests, such as the ETag header.
Rails.application.config.active_support.use_sha1_digests = true
# Make `form_with` generate id attributes for any generated HTML tags.
Rails.application.config.action_view.form_with_generates_ids = true
# Be sure to restart your server when you modify this file.
#
# This file contains migration options to ease your Rails 6.0 upgrade.
#
# Once upgraded flip defaults one by one to migrate to the new default.
#
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
# Don't force requests from old versions of IE to be UTF-8 encoded.
Rails.application.config.action_view.default_enforce_utf8 = false
# Embed purpose and expiry metadata inside signed and encrypted
# cookies for increased security.
#
# This option is not backwards compatible with earlier Rails versions.
# It's best enabled when your entire app is migrated and stable on 6.0.
Rails.application.config.action_dispatch.use_cookies_with_metadata = true
# Change the return value of `ActionDispatch::Response#content_type` to Content-Type header without modification.
Rails.application.config.action_dispatch.return_only_media_type_on_content_type = false
# Return false instead of self when enqueuing is aborted from a callback.
Rails.application.config.active_job.return_false_on_aborted_enqueue = true
# Send Active Storage analysis and purge jobs to dedicated queues.
Rails.application.config.active_storage.queues.analysis = :active_storage_analysis
Rails.application.config.active_storage.queues.purge = :active_storage_purge
# When assigning to a collection of attachments declared via `has_many_attached`, replace existing
# attachments instead of appending. Use #attach to add new attachments without replacing existing ones.
Rails.application.config.active_storage.replace_on_assign_to_many = true
# Use ActionMailer::MailDeliveryJob for sending parameterized and normal mail.
#
# The default delivery jobs (ActionMailer::Parameterized::DeliveryJob, ActionMailer::DeliveryJob),
# will be removed in Rails 6.1. This setting is not backwards compatible with earlier Rails versions.
# If you send mail in the background, job workers need to have a copy of
# MailDeliveryJob to ensure all delivery jobs are processed properly.
# Make sure your entire app is migrated and stable on 6.0 before using this setting.
Rails.application.config.action_mailer.delivery_job = "ActionMailer::MailDeliveryJob"
# Enable the same cache key to be reused when the object being cached of type
# `ActiveRecord::Relation` changes by moving the volatile information (max updated at and count)
# of the relation's cache key into the cache version to support recycling cache key.
Rails.application.config.active_record.collection_cache_versioning = true
# Be sure to restart your server when you modify this file.
#
# This file contains migration options to ease your Rails 6.1 upgrade.
#
# Once upgraded flip defaults one by one to migrate to the new default.
#
# Read the Guide for Upgrading Ruby on Rails for more info on each option.
# Support for inversing belongs_to -> has_many Active Record associations.
Rails.application.config.active_record.has_many_inversing = true
# Track Active Storage variants in the database.
Rails.application.config.active_storage.track_variants = true
# Apply random variation to the delay when retrying failed jobs.
Rails.application.config.active_job.retry_jitter = 0.15
# Stop executing `after_enqueue`/`after_perform` callbacks if
# `before_enqueue`/`before_perform` respectively halts with `throw :abort`.
Rails.application.config.active_job.skip_after_callbacks_if_terminated = true
# Specify cookies SameSite protection level: either :none, :lax, or :strict.
#
# This change is not backwards compatible with earlier Rails versions.
# It's best enabled when your entire app is migrated and stable on 6.1.
Rails.application.config.action_dispatch.cookies_same_site_protection = :lax
# Generate CSRF tokens that are encoded in URL-safe Base64.
#
# This change is not backwards compatible with earlier Rails versions.
# It's best enabled when your entire app is migrated and stable on 6.1.
Rails.application.config.action_controller.urlsafe_csrf_tokens = true
# Specify whether `ActiveSupport::TimeZone.utc_to_local` returns a time with an
# UTC offset or a UTC time.
ActiveSupport.utc_to_local_returns_utc_offset_times = true
# Change the default HTTP status code to `308` when redirecting non-GET/HEAD
# requests to HTTPS in `ActionDispatch::SSL` middleware.
Rails.application.config.action_dispatch.ssl_default_redirect_status = 308
# Use new connection handling API. For most applications this won't have any
# effect. For applications using multiple databases, this new API provides
# support for granular connection swapping.
Rails.application.config.active_record.legacy_connection_handling = false
# Make `form_with` generate non-remote forms by default.
Rails.application.config.action_view.form_with_generates_remote_forms = false
# Set the default queue name for the analysis job to the queue adapter default.
Rails.application.config.active_storage.queues.analysis = nil
# Set the default queue name for the purge job to the queue adapter default.
Rails.application.config.active_storage.queues.purge = nil
# Set the default queue name for the incineration job to the queue adapter default.
Rails.application.config.action_mailbox.queues.incineration = nil
# Set the default queue name for the routing job to the queue adapter default.
Rails.application.config.action_mailbox.queues.routing = nil
# Set the default queue name for the mail deliver job to the queue adapter default.
Rails.application.config.action_mailer.deliver_later_queue_name = nil
# Generate a `Link` header that gives a hint to modern browsers about
# preloading assets when using `javascript_include_tag` and `stylesheet_link_tag`.
Rails.application.config.action_view.preload_links_header = true
# This migration comes from active_storage (originally 20190112182829)
class AddServiceNameToActiveStorageBlobs < ActiveRecord::Migration[6.0]
def up
return unless table_exists?(:active_storage_blobs)
unless column_exists?(:active_storage_blobs, :service_name)
add_column :active_storage_blobs, :service_name, :string
if configured_service = ActiveStorage::Blob.service.name
ActiveStorage::Blob.unscoped.update_all(service_name: configured_service)
end
change_column :active_storage_blobs, :service_name, :string, null: false
end
end
def down
return unless table_exists?(:active_storage_blobs)
remove_column :active_storage_blobs, :service_name
end
end
# This migration comes from active_storage (originally 20191206030411)
class CreateActiveStorageVariantRecords < ActiveRecord::Migration[6.0]
def change
return unless table_exists?(:active_storage_blobs)
# Use Active Record's configured type for primary key
create_table :active_storage_variant_records, id: primary_key_type, if_not_exists: true do |t|
t.belongs_to :blob, null: false, index: false, type: blobs_primary_key_type
t.string :variation_digest, null: false
t.index %i[ blob_id variation_digest ], name: "index_active_storage_variant_records_uniqueness", unique: true
t.foreign_key :active_storage_blobs, column: :blob_id
end
end
private
def primary_key_type
config = Rails.configuration.generators
config.options[config.orm][:primary_key_type] || :primary_key
end
def blobs_primary_key_type
pkey_name = connection.primary_key(:active_storage_blobs)
pkey_column = connection.columns(:active_storage_blobs).find { |c| c.name == pkey_name }
pkey_column.bigint? ? :bigint : pkey_column.type
end
end
...@@ -2,15 +2,15 @@ ...@@ -2,15 +2,15 @@
# of editing this file, please use the migrations feature of Active Record to # of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition. # incrementally modify your database, and then regenerate this schema definition.
# #
# This file is the source Rails uses to define your schema when running `rails # This file is the source Rails uses to define your schema when running `bin/rails
# db:schema:load`. When creating a new database, `rails db:schema:load` tends to # db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
# be faster and is potentially less error prone than running all of your # be faster and is potentially less error prone than running all of your
# migrations from scratch. Old migrations may fail to apply correctly if those # migrations from scratch. Old migrations may fail to apply correctly if those
# migrations use external dependencies or application code. # migrations use external dependencies or application code.
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2022_05_05_173955) do ActiveRecord::Schema.define(version: 2023_06_19_132452) do
create_table "data_apps", force: :cascade do |t| create_table "data_apps", force: :cascade do |t|
t.string "name" t.string "name"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment