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

Remove Spring and switch to Zeitwerk #2451

Merged
merged 1 commit into from
Dec 4, 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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

[Full changelog][unreleased]

- Remove Spring from development
- Switch to the Zeitwerk autoloader

## Release 153 - 2024-12-02

[Full changelog][153]
Expand Down
3 changes: 0 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ group :development do
gem "better_errors"
gem "html2haml"
gem "listen", ">= 3.0.5", "< 3.10"
gem "spring"
gem "spring-commands-rspec"
gem "spring-watcher-listen", "~> 2.1.0"
gem "rails_layout"
gem "web-console", ">= 3.3.0"
end
Expand Down
9 changes: 0 additions & 9 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -479,12 +479,6 @@ GEM
slim (4.1.0)
temple (>= 0.7.6, < 0.9)
tilt (>= 2.0.6, < 2.1)
spring (4.2.1)
spring-commands-rspec (1.0.4)
spring (>= 0.9.1)
spring-watcher-listen (2.1.0)
listen (>= 2.7, < 4.0)
spring (>= 4)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
Expand Down Expand Up @@ -608,9 +602,6 @@ DEPENDENCIES
sidekiq (~> 7)
simplecov (~> 0.22.0)
simplecov-lcov (~> 0.8.0)
spring
spring-commands-rspec
spring-watcher-listen (~> 2.1.0)
standard
strip_attributes
tzinfo-data
Expand Down
1 change: 0 additions & 1 deletion bin/rails
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env ruby
load File.expand_path("spring", __dir__)
APP_PATH = File.expand_path('../config/application', __dir__)
require_relative '../config/boot'
require 'rails/commands'
1 change: 0 additions & 1 deletion bin/rake
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env ruby
load File.expand_path("spring", __dir__)
require_relative "../config/boot"
require "rake"
Rake.application.run
5 changes: 0 additions & 5 deletions bin/rspec
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

begin
load File.expand_path('spring', __dir__)
rescue LoadError => e
raise unless e.message.include?('spring')
end
require 'bundler/setup'
load Gem.bin_path('rspec-core', 'rspec')
14 changes: 0 additions & 14 deletions bin/spring

This file was deleted.

6 changes: 1 addition & 5 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.

config.cache_classes = !(defined?(Spring::Env) && Spring::Env.new.server_running?)
config.cache_classes = false

config.action_view.cache_template_loading = true

# Prevent 'reloading is disabled' errors from Spring
# https://github.com/rails/spring/issues/598
config.autoloader = :classic

# Do not eager load code on boot. This avoids loading your whole application
# just for the purpose of running a single test. If you are using a tool that
# preloads Rails for running tests, you may have to set it to true.
Expand Down
16 changes: 0 additions & 16 deletions config/spring.rb

This file was deleted.

2 changes: 1 addition & 1 deletion spec/models/guidance_url_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "rails_helper"

RSpec.describe Activity::GuidanceUrl, type: :model do
RSpec.describe GuidanceUrl, type: :model do
describe "#to_s" do
it "returns a url if one exists" do
url = GuidanceUrl.new(:activity, :programme_status)
Expand Down
Loading