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

47 Commits

Author SHA1 Message Date
dependabot[bot]
7126aaf447 Bump font-awesome-sass from 6.4.0 to 6.4.2
Bumps [font-awesome-sass](https://github.com/FortAwesome/font-awesome-sass) from 6.4.0 to 6.4.2.
- [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>
2023-08-07 16:32:33 +00: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]
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
4 changed files with 180 additions and 211 deletions

View File

@@ -1,25 +1,25 @@
name: CI name: CI
on: on:
push: push:
branches: [ $default-branch ] branches: [$default-branch]
pull_request: pull_request:
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
ruby: ['2.7', '3.0', '3.1'] 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 uses: actions/setup-node@v3
with: with:
node-version: '14' node-version: "18"
- name: Install dependencies - name: Install dependencies
run: bundle install --without production run: bundle install --without production
- name: Run tests - name: Run tests

27
Gemfile
View File

@@ -2,13 +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', '7.0.4' gem 'rails', '~> 7.0.6'
# Use Puma as the app server # Use Puma as the app server
gem 'puma', '~> 6.0' gem 'puma', '~> 6.3'
# Use sqlite3 as the database for Active Record # Use sqlite3 as the database for Active Record
gem 'sqlite3', '~> 1.5.3' 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
@@ -21,7 +21,7 @@ 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', '~> 7.0.6' gem 'rails-i18n', '~> 7.0.7'
gem 'rails-controller-testing' gem 'rails-controller-testing'
@@ -34,14 +34,14 @@ 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.3' 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.4.0', group: :doc gem 'sdoc', '~> 2.6.1', group: :doc
gem 'web-console', '~> 4.2.0', group: :development gem 'web-console', '~> 4.2.0', group: :development
gem 'listen', '~> 3.7.0', group: :development gem 'listen', '~> 3.8.0', group: :development
gem 'bootstrap', '~> 5.1.3' gem 'bootstrap', '~> 5.2.3'
gem "bootstrap_form", "~> 5.0" gem "bootstrap_form", "~> 5.2"
gem 'font-awesome-sass', '~> 6.2.1' gem 'font-awesome-sass', '~> 6.4.2'
# Use Diffy for showing translation diffs # Use Diffy for showing translation diffs
gem 'diffy' gem 'diffy'
@@ -69,10 +69,3 @@ gem 'omniauth-github'
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw] gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
# Silence net protocol warnings
# See https://github.com/rails/rails/pull/44175
gem 'net-http'
gem 'uri', '0.10.0'
gem 'strscan', '3.0.1'
gem 'stringio', '3.0.5'

View File

