Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 7.2.2 #1929

Merged
merged 7 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Ignore git directory.
/.git/
/.gitignore

# Ignore bundler config.
/.bundle
Expand All @@ -10,6 +11,12 @@
/.env*
!/.env*.erb

# Ignore CI service files.
/.github

# Ignore development files
/.devcontainer

# Ignore all default key files.
/config/master.key
/config/credentials/*.key
Expand All @@ -36,11 +43,14 @@
!/app/assets/builds/.keep
/public/assets

/.dockerignore
/Dockerfile.production
/docker/*/Dockerfile
docker-compose.yml
/bops-applicants
/deploy
/pkg
/.cache

# Ignore Docker-related files
/.dockerignore
/Dockerfile*
/Dockerfile.production
/docker/*/Dockerfile
docker-compose.yml
17 changes: 11 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
version: 2
updates:
- package-ecosystem: "bundler"
- package-ecosystem: bundler
directory: "/"
schedule:
interval: "daily"
interval: daily
open-pull-requests-limit: 0 # security only
- package-ecosystem: "docker"
- package-ecosystem: docker
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "npm"
interval: daily
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "daily"
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 0 # security only
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
- name: Set up Ruby and install gems
uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true

- name: Install Node
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
- name: Setup ruby and install gems
uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true

- name: Setup Node
Expand Down
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
# Temporary files generated by your text editor or operating system
# belong in git's global ignore instead:
# `$XDG_CONFIG_HOME/git/ignore` or `~/.config/git/ignore`

# Ignore bundler config.
/.bundle
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ source "https://rubygems.org"
gem "dotenv-rails", require: "dotenv/load"

gem "aasm"
gem "activerecord-postgis-adapter"
gem "activerecord-postgis-adapter", "~> 10.0"
gem "acts_as_list"
gem "appsignal"
gem "aws-sdk-s3", require: false
Expand Down Expand Up @@ -35,7 +35,7 @@ gem "pagy"
gem "pg", ">= 0.18", "< 2.0"
gem "puma", "~> 6"
gem "rack", "~> 3"
gem "rails", "~> 7.1"
gem "rails", "~> 7.2"
gem "rails_autolink"
gem "rgeo"
gem "rgeo-geojson"
Expand Down
157 changes: 78 additions & 79 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ PATH
govuk-components (~> 5, >= 5.3.2)
govuk_design_system_formbuilder (~> 5, >= 5.3.2)
pagy
rails (>= 7.1.3, < 7.2)
rails (~> 7.2)

PATH
remote: engines/bops_uploads
Expand All @@ -39,83 +39,80 @@ GEM
specs:
aasm (5.2.0)
concurrent-ruby (~> 1.0)
actioncable (7.1.4.1)
actionpack (= 7.1.4.1)
activesupport (= 7.1.4.1)
actioncable (7.2.2)
actionpack (= 7.2.2)
activesupport (= 7.2.2)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
zeitwerk (~> 2.6)
actionmailbox (7.1.4.1)
actionpack (= 7.1.4.1)
activejob (= 7.1.4.1)
activerecord (= 7.1.4.1)
activestorage (= 7.1.4.1)
activesupport (= 7.1.4.1)
mail (>= 2.7.1)
net-imap
net-pop
net-smtp
actionmailer (7.1.4.1)
actionpack (= 7.1.4.1)
actionview (= 7.1.4.1)
activejob (= 7.1.4.1)
activesupport (= 7.1.4.1)
mail (~> 2.5, >= 2.5.4)
net-imap
net-pop
net-smtp
actionmailbox (7.2.2)
actionpack (= 7.2.2)
activejob (= 7.2.2)
activerecord (= 7.2.2)
activestorage (= 7.2.2)
activesupport (= 7.2.2)
mail (>= 2.8.0)
actionmailer (7.2.2)
actionpack (= 7.2.2)
actionview (= 7.2.2)
activejob (= 7.2.2)
activesupport (= 7.2.2)
mail (>= 2.8.0)
rails-dom-testing (~> 2.2)
actionpack (7.1.4.1)
actionview (= 7.1.4.1)
activesupport (= 7.1.4.1)
actionpack (7.2.2)
actionview (= 7.2.2)
activesupport (= 7.2.2)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4)
rack (>= 2.2.4, < 3.2)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
actiontext (7.1.4.1)
actionpack (= 7.1.4.1)
activerecord (= 7.1.4.1)
activestorage (= 7.1.4.1)
activesupport (= 7.1.4.1)
useragent (~> 0.16)
actiontext (7.2.2)
actionpack (= 7.2.2)
activerecord (= 7.2.2)
activestorage (= 7.2.2)
activesupport (= 7.2.2)
globalid (>= 0.6.0)
nokogiri (>= 1.8.5)
actionview (7.1.4.1)
activesupport (= 7.1.4.1)
actionview (7.2.2)
activesupport (= 7.2.2)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activejob (7.1.4.1)
activesupport (= 7.1.4.1)
activejob (7.2.2)
activesupport (= 7.2.2)
globalid (>= 0.3.6)
activemodel (7.1.4.1)
activesupport (= 7.1.4.1)
activerecord (7.1.4.1)
activemodel (= 7.1.4.1)
activesupport (= 7.1.4.1)
activemodel (7.2.2)
activesupport (= 7.2.2)
activerecord (7.2.2)
activemodel (= 7.2.2)
activesupport (= 7.2.2)
timeout (>= 0.4.0)
activerecord-postgis-adapter (9.0.1)
activerecord (~> 7.1.0)
rgeo-activerecord (~> 7.0.0)
activestorage (7.1.4.1)
actionpack (= 7.1.4.1)
activejob (= 7.1.4.1)
activerecord (= 7.1.4.1)
activesupport (= 7.1.4.1)
activerecord-postgis-adapter (10.0.0)
activerecord (~> 7.2.0)
rgeo-activerecord (~> 8.0.0)
activestorage (7.2.2)
actionpack (= 7.2.2)
activejob (= 7.2.2)
activerecord (= 7.2.2)
activesupport (= 7.2.2)
marcel (~> 1.0)
activesupport (7.1.4.1)
activesupport (7.2.2)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
acts_as_list (1.1.0)
activerecord (>= 4.2)
addressable (2.8.6)
Expand All @@ -142,6 +139,7 @@ GEM
aws-eventstream (~> 1, >= 1.0.2)
base64 (0.2.0)
bcrypt (3.1.20)
benchmark (0.3.0)
better_html (2.0.1)
actionview (>= 6.0)
activesupport (>= 6.0)
Expand All @@ -155,7 +153,7 @@ GEM
msgpack (~> 1.2)
brakeman (6.0.1)
builder (3.3.0)
bullet (7.1.6)
bullet (7.2.0)
activesupport (>= 3.0.0)
uniform_notifier (~> 1.11)
business_time (0.13.0)
Expand Down Expand Up @@ -392,7 +390,6 @@ GEM
minitest (5.25.1)
msgpack (1.7.2)
multi_test (0.1.2)
mutex_m (0.2.0)
nenv (0.3.0)
net-http (0.4.1)
uri
Expand Down Expand Up @@ -451,20 +448,20 @@ GEM
rackup (2.1.0)
rack (>= 3)
webrick (~> 1.8)
rails (7.1.4.1)
actioncable (= 7.1.4.1)
actionmailbox (= 7.1.4.1)
actionmailer (= 7.1.4.1)
actionpack (= 7.1.4.1)
actiontext (= 7.1.4.1)
actionview (= 7.1.4.1)
activejob (= 7.1.4.1)
activemodel (= 7.1.4.1)
activerecord (= 7.1.4.1)
activestorage (= 7.1.4.1)
activesupport (= 7.1.4.1)
rails (7.2.2)
actioncable (= 7.2.2)
actionmailbox (= 7.2.2)
actionmailer (= 7.2.2)
actionpack (= 7.2.2)
actiontext (= 7.2.2)
actionview (= 7.2.2)
activejob (= 7.2.2)
activemodel (= 7.2.2)
activerecord (= 7.2.2)
activestorage (= 7.2.2)
activesupport (= 7.2.2)
bundler (>= 1.15.0)
railties (= 7.1.4.1)
railties (= 7.2.2)
rails-controller-testing (1.0.5)
actionpack (>= 5.0.1.rc1)
actionview (>= 5.0.1.rc1)
Expand All @@ -481,10 +478,10 @@ GEM
railties (>= 6.0.0, < 8)
rails_autolink (1.1.7)
rails (> 3.1)
railties (7.1.4.1)
actionpack (= 7.1.4.1)
activesupport (= 7.1.4.1)
irb
railties (7.2.2)
actionpack (= 7.2.2)
activesupport (= 7.2.2)
irb (~> 1.13)
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
Expand All @@ -508,9 +505,9 @@ GEM
railties (>= 5.2)
rexml (3.3.9)
rgeo (3.0.0)
rgeo-activerecord (7.0.1)
activerecord (>= 5.0)
rgeo (>= 1.0.0)
rgeo-activerecord (8.0.0)
activerecord (>= 7.0)
rgeo (>= 3.0)
rgeo-geojson (2.1.1)
rgeo (>= 1.0.0)
rotp (6.3.0)
Expand Down Expand Up @@ -574,6 +571,7 @@ GEM
rubyzip (2.3.2)
rufus-scheduler (3.8.2)
fugit (~> 1.1, >= 1.1.6)
securerandom (0.3.1)
selenium-webdriver (4.16.0)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
Expand Down Expand Up @@ -614,8 +612,8 @@ GEM
rubocop-rails (~> 2.25.0)
stimulus-rails (1.0.4)
railties (>= 6.0.0)
store_model (2.1.2)
activerecord (>= 5.2)
store_model (4.1.0)
activerecord (>= 7.0)
stringio (3.1.1)
strong_migrations (1.8.0)
activerecord (>= 5.2)
Expand All @@ -632,6 +630,7 @@ GEM
unicode-display_width (2.5.0)
uniform_notifier (1.16.0)
uri (0.13.0)
useragent (0.16.10)
view_component (3.11.0)
activesupport (>= 5.2.0, < 8.0)
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -664,7 +663,7 @@ PLATFORMS

DEPENDENCIES
aasm
activerecord-postgis-adapter
activerecord-postgis-adapter (~> 10.0)
acts_as_list
appsignal
aws-sdk-s3
Expand Down Expand Up @@ -717,7 +716,7 @@ DEPENDENCIES
pry-byebug
puma (~> 6)
rack (~> 3)
rails (~> 7.1)
rails (~> 7.2)
rails-controller-testing
rails_autolink
rgeo
Expand Down
2 changes: 1 addition & 1 deletion app/models/application_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ApplicationType < ApplicationRecord
other: "other"
}, scopes: false, instance_methods: false, validate: {on: :category}

enum :status, {inactive: "inactive", active: "active", retired: "retired"}
enum :status, %i[inactive active retired].index_with(&:to_s)

belongs_to :legislation, optional: true
has_many :planning_applications, dependent: :restrict_with_exception
Expand Down
Loading
Loading