Drop guard/spring

No developer left using this...
This commit is contained in:
Henne Vogelsang 2022-02-10 17:34:34 +01:00
parent 28caa143e8
commit 5b698f9a4a
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
7 changed files with 1 additions and 169 deletions

View file

@ -228,16 +228,12 @@ gem 'dalli'
gem 'icalendar'
# Use guard and spring for testing in development
group :development do
# to launch specs when files are modified
gem 'guard-rspec'
gem 'haml_lint'
gem 'spring-commands-rspec'
# for static code analisys
gem 'rubocop', require: false
gem 'rubocop-rspec', require: false
gem 'rubocop-rails', require: false
gem 'haml_lint'
# to open mails
gem 'letter_opener'
gem 'letter_opener_web'

View file

@ -142,7 +142,6 @@ GEM
aws_cf_signer
rest-client (>= 2.0.0)
cocoon (1.2.15)
coderay (1.1.3)
colorize (0.8.1)
concurrent-ruby (1.1.9)
countable-rails (0.0.1)
@ -220,7 +219,6 @@ GEM
ffi (1.15.4)
font-awesome-rails (4.7.0.7)
railties (>= 3.2, < 7)
formatador (1.1.0)
formtastic (3.1.5)
actionpack (>= 3.2.13)
formtastic-bootstrap (3.1.1)
@ -230,20 +228,6 @@ GEM
globalid (0.4.2)
activesupport (>= 4.2.0)
gravtastic (3.2.6)
guard (2.18.0)
formatador (>= 0.2.4)
listen (>= 2.7, < 4.0)
lumberjack (>= 1.0.12, < 2.0)
nenv (~> 0.1)
notiffany (~> 0.0)
pry (>= 0.13.0)
shellany (~> 0.0)
thor (>= 0.18.1)
guard-compat (1.2.1)
guard-rspec (4.7.3)
guard (~> 2.1)
guard-compat (~> 1.1)
rspec (>= 2.99.0, < 4.0)
haml (5.2.2)
temple (>= 0.8.0)
tilt
@ -308,13 +292,9 @@ GEM
actionmailer (>= 3.2)
letter_opener (~> 1.0)
railties (>= 3.2)
listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
loofah (2.12.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
lumberjack (1.2.8)
mail (2.7.1)
mini_mime (>= 0.1.1)
marcel (1.0.1)
@ -344,7 +324,6 @@ GEM
multi_xml (0.6.0)
multipart-post (2.1.1)
mysql2 (0.5.3)
nenv (0.3.0)
netrc (0.11.0)
next_rails (1.0.4)
colorize (>= 0.8.1)
@ -352,9 +331,6 @@ GEM
nokogiri (1.12.5)
mini_portile2 (~> 2.6.1)
racc (~> 1.4)
notiffany (0.1.3)
nenv (~> 0.1)
shellany (~> 0.0)
oauth2 (1.4.7)
faraday (>= 0.8, < 2.0)
jwt (>= 1.0, < 3.0)
@ -418,9 +394,6 @@ GEM
prawn-table
prawn-table (0.2.2)
prawn (>= 1.3.0, < 3.0.0)
pry (0.14.1)
coderay (~> 1.1)
method_source (~> 1.0)
public_suffix (4.0.6)
puma (4.3.9)
nio4r (~> 2.0)
@ -489,10 +462,6 @@ GEM
chunky_png (~> 1.0)
rqrcode_core (~> 1.0)
rqrcode_core (1.2.0)
rspec (3.6.0)
rspec-core (~> 3.6.0)
rspec-expectations (~> 3.6.0)
rspec-mocks (~> 3.6.0)
rspec-activemodel-mocks (1.1.0)
activemodel (>= 3.0)
activesupport (>= 3.0)
@ -566,7 +535,6 @@ GEM
concurrent-ruby
faraday
sexp_processor (4.15.3)
shellany (0.0.1)
shoulda-matchers (4.5.1)
activesupport (>= 4.2.0)
simplecov (0.21.2)
@ -584,9 +552,6 @@ GEM
activesupport (>= 4.2.0)
sort_alphabetical (1.1.0)
unicode_utils (>= 1.2.2)
spring (4.0.0)
spring-commands-rspec (1.0.4)
spring (>= 0.9.1)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
@ -686,7 +651,6 @@ DEPENDENCIES
formtastic-bootstrap
geckodriver-helper
gravtastic
guard-rspec
haml-rails
haml_lint
icalendar
@ -749,7 +713,6 @@ DEPENDENCIES
shoulda-matchers
simplecov-cobertura
skylight
spring-commands-rspec
sprockets-rails
sqlite3
stripe

View file

@ -165,7 +165,6 @@ GEM
aws_cf_signer
rest-client (>= 2.0.0)
cocoon (1.2.15)
coderay (1.1.3)
colorize (0.8.1)
concurrent-ruby (1.1.9)
countable-rails (0.0.1)
@ -244,7 +243,6 @@ GEM
ffi (1.15.3)
font-awesome-rails (4.7.0.8)
railties (>= 3.2, < 8.0)
formatador (0.3.0)
formtastic (3.1.5)
actionpack (>= 3.2.13)
formtastic-bootstrap (3.1.1)
@ -254,20 +252,6 @@ GEM
globalid (1.0.0)
activesupport (>= 5.0)
gravtastic (3.2.6)
guard (2.18.0)
formatador (>= 0.2.4)
listen (>= 2.7, < 4.0)
lumberjack (>= 1.0.12, < 2.0)
nenv (~> 0.1)
notiffany (~> 0.0)
pry (>= 0.13.0)
shellany (~> 0.0)
thor (>= 0.18.1)
guard-compat (1.2.1)
guard-rspec (4.7.3)
guard (~> 2.1)
guard-compat (~> 1.1)
rspec (>= 2.99.0, < 4.0)
haml (5.2.2)
temple (>= 0.8.0)
tilt
@ -334,13 +318,9 @@ GEM
letter_opener (~> 1.7)
railties (>= 5.2)
rexml
listen (3.6.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
loofah (2.13.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
lumberjack (1.2.8)
mail (2.7.1)
mini_mime (>= 0.1.1)
marcel (1.0.1)
@ -370,7 +350,6 @@ GEM
multi_xml (0.6.0)
multipart-post (2.1.1)
mysql2 (0.5.3)
nenv (0.3.0)
net-imap (0.2.3)
digest
net-protocol
@ -393,9 +372,6 @@ GEM
nokogiri (1.13.1)
mini_portile2 (~> 2.7.0)
racc (~> 1.4)
notiffany (0.1.3)
nenv (~> 0.1)
shellany (~> 0.0)
oauth2 (1.4.7)
faraday (>= 0.8, < 2.0)
jwt (>= 1.0, < 3.0)
@ -459,9 +435,6 @@ GEM
prawn-table
prawn-table (0.2.2)
prawn (>= 1.3.0, < 3.0.0)
pry (0.14.1)
coderay (~> 1.1)
method_source (~> 1.0)
public_suffix (4.0.6)
puma (4.3.8)
nio4r (~> 2.0)
@ -509,9 +482,6 @@ GEM
zeitwerk (~> 2.5)
rainbow (3.0.0)
rake (13.0.6)
rb-fsevent (0.11.0)
rb-inotify (0.10.1)
ffi (~> 1.0)
recaptcha (5.8.1)
json
redcarpet (3.5.1)
@ -532,10 +502,6 @@ GEM
chunky_png (~> 1.0)
rqrcode_core (~> 1.0)
rqrcode_core (1.1.0)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-activemodel-mocks (1.1.0)
activemodel (>= 3.0)
activesupport (>= 3.0)
@ -606,7 +572,6 @@ GEM
concurrent-ruby
faraday
sexp_processor (4.15.3)
shellany (0.0.1)
shoulda-matchers (4.5.1)
activesupport (>= 4.2.0)
simplecov (0.21.2)
@ -622,9 +587,6 @@ GEM
activesupport (>= 5.2.0)
sort_alphabetical (1.1.0)
unicode_utils (>= 1.2.2)
spring (2.1.1)
spring-commands-rspec (1.0.4)
spring (>= 0.9.1)
sprockets (4.0.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
@ -726,7 +688,6 @@ DEPENDENCIES
formtastic-bootstrap
geckodriver-helper
gravtastic
guard-rspec
haml-rails
haml_lint
icalendar
@ -789,7 +750,6 @@ DEPENDENCIES
shoulda-matchers
simplecov-cobertura
skylight
spring-commands-rspec
sprockets-rails
sqlite3
stripe

View file

@ -1,66 +0,0 @@
#!/usr/bin/ruby
# frozen_string_literal: true
#
# More info at https://github.com/guard/guard#readme
guard_opts = {
all_on_start: true,
all_after_pass: true,
cmd: 'spring rspec'
}
def model_specs ; 'spec/models' end
def model_spec(model)
"spec/models/#{model}_spec.rb"
end
def all_testunit_tests
[
model_tests,
controller_tests,
helper_tests,
integration_tests,
]
end
def all_specs
[
model_specs,
]
end
def startup_guards
watch(%r{^Gemfile$}) { yield }
watch(%r{^Gemfile.lock$}) { yield }
watch(%r{^config/routes.rb$}) { yield }
watch(%r{^config/application\.rb$}) { yield }
watch(%r{^config/environment\.rb$}) { yield }
watch(%r{^config/environments/.+\.rb$}) { yield }
watch(%r{^config/initializers/.+\.rb$}) { yield }
watch(%r{^db/schema\.rb$}) { yield }
watch(%r{^spec/spec_helper\.rb$}) { yield }
end
def rspec_guards
watch(%r{^spec/factories/.+\.rb$}) { all_specs }
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
end
group :rspec do
guard 'rspec', guard_opts do
#startup_guards { all_specs }
rspec_guards
#all_specs
end
end
# group :bundler do
# guard 'bundler' do
# watch('Gemfile')
# # Uncomment next line if Gemfile contain `gemspec' command
# # watch(/^.+\.gemspec/)
# end
# end

View file

@ -1,5 +1,4 @@
#!/usr/bin/env ruby
load File.expand_path('spring', __dir__)
require_relative '../config/boot'
require 'rake'
Rake.application.run

View file

@ -1,14 +0,0 @@
#!/usr/bin/env ruby
if !defined?(Spring) && [nil, 'development', 'test'].include?(ENV['RAILS_ENV'])
gem "bundler"
require "bundler"
# Load Spring without loading other gems in the Gemfile, for speed.
Bundler.locked_gems&.specs&.find { |spec| spec.name == 'spring' }&.tap do |spring|
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
gem 'spring', spring.version
require 'spring/binstub'
rescue Gem::LoadError
# Ignore when Spring is not installed.
end
end

View file

@ -1,6 +0,0 @@
Spring.watch(
'.ruby-version',
'.rbenv-vars',
'tmp/restart.txt',
'tmp/caching-dev.txt'
)