1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-27 18:48:49 +01:00

167 Commits

Author SHA1 Message Date
dependabot[bot]
1f4dd8c219 Bump puma from 6.3.0 to 6.4.0
Bumps [puma](https://github.com/puma/puma) from 6.3.0 to 6.4.0.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](https://github.com/puma/puma/compare/v6.3.0...v6.4.0)

---
updated-dependencies:
- dependency-name: puma
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 15:31:43 +00:00
59c51f466a Merge pull request #350 from projekteuler/docker-build
Add Workflow for building and releasing Docker image
2023-08-19 22:07:00 +02:00
f014cffe41 Add Workflow for building and releasing Docker image 2023-08-18 15:55:33 +02:00
30b3a6f366 Merge pull request #346 from projekteuler/dependabot/bundler/rails-7.0.6
Bump rails from 7.0.5 to 7.0.6
2023-07-15 22:00:16 +02:00
dependabot[bot]
62ce619838 Bump rails from 7.0.5 to 7.0.6
Bumps [rails](https://github.com/rails/rails) from 7.0.5 to 7.0.6.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v7.0.5...v7.0.6)

---
updated-dependencies:
- dependency-name: rails
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-15 19:57:15 +00:00
d2c42f9f49 Merge pull request #344 from projekteuler/dependabot/bundler/bootstrap_form-5.2.3
Bump bootstrap_form from 5.2.2 to 5.2.3
2023-07-15 21:56:19 +02:00
dependabot[bot]
c063b111fd Bump bootstrap_form from 5.2.2 to 5.2.3
Bumps [bootstrap_form](https://github.com/bootstrap-ruby/bootstrap_form) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/bootstrap-ruby/bootstrap_form/releases)
- [Changelog](https://github.com/bootstrap-ruby/bootstrap_form/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.2.2...v5.2.3)

---
updated-dependencies:
- dependency-name: bootstrap_form
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 15:57:09 +00:00
0b2af8dbe3 Merge pull request #341 from projekteuler/dependabot/bundler/bootstrap_form-5.2.2
Bump bootstrap_form from 5.1.0 to 5.2.2
2023-06-18 14:50:08 +02:00
0dedfd737c Merge pull request #342 from projekteuler/dependabot/bundler/rails-7.0.5
Bump rails from 7.0.4.3 to 7.0.5
2023-06-18 14:48:50 +02:00
dependabot[bot]
7c18bcd072 Bump rails from 7.0.4.3 to 7.0.5
Bumps [rails](https://github.com/rails/rails) from 7.0.4.3 to 7.0.5.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v7.0.4.3...v7.0.5)

---
updated-dependencies:
- dependency-name: rails
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-18 12:45:58 +00:00
b6c8d46eba Merge pull request #340 from projekteuler/dependabot/bundler/sqlite3-1.6.3
Bump sqlite3 from 1.6.2 to 1.6.3
2023-06-18 14:45:31 +02:00
5c9155da56 Merge pull request #343 from projekteuler/dependabot/bundler/puma-6.3.0
Bump puma from 6.2.2 to 6.3.0
2023-06-18 14:45:04 +02:00
dependabot[bot]
4e7ba85512 Bump puma from 6.2.2 to 6.3.0
Bumps [puma](https://github.com/puma/puma) from 6.2.2 to 6.3.0.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](https://github.com/puma/puma/compare/v6.2.2...v6.3.0)

---
updated-dependencies:
- dependency-name: puma
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-05 15:56:41 +00:00
dependabot[bot]
143e449fbd Bump bootstrap_form from 5.1.0 to 5.2.2
Bumps [bootstrap_form](https://github.com/bootstrap-ruby/bootstrap_form) from 5.1.0 to 5.2.2.
- [Release notes](https://github.com/bootstrap-ruby/bootstrap_form/releases)
- [Changelog](https://github.com/bootstrap-ruby/bootstrap_form/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.1.0...v5.2.2)

---
updated-dependencies:
- dependency-name: bootstrap_form
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-29 15:56:28 +00:00
dependabot[bot]
2ef0286e92 Bump sqlite3 from 1.6.2 to 1.6.3
Bumps [sqlite3](https://github.com/sparklemotion/sqlite3-ruby) from 1.6.2 to 1.6.3.
- [Release notes](https://github.com/sparklemotion/sqlite3-ruby/releases)
- [Changelog](https://github.com/sparklemotion/sqlite3-ruby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/sqlite3-ruby/compare/v1.6.2...v1.6.3)

---
updated-dependencies:
- dependency-name: sqlite3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-22 15:57:10 +00:00
4a53d6f3fb Merge pull request #336 from projekteuler/dependabot/bundler/omniauth-github-2.0.1
Bump omniauth-github from 2.0.0 to 2.0.1
2023-05-18 19:28:47 +02:00
dependabot[bot]
984cb2b925 Bump omniauth-github from 2.0.0 to 2.0.1
Bumps [omniauth-github](https://github.com/intridea/omniauth-github) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/intridea/omniauth-github/releases)
- [Commits](https://github.com/intridea/omniauth-github/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: omniauth-github
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-18 14:27:36 +00:00
14b33f553d Merge pull request #337 from projekteuler/dependabot/bundler/listen-3.8.0
Bump listen from 3.7.1 to 3.8.0
2023-05-18 16:26:42 +02:00
dependabot[bot]
ae7797109b Bump listen from 3.7.1 to 3.8.0
Bumps [listen](https://github.com/guard/listen) from 3.7.1 to 3.8.0.
- [Release notes](https://github.com/guard/listen/releases)
- [Commits](https://github.com/guard/listen/compare/v3.7.1...v3.8.0)

---
updated-dependencies:
- dependency-name: listen
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-18 14:21:41 +00:00
0c8600579e Merge pull request #338 from projekteuler/dependabot/bundler/rails-i18n-7.0.7
Bump rails-i18n from 7.0.6 to 7.0.7
2023-05-18 16:20:45 +02:00
dependabot[bot]
781257814d Bump rails-i18n from 7.0.6 to 7.0.7
Bumps [rails-i18n](https://github.com/svenfuchs/rails-i18n) from 7.0.6 to 7.0.7.
- [Changelog](https://github.com/svenfuchs/rails-i18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/svenfuchs/rails-i18n/compare/v7.0.6...v7.0.7)

---
updated-dependencies:
- dependency-name: rails-i18n
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-15 15:56:29 +00:00
588307ccc0 Merge pull request #303 from projekteuler/dependabot/bundler/bootstrap-5.2.3
Bump bootstrap from 5.1.3 to 5.2.3
2023-05-01 18:58:40 +02:00
dependabot[bot]
f069bb7b12 Bump bootstrap from 5.1.3 to 5.2.3
Bumps [bootstrap](https://github.com/twbs/bootstrap-rubygem) from 5.1.3 to 5.2.3.
- [Release notes](https://github.com/twbs/bootstrap-rubygem/releases)
- [Changelog](https://github.com/twbs/bootstrap-rubygem/blob/main/CHANGELOG.md)
- [Commits](https://github.com/twbs/bootstrap-rubygem/compare/v5.1.3...v5.2.3)

---
updated-dependencies:
- dependency-name: bootstrap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 10:23:47 +00:00
bd42bfb2db Merge pull request #334 from projekteuler/rails-7.0.4.3
Upgrade rails to 7.0.4.3
2023-05-01 12:18:11 +02:00
ba7a83c902 Upgrade rails to 7.0.4.3 2023-05-01 12:12:15 +02:00
c45e78d4d4 Merge pull request #324 from projekteuler/dependabot/bundler/font-awesome-sass-6.4.0
Bump font-awesome-sass from 6.2.1 to 6.4.0
2023-05-01 12:09:56 +02:00
dependabot[bot]
bac834a432 Bump font-awesome-sass from 6.2.1 to 6.4.0
Bumps [font-awesome-sass](https://github.com/FortAwesome/font-awesome-sass) from 6.2.1 to 6.4.0.
- [Release notes](https://github.com/FortAwesome/font-awesome-sass/releases)
- [Commits](https://github.com/FortAwesome/font-awesome-sass/commits)

---
updated-dependencies:
- dependency-name: font-awesome-sass
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 10:07:00 +00:00
b375b2a8bb Merge pull request #312 from projekteuler/dependabot/bundler/mysql2-0.5.5
Bump mysql2 from 0.5.3 to 0.5.5
2023-05-01 11:53:34 +02:00
dependabot[bot]
0b07d58640 Bump mysql2 from 0.5.3 to 0.5.5
Bumps [mysql2](https://github.com/brianmario/mysql2) from 0.5.3 to 0.5.5.
- [Release notes](https://github.com/brianmario/mysql2/releases)
- [Commits](https://github.com/brianmario/mysql2/compare/0.5.3...0.5.5)

---
updated-dependencies:
- dependency-name: mysql2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 09:43:59 +00:00
645ede057f Merge pull request #330 from projekteuler/dependabot/bundler/nokogiri-1.14.3
Bump nokogiri from 1.14.2 to 1.14.3
2023-05-01 11:43:11 +02:00
dependabot[bot]
c10a3f220d Bump nokogiri from 1.14.2 to 1.14.3
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.14.2 to 1.14.3.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.14.2...v1.14.3)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 09:39:23 +00:00
84b45932d5 Merge pull request #331 from projekteuler/dependabot/bundler/puma-6.2.2
Bump puma from 6.0.0 to 6.2.2
2023-05-01 11:38:27 +02:00
dependabot[bot]
6c6d24db74 Bump puma from 6.0.0 to 6.2.2
Bumps [puma](https://github.com/puma/puma) from 6.0.0 to 6.2.2.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](https://github.com/puma/puma/compare/v6.0.0...v6.2.2)

---
updated-dependencies:
- dependency-name: puma
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 09:36:44 +00:00
376e449752 Merge pull request #329 from projekteuler/dependabot/bundler/sdoc-2.6.1
Bump sdoc from 2.4.0 to 2.6.1
2023-05-01 11:35:47 +02:00
6b720382e6 Merge pull request #328 from projekteuler/dependabot/bundler/omniauth-2.1.1
Bump omniauth from 2.1.0 to 2.1.1
2023-05-01 11:35:03 +02:00
28fec5cf55 Merge pull request #298 from projekteuler/dependabot/bundler/webmock-3.18.1
Bump webmock from 3.14.0 to 3.18.1
2023-05-01 11:34:04 +02:00
dependabot[bot]
451d2f9eab Bump webmock from 3.14.0 to 3.18.1
Bumps [webmock](https://github.com/bblimke/webmock) from 3.14.0 to 3.18.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.14.0...v3.18.1)

---
updated-dependencies:
- dependency-name: webmock
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 09:30:37 +00:00
dependabot[bot]
b2b786ce76 Bump omniauth from 2.1.0 to 2.1.1
Bumps [omniauth](https://github.com/omniauth/omniauth) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/omniauth/omniauth/releases)
- [Commits](https://github.com/omniauth/omniauth/compare/v2.1.0...v2.1.1)

---
updated-dependencies:
- dependency-name: omniauth
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 09:30:16 +00:00
dependabot[bot]
17328e7889 Bump sdoc from 2.4.0 to 2.6.1
Bumps [sdoc](https://github.com/zzak/sdoc) from 2.4.0 to 2.6.1.
- [Release notes](https://github.com/zzak/sdoc/releases)
- [Changelog](https://github.com/rails/sdoc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/zzak/sdoc/commits/v2.6.1)

---
updated-dependencies:
- dependency-name: sdoc
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 09:30:15 +00:00
1d2bde3c86 Merge pull request #333 from projekteuler/remove-dependency-hotfix
Remove explicit uri gem version
2023-05-01 11:29:17 +02:00
3f710f4266 Remove explicit uri gem version 2023-05-01 11:25:47 +02:00
36d6a7ab33 Merge pull request #332 from projekteuler/ruby-3.2
Drop ruby 2.7, add ruby 3.2, update Node to 18
2023-05-01 11:21:23 +02:00
5838a2f9a1 Update Node to 18 2023-05-01 11:18:32 +02:00
4037724380 Drop ruby 2.7, add ruby 3.2 2023-05-01 11:09:31 +02:00
64729ad773 Merge pull request #323 from projekteuler/dependabot/bundler/sqlite3-1.6.2
Bump sqlite3 from 1.5.3 to 1.6.2
2023-05-01 11:09:14 +02:00
51fe609e23 Merge pull request #297 from projekteuler/dependabot/bundler/jquery-rails-4.5.1
Bump jquery-rails from 4.4.0 to 4.5.1
2023-03-31 20:12:24 +02:00
7fddf296e4 Merge pull request #293 from projekteuler/dependabot/bundler/bootstrap_form-5.1.0
Bump bootstrap_form from 5.0.0 to 5.1.0
2023-03-31 20:11:34 +02:00
dependabot[bot]
7346e70536 Bump sqlite3 from 1.5.3 to 1.6.2
Bumps [sqlite3](https://github.com/sparklemotion/sqlite3-ruby) from 1.5.3 to 1.6.2.
- [Release notes](https://github.com/sparklemotion/sqlite3-ruby/releases)
- [Changelog](https://github.com/sparklemotion/sqlite3-ruby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/sqlite3-ruby/compare/v1.5.3...v1.6.2)

---
updated-dependencies:
- dependency-name: sqlite3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-27 15:58:34 +00:00
dependabot[bot]
cf21776dd3 Bump jquery-rails from 4.4.0 to 4.5.1
Bumps [jquery-rails](https://github.com/rails/jquery-rails) from 4.4.0 to 4.5.1.
- [Release notes](https://github.com/rails/jquery-rails/releases)
- [Changelog](https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rails/jquery-rails/compare/v4.4.0...v4.5.1)

---
updated-dependencies:
- dependency-name: jquery-rails
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-18 16:13:35 +00:00
dependabot[bot]
bfa9404359 Bump bootstrap_form from 5.0.0 to 5.1.0
Bumps [bootstrap_form](https://github.com/bootstrap-ruby/bootstrap_form) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/bootstrap-ruby/bootstrap_form/releases)
- [Changelog](https://github.com/bootstrap-ruby/bootstrap_form/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.0.0...v5.1.0)

---
updated-dependencies:
- dependency-name: bootstrap_form
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-18 16:13:34 +00:00
f100c6d1ec Merge pull request #313 from projekteuler/dependabot/bundler/bootsnap-1.16.0
Bump bootsnap from 1.13.0 to 1.16.0
2023-02-18 17:12:44 +01:00
e51a1bd8b0 Merge pull request #315 from projekteuler/dependabot/bundler/rails-html-sanitizer-1.5.0
Bump rails-html-sanitizer from 1.4.3 to 1.5.0
2023-02-18 17:11:02 +01:00
e979e61160 Merge pull request #316 from projekteuler/dependabot/bundler/stringio-3.0.5
Bump stringio from 3.0.1 to 3.0.5
2023-02-18 17:09:44 +01:00
dependabot[bot]
f56a4c8df6 Bump stringio from 3.0.1 to 3.0.5
Bumps [stringio](https://github.com/ruby/stringio) from 3.0.1 to 3.0.5.
- [Release notes](https://github.com/ruby/stringio/releases)
- [Changelog](https://github.com/ruby/stringio/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/stringio/compare/v3.0.1...v3.0.5)

---
updated-dependencies:
- dependency-name: stringio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-06 15:01:51 +00:00
dependabot[bot]
540251d427 Bump rails-html-sanitizer from 1.4.3 to 1.5.0
Bumps [rails-html-sanitizer](https://github.com/rails/rails-html-sanitizer) from 1.4.3 to 1.5.0.
- [Release notes](https://github.com/rails/rails-html-sanitizer/releases)
- [Changelog](https://github.com/rails/rails-html-sanitizer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rails/rails-html-sanitizer/compare/v1.4.3...v1.5.0)

---
updated-dependencies:
- dependency-name: rails-html-sanitizer
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 13:56:17 +00:00
f5266836a0 Merge pull request #311 from projekteuler/dependabot/bundler/globalid-1.0.1
Bump globalid from 1.0.0 to 1.0.1
2023-02-01 14:55:41 +01:00
d6a4c41b6f Merge pull request #294 from projekteuler/dependabot/bundler/font-awesome-sass-6.2.1
Bump font-awesome-sass from 6.2.0 to 6.2.1
2023-02-01 14:55:06 +01:00
dependabot[bot]
0ab02ecc7f Bump bootsnap from 1.13.0 to 1.16.0
Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.13.0 to 1.16.0.
- [Release notes](https://github.com/Shopify/bootsnap/releases)
- [Changelog](https://github.com/Shopify/bootsnap/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Shopify/bootsnap/compare/v1.13.0...v1.16.0)

---
updated-dependencies:
- dependency-name: bootsnap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-30 15:01:00 +00:00
dependabot[bot]
11b3fb1410 Bump globalid from 1.0.0 to 1.0.1
Bumps [globalid](https://github.com/rails/globalid) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/rails/globalid/releases)
- [Commits](https://github.com/rails/globalid/compare/v1.0.0...v1.0.1)

---
updated-dependencies:
- dependency-name: globalid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-19 22:44:55 +00:00
dependabot[bot]
79698c60ff Bump font-awesome-sass from 6.2.0 to 6.2.1
Bumps [font-awesome-sass](https://github.com/FortAwesome/font-awesome-sass) from 6.2.0 to 6.2.1.
- [Release notes](https://github.com/FortAwesome/font-awesome-sass/releases)
- [Commits](https://github.com/FortAwesome/font-awesome-sass/commits)

---
updated-dependencies:
- dependency-name: font-awesome-sass
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-21 15:00:51 +00:00
a01d14997c Merge pull request #292 from projekteuler/fix-stringio
Update bundler, fix stringio version
2022-11-16 09:51:13 +01:00
8b19a1b8d7 Update bundler, fix stringio version 2022-11-16 09:41:11 +01:00
0e97b943f8 Merge pull request #291 from projekteuler/fix-strscan
Fix strscan version
2022-11-16 09:29:17 +01:00
546cebc65a Fix strscan version 2022-11-16 09:20:51 +01:00
b37303fd72 Merge pull request #286 from projekteuler/dependabot/bundler/font-awesome-sass-6.2.0
Bump font-awesome-sass from 5.15.1 to 6.2.0
2022-11-14 21:18:43 +01:00
1818c766bb Merge commit 'a926be0f4801b1e03f10605438f079e7a0605e72' into dependabot/bundler/font-awesome-sass-6.2.0
# Conflicts:
#	Gemfile.lock
2022-11-14 21:14:26 +01:00
42514c633e Fix extra font-awesome import 2022-11-14 21:10:18 +01:00
a73a9b4a9b Update sqlite3 2022-11-14 21:09:59 +01:00
a926be0f48 Merge pull request #288 from projekteuler/dependabot/bundler/puma-6.0.0
Bump puma from 5.6.1 to 6.0.0
2022-11-14 20:54:03 +01:00
d3cd187aa7 Merge pull request #283 from projekteuler/dependabot/bundler/bootsnap-1.13.0
Bump bootsnap from 1.10.2 to 1.13.0
2022-11-14 20:50:49 +01:00
ba8573d611 Merge pull request #271 from projekteuler/dependabot/bundler/omniauth-2.1.0
Bump omniauth from 2.0.4 to 2.1.0
2022-11-14 20:44:51 +01:00
dependabot[bot]
06a13271e6 Bump puma from 5.6.1 to 6.0.0
Bumps [puma](https://github.com/puma/puma) from 5.6.1 to 6.0.0.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](https://github.com/puma/puma/compare/v5.6.1...v6.0.0)

---
updated-dependencies:
- dependency-name: puma
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-14 19:42:08 +00:00
a21f963601 Merge pull request #290 from projekteuler/dependabot/bundler/rails-i18n-7.0.6
Bump rails-i18n from 7.0.1 to 7.0.6
2022-11-14 20:41:12 +01:00
dependabot[bot]
5fb0a14292 Bump rails-i18n from 7.0.1 to 7.0.6
Bumps [rails-i18n](https://github.com/svenfuchs/rails-i18n) from 7.0.1 to 7.0.6.
- [Release notes](https://github.com/svenfuchs/rails-i18n/releases)
- [Changelog](https://github.com/svenfuchs/rails-i18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/svenfuchs/rails-i18n/commits/v7.0.6)

---
updated-dependencies:
- dependency-name: rails-i18n
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-14 19:37:35 +00:00
dependabot[bot]
4a76c81d32 Bump omniauth from 2.0.4 to 2.1.0
Bumps [omniauth](https://github.com/omniauth/omniauth) from 2.0.4 to 2.1.0.
- [Release notes](https://github.com/omniauth/omniauth/releases)
- [Commits](https://github.com/omniauth/omniauth/compare/v2.0.4...v2.1.0)

---
updated-dependencies:
- dependency-name: omniauth
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-14 19:36:57 +00:00
cf8fe399b5 Merge pull request #254 from projekteuler/dependabot/bundler/omniauth-rails_csrf_protection-1.0.1
Bump omniauth-rails_csrf_protection from 1.0.0 to 1.0.1
2022-11-14 20:36:57 +01:00
548b47640c Merge pull request #275 from projekteuler/dependabot/bundler/sdoc-2.4.0
Bump sdoc from 2.2.0 to 2.4.0
2022-11-14 20:36:14 +01:00
8387832ab7 Merge pull request #279 from projekteuler/dependabot/bundler/diffy-3.4.2
Bump diffy from 3.4.0 to 3.4.2
2022-11-14 20:32:32 +01:00
dependabot[bot]
0c9da40226 Bump bootsnap from 1.10.2 to 1.13.0
Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.10.2 to 1.13.0.
- [Release notes](https://github.com/Shopify/bootsnap/releases)
- [Changelog](https://github.com/Shopify/bootsnap/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Shopify/bootsnap/compare/v1.10.2...v1.13.0)

---
updated-dependencies:
- dependency-name: bootsnap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-14 19:27:18 +00:00
dependabot[bot]
aac0e0d337 Bump diffy from 3.4.0 to 3.4.2
Bumps [diffy](https://github.com/samg/diffy) from 3.4.0 to 3.4.2.
- [Release notes](https://github.com/samg/diffy/releases)
- [Changelog](https://github.com/samg/diffy/blob/main/CHANGELOG)
- [Commits](https://github.com/samg/diffy/commits)

---
updated-dependencies:
- dependency-name: diffy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-14 19:27:11 +00:00
dependabot[bot]
2bb32f3702 Bump sdoc from 2.2.0 to 2.4.0
Bumps [sdoc](https://github.com/zzak/sdoc) from 2.2.0 to 2.4.0.
- [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)

---
updated-dependencies:
- dependency-name: sdoc
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-14 19:27:06 +00:00
dependabot[bot]
73fc676286 Bump omniauth-rails_csrf_protection from 1.0.0 to 1.0.1
Bumps [omniauth-rails_csrf_protection](https://github.com/cookpad/omniauth-rails_csrf_protection) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/cookpad/omniauth-rails_csrf_protection/releases)
- [Commits](https://github.com/cookpad/omniauth-rails_csrf_protection/compare/v1.0.0...v1.0.1)

---
updated-dependencies:
- dependency-name: omniauth-rails_csrf_protection
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-14 19:27:04 +00:00
ab25a617d1 Merge pull request #287 from projekteuler/dependabot/bundler/rails-7.0.4
Bump rails from 7.0.1 to 7.0.4
2022-11-14 20:26:20 +01:00
dependabot[bot]
aa63654a4f Bump rails from 7.0.1 to 7.0.4
Bumps [rails](https://github.com/rails/rails) from 7.0.1 to 7.0.4.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v7.0.1...v7.0.4)

---
updated-dependencies:
- dependency-name: rails
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-12 15:01:37 +00:00
dependabot[bot]
bb2f0024f1 Bump font-awesome-sass from 5.15.1 to 6.2.0
Bumps [font-awesome-sass](https://github.com/FortAwesome/font-awesome-sass) from 5.15.1 to 6.2.0.
- [Release notes](https://github.com/FortAwesome/font-awesome-sass/releases)
- [Commits](https://github.com/FortAwesome/font-awesome-sass/commits)

---
updated-dependencies:
- dependency-name: font-awesome-sass
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-05 16:36:56 +00:00
946d848737 Merge pull request #252 from projekteuler/rails-7.0
Upgrade to rails 7.0
2022-02-20 20:42:59 +01:00
af7199560f Set correct uri version 2022-02-06 16:58:39 +01:00
858d62d467 Fix net-http problems 2022-02-02 22:36:23 +01:00
b1e01886ff Remove ruby 2.6, add 3.1 2022-01-30 15:15:21 +01:00
bfe8ce7b59 Upgrade to rails 7.0 2022-01-30 15:07:40 +01:00
eab04b9404 Merge pull request #239 from projekteuler/dependabot/bundler/bootstrap_form-5.0.0
Bump bootstrap_form from 4.5.0 to 5.0.0
2021-12-18 15:10:12 +01:00
dependabot[bot]
f2703ca850 Bump bootstrap_form from 4.5.0 to 5.0.0
Bumps [bootstrap_form](https://github.com/bootstrap-ruby/bootstrap_form) from 4.5.0 to 5.0.0.
- [Release notes](https://github.com/bootstrap-ruby/bootstrap_form/releases)
- [Changelog](https://github.com/bootstrap-ruby/bootstrap_form/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.5.0...v5.0.0)

---
updated-dependencies:
- dependency-name: bootstrap_form
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-18 14:05:00 +00:00
25e6fd2052 Merge pull request #237 from projekteuler/dependabot/bundler/bootstrap-5.1.3
Bump bootstrap from 5.0.1 to 5.1.3
2021-12-18 15:04:10 +01:00
dependabot[bot]
90c8aaf172 Bump bootstrap from 5.0.1 to 5.1.3
Bumps [bootstrap](https://github.com/twbs/bootstrap-rubygem) from 5.0.1 to 5.1.3.
- [Release notes](https://github.com/twbs/bootstrap-rubygem/releases)
- [Changelog](https://github.com/twbs/bootstrap-rubygem/blob/master/CHANGELOG.md)
- [Commits](https://github.com/twbs/bootstrap-rubygem/compare/v5.0.1...v5.1.3)

---
updated-dependencies:
- dependency-name: bootstrap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-30 13:25:07 +00:00
58fec99824 Merge pull request #240 from projekteuler/dependabot/bundler/web-console-4.2.0
Bump web-console from 4.1.0 to 4.2.0
2021-11-30 14:24:49 +01:00
10259ef7c5 Merge pull request #238 from projekteuler/dependabot/bundler/jbuilder-2.11.3
Bump jbuilder from 2.11.2 to 2.11.3
2021-11-30 14:24:04 +01:00
52e5ffee22 Merge pull request #241 from projekteuler/dependabot/bundler/bootsnap-1.9.3
Bump bootsnap from 1.9.1 to 1.9.3
2021-11-30 14:23:44 +01:00
dependabot[bot]
ee88d9efa9 Bump bootsnap from 1.9.1 to 1.9.3
Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.9.1 to 1.9.3.
- [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.9.1...v1.9.3)

---
updated-dependencies:
- dependency-name: bootsnap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 15:00:36 +00:00
dependabot[bot]
169b1a44d2 Bump web-console from 4.1.0 to 4.2.0
Bumps [web-console](https://github.com/rails/web-console) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/rails/web-console/releases)
- [Changelog](https://github.com/rails/web-console/blob/master/CHANGELOG.markdown)
- [Commits](https://github.com/rails/web-console/compare/v4.1.0...v4.2.0)

---
updated-dependencies:
- dependency-name: web-console
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 15:00:53 +00:00
dependabot[bot]
c2cfb6e25f Bump jbuilder from 2.11.2 to 2.11.3
Bumps [jbuilder](https://github.com/rails/jbuilder) from 2.11.2 to 2.11.3.
- [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.11.2...v2.11.3)

---
updated-dependencies:
- dependency-name: jbuilder
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-15 15:00:32 +00:00
5b46db5485 Merge pull request #236 from projekteuler/dependabot/bundler/puma-5.5.2
Bump puma from 5.5.1 to 5.5.2
2021-11-03 16:31:56 +01:00
dependabot[bot]
4031ca0cbf Bump puma from 5.5.1 to 5.5.2
Bumps [puma](https://github.com/puma/puma) from 5.5.1 to 5.5.2.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](https://github.com/puma/puma/compare/v5.5.1...v5.5.2)

---
updated-dependencies:
- dependency-name: puma
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-18 15:00:36 +00:00
b4c621b5fa Merge pull request #235 from projekteuler/dependabot/bundler/puma-5.5.1
Bump puma from 5.5.0 to 5.5.1
2021-10-13 16:41:17 +02:00
dependabot[bot]
7b9725b273 Bump puma from 5.5.0 to 5.5.1
Bumps [puma](https://github.com/puma/puma) from 5.5.0 to 5.5.1.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](https://github.com/puma/puma/compare/v5.5.0...v5.5.1)

---
updated-dependencies:
- dependency-name: puma
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-12 18:22:49 +00:00
c77f0494e8 Merge pull request #229 from projekteuler/dependabot/bundler/rails-6.1.4.1
Bump rails from 6.1.4 to 6.1.4.1
2021-09-29 10:42:10 +02:00
dependabot[bot]
4f65ca4e64 Bump rails from 6.1.4 to 6.1.4.1
Bumps [rails](https://github.com/rails/rails) from 6.1.4 to 6.1.4.1.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v6.1.4...v6.1.4.1)

---
updated-dependencies:
- dependency-name: rails
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-29 08:38:41 +00:00
4191abbccd Merge pull request #232 from projekteuler/dependabot/bundler/puma-5.5.0
Bump puma from 5.4.0 to 5.5.0
2021-09-29 10:37:52 +02:00
dependabot[bot]
028dcb2616 Bump puma from 5.4.0 to 5.5.0
Bumps [puma](https://github.com/puma/puma) from 5.4.0 to 5.5.0.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](https://github.com/puma/puma/compare/v5.4.0...v5.5.0)

---
updated-dependencies:
- dependency-name: puma
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-29 08:32:26 +00:00
ecef051a3b Merge pull request #233 from projekteuler/dependabot/bundler/bootsnap-1.9.1
Bump bootsnap from 1.7.7 to 1.9.1
2021-09-29 10:32:14 +02:00
37deaa5535 Merge pull request #230 from projekteuler/dependabot/bundler/listen-3.7.0
Bump listen from 3.6.0 to 3.7.0
2021-09-29 10:31:40 +02:00
0f44c84fd9 Merge pull request #234 from projekteuler/dependabot/bundler/nokogiri-1.12.5
Bump nokogiri from 1.11.7 to 1.12.5
2021-09-29 10:31:13 +02:00
58bfe3183d Merge pull request #227 from projekteuler/dependabot/bundler/will_paginate-3.3.1
Bump will_paginate from 3.3.0 to 3.3.1
2021-09-29 10:29:20 +02:00
dependabot[bot]
457df5438e Bump nokogiri from 1.11.7 to 1.12.5
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.11.7 to 1.12.5.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.11.7...v1.12.5)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-27 21:00:36 +00:00
dependabot[bot]
d09f32ccf0 Bump bootsnap from 1.7.7 to 1.9.1
Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.7.7 to 1.9.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.7...v1.9.1)

---
updated-dependencies:
- dependency-name: bootsnap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-20 15:00:52 +00:00
dependabot[bot]
3a9287df53 Bump listen from 3.6.0 to 3.7.0
Bumps [listen](https://github.com/guard/listen) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/guard/listen/releases)
- [Commits](https://github.com/guard/listen/compare/v3.6.0...v3.7.0)

---
updated-dependencies:
- dependency-name: listen
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-23 15:00:48 +00:00
dependabot[bot]
d16ca761d9 Bump will_paginate from 3.3.0 to 3.3.1
Bumps [will_paginate](https://github.com/mislav/will_paginate) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/mislav/will_paginate/releases)
- [Commits](https://github.com/mislav/will_paginate/compare/v3.3.0...v3.3.1)

---
updated-dependencies:
- dependency-name: will_paginate
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-16 15:00:38 +00:00
4f7fa8ea47 Merge pull request #226 from projekteuler/dependabot/bundler/webmock-3.14.0
Bump webmock from 3.13.0 to 3.14.0
2021-08-09 21:14:41 +02:00
dependabot[bot]
683552a78f Bump webmock from 3.13.0 to 3.14.0
Bumps [webmock](https://github.com/bblimke/webmock) from 3.13.0 to 3.14.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.13.0...v3.14.0)

---
updated-dependencies:
- dependency-name: webmock
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-09 15:00:40 +00:00
0d3440c80f Merge pull request #224 from projekteuler/dependabot/bundler/bootsnap-1.7.7
Bump bootsnap from 1.7.5 to 1.7.7
2021-08-05 18:07:33 +02:00
afb3b0d1ee Merge pull request #225 from projekteuler/dependabot/bundler/puma-5.4.0
Bump puma from 5.3.2 to 5.4.0
2021-08-05 18:07:05 +02:00
dependabot[bot]
9255e84154 Bump puma from 5.3.2 to 5.4.0
Bumps [puma](https://github.com/puma/puma) from 5.3.2 to 5.4.0.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](https://github.com/puma/puma/compare/v5.3.2...v5.4.0)

---
updated-dependencies:
- dependency-name: puma
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 15:00:55 +00:00
dependabot[bot]
2e714944c5 Bump bootsnap from 1.7.5 to 1.7.7
Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.7.5 to 1.7.7.
- [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.5...v1.7.7)

---
updated-dependencies:
- dependency-name: bootsnap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 15:00:38 +00:00
89a5b83bf3 Merge pull request #223 from projekteuler/dependabot/bundler/listen-3.6.0
Bump listen from 3.5.1 to 3.6.0
2021-07-27 22:02:57 +02:00
dependabot[bot]
b2b2759713 Bump listen from 3.5.1 to 3.6.0
Bumps [listen](https://github.com/guard/listen) from 3.5.1 to 3.6.0.
- [Release notes](https://github.com/guard/listen/releases)
- [Commits](https://github.com/guard/listen/compare/v3.5.1...v3.6.0)

---
updated-dependencies:
- dependency-name: listen
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-26 15:00:51 +00:00
952c2fedd3 Merge pull request #221 from projekteuler/dependabot/bundler/rails-6.1.4
Bump rails from 6.1.3.2 to 6.1.4
2021-07-22 15:24:34 +02:00
dependabot[bot]
ddac1e3d89 Bump rails from 6.1.3.2 to 6.1.4
Bumps [rails](https://github.com/rails/rails) from 6.1.3.2 to 6.1.4.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v6.1.3.2...v6.1.4)

---
updated-dependencies:
- dependency-name: rails
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-22 13:19:45 +00:00
0e75ebffcf Merge pull request #220 from projekteuler/dependabot/bundler/puma-5.3.2
Bump puma from 5.3.1 to 5.3.2
2021-07-22 15:18:44 +02:00
8e02a171cc Merge pull request #219 from projekteuler/dependabot/bundler/sdoc-2.2.0
Bump sdoc from 2.1.0 to 2.2.0
2021-07-22 15:18:25 +02:00
1af8a98968 Merge pull request #222 from projekteuler/dependabot/bundler/addressable-2.8.0
Bump addressable from 2.7.0 to 2.8.0
2021-07-22 15:15:58 +02:00
dependabot[bot]
9f84df87ed Bump addressable from 2.7.0 to 2.8.0
Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/sporkmonger/addressable/releases)
- [Changelog](https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sporkmonger/addressable/compare/addressable-2.7.0...addressable-2.8.0)

---
updated-dependencies:
- dependency-name: addressable
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-13 09:52:18 +00:00
dependabot[bot]
8825088a62 Bump puma from 5.3.1 to 5.3.2
Bumps [puma](https://github.com/puma/puma) from 5.3.1 to 5.3.2.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](https://github.com/puma/puma/compare/v5.3.1...v5.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-24 05:01:31 +00:00
dependabot[bot]
c0c0e4701a Bump sdoc from 2.1.0 to 2.2.0
Bumps [sdoc](https://github.com/zzak/sdoc) from 2.1.0 to 2.2.0.
- [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[bot] <support@github.com>
2021-05-24 05:01:04 +00:00
9ddf16ccf0 Merge pull request #218 from projekteuler/uglifier-fix
Fix uglifier config
2021-05-23 17:48:24 +02:00
2c468610a4 Fix uglifier config 2021-05-23 17:42:38 +02:00
a47889e38f Merge pull request #214 from projekteuler/dependabot/bundler/bootstrap-5.0.1
Bump bootstrap from 4.5.3 to 5.0.1, and adjust HTML
2021-05-23 17:10:02 +02:00
e09a408d34 Update HTML for Bootstrap 5 2021-05-23 13:48:23 +02:00
87cdfccc6c Merge pull request #217 from projekteuler/ruby-3.0
Update Ruby version and Node action for CI
2021-05-20 10:01:31 +02:00
309c90820c Update Ruby version and Node action for CI 2021-05-20 09:53:13 +02:00
66a6fc6499 Merge pull request #207 from projekteuler/dependabot/add-v2-config-file
Upgrade to GitHub-native Dependabot
2021-05-20 09:46:42 +02:00
74446fb139 Adjust dependabot config 2021-05-20 09:39:10 +02:00
dependabot-preview[bot]
a358b829cb Bump bootstrap from 4.5.3 to 5.0.1
Bumps [bootstrap](https://github.com/twbs/bootstrap-rubygem) from 4.5.3 to 5.0.1.
- [Release notes](https://github.com/twbs/bootstrap-rubygem/releases)
- [Changelog](https://github.com/twbs/bootstrap-rubygem/blob/master/CHANGELOG.md)
- [Commits](https://github.com/twbs/bootstrap-rubygem/compare/v4.5.3...v5.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-20 07:36:02 +00:00
c81a3c17ad Merge pull request #204 from projekteuler/dependabot/bundler/omniauth-2.0.4
[Security] Bump omniauth from 1.9.1 to 2.0.4
2021-05-20 09:34:32 +02:00
c81a590adb Fix broken OmniAuth login 2021-05-20 09:25:44 +02:00
dependabot-preview[bot]
a57eca5737 [Security] Bump omniauth from 1.9.1 to 2.0.4
Bumps [omniauth](https://github.com/omniauth/omniauth) from 1.9.1 to 2.0.4. **This update includes a security fix.**
- [Release notes](https://github.com/omniauth/omniauth/releases)
- [Commits](https://github.com/omniauth/omniauth/compare/v1.9.1...v2.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-19 20:38:49 +00:00
e6986b85a9 Merge pull request #216 from projekteuler/remove-codacy
Remove codacy, add puma
2021-05-19 22:36:48 +02:00
1af75a7f5d Remove codacy, add puma 2021-05-19 22:13:32 +02:00
469ef622ab Merge pull request #208 from projekteuler/dependabot/bundler/devise-4.8.0
Bump devise from 4.7.3 to 4.8.0
2021-05-19 21:38:53 +02:00
487faace6e Merge pull request #203 from projekteuler/dependabot/bundler/sdoc-2.1.0
Bump sdoc from 2.0.4 to 2.1.0
2021-05-19 21:31:59 +02:00
a49487c3b7 Merge pull request #211 from projekteuler/dependabot/bundler/rails-6.1.3.2
Bump rails from 6.1.3.1 to 6.1.3.2
2021-05-19 21:30:50 +02:00
dependabot-preview[bot]
6f10301192 Bump devise from 4.7.3 to 4.8.0
Bumps [devise](https://github.com/plataformatec/devise) from 4.7.3 to 4.8.0.
- [Release notes](https://github.com/plataformatec/devise/releases)
- [Changelog](https://github.com/heartcombo/devise/blob/master/CHANGELOG.md)
- [Commits](https://github.com/plataformatec/devise/compare/v4.7.3...v4.8.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-19 19:24:33 +00:00
393669bbde Merge pull request #213 from projekteuler/dependabot/bundler/webmock-3.13.0
Bump webmock from 3.12.1 to 3.13.0
2021-05-19 21:23:45 +02:00
4339ded7d3 Merge pull request #215 from projekteuler/dependabot/bundler/nokogiri-1.11.4
[Security] Bump nokogiri from 1.11.2 to 1.11.4
2021-05-19 21:22:54 +02:00
dependabot-preview[bot]
6ef8b772a9 Bump rails from 6.1.3.1 to 6.1.3.2
Bumps [rails](https://github.com/rails/rails) from 6.1.3.1 to 6.1.3.2.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v6.1.3.1...v6.1.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-19 19:22:50 +00:00
9cff35ff64 Merge pull request #209 from projekteuler/dependabot/bundler/rdoc-6.3.1
[Security] Bump rdoc from 6.3.0 to 6.3.1
2021-05-19 21:22:06 +02:00
dependabot-preview[bot]
3de48f0952 Bump sdoc from 2.0.4 to 2.1.0
Bumps [sdoc](https://github.com/zzak/sdoc) from 2.0.4 to 2.1.0.
- [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-05-19 19:21:24 +00:00
e5b5eace95 Merge pull request #206 from projekteuler/dependabot/bundler/rexml-3.2.5
[Security] Bump rexml from 3.2.4 to 3.2.5
2021-05-19 21:21:17 +02:00
0683e5657c Merge pull request #210 from projekteuler/dependabot/bundler/bootsnap-1.7.5
Bump bootsnap from 1.7.3 to 1.7.5
2021-05-19 21:20:39 +02:00
552bd7287a Merge pull request #202 from projekteuler/dependabot/bundler/listen-3.5.1
Bump listen from 3.5.0 to 3.5.1
2021-05-19 21:19:16 +02:00
dependabot-preview[bot]
467363aadc [Security] Bump nokogiri from 1.11.2 to 1.11.4
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.11.2 to 1.11.4. **This update includes a security fix.**
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.11.2...v1.11.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-17 21:34:32 +00:00
dependabot-preview[bot]
d3470f7679 Bump webmock from 3.12.1 to 3.13.0
Bumps [webmock](https://github.com/bblimke/webmock) from 3.12.1 to 3.13.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.12.1...v3.13.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-17 05:44:24 +00:00
dependabot-preview[bot]
6bd5d1d740 Bump bootsnap from 1.7.3 to 1.7.5
Bumps [bootsnap](https://github.com/Shopify/bootsnap) from 1.7.3 to 1.7.5.
- [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.3...v1.7.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-05 05:47:17 +00:00
dependabot-preview[bot]
787f6ed7f0 [Security] Bump rdoc from 6.3.0 to 6.3.1
Bumps [rdoc](https://github.com/ruby/rdoc) from 6.3.0 to 6.3.1. **This update includes a security fix.**
- [Release notes](https://github.com/ruby/rdoc/releases)
- [Changelog](https://github.com/ruby/rdoc/blob/master/History.rdoc)
- [Commits](https://github.com/ruby/rdoc/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-05-04 19:44:34 +00:00
dependabot-preview[bot]
ac41164417 Upgrade to GitHub-native Dependabot 2021-04-29 15:28:30 +00:00
dependabot-preview[bot]
8f6a7afd29 [Security] Bump rexml from 3.2.4 to 3.2.5
Bumps [rexml](https://github.com/ruby/rexml) from 3.2.4 to 3.2.5. **This update includes a security fix.**
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.2.4...v3.2.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-29 02:28:57 +00:00
dependabot-preview[bot]
a52a25a21e Bump listen from 3.5.0 to 3.5.1
Bumps [listen](https://github.com/guard/listen) from 3.5.0 to 3.5.1.
- [Release notes](https://github.com/guard/listen/releases)
- [Commits](https://github.com/guard/listen/compare/v3.5.0...v3.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-31 05:54:26 +00:00
d2c2273500 Merge pull request #200 from projekteuler/dependabot/bundler/rails-6.1.3.1
Bump rails from 6.1.3 to 6.1.3.1
2021-03-29 13:34:19 +02:00
dependabot-preview[bot]
6b60d32314 Bump rails from 6.1.3 to 6.1.3.1
Bumps [rails](https://github.com/rails/rails) from 6.1.3 to 6.1.3.1.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v6.1.3...v6.1.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-29 06:16:37 +00:00
33 changed files with 589 additions and 392 deletions

39
.dockerignore Normal file
View File

@@ -0,0 +1,39 @@
# See https://docs.docker.com/engine/reference/builder/#dockerignore-file for more about ignoring files.
# Ignore git directory.
/.git/
# Ignore bundler config.
/.bundle
# Ignore all default key files.
/config/master.key
/config/credentials/*.key
# Ignore all environment files.
/.env*
!/.env.example
# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep
# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/
!/tmp/pids/.keep
# Ignore storage (uploaded files in development and any SQLite databases).
/storage/*
!/storage/.keep
/tmp/storage/*
!/tmp/storage/
!/tmp/storage/.keep
# Ignore assets.
/node_modules/
/app/assets/builds/*
!/app/assets/builds/.keep
/public/assets

9
.gitattributes vendored Normal file
View File

@@ -0,0 +1,9 @@
# See https://git-scm.com/docs/gitattributes for more about git attribute files.
# Mark the database schema as having been generated.
db/schema.rb linguist-generated
# Mark any vendored files as having been vendored.
vendor/* linguist-vendored
config/credentials/*.yml.enc diff=rails_credentials
config/credentials.yml.enc diff=rails_credentials

7
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: bundler
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10

View File

@@ -8,18 +8,18 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
ruby: ['2.5', '2.6', '2.7'] ruby: ["3.0", "3.1", "3.2"]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby }} - name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1 uses: ruby/setup-ruby@v1
with: with:
ruby-version: ${{ matrix.ruby }} ruby-version: ${{ matrix.ruby }}
bundler-cache: true bundler-cache: true
- name: Set up Node - name: Set up Node
uses: actions/setup-node@v2-beta uses: actions/setup-node@v3
with: with:
node-version: '14' node-version: "20"
- name: Install dependencies - name: Install dependencies
run: bundle install --without production run: bundle install --without production
- name: Run tests - name: Run tests

48
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,48 @@
#
name: Create and publish a Docker image
# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
push:
branches: ["release"]
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
build-and-push-image:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write
#
steps:
- name: Checkout repository
uses: actions/checkout@v3
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

23
.gitignore vendored
View File

@@ -12,13 +12,24 @@
/db/*.sqlite3-journal /db/*.sqlite3-journal
# Ignore all logfiles and tempfiles. # Ignore all logfiles and tempfiles.
/log/*.log /log/*
/tmp /tmp/*
!/log/.keep
!/tmp/.keep
# Ignore coverage data generated by coveralls # Ignore pidfiles, but keep the directory.
/coverage /tmp/pids/*
# Ignore encrypted secrets key file. !/tmp/pids/
config/secrets.yml.key !/tmp/pids/.keep
# Ignore storage (uploaded files in development and any SQLite databases).
/storage/*
!/storage/.keep
/tmp/storage/*
!/tmp/storage/
!/tmp/storage/.keep
/public/assets
# Ignore master key for decrypting credentials and more. # Ignore master key for decrypting credentials and more.
/config/master.key /config/master.key

1
.ruby-version Normal file
View File

@@ -0,0 +1 @@
ruby-3.2.2

77
Dockerfile Normal file
View File

@@ -0,0 +1,77 @@
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
ARG RUBY_VERSION=3.2.2
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base
# Rails app lives here
WORKDIR /rails
# Set production environment
ENV RAILS_ENV="production" \
BUNDLE_DEPLOYMENT="1" \
BUNDLE_PATH="/usr/local/bundle" \
BUNDLE_WITHOUT="development"
# Throw-away build stage to reduce size of final image
FROM base as build
# Install packages needed to build gems and node modules
RUN apt-get update -qq && \
apt-get install --no-install-recommends -y build-essential git libvips pkg-config curl node-gyp default-libmysqlclient-dev
# Install JavaScript dependencies
ARG NODE_VERSION=20.5.0
ARG YARN_VERSION=1.22.19
ENV PATH=/usr/local/node/bin:$PATH
RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz -C /tmp/ && \
/tmp/node-build-master/bin/node-build "${NODE_VERSION}" /usr/local/node && \
npm install -g yarn@$YARN_VERSION && \
rm -rf /tmp/node-build-master
# Install application gems
COPY Gemfile Gemfile.lock ./
RUN bundle install && \
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
bundle exec bootsnap precompile --gemfile
# Install node modules
#COPY package.json yarn.lock ./
#RUN yarn install --frozen-lockfile
# Copy application code
COPY . .
# Precompile bootsnap code for faster boot times
RUN bundle exec bootsnap precompile app/ lib/
# Precompiling assets for production without requiring secret RAILS_MASTER_KEY
RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
# Final stage for app image
FROM base
LABEL org.opencontainers.image.source=https://github.com/projekteuler/projekteuler
LABEL org.opencontainers.image.description="Projekteuler production image"
LABEL org.opencontainers.image.licenses=MIT
# Install packages needed for deployment
RUN apt-get update -qq && \
apt-get install --no-install-recommends -y curl node-gyp default-mysql-client libvips && \
rm -rf /var/lib/apt/lists /var/cache/apt/archives
# Copy built artifacts: gems, application
COPY --from=build /usr/local/bundle /usr/local/bundle
COPY --from=build /rails /rails
# Run and own only the runtime files as a non-root user for security
RUN useradd rails --create-home --shell /bin/bash && \
chown -R rails:rails db log tmp
USER rails:rails
# Entrypoint prepares the database.
ENTRYPOINT ["/rails/bin/docker-entrypoint"]
# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
CMD ["./bin/rails", "server"]

34
Gemfile
View File

@@ -2,11 +2,13 @@ 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.1.3' gem 'rails', '~> 7.0.6'
# Use Puma as the app server
gem 'puma', '~> 6.4'
# Use sqlite3 as the database for Active Record # Use sqlite3 as the database for Active Record
gem 'sqlite3', '~> 1.4.1' gem 'sqlite3', '~> 1.6.3'
gem 'mysql2', '~> 0.5.2', group: :production gem 'mysql2', '~> 0.5.5', group: :production
gem 'bootsnap', require: false gem 'bootsnap', require: false
@@ -19,40 +21,38 @@ gem 'coffee-rails', '~> 5.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes # See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby # gem 'therubyracer', platforms: :ruby
gem 'rails-i18n', '~> 6.0.0' gem 'rails-i18n', '~> 7.0.7'
gem 'rails-controller-testing' gem 'rails-controller-testing'
gem 'webmock', group: :test gem 'webmock', group: :test
# Use jquery as the JavaScript library # Use jquery as the JavaScript library
gem 'jquery-rails', '~> 4.4.0' gem 'jquery-rails', '~> 4.5.1'
# 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.11.2' gem 'jbuilder', '~> 2.11.3'
# 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.4', group: :doc gem 'sdoc', '~> 2.6.1', group: :doc
gem 'web-console', '~> 4.1.0', group: :development gem 'web-console', '~> 4.2.0', group: :development
gem 'listen', '~> 3.5.0', group: :development gem 'listen', '~> 3.8.0', group: :development
# Use Codacy for coverage gem 'bootstrap', '~> 5.2.3'
gem 'codacy-coverage', :require => false gem "bootstrap_form", "~> 5.2"
gem 'font-awesome-sass', '~> 6.4.0'
gem 'bootstrap', '~> 4.5.3'
gem "bootstrap_form", "~> 4.5"
gem 'font-awesome-sass', '~> 5.15.1'
# Use Diffy for showing translation diffs # Use Diffy for showing translation diffs
gem 'diffy' gem 'diffy'
gem 'diff-lcs' gem 'diff-lcs'
gem 'will_paginate', '~> 3.3.0' gem 'will_paginate', '~> 3.3.1'
gem 'will_paginate-bootstrap4', '~> 0.2.2' gem 'will_paginate-bootstrap4', '~> 0.2.2'
gem 'devise', '~> 4.7.3' gem 'devise', '~> 4.8.0'
gem 'omniauth' gem 'omniauth'
gem 'omniauth-rails_csrf_protection'
gem 'omniauth-github' gem 'omniauth-github'
# Use ActiveModel has_secure_password # Use ActiveModel has_secure_password

View File

@@ -1,83 +1,87 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
actioncable (6.1.3) actioncable (7.0.6)
actionpack (= 6.1.3) actionpack (= 7.0.6)
activesupport (= 6.1.3) activesupport (= 7.0.6)
nio4r (~> 2.0) nio4r (~> 2.0)
websocket-driver (>= 0.6.1) websocket-driver (>= 0.6.1)
actionmailbox (6.1.3) actionmailbox (7.0.6)
actionpack (= 6.1.3) actionpack (= 7.0.6)
activejob (= 6.1.3) activejob (= 7.0.6)
activerecord (= 6.1.3) activerecord (= 7.0.6)
activestorage (= 6.1.3) activestorage (= 7.0.6)
activesupport (= 6.1.3) activesupport (= 7.0.6)
mail (>= 2.7.1) mail (>= 2.7.1)
actionmailer (6.1.3) net-imap
actionpack (= 6.1.3) net-pop
actionview (= 6.1.3) net-smtp
activejob (= 6.1.3) actionmailer (7.0.6)
activesupport (= 6.1.3) actionpack (= 7.0.6)
actionview (= 7.0.6)
activejob (= 7.0.6)
activesupport (= 7.0.6)
mail (~> 2.5, >= 2.5.4) mail (~> 2.5, >= 2.5.4)
net-imap
net-pop
net-smtp
rails-dom-testing (~> 2.0) rails-dom-testing (~> 2.0)
actionpack (6.1.3) actionpack (7.0.6)
actionview (= 6.1.3) actionview (= 7.0.6)
activesupport (= 6.1.3) activesupport (= 7.0.6)
rack (~> 2.0, >= 2.0.9) rack (~> 2.0, >= 2.2.4)
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.1.3) actiontext (7.0.6)
actionpack (= 6.1.3) actionpack (= 7.0.6)
activerecord (= 6.1.3) activerecord (= 7.0.6)
activestorage (= 6.1.3) activestorage (= 7.0.6)
activesupport (= 6.1.3) activesupport (= 7.0.6)
globalid (>= 0.6.0)
nokogiri (>= 1.8.5) nokogiri (>= 1.8.5)
actionview (6.1.3) actionview (7.0.6)
activesupport (= 6.1.3) activesupport (= 7.0.6)
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.1.3) activejob (7.0.6)
activesupport (= 6.1.3) activesupport (= 7.0.6)
globalid (>= 0.3.6) globalid (>= 0.3.6)
activemodel (6.1.3) activemodel (7.0.6)
activesupport (= 6.1.3) activesupport (= 7.0.6)
activerecord (6.1.3) activerecord (7.0.6)
activemodel (= 6.1.3) activemodel (= 7.0.6)
activesupport (= 6.1.3) activesupport (= 7.0.6)
activestorage (6.1.3) activestorage (7.0.6)
actionpack (= 6.1.3) actionpack (= 7.0.6)
activejob (= 6.1.3) activejob (= 7.0.6)
activerecord (= 6.1.3) activerecord (= 7.0.6)
activesupport (= 6.1.3) activesupport (= 7.0.6)
marcel (~> 0.3.1) marcel (~> 1.0)
mimemagic (~> 0.3.2) mini_mime (>= 1.1.0)
activesupport (6.1.3) activesupport (7.0.6)
concurrent-ruby (~> 1.0, >= 1.0.2) concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2) i18n (>= 1.6, < 2)
minitest (>= 5.1) minitest (>= 5.1)
tzinfo (~> 2.0) tzinfo (~> 2.0)
zeitwerk (~> 2.3) addressable (2.8.4)
addressable (2.7.0) public_suffix (>= 2.0.2, < 6.0)
public_suffix (>= 2.0.2, < 5.0) autoprefixer-rails (10.4.13.0)
autoprefixer-rails (10.0.2.0) execjs (~> 2)
execjs
bcrypt (3.1.16) bcrypt (3.1.16)
bindex (0.8.1) bindex (0.8.1)
bootsnap (1.7.3) bootsnap (1.16.0)
msgpack (~> 1.0) msgpack (~> 1.2)
bootstrap (4.5.3) bootstrap (5.2.3)
autoprefixer-rails (>= 9.1.0) autoprefixer-rails (>= 9.1.0)
popper_js (>= 1.14.3, < 2) popper_js (>= 2.11.6, < 3)
sassc-rails (>= 2.0.0) sassc-rails (>= 2.0.0)
bootstrap_form (4.5.0) bootstrap_form (5.2.3)
actionpack (>= 5.2) actionpack (>= 6.0)
activemodel (>= 5.2) activemodel (>= 6.0)
builder (3.2.4) builder (3.2.4)
codacy-coverage (2.2.1)
simplecov
coffee-rails (5.0.0) coffee-rails (5.0.0)
coffee-script (>= 2.2.0) coffee-script (>= 2.2.0)
railties (>= 5.2.0) railties (>= 5.2.0)
@@ -85,136 +89,153 @@ 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.8) concurrent-ruby (1.2.2)
crack (0.4.5) crack (0.4.5)
rexml rexml
crass (1.0.6) crass (1.0.6)
devise (4.7.3) date (3.3.3)
devise (4.8.1)
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)
diff-lcs (1.4.4) diff-lcs (1.5.0)
diffy (3.4.0) diffy (3.4.2)
docile (1.3.2) erubi (1.12.0)
erubi (1.10.0) execjs (2.8.1)
execjs (2.7.0) faraday (2.7.4)
faraday (1.3.0) faraday-net_http (>= 2.0, < 3.1)
faraday-net_http (~> 1.0) ruby2_keywords (>= 0.0.4)
multipart-post (>= 1.2, < 3) faraday-net_http (3.0.2)
ruby2_keywords ffi (1.15.5)
faraday-net_http (1.0.1) font-awesome-sass (6.4.0)
ffi (1.15.0) sassc (~> 2.0)
font-awesome-sass (5.15.1) globalid (1.1.0)
sassc (>= 1.11) activesupport (>= 5.0)
globalid (0.4.2)
activesupport (>= 4.2.0)
hashdiff (1.0.1) hashdiff (1.0.1)
hashie (4.1.0) hashie (5.0.0)
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)
jwt (2.2.2) jwt (2.7.0)
listen (3.5.0) 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)
mail (2.7.1) mail (2.8.1)
mini_mime (>= 0.1.1) mini_mime (>= 0.1.1)
marcel (0.3.3) net-imap
mimemagic (~> 0.3.2) net-pop
net-smtp
marcel (1.0.2)
method_source (1.0.0) method_source (1.0.0)
mimemagic (0.3.10) mini_mime (1.1.2)
nokogiri (~> 1) mini_portile2 (2.8.2)
rake minitest (5.18.1)
mini_mime (1.0.2) msgpack (1.6.0)
mini_portile2 (2.5.0)
minitest (5.14.3)
msgpack (1.4.2)
multi_json (1.15.0)
multi_xml (0.6.0) multi_xml (0.6.0)
multipart-post (2.1.1) mysql2 (0.5.5)
mysql2 (0.5.3) net-imap (0.3.6)
nio4r (2.5.5) date
nokogiri (1.11.1) net-protocol
mini_portile2 (~> 2.5.0) net-pop (0.1.2)
net-protocol
net-protocol (0.2.1)
timeout
net-smtp (0.3.3)
net-protocol
nio4r (2.5.9)
nokogiri (1.15.3)
mini_portile2 (~> 2.8.2)
racc (~> 1.4) racc (~> 1.4)
oauth2 (1.4.7) oauth2 (2.0.9)
faraday (>= 0.8, < 2.0) faraday (>= 0.17.3, < 3.0)
jwt (>= 1.0, < 3.0) jwt (>= 1.0, < 3.0)
multi_json (~> 1.3)
multi_xml (~> 0.5) multi_xml (~> 0.5)
rack (>= 1.2, < 3) rack (>= 1.2, < 4)
omniauth (2.0.3) snaky_hash (~> 2.0)
version_gem (~> 1.1)
omniauth (2.1.1)
hashie (>= 3.4.6) hashie (>= 3.4.6)
rack (>= 1.6.2, < 3) rack (>= 2.2.3)
rack-protection rack-protection
omniauth-github (2.0.0) omniauth-github (2.0.1)
omniauth (~> 2.0)
omniauth-oauth2 (~> 1.8)
omniauth-oauth2 (1.8.0)
oauth2 (>= 1.4, < 3)
omniauth (~> 2.0)
omniauth-rails_csrf_protection (1.0.1)
actionpack (>= 4.2)
omniauth (~> 2.0) omniauth (~> 2.0)
omniauth-oauth2 (~> 1.7.1)
omniauth-oauth2 (1.7.1)
oauth2 (~> 1.4)
omniauth (>= 1.9, < 3)
orm_adapter (0.5.0) orm_adapter (0.5.0)
popper_js (1.16.0) popper_js (2.11.7)
public_suffix (4.0.6) psych (5.1.0)
racc (1.5.2) stringio
rack (2.2.3) public_suffix (5.0.1)
rack-protection (2.1.0) puma (6.4.0)
nio4r (~> 2.0)
racc (1.7.1)
rack (2.2.7)
rack-protection (3.0.6)
rack rack
rack-test (1.1.0) rack-test (2.1.0)
rack (>= 1.0, < 3) rack (>= 1.3)
rails (6.1.3) rails (7.0.6)
actioncable (= 6.1.3) actioncable (= 7.0.6)
actionmailbox (= 6.1.3) actionmailbox (= 7.0.6)
actionmailer (= 6.1.3) actionmailer (= 7.0.6)
actionpack (= 6.1.3) actionpack (= 7.0.6)
actiontext (= 6.1.3) actiontext (= 7.0.6)
actionview (= 6.1.3) actionview (= 7.0.6)
activejob (= 6.1.3) activejob (= 7.0.6)
activemodel (= 6.1.3) activemodel (= 7.0.6)
activerecord (= 6.1.3) activerecord (= 7.0.6)
activestorage (= 6.1.3) activestorage (= 7.0.6)
activesupport (= 6.1.3) activesupport (= 7.0.6)
bundler (>= 1.15.0) bundler (>= 1.15.0)
railties (= 6.1.3) railties (= 7.0.6)
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)
actionview (>= 5.0.1.rc1) actionview (>= 5.0.1.rc1)
activesupport (>= 5.0.1.rc1) activesupport (>= 5.0.1.rc1)
rails-dom-testing (2.0.3) rails-dom-testing (2.1.1)
activesupport (>= 4.2.0) activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6) nokogiri (>= 1.6)
rails-html-sanitizer (1.3.0) rails-html-sanitizer (1.6.0)
loofah (~> 2.3) loofah (~> 2.21)
rails-i18n (6.0.0) nokogiri (~> 1.14)
rails-i18n (7.0.7)
i18n (>= 0.7, < 2) i18n (>= 0.7, < 2)
railties (>= 6.0.0, < 7) railties (>= 6.0.0, < 8)
railties (6.1.3) railties (7.0.6)
actionpack (= 6.1.3) actionpack (= 7.0.6)
activesupport (= 6.1.3) activesupport (= 7.0.6)
method_source method_source
rake (>= 0.8.7) rake (>= 12.2)
thor (~> 1.0) thor (~> 1.0)
rake (13.0.3) zeitwerk (~> 2.5)
rb-fsevent (0.10.4) rake (13.0.6)
rb-fsevent (0.11.2)
rb-inotify (0.10.1) rb-inotify (0.10.1)
ffi (~> 1.0) ffi (~> 1.0)
rdoc (6.3.0) rdoc (6.5.0)
psych (>= 4.0.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) rexml (3.2.5)
ruby2_keywords (0.0.4) ruby2_keywords (0.0.5)
sassc (2.4.0) sassc (2.4.0)
ffi (~> 1.9) ffi (~> 1.9)
sassc-rails (2.1.2) sassc-rails (2.1.2)
@@ -223,80 +244,84 @@ GEM
sprockets (> 3.0) sprockets (> 3.0)
sprockets-rails sprockets-rails
tilt tilt
sdoc (2.0.4) sdoc (2.6.1)
rdoc (>= 5.0) rdoc (>= 5.0)
simplecov (0.18.1) snaky_hash (2.0.1)
docile (~> 1.1) hashie
simplecov-html (~> 0.11.0) version_gem (~> 1.1, >= 1.1.1)
simplecov-html (0.11.0) sprockets (4.2.0)
sprockets (4.0.2)
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)
thor (1.1.0) mini_portile2 (~> 2.8.0)
tilt (2.0.10) stringio (3.0.6)
thor (1.2.2)
tilt (2.1.0)
timeout (0.4.0)
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 (2.0.4) tzinfo (2.0.6)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
uglifier (4.2.0) uglifier (4.2.0)
execjs (>= 0.3.0, < 3) execjs (>= 0.3.0, < 3)
version_gem (1.1.2)
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.12.1) 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) 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)
will_paginate (3.3.0) will_paginate (3.3.1)
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.2) zeitwerk (2.6.8)
PLATFORMS PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
bootsnap bootsnap
bootstrap (~> 4.5.3) bootstrap (~> 5.2.3)
bootstrap_form (~> 4.5) bootstrap_form (~> 5.2)
codacy-coverage
coffee-rails (~> 5.0.0) coffee-rails (~> 5.0.0)
devise (~> 4.7.3) devise (~> 4.8.0)
diff-lcs diff-lcs
diffy diffy
font-awesome-sass (~> 5.15.1) font-awesome-sass (~> 6.4.0)
jbuilder (~> 2.11.2) jbuilder (~> 2.11.3)
jquery-rails (~> 4.4.0) jquery-rails (~> 4.5.1)
listen (~> 3.5.0) listen (~> 3.8.0)
mysql2 (~> 0.5.2) mysql2 (~> 0.5.5)
omniauth omniauth
omniauth-github omniauth-github
rails (= 6.1.3) omniauth-rails_csrf_protection
puma (~> 6.4)
rails (~> 7.0.6)
rails-controller-testing rails-controller-testing
rails-i18n (~> 6.0.0) rails-i18n (~> 7.0.7)
sassc-rails (~> 2.1.2) sassc-rails (~> 2.1.2)
sdoc (~> 2.0.4) sdoc (~> 2.6.1)
sqlite3 (~> 1.4.1) sqlite3 (~> 1.6.3)
turbolinks (~> 5.2.1) turbolinks (~> 5.2.1)
tzinfo-data tzinfo-data
uglifier (~> 4.2.0) uglifier (~> 4.2.0)
web-console (~> 4.1.0) web-console (~> 4.2.0)
webmock webmock
will_paginate (~> 3.3.0) will_paginate (~> 3.3.1)
will_paginate-bootstrap4 (~> 0.2.2) will_paginate-bootstrap4 (~> 0.2.2)
BUNDLED WITH BUNDLED WITH
2.1.4 2.4.10

View File

@@ -1,20 +1,17 @@
Projekt Euler # Projekt Euler
=============
![Build Status](https://github.com/projekteuler/projekteuler/workflows/CI/badge.svg) ![Build Status](https://github.com/projekteuler/projekteuler/workflows/CI/badge.svg)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/68921bff5347435f8fff10c1d6872568)](https://www.codacy.com/app/projekteuler/projekteuler)
This is the Ruby on Rails web-app powering [projekteuler.de](https://projekteuler.de). This is the Ruby on Rails web-app powering [projekteuler.de](https://projekteuler.de).
It allows visitors to view and suggest German translations of the maths puzzles found on [projecteuler.net](https://projecteuler.net). It allows visitors to view and suggest German translations of the maths puzzles found on [projecteuler.net](https://projecteuler.net).
## Getting started ## Getting started
1. Download this repository, e.g., with `git clone`. 1. Download this repository, e.g., with `git clone`.
2. Make sure [NodeJS](https://nodejs.org) is installed. 2. Make sure [NodeJS >= 18](https://nodejs.org) is installed.
3. Navigate inside the repository folder. 3. Navigate inside the repository folder.
4. Use bundler to install all required gems. 4. Use bundler to install all required gems.
$ bundle install $ bundle install
5. Setup the database: 5. Setup the database:
$ bin/rails db:setup $ bin/rails db:setup
@@ -29,9 +26,11 @@ You can login as any user by clicking the Login button and entering their name.
9. If you ever want to reset the database to the original state, run `rails db:reset`. 9. If you ever want to reset the database to the original state, run `rails db:reset`.
## Contributing ## Contributing
Do you have a suggestion for an improvement for the web app? Please create an [issue](https://github.com/projekteuler/projekteuler/issues) for it. Do you have a suggestion for an improvement for the web app? Please create an [issue](https://github.com/projekteuler/projekteuler/issues) for it.
Do you want to implement this improvement yourself? Follow these steps: Do you want to implement this improvement yourself? Follow these steps:
1. Fork this repository on GitHub. 1. Fork this repository on GitHub.
2. Create a new branch for your improvement 2. Create a new branch for your improvement
3. Implement your improvement, and create tests for it if applicable. 3. Implement your improvement, and create tests for it if applicable.
@@ -44,12 +43,14 @@ Do you want to implement this improvement yourself? Follow these steps:
3. Copy all files from this repository. 3. Copy all files from this repository.
4. Make sure the Rails environment is set to `production`. 4. Make sure the Rails environment is set to `production`.
5. Set up the following environment variables: 5. Set up the following environment variables:
* `RAILS_MASTER_KEY`: The master key for decryption of the Rails credentials - `RAILS_MASTER_KEY`: The master key for decryption of the Rails credentials
* `DATABASE_NAME`: The name of the MySQL database - `DATABASE_NAME`: The name of the MySQL database
* `DATABASE_USERNAME`: The username for the MYSQL database - `DATABASE_USERNAME`: The username for the MYSQL database
* `DATABASE_PASSWORD`: The password for the MYSQL database - `DATABASE_PASSWORD`: The password for the MYSQL database
* `GITHUB_CLIENT_ID`: The client ID of your GitHub OAuth App (that you will need to create) - `DATABASE_HOST`: The host of the MYSQL database
* `GITHUB_CLIENT_SECRET`: The client secret of the GitHub OAuth App - `DATABASE_PORT`: The port of the MYSQL database
- `GITHUB_CLIENT_ID`: The client ID of your GitHub OAuth App (that you will need to create)
- `GITHUB_CLIENT_SECRET`: The client secret of the GitHub OAuth App
6. Install all required gems with `bundle install`. 6. Install all required gems with `bundle install`.
7. Load the database schema with `bin/rails db:schema:load`. 7. Load the database schema with `bin/rails db:schema:load`.
8. Precompile all assets with `bin/rails assets:precompile`. 8. Precompile all assets with `bin/rails assets:precompile`.
@@ -58,4 +59,5 @@ Do you want to implement this improvement yourself? Follow these steps:
Anytime you update the files, you should run `bin/rails db:migrate`, `bin/rails log:clear tmp:clear`, `bin/rails assets:precompile` and then restart the server. Anytime you update the files, you should run `bin/rails db:migrate`, `bin/rails log:clear tmp:clear`, `bin/rails assets:precompile` and then restart the server.
## License ## License
This project is released under the [MIT License](https://opensource.org/licenses/MIT). This project is released under the [MIT License](https://opensource.org/licenses/MIT).

View File

@@ -18,6 +18,6 @@ App.init = ->
$(document).on "turbolinks:load", -> $(document).on "turbolinks:load", ->
App.init() App.init()
$(document).on "click", '#translationTab a[href="#preview"]', -> $(document).on "click", '#translationTab button[data-bs-target="#preview"]', ->
$('#preview .problem-content').html(cm.getValue()) $('#preview .problem-content').html(cm.getValue())
MathJax.Hub.Queue(["Typeset",MathJax.Hub]); MathJax.Hub.Queue(["Typeset",MathJax.Hub]);

View File

@@ -17,7 +17,6 @@
@import "bootstrap"; @import "bootstrap";
@import "rails_bootstrap_forms"; @import "rails_bootstrap_forms";
@import "font-awesome-sprockets";
@import "font-awesome"; @import "font-awesome";
.turbolinks-progress-bar { .turbolinks-progress-bar {

View File

@@ -7,11 +7,8 @@ module ApplicationHelper
capture do capture do
flash.each do |msg_type, message| flash.each do |msg_type, message|
concat(content_tag(:div, message, class: "alert #{bootstrap_class_for(msg_type)} alert-dismissible", role: 'alert') do concat(content_tag(:div, message, class: "alert #{bootstrap_class_for(msg_type)} alert-dismissible", role: 'alert') do
concat(content_tag(:button, class: 'close', data: { dismiss: 'alert' }) do
concat content_tag(:span, '&times;'.html_safe, 'aria-hidden' => true)
concat content_tag(:span, 'Close', class: 'sr-only')
end)
concat message concat message
concat content_tag(:button, "", class: 'btn-close', data: { 'bs-dismiss': 'alert' }, 'aria-label': 'Close')
end) end)
end end
nil nil
@@ -29,9 +26,8 @@ module ApplicationHelper
end end
def nav_link_to(body, url) def nav_link_to(body, url)
nav_options = { class: current_page?(url) ? 'nav-item active': 'nav-item' } content_tag(:li, class: 'nav-item') do
content_tag(:li, nav_options) do link_to body, url, class: current_page?(url) ? 'nav-link active': 'nav-link'
link_to body, url, class: 'nav-link'
end end
end end

View File

@@ -1,4 +1,4 @@
<div class="jumbotron"> <div class="bg-light p-5 rounded">
<h1 class="display-4">Willkommen auf Projekt Euler!</h1> <h1 class="display-4">Willkommen auf Projekt Euler!</h1>
<p>Diese Seite ist eine Übersetzung der englischen Rätsel-Webseite <a href="https://projecteuler.net/">projecteuler.net</a>.</p> <p>Diese Seite ist eine Übersetzung der englischen Rätsel-Webseite <a href="https://projecteuler.net/">projecteuler.net</a>.</p>
<p class="lead"> <p class="lead">
@@ -7,26 +7,27 @@
<% end %> <% end %>
</div> </div>
<div class="container"> <div class="row g-4 py-5 row-cols-1 row-cols-lg-3">
<!-- Example row of columns --> <div class="col d-flex align-items-start">
<div class="row"> <div>
<div class="col-md-4">
<h2>Ansehen</h2> <h2>Ansehen</h2>
<p>Sehen Sie sich die mathematischen Probleme in deutscher Sprache an.</p> <p>Sehen Sie sich die mathematischen Probleme in deutscher Sprache an.</p>
<p>
<%= link_to problems_path, class: 'btn btn-primary' do %> <%= link_to problems_path, class: 'btn btn-primary' do %>
Zu den Problemen &raquo; Zu den Problemen &raquo;
<% end %> <% end %>
</p>
</div> </div>
<div class="col-md-4"> </div>
<div class="col d-flex align-items-start">
<div>
<h2>Übersetzen</h2> <h2>Übersetzen</h2>
<p>Bisher wurden erst <%= Problem.translated_count %> der <%= Problem.count %> Probleme übersetzt. Helfen Sie mit, Übersetzungen zu erstellen und anzupassen!</p> <p>Bisher wurden erst <%= Problem.translated_count %> der <%= Problem.count %> Probleme übersetzt. Helfen Sie mit, Übersetzungen zu erstellen und anzupassen!</p>
</div> </div>
<div class="col-md-4"> </div>
<div class="col d-flex align-items-start">
<div>
<h2>Verbessern</h2> <h2>Verbessern</h2>
<p>Vermissen Sie eine Funktion auf der Webseite, oder ist Ihnen ein Fehler aufgefallen? Dann helfen Sie beim Entwickeln der Webseite in Ruby on Rails!</p> <p>Vermissen Sie eine Funktion auf der Webseite, oder ist Ihnen ein Fehler aufgefallen? Dann helfen Sie beim Entwickeln der Webseite in Ruby on Rails!</p>
<p><a class="btn btn-primary" href="https://github.com/projekteuler/projekteuler" target="_blank">Projekt Euler auf GitHub &raquo;</a></p> <a class="btn btn-primary" href="https://github.com/projekteuler/projekteuler" target="_blank">Projekt Euler auf GitHub &raquo;</a>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -1,44 +1,46 @@
<nav class="navbar navbar-expand-lg navbar-light bg-light"> <nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container"> <div class="container">
<%= link_to t('application.site_title'), root_path, class: 'navbar-brand' %> <%= link_to root_path, class: 'navbar-brand' do %>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <%= image_tag "favicon.ico", alt: "", width: 24, height: 24, class: "d-inline-block align-text-top" %> <%= t('application.site_title') %>
<% end %>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"> <span class="navbar-toggler-icon">
<%= icon('fas', 'bars') %> <%= icon('fas', 'bars') %>
</span> </span>
</button> </button>
<div class="collapse navbar-collapse" id="navbarSupportedContent"> <div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto"> <ul class="navbar-nav me-auto">
<%= nav_link_to t('application.info'), about_info_path %> <%= nav_link_to t('application.info'), about_info_path %>
<%= nav_link_to Problem.model_name.human(count: 2), problems_path %> <%= nav_link_to Problem.model_name.human(count: 2), problems_path %>
<% if user_signed_in? and current_user.admin? %> <% if user_signed_in? and current_user.admin? %>
<%= nav_link_to t('admin.dashboard.index.administration'), admin_dashboard_index_path %> <%= nav_link_to t('admin.dashboard.index.administration'), admin_dashboard_index_path %>
<%= link_to admin_translations_path, class: 'nav-link' do %> <%= link_to admin_translations_path, class: 'nav-link' do %>
<%= t('admin.dashboard.index.translations') %> <span class="badge badge-secondary"><%= Translation.pending.count %></span> <%= t('admin.dashboard.index.translations') %> <span class="badge bg-secondary"><%= Translation.pending.count %></span>
<% end %> <% end %>
<% end %> <% end %>
</ul> </ul>
<ul class="navbar-nav">
<% if user_signed_in? %> <% if user_signed_in? %>
<li class="nav-item">
<span class="navbar-text"><%= t 'application.logged_in_as_html', name: current_user.name %> <span class="navbar-text"><%= t 'application.logged_in_as_html', name: current_user.name %>
<% if current_user.admin? %> <% if current_user.admin? %>
<b><%= icon('fas', 'star') %></b> <b><%= icon('fas', 'star') %></b>
<% end %> <% end %>
</span> </span>
</li> <ul class="navbar-nav">
<li class="nav-item"> <li class="nav-item">
<%= link_to t('application.sign_out'), destroy_user_session_path, method: :delete, class: 'nav-link' %> <%= link_to t('application.sign_out'), destroy_user_session_path, method: :delete, class: 'nav-link' %>
</li> </li>
</ul>
<% else %> <% else %>
<ul class="navbar-nav">
<li class="nav-item"> <li class="nav-item">
<% if Rails.env.development? %> <% if Rails.env.development? %>
<%= link_to t('application.sign_in_with_github'), user_developer_omniauth_authorize_path, class: 'nav-link' %> <%= link_to t('application.sign_in_with_github'), user_developer_omniauth_authorize_path, method: :post, class: 'nav-link' %>
<% else %> <% else %>
<%= link_to t('application.sign_in_with_github'), user_github_omniauth_authorize_path, class: 'nav-link' %> <%= link_to t('application.sign_in_with_github'), user_github_omniauth_authorize_path, method: :post, class: 'nav-link' %>
<% end %> <% end %>
</li> </li>
<% end %>
</ul> </ul>
<% end %>
</div> </div>
</div> </div>
</nav> </nav>

View File

@@ -2,10 +2,10 @@
<%= f.text_field :title %> <%= f.text_field :title %>
<ul class="nav nav-tabs" id="translationTab" role="tablist"> <ul class="nav nav-tabs" id="translationTab" role="tablist">
<li class="nav-item"> <li class="nav-item">
<%= link_to t('.source_code'), '#source', data: {toggle: 'tab'}, class:'nav-link active', id:'source-tab', role:'tab', 'aria-controls':'source', 'aria-selected':'true' %> <button class="nav-link active" id="source-tab" data-bs-toggle="tab" data-bs-target="#source" type="button" role="tab" aria-controls="source" aria-selected="true"><%= t('.source_code') %></button>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<%= link_to t('.preview'), '#preview', data: {toggle: 'tab'}, class:'nav-link', id:'preview-tab', role:'tab', 'aria-controls':'preview', 'aria-selected':'false' %> <button class="nav-link" id="preview-tab" data-bs-toggle="tab" data-bs-target="#preview" type="button" role="tab" aria-controls="preview" aria-selected="false"><%= t('.preview') %></button>
</li> </li>
</ul> </ul>
<div class="tab-content" id="translationTabContent"> <div class="tab-content" id="translationTabContent">

8
bin/docker-entrypoint Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash -e
# If running the rails server then create or migrate existing database
if [ "${*}" == "./bin/rails server" ]; then
./bin/rails db:prepare
fi
exec "${@}"

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

@@ -2,7 +2,7 @@
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__)
def system!(*args) def system!(*args)
system(*args) || abort("\n== Command #{args} failed ==") system(*args) || abort("\n== Command #{args} failed ==")
@@ -13,24 +13,21 @@ FileUtils.chdir APP_ROOT do
# This script is idempotent, so that you can run it at any time 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 =="
system! 'gem install bundler --conservative' system! "gem install bundler --conservative"
system('bundle check') || system!('bundle install') system("bundle check") || system!("bundle install")
# Install JavaScript dependencies
# 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")
# FileUtils.cp 'config/database.yml.sample', 'config/database.yml' # FileUtils.cp "config/database.yml.sample", "config/database.yml"
# end # end
puts "\n== Preparing database ==" puts "\n== Preparing database =="
system! 'bin/rails db:prepare' system! "bin/rails db:prepare"
puts "\n== Removing old logs and tempfiles ==" puts "\n== Removing old logs and tempfiles =="
system! 'bin/rails log:clear tmp:clear' system! "bin/rails log:clear tmp:clear"
puts "\n== Restarting application server ==" puts "\n== Restarting application server =="
system! 'bin/rails restart' system! "bin/rails restart"
end end

View File

@@ -9,7 +9,7 @@ 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.1 config.load_defaults 7.0
# Configuration for the application, engines, and railties goes here. # Configuration for the application, engines, and railties goes here.
# #
@@ -27,7 +27,8 @@ module Projekteuler
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
config.time_zone = 'Berlin' config.time_zone = "Berlin"
# config.eager_load_paths << Rails.root.join("extras")
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}').to_s] config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}').to_s]

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

@@ -27,5 +27,5 @@ production:
database: <%= ENV['DATABASE_NAME'] %> database: <%= ENV['DATABASE_NAME'] %>
username: <%= ENV['DATABASE_USERNAME'] %> username: <%= ENV['DATABASE_USERNAME'] %>
password: <%= ENV['DATABASE_PASSWORD'] %> password: <%= ENV['DATABASE_PASSWORD'] %>
host: 127.0.0.1 host: <%= ENV['DATABASE_HOST'] %>
port: 3306 port: <%= ENV['DATABASE_PORT'] %>

View File

@@ -1,5 +1,19 @@
# Load the Rails application. # Load the Rails application.
require_relative "application" require_relative "application"
# Replace when upgrading to Rails 7.1
# See https://github.com/rails/rails/issues/32947#issuecomment-1356391185
class Rails::Application
def secret_key_base
if Rails.env.development? || Rails.env.test? || ENV["SECRET_KEY_BASE_DUMMY"]
secrets.secret_key_base ||= generate_development_secret
else
validate_secret_key_base(
ENV["SECRET_KEY_BASE"] || credentials.secret_key_base || secrets.secret_key_base
)
end
end
end
# Initialize the Rails application. # Initialize the Rails application.
Rails.application.initialize! Rails.application.initialize!

View File

@@ -14,15 +14,18 @@ Rails.application.configure do
# Show full error reports. # Show full error reports.
config.consider_all_requests_local = true config.consider_all_requests_local = true
# Enable server timing
config.server_timing = true
# Enable/disable caching. By default caching is disabled. # Enable/disable caching. By default caching is disabled.
# Run rails dev:cache to toggle caching. # Run rails dev:cache to toggle caching.
if Rails.root.join('tmp', 'caching-dev.txt').exist? if Rails.root.join("tmp/caching-dev.txt").exist?
config.action_controller.perform_caching = true config.action_controller.perform_caching = true
config.action_controller.enable_fragment_cache_logging = true config.action_controller.enable_fragment_cache_logging = 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}"
} }
else else
config.action_controller.perform_caching = false config.action_controller.perform_caching = false
@@ -53,11 +56,6 @@ Rails.application.configure do
# Highlight code that triggered database queries in logs. # Highlight code that triggered database queries in logs.
config.active_record.verbose_query_logs = true config.active_record.verbose_query_logs = true
# Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large
# number of complex assets.
config.assets.debug = true
# Suppress logger output for asset requests. # Suppress logger output for asset requests.
config.assets.quiet = true config.assets.quiet = true
@@ -67,10 +65,6 @@ Rails.application.configure do
# Annotate rendered view with file names. # Annotate rendered view with file names.
# config.action_view.annotate_rendered_view_with_filenames = true # config.action_view.annotate_rendered_view_with_filenames = true
# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
# Uncomment if you wish to allow Action Cable access from any origin. # Uncomment if you wish to allow Action Cable access from any origin.
# config.action_cable.disable_request_forgery_protection = true # config.action_cable.disable_request_forgery_protection = true
end end

View File

@@ -18,14 +18,11 @@ Rails.application.configure do
# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"] # 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). # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
config.require_master_key = true config.require_master_key = false
# 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 JS using a preprocessor.
config.assets.js_compressor = :uglifier
# Compress CSS using a preprocessor. # Compress CSS using a preprocessor.
# config.assets.css_compressor = :sass # config.assets.css_compressor = :sass
@@ -34,19 +31,19 @@ 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.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
# 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
# Mount Action Cable outside main process or domain. # Mount Action Cable outside main process or domain.
# config.action_cable.mount_path = nil # config.action_cable.mount_path = nil
# config.action_cable.url = 'wss://example.com/cable' # config.action_cable.url = "wss://example.com/cable"
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] # 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 = true config.force_ssl = true
@@ -75,21 +72,15 @@ Rails.application.configure do
# the I18n.default_locale when a translation cannot be found). # the I18n.default_locale when a translation cannot be found).
config.i18n.fallbacks = true config.i18n.fallbacks = true
# Send deprecation notices to registered listeners. # Log deprecations.
config.active_support.deprecation = :notify config.active_support.report_deprecations = true
# 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?
logger = ActiveSupport::Logger.new(STDOUT) logger = ActiveSupport::Logger.new(STDOUT)
@@ -99,25 +90,4 @@ Rails.application.configure do
# Do not dump schema after migrations. # Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false config.active_record.dump_schema_after_migration = false
# Inserts middleware to perform automatic connection switching.
# 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

View File

@@ -1,3 +1,5 @@
require "active_support/core_ext/integer/time"
# The test environment is used exclusively to run your application's # The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that # test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test suite and is wiped # your test database is "scratch space" for the test suite and is wiped
@@ -6,17 +8,18 @@
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.
# Turn false under Spring and add config.action_view.cache_template_loading = true.
config.cache_classes = true config.cache_classes = true
# Do not eager load code on boot. This avoids loading your whole application # Eager loading loads your whole application. When running a single test locally,
# just for the purpose of running a single test. If you are using a tool that # this probably isn't necessary. It's a good idea to do in a continuous integration
# preloads Rails for running tests, you may have to set it to true. # system, or in some way before deploying your code.
config.eager_load = false config.eager_load = ENV["CI"].present?
# Configure public file server for tests with Cache-Control for performance. # Configure public file server for tests with Cache-Control for performance.
config.public_file_server.enabled = true config.public_file_server.enabled = true
config.public_file_server.headers = { config.public_file_server.headers = {
'Cache-Control' => "public, max-age=#{1.hour.to_i}" "Cache-Control" => "public, max-age=#{1.hour.to_i}"
} }
# Show full error reports and disable caching. # Show full error reports and disable caching.

View File

@@ -1,12 +1,10 @@
# Be sure to restart your server when you modify this file. # 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. # Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.0' Rails.application.config.assets.version = "1.0"
# Add additional assets to the asset load path. # Add additional assets to the asset load path.
# 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.
Rails.application.config.assets.paths << Rails.root.join('node_modules')
# Precompile additional assets. # Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in the app/assets # application.js, application.css, and all non-JS/CSS in the app/assets

View File

@@ -4,26 +4,24 @@
# For further information see the following documentation # For further information see the following documentation
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
Rails.application.config.content_security_policy do |policy| Rails.application.configure do
config.content_security_policy do |policy|
policy.default_src :none policy.default_src :none
policy.font_src :self, 'https://cdnjs.cloudflare.com' policy.font_src :self, "https://cdnjs.cloudflare.com"
policy.img_src :self, 'https://cdnjs.cloudflare.com', 'https://projecteuler.net' policy.img_src :self, "https://cdnjs.cloudflare.com", "https://projecteuler.net"
policy.object_src :none policy.object_src :none
policy.script_src :self, 'https://cdnjs.cloudflare.com' policy.script_src :self, "https://cdnjs.cloudflare.com"
policy.style_src :self, :unsafe_inline policy.style_src :self, :unsafe_inline
policy.connect_src :self policy.connect_src :self
# Specify URI for violation reports # Specify URI for violation reports
# policy.report_uri "/csp-violation-report-endpoint" # policy.report_uri "/csp-violation-report-endpoint"
end end
# If you are using UJS then enable automatic nonce generation # Generate session nonces for permitted importmap and inline scripts
# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) } config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
config.content_security_policy_nonce_directives = %w(script-src)
# Set the nonce only to specific directives # Report CSP violations to a specified URI. See:
# Rails.application.config.content_security_policy_nonce_directives = %w(script-src)
# Report CSP violations to a specified URI
# For further information see the following documentation:
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
# Rails.application.config.content_security_policy_report_only = true # config.content_security_policy_report_only = true
end

View File

@@ -4,13 +4,13 @@
# are locale specific, and you may define rules for as many different # are locale specific, and you may define rules for as many different
# locales as you wish. All of these examples are active by default: # locales as you wish. All of these examples are active by default:
# ActiveSupport::Inflector.inflections(:en) do |inflect| # ActiveSupport::Inflector.inflections(:en) do |inflect|
# inflect.plural /^(ox)$/i, '\1en' # inflect.plural /^(ox)$/i, "\\1en"
# inflect.singular /^(ox)en/i, '\1' # inflect.singular /^(ox)en/i, "\\1"
# inflect.irregular 'person', 'people' # inflect.irregular "person", "people"
# inflect.uncountable %w( fish sheep ) # inflect.uncountable %w( fish sheep )
# end # end
# These inflection rules are supported but not enabled by default: # These inflection rules are supported but not enabled by default:
# ActiveSupport::Inflector.inflections(:en) do |inflect| # ActiveSupport::Inflector.inflections(:en) do |inflect|
# inflect.acronym 'RESTful' # inflect.acronym "RESTful"
# end # end

View File

@@ -8,6 +8,6 @@ class ApplicationHelperTest < ActionView::TestCase
test "bootstrap flash messages should work" do test "bootstrap flash messages should work" do
flash[:error] = "Error" flash[:error] = "Error"
assert_equal "<div class=\"alert alert-danger alert-dismissible\" role=\"alert\"><button class=\"close\" data-dismiss=\"alert\"><span aria-hidden=\"true\">&times;</span><span class=\"sr-only\">Close</span></button>Error</div>", flash_messages assert_equal "<div class=\"alert alert-danger alert-dismissible\" role=\"alert\">Error<button class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\"></button></div>", flash_messages
end end
end end

View File

@@ -8,7 +8,7 @@ class TranslatorFlowTest < ActionDispatch::IntegrationTest
end end
test "can login via github" do test "can login via github" do
get '/users/auth/github' post '/users/auth/github'
assert_response :redirect assert_response :redirect
follow_redirect! follow_redirect!
follow_redirect! follow_redirect!

View File

@@ -1,8 +1,5 @@
require 'codacy-coverage'
require 'webmock/minitest' require 'webmock/minitest'
Codacy::Reporter.start
ENV['RAILS_ENV'] ||= 'test' ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__) require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help' require 'rails/test_help'