@@ -1,86 +1,86 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
actioncable (7.0.4) actioncable (7.0.6)
actionpack (= 7.0.4) actionpack (= 7.0.6)
activesupport (= 7.0.4) activesupport (= 7.0.6)
nio4r (~> 2.0) nio4r (~> 2.0)
websocket-driver (>= 0.6.1) websocket-driver (>= 0.6.1)
actionmailbox (7.0.4) actionmailbox (7.0.6)
actionpack (= 7.0.4) actionpack (= 7.0.6)
activejob (= 7.0.4) activejob (= 7.0.6)
activerecord (= 7.0.4) activerecord (= 7.0.6)
activestorage (= 7.0.4) activestorage (= 7.0.6)
activesupport (= 7.0.4) activesupport (= 7.0.6)
mail (>= 2.7.1) mail (>= 2.7.1)
net-imap net-imap
net-pop net-pop
net-smtp net-smtp
actionmailer (7.0.4) actionmailer (7.0.6)
actionpack (= 7.0.4) actionpack (= 7.0.6)
actionview (= 7.0.4) actionview (= 7.0.6)
activejob (= 7.0.4) activejob (= 7.0.6)
activesupport (= 7.0.4) activesupport (= 7.0.6)
mail (~> 2.5, >= 2.5.4) mail (~> 2.5, >= 2.5.4)
net-imap net-imap
net-pop net-pop
net-smtp net-smtp
rails-dom-testing (~> 2.0) rails-dom-testing (~> 2.0)
actionpack (7.0.4) actionpack (7.0.6)
actionview (= 7.0.4) actionview (= 7.0.6)
activesupport (= 7.0.4) activesupport (= 7.0.6)
rack (~> 2.0, >= 2.2.0) 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 (7.0.4) actiontext (7.0.6)
actionpack (= 7.0.4) actionpack (= 7.0.6)
activerecord (= 7.0.4) activerecord (= 7.0.6)
activestorage (= 7.0.4) activestorage (= 7.0.6)
activesupport (= 7.0.4) activesupport (= 7.0.6)
globalid (>= 0.6.0) globalid (>= 0.6.0)
nokogiri (>= 1.8.5) nokogiri (>= 1.8.5)
actionview (7.0.4) actionview (7.0.6)
activesupport (= 7.0.4) 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 (7.0.4) activejob (7.0.6)
activesupport (= 7.0.4) activesupport (= 7.0.6)
globalid (>= 0.3.6) globalid (>= 0.3.6)
activemodel (7.0.4) activemodel (7.0.6)
activesupport (= 7.0.4) activesupport (= 7.0.6)
activerecord (7.0.4) activerecord (7.0.6)
activemodel (= 7.0.4) activemodel (= 7.0.6)
activesupport (= 7.0.4) activesupport (= 7.0.6)
activestorage (7.0.4) activestorage (7.0.6)
actionpack (= 7.0.4) actionpack (= 7.0.6)
activejob (= 7.0.4) activejob (= 7.0.6)
activerecord (= 7.0.4) activerecord (= 7.0.6)
activesupport (= 7.0.4) activesupport (= 7.0.6)
marcel (~> 1.0) marcel (~> 1.0)
mini_mime (>= 1.1.0) mini_mime (>= 1.1.0)
activesupport (7.0.4) 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)
addressable (2.8.0) addressable (2.8.4)
public_suffix (>= 2.0.2, < 5.0) public_suffix (>= 2.0.2, < 6.0)
autoprefixer-rails (10.4.2.0) autoprefixer-rails (10.4.13.0)
execjs (~> 2) execjs (~> 2)
bcrypt (3.1.16) bcrypt (3.1.16)
bindex (0.8.1) bindex (0.8.1)
bootsnap (1.16.0) bootsnap (1.16.0)
msgpack (~> 1.2) msgpack (~> 1.2)
bootstrap (5.1.3) bootstrap (5.2.3)
autoprefixer-rails (>= 9.1.0) autoprefixer-rails (>= 9.1.0)
popper_js (>= 2.9.3, < 3) popper_js (>= 2.11.6, < 3)
sassc-rails (>= 2.0.0) sassc-rails (>= 2.0.0)
bootstrap_form (5.0.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)
coffee-rails (5.0.0) coffee-rails (5.0.0)
coffee-script (>= 2.2.0) coffee-script (>= 2.2.0)
@@ -89,10 +89,11 @@ GEM
coffee-script-source coffee-script-source
execjs execjs
coffee-script-source (1.12.2) coffee-script-source (1.12.2)
concurrent-ruby (1.2.0) concurrent-ruby (1.2.2)
crack (0.4.5) crack (0.4.5)
rexml rexml
crass (1.0.6) crass (1.0.6)
date (3.3.3)
devise (4.8.1) devise (4.8.1)
bcrypt (~> 3.0) bcrypt (~> 3.0)
orm_adapter (~> 0.1) orm_adapter (~> 0.1)
@@ -101,40 +102,20 @@ GEM
warden (~> 1.2.3) warden (~> 1.2.3)
diff-lcs (1.5.0) diff-lcs (1.5.0)
diffy (3.4.2) diffy (3.4.2)
digest (3.1.0)
erubi (1.12.0) erubi (1.12.0)
execjs (2.8.1) execjs (2.8.1)
faraday (1.9.3) faraday (2.7.4)
faraday-em_http (~> 1.0) faraday-net_http (>= 2.0, < 3.1)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
faraday-retry (~> 1.0)
ruby2_keywords (>= 0.0.4) ruby2_keywords (>= 0.0.4)
faraday-em_http (1.0.0) faraday-net_http (3.0.2)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.3)
multipart-post (>= 1.2, < 3)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
ffi (1.15.5) ffi (1.15.5)
font-awesome-sass (6.2.1) font-awesome-sass (6.4.2)
sassc (~> 2.0) sassc (~> 2.0)
globalid (1.0.1) globalid (1.1.0)
activesupport (>= 5.0) activesupport (>= 5.0)
hashdiff (1.0.1) hashdiff (1.0.1)
hashie (5.0.0) hashie (5.0.0)
i18n (1.12.0) i18n (1.14.1)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
jbuilder (2.11.5) jbuilder (2.11.5)
actionview (>= 5.0.0) actionview (>= 5.0.0)
@@ -143,116 +124,112 @@ GEM
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.3.0) jwt (2.7.0)
listen (3.7.1) 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.19.1) 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)
net-imap
net-pop
net-smtp
marcel (1.0.2) marcel (1.0.2)
method_source (1.0.0) method_source (1.0.0)
mini_mime (1.1.2) mini_mime (1.1.2)
mini_portile2 (2.8.1) mini_portile2 (2.8.2)
minitest (5.17.0) minitest (5.18.1)
msgpack (1.6.0) msgpack (1.6.0)
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)
net-http (0.2.0) date
net-protocol net-protocol
uri net-pop (0.1.2)
net-imap (0.2.3)
digest
net-protocol
strscan
net-pop (0.1.1)
digest
net-protocol net-protocol
net-protocol (0.2.1)
timeout timeout
net-protocol (0.1.3) net-smtp (0.3.3)
timeout
net-smtp (0.3.1)
digest
net-protocol net-protocol
timeout nio4r (2.5.9)
nio4r (2.5.8) nokogiri (1.15.3)
nokogiri (1.14.2) mini_portile2 (~> 2.8.2)
mini_portile2 (~> 2.8.0)
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.1.0) snaky_hash (~> 2.0)
version_gem (~> 1.1)
omniauth (2.1.1)
hashie (>= 3.4.6) hashie (>= 3.4.6)
rack (>= 2.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 (~> 2.0)
omniauth-oauth2 (~> 1.7.1)
omniauth-oauth2 (1.7.2)
oauth2 (~> 1.4)
omniauth (>= 1.9, < 3)
omniauth-rails_csrf_protection (1.0.1) omniauth-rails_csrf_protection (1.0.1)
actionpack (>= 4.2) actionpack (>= 4.2)
omniauth (~> 2.0) omniauth (~> 2.0)
orm_adapter (0.5.0) orm_adapter (0.5.0)
popper_js (2.9.3) popper_js (2.11.7)
psych (4.0.6) psych (5.1.0)
stringio stringio
public_suffix (4.0.6) public_suffix (5.0.1)
puma (6.0.0) puma (6.3.0)
nio4r (~> 2.0) nio4r (~> 2.0)
racc (1.6.2) racc (1.7.1)
rack (2.2.6.2) rack (2.2.7)
rack-protection (3.0.3) rack-protection (3.0.6)
rack rack
rack-test (2.0.2) rack-test (2.1.0)
rack (>= 1.3) rack (>= 1.3)
rails (7.0.4) rails (7.0.6)
actioncable (= 7.0.4) actioncable (= 7.0.6)
actionmailbox (= 7.0.4) actionmailbox (= 7.0.6)
actionmailer (= 7.0.4) actionmailer (= 7.0.6)
actionpack (= 7.0.4) actionpack (= 7.0.6)
actiontext (= 7.0.4) actiontext (= 7.0.6)
actionview (= 7.0.4) actionview (= 7.0.6)
activejob (= 7.0.4) activejob (= 7.0.6)
activemodel (= 7.0.4) activemodel (= 7.0.6)
activerecord (= 7.0.4) activerecord (= 7.0.6)
activestorage (= 7.0.4) activestorage (= 7.0.6)
activesupport (= 7.0.4) activesupport (= 7.0.6)
bundler (>= 1.15.0) bundler (>= 1.15.0)
railties (= 7.0.4) railties (= 7.0.6)
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.5.0) rails-html-sanitizer (1.6.0)
loofah (~> 2.19, >= 2.19.1) loofah (~> 2.21)
rails-i18n (7.0.6) nokogiri (~> 1.14)
rails-i18n (7.0.7)
i18n (>= 0.7, < 2) i18n (>= 0.7, < 2)
railties (>= 6.0.0, < 8) railties (>= 6.0.0, < 8)
railties (7.0.4) railties (7.0.6)
actionpack (= 7.0.4) actionpack (= 7.0.6)
activesupport (= 7.0.4) activesupport (= 7.0.6)
method_source method_source
rake (>= 12.2) rake (>= 12.2)
thor (~> 1.0) thor (~> 1.0)
zeitwerk (~> 2.5) zeitwerk (~> 2.5)
rake (13.0.6) rake (13.0.6)
rb-fsevent (0.11.0) rb-fsevent (0.11.2)
rb-inotify (0.10.1) rb-inotify (0.10.1)
ffi (~> 1.0) ffi (~> 1.0)
rdoc (6.4.0) rdoc (6.5.0)
psych (>= 4.0.0) psych (>= 4.0.0)
responders (3.0.1) responders (3.0.1)
actionpack (>= 5.0) actionpack (>= 5.0)
@@ -267,22 +244,24 @@ GEM
sprockets (> 3.0) sprockets (> 3.0)
sprockets-rails sprockets-rails
tilt tilt
sdoc (2.4.0) sdoc (2.6.1)
rdoc (>= 5.0) rdoc (>= 5.0)
sprockets (4.0.2) snaky_hash (2.0.1)
hashie
version_gem (~> 1.1, >= 1.1.1)
sprockets (4.2.0)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
rack (> 1, < 3) rack (>= 2.2.4, < 4)
sprockets-rails (3.4.2) sprockets-rails (3.4.2)
actionpack (>= 5.2) actionpack (>= 5.2)
activesupport (>= 5.2) activesupport (>= 5.2)
sprockets (>= 3.0.0) sprockets (>= 3.0.0)
sqlite3 (1.5.3) sqlite3 (1.6.3)
mini_portile2 (~> 2.8.0) mini_portile2 (~> 2.8.0)
stringio (3.0.5) stringio (3.0.6)
strscan (3.0.1) thor (1.2.2)
thor (1.2.1) tilt (2.1.0)
tilt (2.0.10) timeout (0.4.0)
timeout (0.3.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)
@@ -290,7 +269,7 @@ GEM
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)
uri (0.10.0) version_gem (1.1.2)
warden (1.2.9) warden (1.2.9)
rack (>= 2.0.9) rack (>= 2.0.9)
web-console (4.2.0) web-console (4.2.0)
@@ -298,7 +277,7 @@ GEM
activemodel (>= 6.0.0) activemodel (>= 6.0.0)
bindex (>= 0.4.0) bindex (>= 0.4.0)
railties (>= 6.0.0) railties (>= 6.0.0)
webmock (3.14.0) webmock (3.18.1)
addressable (>= 2.8.0) 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)
@@ -308,45 +287,41 @@ GEM
will_paginate (3.3.1) 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.6.7) zeitwerk (2.6.8)
PLATFORMS PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
bootsnap bootsnap
bootstrap (~> 5.1.3) bootstrap (~> 5.2.3)
bootstrap_form (~> 5.0) bootstrap_form (~> 5.2)
coffee-rails (~> 5.0.0) coffee-rails (~> 5.0.0)
devise (~> 4.8.0) devise (~> 4.8.0)
diff-lcs diff-lcs
diffy diffy
font-awesome-sass (~> 6.2.1) font-awesome-sass (~> 6.4.2)
jbuilder (~> 2.11.3) jbuilder (~> 2.11.3)
jquery-rails (~> 4.5.1) jquery-rails (~> 4.5.1)
listen (~> 3.7.0) listen (~> 3.8.0)
mysql2 (~> 0.5.2) mysql2 (~> 0.5.5)
net-http
omniauth omniauth
omniauth-github omniauth-github
omniauth-rails_csrf_protection omniauth-rails_csrf_protection
puma (~> 6.0) puma (~> 6.3)
rails (= 7.0.4) rails (~> 7.0.6)
rails-controller-testing rails-controller-testing
rails-i18n (~> 7.0.6) rails-i18n (~> 7.0.7)
sassc-rails (~> 2.1.2) sassc-rails (~> 2.1.2)
sdoc (~> 2.4.0) sdoc (~> 2.6.1)
sqlite3 (~> 1.5.3) sqlite3 (~> 1.6.3)
stringio (= 3.0.5)
strscan (= 3.0.1)
turbolinks (~> 5.2.1) turbolinks (~> 5.2.1)
tzinfo-data tzinfo-data
uglifier (~> 4.2.0) uglifier (~> 4.2.0)
uri (= 0.10.0)
web-console (~> 4.2.0) web-console (~> 4.2.0)
webmock webmock
will_paginate (~> 3.3.1) will_paginate (~> 3.3.1)
will_paginate-bootstrap4 (~> 0.2.2) will_paginate-bootstrap4 (~> 0.2.2)
BUNDLED WITH BUNDLED WITH
2.3.25 2.4.10

