1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-27 10:38:50 +01:00

38 Commits

Author SHA1 Message Date
12a633bc54 Merge pull request #197 from projekteuler/dependabot/bundler/webmock-3.12.1
Bump webmock from 3.12.0 to 3.12.1
2021-03-21 13:50:47 +01:00
dependabot-preview[bot]
5780c64643 Bump webmock from 3.12.0 to 3.12.1
Bumps [webmock](https://github.com/bblimke/webmock) from 3.12.0 to 3.12.1.
- [Release notes](https://github.com/bblimke/webmock/releases)
- [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bblimke/webmock/compare/v3.12.0...v3.12.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-08 06:06:04 +00:00
a6d74cd0da Merge pull request #191 from projekteuler/dependabot/bundler/rails-6.1.3
Bump rails from 6.1.2 to 6.1.3
2021-03-01 11:24:59 +01:00
e7d739c212 Merge pull request #195 from projekteuler/dependabot/bundler/sdoc-2.0.4
Bump sdoc from 2.0.3 to 2.0.4
2021-03-01 11:23:43 +01:00
2f734d851e Merge pull request #196 from projekteuler/dependabot/bundler/webmock-3.12.0
Bump webmock from 3.11.2 to 3.12.0
2021-03-01 11:23:14 +01:00
dependabot-preview[bot]
49fc0ea601 Bump webmock from 3.11.2 to 3.12.0
Bumps [webmock](https://github.com/bblimke/webmock) from 3.11.2 to 3.12.0.
- [Release notes](https://github.com/bblimke/webmock/releases)
- [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bblimke/webmock/compare/v3.11.2...v3.12.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-01 07:40:40 +00:00
dependabot-preview[bot]
a0a010e53b Bump sdoc from 2.0.3 to 2.0.4
Bumps [sdoc](https://github.com/zzak/sdoc) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/zzak/sdoc/releases)
- [Changelog](https://github.com/zzak/sdoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zzak/sdoc/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-26 06:33:49 +00:00
8f72d768f1 Merge pull request #193 from projekteuler/support-underline
Support underline in translations
2021-02-22 15:29:29 +01:00
2e2e419938 Support underline in translations 2021-02-22 15:24:28 +01:00
dependabot-preview[bot]
62616d1865 Bump rails from 6.1.2 to 6.1.3
Bumps [rails](https://github.com/rails/rails) from 6.1.2 to 6.1.3.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v6.1.2...v6.1.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-18 05:50:50 +00:00
686e8d9f46 Merge pull request #183 from projekteuler/dependabot/bundler/jbuilder-2.11.2
Bump jbuilder from 2.10.1 to 2.11.2
2021-02-10 10:47:32 +01:00
dependabot-preview[bot]
067a7ba907 Bump jbuilder from 2.10.1 to 2.11.2
Bumps [jbuilder](https://github.com/rails/jbuilder) from 2.10.1 to 2.11.2.
- [Release notes](https://github.com/rails/jbuilder/releases)
- [Changelog](https://github.com/rails/jbuilder/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rails/jbuilder/compare/v2.10.1...v2.11.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-10 09:41:23 +00:00
a18efbf70c Merge pull request #188 from projekteuler/dependabot/bundler/bootsnap-1.7.2
Bump bootsnap from 1.7.1 to 1.7.2
2021-02-10 10:40:34 +01:00
feb7a3955d Merge pull request #189 from projekteuler/dependabot/bundler/rails-6.1.2
Bump rails from 6.1.1 to 6.1.2
2021-02-10 10:39:57 +01:00
dependabot-preview[bot]
f313957284 Bump rails from 6.1.1 to 6.1.2
Bumps [rails](https://github.com/rails/rails) from 6.1.1 to 6.1.2.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v6.1.1...v6.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-10 05:53:12 +00:00
dependabot-preview[bot]
e59e9da896 Bump bootsnap from 1.7.1 to 1.7.2
Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/Shopify/bootsnap/releases)
- [Changelog](https://github.com/Shopify/bootsnap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Shopify/bootsnap/compare/v1.7.1...v1.7.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-09 05:49:37 +00:00
2b659a62ca Merge pull request #187 from projekteuler/dependabot/bundler/bootsnap-1.7.1
Bump bootsnap from 1.7.0 to 1.7.1
2021-02-07 11:19:12 +01:00
dependabot-preview[bot]
923d4ce9f6 Bump bootsnap from 1.7.0 to 1.7.1
Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/Shopify/bootsnap/releases)
- [Changelog](https://github.com/Shopify/bootsnap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Shopify/bootsnap/compare/v1.7.0...v1.7.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-05 05:50:03 +00:00
6a7094667e Merge pull request #184 from projekteuler/dependabot/bundler/webmock-3.11.2
Bump webmock from 3.11.1 to 3.11.2
2021-02-02 10:18:15 +01:00
48a6a31cd1 Merge pull request #185 from projekteuler/dependabot/bundler/bootsnap-1.7.0
Bump bootsnap from 1.5.1 to 1.7.0
2021-02-02 10:17:32 +01:00
dependabot-preview[bot]
46d14c843e Bump bootsnap from 1.5.1 to 1.7.0
Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.5.1 to 1.7.0.
- [Release notes](https://github.com/Shopify/bootsnap/releases)
- [Changelog](https://github.com/Shopify/bootsnap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Shopify/bootsnap/compare/v1.5.1...v1.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-02 05:50:55 +00:00
dependabot-preview[bot]
4b04234c71 Bump webmock from 3.11.1 to 3.11.2
Bumps [webmock](https://github.com/bblimke/webmock) from 3.11.1 to 3.11.2.
- [Release notes](https://github.com/bblimke/webmock/releases)
- [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bblimke/webmock/compare/v3.11.1...v3.11.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-01 06:14:53 +00:00
54c4b24880 Merge pull request #178 from projekteuler/dependabot/bundler/listen-3.4.1
Bump listen from 3.4.0 to 3.4.1
2021-01-15 11:27:16 +01:00
dependabot-preview[bot]
9316b89430 Bump listen from 3.4.0 to 3.4.1
Bumps [listen](https://github.com/guard/listen) from 3.4.0 to 3.4.1.
- [Release notes](https://github.com/guard/listen/releases)
- [Commits](https://github.com/guard/listen/compare/v3.4.0...v3.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-15 05:57:12 +00:00
f26ed021eb Merge pull request #177 from projekteuler/dependabot/bundler/webmock-3.11.1
Bump webmock from 3.11.0 to 3.11.1
2021-01-14 08:26:42 +01:00
dependabot-preview[bot]
e97cf8eafa Bump webmock from 3.11.0 to 3.11.1
Bumps [webmock](https://github.com/bblimke/webmock) from 3.11.0 to 3.11.1.
- [Release notes](https://github.com/bblimke/webmock/releases)
- [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bblimke/webmock/compare/v3.11.0...v3.11.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-14 07:18:14 +00:00
bb6a68417a Merge pull request #176 from projekteuler/dependabot/bundler/listen-3.4.0
Bump listen from 3.1.5 to 3.4.0
2021-01-14 08:16:54 +01:00
dependabot-preview[bot]
c7dbaea090 Bump listen from 3.1.5 to 3.4.0
Bumps [listen](https://github.com/guard/listen) from 3.1.5 to 3.4.0.
- [Release notes](https://github.com/guard/listen/releases)
- [Commits](https://github.com/guard/listen/compare/v3.1.5...v3.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-14 05:59:21 +00:00
7c95126a96 Merge pull request #174 from projekteuler/dependabot/bundler/rails-6.1.1
Bump rails from 6.0.3.4 to 6.1.1
2021-01-13 21:45:30 +01:00
cb3c05b9a6 Update files for Rails 6.1 2021-01-13 21:13:14 +01:00
dependabot-preview[bot]
047515d288 Bump rails from 6.0.3.4 to 6.1.1
Bumps [rails](https://github.com/rails/rails) from 6.0.3.4 to 6.1.1.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v6.0.3.4...v6.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-08 06:10:21 +00:00
de47c81f5c Merge pull request #171 from projekteuler/dependabot/bundler/webmock-3.11.0
Bump webmock from 3.10.0 to 3.11.0
2021-01-07 10:27:45 +01:00
2cda24dcdb Merge pull request #170 from projekteuler/dependabot/bundler/sdoc-2.0.3
Bump sdoc from 2.0.2 to 2.0.3
2021-01-07 10:27:18 +01:00
7db0dfe75c Merge pull request #173 from projekteuler/dependabot/bundler/nokogiri-1.11.1
[Security] Bump nokogiri from 1.10.10 to 1.11.1
2021-01-07 10:26:49 +01:00
dependabot-preview[bot]
555e11e7b7 [Security] Bump nokogiri from 1.10.10 to 1.11.1
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.10.10 to 1.11.1. **This update includes security fixes.**
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.10.10...v1.11.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-06 06:12:46 +00:00
dependabot-preview[bot]
94c4ec9657 Bump webmock from 3.10.0 to 3.11.0
Bumps [webmock](https://github.com/bblimke/webmock) from 3.10.0 to 3.11.0.
- [Release notes](https://github.com/bblimke/webmock/releases)
- [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bblimke/webmock/compare/v3.10.0...v3.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-21 06:12:20 +00:00
dependabot-preview[bot]
a17827e1ec Bump sdoc from 2.0.2 to 2.0.3
Bumps [sdoc](https://github.com/zzak/sdoc) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/zzak/sdoc/releases)
- [Changelog](https://github.com/zzak/sdoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zzak/sdoc/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-14 06:22:27 +00:00
2f8dd8d489 Merge pull request #168 from projekteuler/use-github-actions
Use Github Actions for tests
2020-12-08 12:21:55 +01:00
18 changed files with 198 additions and 125 deletions

View File

@@ -2,7 +2,7 @@ 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.4' gem 'rails', '6.1.3'
# Use sqlite3 as the database for Active Record # Use sqlite3 as the database for Active Record
gem 'sqlite3', '~> 1.4.1' gem 'sqlite3', '~> 1.4.1'
@@ -30,11 +30,12 @@ gem 'jquery-rails', '~> 4.4.0'
# 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', '~> 5.2.1' gem 'turbolinks', '~> 5.2.1'
# 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.10.1' gem 'jbuilder', '~> 2.11.2'
# bundle exec rake doc:rails generates the API under doc/api. # bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 2.0.2', group: :doc gem 'sdoc', '~> 2.0.4', group: :doc
gem 'web-console', '~> 4.1.0', group: :development gem 'web-console', '~> 4.1.0', group: :development
gem 'listen', '~> 3.4.1', group: :development
# Use Codacy for coverage # Use Codacy for coverage
gem 'codacy-coverage', :require => false gem 'codacy-coverage', :require => false

View File

@@ -1,68 +1,72 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
actioncable (6.0.3.4) actioncable (6.1.3)
actionpack (= 6.0.3.4) actionpack (= 6.1.3)
activesupport (= 6.1.3)
nio4r (~> 2.0) nio4r (~> 2.0)
websocket-driver (>= 0.6.1) websocket-driver (>= 0.6.1)
actionmailbox (6.0.3.4) actionmailbox (6.1.3)
actionpack (= 6.0.3.4) actionpack (= 6.1.3)
activejob (= 6.0.3.4) activejob (= 6.1.3)
activerecord (= 6.0.3.4) activerecord (= 6.1.3)
activestorage (= 6.0.3.4) activestorage (= 6.1.3)
activesupport (= 6.0.3.4) activesupport (= 6.1.3)
mail (>= 2.7.1) mail (>= 2.7.1)
actionmailer (6.0.3.4) actionmailer (6.1.3)
actionpack (= 6.0.3.4) actionpack (= 6.1.3)
actionview (= 6.0.3.4) actionview (= 6.1.3)
activejob (= 6.0.3.4) activejob (= 6.1.3)
activesupport (= 6.1.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.4) actionpack (6.1.3)
actionview (= 6.0.3.4) actionview (= 6.1.3)
activesupport (= 6.0.3.4) activesupport (= 6.1.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.4) actiontext (6.1.3)
actionpack (= 6.0.3.4) actionpack (= 6.1.3)
activerecord (= 6.0.3.4) activerecord (= 6.1.3)
activestorage (= 6.0.3.4) activestorage (= 6.1.3)
activesupport (= 6.0.3.4) activesupport (= 6.1.3)
nokogiri (>= 1.8.5) nokogiri (>= 1.8.5)
actionview (6.0.3.4) actionview (6.1.3)
activesupport (= 6.0.3.4) activesupport (= 6.1.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.4) activejob (6.1.3)
activesupport (= 6.0.3.4) activesupport (= 6.1.3)
globalid (>= 0.3.6) globalid (>= 0.3.6)
activemodel (6.0.3.4) activemodel (6.1.3)
activesupport (= 6.0.3.4) activesupport (= 6.1.3)
activerecord (6.0.3.4) activerecord (6.1.3)
activemodel (= 6.0.3.4) activemodel (= 6.1.3)
activesupport (= 6.0.3.4) activesupport (= 6.1.3)
activestorage (6.0.3.4) activestorage (6.1.3)
actionpack (= 6.0.3.4) actionpack (= 6.1.3)
activejob (= 6.0.3.4) activejob (= 6.1.3)
activerecord (= 6.0.3.4) activerecord (= 6.1.3)
activesupport (= 6.1.3)
marcel (~> 0.3.1) marcel (~> 0.3.1)
activesupport (6.0.3.4) mimemagic (~> 0.3.2)
activesupport (6.1.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.7.0)
public_suffix (>= 2.0.2, < 5.0) public_suffix (>= 2.0.2, < 5.0)
autoprefixer-rails (10.0.2.0) autoprefixer-rails (10.0.2.0)
execjs execjs
bcrypt (3.1.16) bcrypt (3.1.16)
bindex (0.8.1) bindex (0.8.1)
bootsnap (1.5.1) bootsnap (1.7.2)
msgpack (~> 1.0) msgpack (~> 1.0)
bootstrap (4.5.3) bootstrap (4.5.3)
autoprefixer-rails (>= 9.1.0) autoprefixer-rails (>= 9.1.0)
@@ -81,8 +85,9 @@ GEM
coffee-script-source coffee-script-source
execjs execjs
coffee-script-source (1.12.2) coffee-script-source (1.12.2)
concurrent-ruby (1.1.7) concurrent-ruby (1.1.8)
crack (0.4.4) crack (0.4.5)
rexml
crass (1.0.6) crass (1.0.6)
devise (4.7.3) devise (4.7.3)
bcrypt (~> 3.0) bcrypt (~> 3.0)
@@ -93,27 +98,30 @@ GEM
diff-lcs (1.4.4) diff-lcs (1.4.4)
diffy (3.4.0) diffy (3.4.0)
docile (1.3.2) docile (1.3.2)
erubi (1.9.0) erubi (1.10.0)
execjs (2.7.0) execjs (2.7.0)
faraday (1.0.0) faraday (1.0.0)
multipart-post (>= 1.2, < 3) multipart-post (>= 1.2, < 3)
ffi (1.13.1) ffi (1.14.2)
font-awesome-sass (5.15.1) font-awesome-sass (5.15.1)
sassc (>= 1.11) sassc (>= 1.11)
globalid (0.4.2) globalid (0.4.2)
activesupport (>= 4.2.0) activesupport (>= 4.2.0)
hashdiff (1.0.1) hashdiff (1.0.1)
hashie (4.1.0) hashie (4.1.0)
i18n (1.8.5) i18n (1.8.9)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
jbuilder (2.10.1) jbuilder (2.11.2)
activesupport (>= 5.0.0) activesupport (>= 5.0.0)
jquery-rails (4.4.0) jquery-rails (4.4.0)
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)
jwt (2.2.1) jwt (2.2.1)
loofah (2.7.0) listen (3.4.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
loofah (2.9.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)
@@ -123,16 +131,17 @@ GEM
method_source (1.0.0) method_source (1.0.0)
mimemagic (0.3.5) mimemagic (0.3.5)
mini_mime (1.0.2) mini_mime (1.0.2)
mini_portile2 (2.4.0) mini_portile2 (2.5.0)
minitest (5.14.2) minitest (5.14.3)
msgpack (1.3.3) msgpack (1.4.2)
multi_json (1.14.1) multi_json (1.14.1)
multi_xml (0.6.0) multi_xml (0.6.0)
multipart-post (2.1.1) multipart-post (2.1.1)
mysql2 (0.5.3) mysql2 (0.5.3)
nio4r (2.5.4) nio4r (2.5.5)
nokogiri (1.10.10) nokogiri (1.11.1)
mini_portile2 (~> 2.4.0) mini_portile2 (~> 2.5.0)
racc (~> 1.4)
oauth2 (1.4.3) oauth2 (1.4.3)
faraday (>= 0.8, < 2.0) faraday (>= 0.8, < 2.0)
jwt (>= 1.0, < 3.0) jwt (>= 1.0, < 3.0)
@@ -151,23 +160,24 @@ GEM
orm_adapter (0.5.0) orm_adapter (0.5.0)
popper_js (1.16.0) popper_js (1.16.0)
public_suffix (4.0.6) public_suffix (4.0.6)
racc (1.5.2)
rack (2.2.3) rack (2.2.3)
rack-test (1.1.0) rack-test (1.1.0)
rack (>= 1.0, < 3) rack (>= 1.0, < 3)
rails (6.0.3.4) rails (6.1.3)
actioncable (= 6.0.3.4) actioncable (= 6.1.3)
actionmailbox (= 6.0.3.4) actionmailbox (= 6.1.3)
actionmailer (= 6.0.3.4) actionmailer (= 6.1.3)
actionpack (= 6.0.3.4) actionpack (= 6.1.3)
actiontext (= 6.0.3.4) actiontext (= 6.1.3)
actionview (= 6.0.3.4) actionview (= 6.1.3)
activejob (= 6.0.3.4) activejob (= 6.1.3)
activemodel (= 6.0.3.4) activemodel (= 6.1.3)
activerecord (= 6.0.3.4) activerecord (= 6.1.3)
activestorage (= 6.0.3.4) activestorage (= 6.1.3)
activesupport (= 6.0.3.4) activesupport (= 6.1.3)
bundler (>= 1.3.0) bundler (>= 1.15.0)
railties (= 6.0.3.4) railties (= 6.1.3)
sprockets-rails (>= 2.0.0) sprockets-rails (>= 2.0.0)
rails-controller-testing (1.0.5) rails-controller-testing (1.0.5)
actionpack (>= 5.0.1.rc1) actionpack (>= 5.0.1.rc1)
@@ -181,17 +191,21 @@ GEM
rails-i18n (6.0.0) rails-i18n (6.0.0)
i18n (>= 0.7, < 2) i18n (>= 0.7, < 2)
railties (>= 6.0.0, < 7) railties (>= 6.0.0, < 7)
railties (6.0.3.4) railties (6.1.3)
actionpack (= 6.0.3.4) actionpack (= 6.1.3)
activesupport (= 6.0.3.4) activesupport (= 6.1.3)
method_source method_source
rake (>= 0.8.7) rake (>= 0.8.7)
thor (>= 0.20.3, < 2.0) thor (~> 1.0)
rake (13.0.1) rake (13.0.3)
rdoc (6.2.1) rb-fsevent (0.10.4)
rb-inotify (0.10.1)
ffi (~> 1.0)
rdoc (6.3.0)
responders (3.0.1) responders (3.0.1)
actionpack (>= 5.0) actionpack (>= 5.0)
railties (>= 5.0) railties (>= 5.0)
rexml (3.2.4)
sassc (2.4.0) sassc (2.4.0)
ffi (~> 1.9) ffi (~> 1.9)
sassc-rails (2.1.2) sassc-rails (2.1.2)
@@ -200,7 +214,7 @@ GEM
sprockets (> 3.0) sprockets (> 3.0)
sprockets-rails sprockets-rails
tilt tilt
sdoc (2.0.2) sdoc (2.0.4)
rdoc (>= 5.0) rdoc (>= 5.0)
simplecov (0.18.1) simplecov (0.18.1)
docile (~> 1.1) docile (~> 1.1)
@@ -214,14 +228,13 @@ GEM
activesupport (>= 4.0) activesupport (>= 4.0)
sprockets (>= 3.0.0) sprockets (>= 3.0.0)
sqlite3 (1.4.2) sqlite3 (1.4.2)
thor (1.0.1) thor (1.1.0)
thread_safe (0.3.6)
tilt (2.0.10) tilt (2.0.10)
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)
warden (1.2.9) warden (1.2.9)
@@ -231,7 +244,7 @@ GEM
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.10.0) webmock (3.12.1)
addressable (>= 2.3.6) addressable (>= 2.3.6)
crack (>= 0.3.2) crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0) hashdiff (>= 0.4.0, < 2.0.0)
@@ -241,7 +254,7 @@ GEM
will_paginate (3.3.0) will_paginate (3.3.0)
will_paginate-bootstrap4 (0.2.2) will_paginate-bootstrap4 (0.2.2)
will_paginate (~> 3.0, >= 3.0.0) will_paginate (~> 3.0, >= 3.0.0)
zeitwerk (2.4.1) zeitwerk (2.4.2)
PLATFORMS PLATFORMS
ruby ruby
@@ -256,16 +269,17 @@ DEPENDENCIES
diff-lcs diff-lcs
diffy diffy
font-awesome-sass (~> 5.15.1) font-awesome-sass (~> 5.15.1)
jbuilder (~> 2.10.1) jbuilder (~> 2.11.2)
jquery-rails (~> 4.4.0) jquery-rails (~> 4.4.0)
listen (~> 3.4.1)
mysql2 (~> 0.5.2) mysql2 (~> 0.5.2)
omniauth omniauth
omniauth-github omniauth-github
rails (= 6.0.3.4) rails (= 6.1.3)
rails-controller-testing rails-controller-testing
rails-i18n (~> 6.0.0) rails-i18n (~> 6.0.0)
sassc-rails (~> 2.1.2) sassc-rails (~> 2.1.2)
sdoc (~> 2.0.2) sdoc (~> 2.0.4)
sqlite3 (~> 1.4.1) sqlite3 (~> 1.4.1)
turbolinks (~> 5.2.1) turbolinks (~> 5.2.1)
tzinfo-data tzinfo-data

View File

@@ -3,7 +3,7 @@ class TranslationContentScrubber < Rails::Html::PermitScrubber
super super
self.tags = %w( strong em b i p code pre tt samp kbd var sub self.tags = %w( strong em b i p code pre tt samp kbd var sub
sup dfn cite big small address hr br div span h1 h2 h3 h4 h5 h6 ul ol li dl dt dd abbr sup dfn cite big small address hr br div span h1 h2 h3 h4 h5 h6 ul ol li dl dt dd abbr
acronym a img blockquote del ins table th tr td thead tbody tfoot ) acronym a img blockquote del ins table th tr td thead tbody tfoot u )
self.attributes = %w( href src width height alt cite datetime title class name xml:lang abbr style self.attributes = %w( href src width height alt cite datetime title class name xml:lang abbr style
align border cellpadding cellspacing colspan ) align border cellpadding cellspacing colspan )
end end

View File

@@ -1,4 +1,4 @@
#!/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"

View File

@@ -1,4 +1,4 @@
#!/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

View File

@@ -1,5 +1,5 @@
#!/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)
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 =='
@@ -18,7 +18,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')

View File

@@ -1,9 +1,15 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
APP_ROOT = File.expand_path('..', __dir__) APP_ROOT = File.expand_path('..', __dir__)
Dir.chdir(APP_ROOT) do Dir.chdir(APP_ROOT) do
begin yarn = ENV["PATH"].split(File::PATH_SEPARATOR).
exec "yarnpkg", *ARGV select { |dir| File.expand_path(dir) != __dir__ }.
rescue Errno::ENOENT product(["yarn", "yarn.exe"]).
map { |dir, file| File.expand_path(file, dir) }.
find { |file| File.executable?(file) }
if yarn
exec 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

View File

@@ -1,4 +1,6 @@
# 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

View File

@@ -1,6 +1,6 @@
require_relative 'boot' require_relative "boot"
require 'rails/all' require "rails/all"
# Require the gems listed in Gemfile, including any gems # Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production. # you've limited to :test, :development, or :production.
@@ -9,12 +9,12 @@ Bundler.require(*Rails.groups)
module Projekteuler module Projekteuler
class Application < Rails::Application class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version. # Initialize configuration defaults for originally generated Rails version.
config.load_defaults 6.0 config.load_defaults 6.1
# Settings in config/environments/* take precedence over those specified here. # Configuration for the application, engines, and railties goes here.
# Application configuration can go into files in config/initializers #
# -- all .rb files in that directory are automatically loaded after loading # These settings can be overridden in specific environments using the files
# the framework and any gems in your application. # in config/environments, which are processed later.
config.action_dispatch.default_headers = { config.action_dispatch.default_headers = {
'X-Frame-Options' => 'DENY', 'X-Frame-Options' => 'DENY',

View File

@@ -1,4 +1,4 @@
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.

View File

@@ -1,5 +1,5 @@
# 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!

View File

@@ -1,8 +1,10 @@
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
@@ -39,6 +41,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
@@ -54,9 +62,15 @@ 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
end end

View File

@@ -1,3 +1,5 @@
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.
@@ -32,7 +34,7 @@ Rails.application.configure do
config.assets.compile = false config.assets.compile = false
# 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
@@ -49,9 +51,9 @@ Rails.application.configure do
# 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 = true 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 = :debug 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 ]
@@ -71,16 +73,22 @@ Rails.application.configure do
# 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).
config.i18n.fallbacks = [I18n.default_locale] config.i18n.fallbacks = true
# 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?

View File

@@ -5,7 +5,7 @@
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.
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
@@ -43,6 +43,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

View File

@@ -7,3 +7,8 @@ Rails.application.config.assets.version = '1.0'
# Rails.application.config.assets.paths << Emoji.images_path # Rails.application.config.assets.paths << Emoji.images_path
# Add Yarn node_modules folder to the asset load path. # Add Yarn node_modules folder to the asset load path.
Rails.application.config.assets.paths << Rails.root.join('node_modules') Rails.application.config.assets.paths << Rails.root.join('node_modules')
# 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 )

View File

@@ -1,7 +1,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"]

View File

@@ -1,4 +1,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 += [
:passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
]

View File

@@ -0,0 +1,11 @@
# Define an application-wide HTTP permissions policy. For further
# information see https://developers.google.com/web/updates/2018/06/feature-policy
#
Rails.application.config.permissions_policy do |f|
f.camera :none
f.gyroscope :none
f.microphone :none
f.usb :none
f.fullscreen :self
f.payment :none
end