Skip to content

Commit a5a0286

Browse files
committed
Merge branch 'main' into creates-name
2 parents f09b32c + abcddcc commit a5a0286

File tree

441 files changed

+7944
-6826
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

441 files changed

+7944
-6826
lines changed

Diff for: .env.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ENJU_LEAF_EXTRACT_TEXT=
2626
ENJU_LEAF_EXTRACT_FILESIZE_LIMIT=2097152
2727
# ENJU_LEAF_RESOURCESYNC_BASE_URL=http://localhost:8080
2828

29-
CANTALOUPE_BASE_URI=http://cantaloupe:8182
29+
CANTALOUPE_BASE_URL=http://localhost:8182
3030

3131
NODE_OPTIONS=--openssl-legacy-provider
3232

Diff for: .github/workflows/codeql-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL

Diff for: .github/workflows/docker-image.yml

+15-7
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,33 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: docker/metadata-action@v4
16+
- uses: actions/checkout@v4
17+
- uses: docker/metadata-action@v5
1818
id: meta
1919
with:
20-
images: ghcr.io/next-l/enju_leaf
20+
images: |
21+
enju_leaf
2122
tags: |
2223
type=ref,event=branch
2324
type=ref,event=pr
2425
type=semver,pattern={{version}}
2526
type=semver,pattern={{major}}.{{minor}}
26-
- name: Docker Login
27-
uses: docker/login-action@v2
27+
- name: Login to Docker Hub
28+
uses: docker/login-action@v3
29+
with:
30+
username: ${{ secrets.DOCKERHUB_USERNAME }}
31+
password: ${{ secrets.DOCKERHUB_TOKEN }}
32+
- name: Login to GitHub Container Registry
33+
uses: docker/login-action@v3
2834
with:
2935
registry: ghcr.io
3036
username: ${{ github.actor }}
3137
password: ${{ secrets.GITHUB_TOKEN }}
3238
- name: Build and push Docker images
33-
uses: docker/build-push-action@v3
39+
uses: docker/build-push-action@v6
3440
with:
3541
push: true
36-
tags: ${{ steps.meta.outputs.tags }}
42+
tags: |
43+
projectnextl/${{ steps.meta.outputs.tags }}
44+
ghcr.io/next-l/${{ steps.meta.outputs.tags }}
3745
labels: ${{ steps.meta.outputs.labels }}

Diff for: .github/workflows/pages.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030
- name: Setup Pages
31-
uses: actions/configure-pages@v2
31+
uses: actions/configure-pages@v5
3232
- name: Build with Jekyll
3333
uses: actions/jekyll-build-pages@v1
3434
with:
3535
source: ./docs
3636
destination: ./_site
3737
- name: Upload artifact
38-
uses: actions/upload-pages-artifact@v1
38+
uses: actions/upload-pages-artifact@v3
3939

4040
# Deployment job
4141
deploy:
@@ -47,4 +47,4 @@ jobs:
4747
steps:
4848
- name: Deploy to GitHub Pages
4949
id: deployment
50-
uses: actions/deploy-pages@v1
50+
uses: actions/deploy-pages@v4