View File

@@ -1,5 +1,4 @@
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)
@@ -7,30 +6,31 @@ This is the Ruby on Rails web-app powering [projekteuler.de](https://projekteule
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`.
2. Make sure [NodeJS](https://nodejs.org) is installed.
3. Navigate inside the repository folder.
4. Use bundler to install all required gems.
1. Download this repository, e.g., with `git clone`.
2. Make sure [NodeJS >= 18](https://nodejs.org) is installed.
3. Navigate inside the repository folder.
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
6. Start the server: 6. Start the server:
$ bin/rails server $ bin/rails server
7. Open `http://localhost:3000` in your browser. You should see the web app up and running! 7. Open `http://localhost:3000` in your browser. You should see the web app up and running!
8. Start playing with the web app. By default, the database will contain some users and translations. The user `admin` can review translations, while the user `translator` has submitted some translations. 8. Start playing with the web app. By default, the database will contain some users and translations. The user `admin` can review translations, while the user `translator` has submitted some translations.
You can login as any user by clicking the Login button and entering their name. This is simply a mock OAuth login; in production mode, GitHub is used for login. You can login as any user by clicking the Login button and entering their name. This is simply a mock OAuth login; in production mode, GitHub is used for login.
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.
@@ -43,12 +43,12 @@ 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) - `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 - `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`.
@@ -57,4 +57,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).