Diff for: .github/workflows/rubyonrails.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,20 @@ jobs:
1818
POSTGRES_DB: enju_leaf_test
1919
POSTGRES_USER: rails
2020
POSTGRES_PASSWORD: password
21-
redis:
22-
image: redis:6
23-
ports:
24-
- "6379:6379"
2521
env:
2622
RAILS_ENV: test
2723
ENJU_LEAF_BIND_ADDRESS: 127.0.0.1
2824
POSTGRES_USER: rails
2925
POSTGRES_PASSWORD: password
3026
CC_TEST_REPORTER_ID: c193cb8ea058a7d62fd62d6d05adaaf95f6bdf882c1039500b30b54494a36e52
27+
NODE_OPTIONS: --openssl-legacy-provider
3128
steps:
3229
- name: Checkout code
33-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3431
- name: Setup node
3532
uses: actions/setup-node@v4
3633
with:
37-
node-version: 16
34+
node-version: 20
3835
# Add or replace dependency steps here
3936
- name: Install Ruby and gems
4037
uses: ruby/setup-ruby@v1
@@ -44,7 +41,7 @@ jobs:
4441
run: yarn install && sudo apt-get install libvips42
4542
# Add or replace test runners here
4643
- name: Start containers
47-
run: cp .env.test.ci .env.test && cp .env.test .env && cp docker-compose.ci.yml docker-compose.override.yml && docker-compose up -d solr tika
44+
run: cp .env.test.ci .env.test && cp .env.test .env && cp docker-compose.ci.yml docker-compose.override.yml && docker compose up -d solr tika
4845
- name: Setup Code Climate test-reporter
4946
run: |
5047
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
@@ -64,7 +61,7 @@ jobs:
6461
runs-on: ubuntu-latest
6562
steps:
6663
- name: Checkout code
67-
uses: actions/checkout@v3
64+
uses: actions/checkout@v4
6865
- name: Install Ruby and gems
6966
uses: ruby/setup-ruby@v1
7067
with:

Diff for: .rubocop.yml

+7-61
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,8 @@
1-
require: rubocop-rails
1+
# Omakase Ruby styling for Rails
2+
inherit_gem: { rubocop-rails-omakase: rubocop.yml }
23

3-
Rails:
4-
Enabled: true
5-
AllCops:
6-
TargetRubyVersion: 2.6
7-
Layout/SpaceInsideHashLiteralBraces:
8-
Enabled: false
9-
Layout/SpaceInsideBlockBraces:
10-
Enabled: false
11-
Layout/SpaceBeforeBlockBraces:
12-
Enabled: false
13-
Style/WordArray:
14-
Enabled: false
15-
Style/Documentation:
16-
Enabled: false
17-
Style/StringLiterals:
18-
Enabled: false
19-
Style/AsciiComments:
20-
Enabled: false
21-
Metrics/MethodLength:
22-
Enabled: false
23-
Metrics/LineLength:
24-
Enabled: false
25-
Metrics/BlockLength:
26-
Enabled: false
27-
Style/FrozenStringLiteralComment:
28-
Enabled: false
29-
Style/SymbolArray:
30-
Enabled: false
31-
Style/BlockDelimiters:
32-
Enabled: false
33-
Naming/VariableNumber:
34-
Enabled: false
35-
Rails/SkipsModelValidations:
36-
Enabled: false
37-
Style/EmptyMethod:
38-
Enabled: false
39-
Layout/LeadingCommentSpace:
40-
Enabled: false
41-
Metrics/AbcSize:
42-
Enabled: false
43-
Layout/ArgumentAlignment:
44-
Enabled: false
45-
Layout/HashAlignment:
46-
Enabled: false
47-
Style/IfUnlessModifier:
48-
Enabled: false
49-
Style/PercentLiteralDelimiters:
50-
Enabled: false
51-
Style/SoleNestedConditional:
52-
Enabled: false
53-
Rails/ActiveRecordCallbacksOrder: # new in 2.7
54-
Enabled: true
55-
Rails/WhereNot: # new in 2.8
56-
Enabled: true
57-
Rails/RedundantPresenceValidationOnBelongsTo: # new in 2.13
58-
Enabled: true
59-
Style/GuardClause:
60-
Enabled: false
61-
Layout/EmptyLinesAroundAccessModifier:
62-
Enabled: false
4+
# Overwrite or add rules to create your own house style
5+
#
6+
# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
7+
# Layout/SpaceInsideArrayLiteralBrackets:
8+
# Enabled: false

Diff for: .ruby-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.3
1+
3.2.6

Diff for: Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax = docker/dockerfile:1
22

33
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
4-
ARG RUBY_VERSION=3.2.3
4+
ARG RUBY_VERSION=3.2.6
55
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base
66

77
# Rails app lives here
@@ -28,7 +28,7 @@ RUN apt-get update -qq && apt-get install --no-install-recommends -y curl gnupg
2828
apt-get install --no-install-recommends -y build-essential git libpq-dev libvips pkg-config nodejs yarn
2929

3030
# Install application gems
31-
COPY Gemfile Gemfile.lock ./
31+
COPY Gemfile Gemfile.lock package.json yarn.lock ./
3232
RUN bundle install && \
3333
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
3434
bundle exec bootsnap precompile --gemfile && \
@@ -41,7 +41,8 @@ COPY . .
4141
RUN bundle exec bootsnap precompile app/ lib/
4242

4343
# Precompiling assets for production without requiring secret RAILS_MASTER_KEY
44-
# RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
44+
ARG NODE_OPTIONS=--openssl-legacy-provider
45+
RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
4546

4647

4748
# Final stage for app image

Diff for: Gemfile

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
source "https://rubygems.org"
22
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

4-
ruby "3.2.3"
4+
ruby "3.2.6"
55

66
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
7-
gem "rails", "~> 7.0.8"
7+
gem "rails", "~> 7.1.3", ">= 7.1.3.4"
88

99
# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
1010
gem "sprockets-rails"
@@ -13,7 +13,7 @@ gem "sprockets-rails"
1313
gem "pg", "~> 1.1"
1414

1515
# Use the Puma web server [https://github.com/puma/puma]
16-
gem "puma", "~> 5.0"
16+
gem "puma", ">= 5.0"
1717

1818
# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
1919
# gem "importmap-rails"
@@ -28,7 +28,7 @@ gem "puma", "~> 5.0"
2828
gem "jbuilder"
2929

3030
# Use Redis adapter to run Action Cable in production
31-
gem "redis", "~> 4.0"
31+
gem "redis", ">= 4.0.1"
3232

3333
# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
3434
# gem "kredis"
@@ -37,7 +37,7 @@ gem "redis", "~> 4.0"
3737
# gem "bcrypt", "~> 3.1.7"
3838

3939
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
40-
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]
40+
gem "tzinfo-data", platforms: %i[ windows jruby ]
4141

4242
# Reduces boot times through caching; required in config/boot.rb
4343
gem "bootsnap", require: false
@@ -50,7 +50,10 @@ gem "image_processing", "~> 1.2"
5050

5151
group :development, :test do
5252
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
53-
gem "debug", platforms: %i[ mri mingw x64_mingw ]
53+
gem "debug", platforms: %i[ mri windows ]
54+
55+
# Omakase Ruby styling [https://github.com/rails/rubocop-rails-omakase/]
56+
gem "rubocop-rails-omakase", require: false
5457
end
5558

5659
group :development do
@@ -68,12 +71,11 @@ group :test do
6871
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
6972
gem "capybara"
7073
gem "selenium-webdriver"
71-
7274
end
7375

7476
gem 'devise'
7577
gem 'pundit'
76-
gem 'sunspot_rails'
78+
gem 'sunspot_rails', '~> 2.7'
7779
gem 'kt-paperclip'
7880
gem 'acts_as_list'
7981
gem 'kaminari'
@@ -95,9 +97,9 @@ gem 'jquery-rails'
9597
gem 'addressable'
9698
gem 'progress_bar'
9799
gem 'rails_autolink'
98-
gem 'faraday_middleware'
99100
gem 'kramdown'
100-
gem 'resque', require: 'resque/server'
101+
gem 'solid_queue', "~> 1.0"
102+
gem 'mission_control-jobs', "~> 0.5.0"
101103
gem 'acts-as-taggable-on'
102104
gem 'resync' # , github: 'nabeta/resync', branch: 'add-datetime'
103105
gem 'pretender'
@@ -110,8 +112,8 @@ gem 'rdf-turtle', require: 'rdf/turtle'
110112
gem 'rdf-vocab', require: 'rdf/vocab'
111113
gem 'oai'
112114
gem 'active_storage_validations'
113-
gem 'sprockets', '~> 3.7'
114115
gem 'webpacker', '~> 5.0'
116+
gem 'faraday-multipart'
115117

116118
group :development, :test do
117119
gem 'annotate'

0 commit comments

Comments
 (0)