Drop guard (was also dropped in diaspora)
Add 'listen' gem as development dependency for rails
This commit is contained in:
parent
eba504ec48
commit
be56dea3fa
4 changed files with 8 additions and 81 deletions
7
Gemfile
7
Gemfile
|
|
@ -24,16 +24,15 @@ group :development do
|
||||||
gem "rubocop", "0.75.1", require: false
|
gem "rubocop", "0.75.1", require: false
|
||||||
gem "rubocop-rails", "2.3.2", require: false
|
gem "rubocop-rails", "2.3.2", require: false
|
||||||
|
|
||||||
# automatic test runs
|
|
||||||
gem "guard-rspec", require: false
|
|
||||||
gem "guard-rubocop", require: false
|
|
||||||
|
|
||||||
# debugging
|
# debugging
|
||||||
gem "pry"
|
gem "pry"
|
||||||
gem "pry-byebug"
|
gem "pry-byebug"
|
||||||
|
|
||||||
# documentation
|
# documentation
|
||||||
gem "yard", require: false
|
gem "yard", require: false
|
||||||
|
|
||||||
|
# rails needs this for development
|
||||||
|
gem "listen"
|
||||||
end
|
end
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
|
|
|
||||||
35
Gemfile.lock
35
Gemfile.lock
|
|
@ -69,31 +69,13 @@ GEM
|
||||||
faraday-net_http_persistent (1.1.0)
|
faraday-net_http_persistent (1.1.0)
|
||||||
faraday_middleware (1.0.0)
|
faraday_middleware (1.0.0)
|
||||||
faraday (~> 1.0)
|
faraday (~> 1.0)
|
||||||
ffi (1.11.1)
|
ffi (1.15.3)
|
||||||
formatador (0.2.5)
|
|
||||||
fuubar (2.4.1)
|
fuubar (2.4.1)
|
||||||
rspec-core (~> 3.0)
|
rspec-core (~> 3.0)
|
||||||
ruby-progressbar (~> 1.4)
|
ruby-progressbar (~> 1.4)
|
||||||
gitlab (4.17.0)
|
gitlab (4.17.0)
|
||||||
httparty (~> 0.18)
|
httparty (~> 0.18)
|
||||||
terminal-table (~> 1.5, >= 1.5.1)
|
terminal-table (~> 1.5, >= 1.5.1)
|
||||||
guard (2.15.1)
|
|
||||||
formatador (>= 0.2.4)
|
|
||||||
listen (>= 2.7, < 4.0)
|
|
||||||
lumberjack (>= 1.0.12, < 2.0)
|
|
||||||
nenv (~> 0.1)
|
|
||||||
notiffany (~> 0.0)
|
|
||||||
pry (>= 0.9.12)
|
|
||||||
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)
|
|
||||||
guard-rubocop (1.3.0)
|
|
||||||
guard (~> 2.0)
|
|
||||||
rubocop (~> 0.20)
|
|
||||||
hashdiff (1.0.0)
|
hashdiff (1.0.0)
|
||||||
httparty (0.18.1)
|
httparty (0.18.1)
|
||||||
mime-types (~> 3.0)
|
mime-types (~> 3.0)
|
||||||
|
|
@ -107,13 +89,12 @@ GEM
|
||||||
json-schema-rspec (0.0.4)
|
json-schema-rspec (0.0.4)
|
||||||
json-schema (~> 2.5)
|
json-schema (~> 2.5)
|
||||||
rspec
|
rspec
|
||||||
listen (3.2.0)
|
listen (3.5.1)
|
||||||
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.3.0)
|
loofah (2.3.0)
|
||||||
crass (~> 1.0.2)
|
crass (~> 1.0.2)
|
||||||
nokogiri (>= 1.5.9)
|
nokogiri (>= 1.5.9)
|
||||||
lumberjack (1.0.13)
|
|
||||||
macaddr (1.7.2)
|
macaddr (1.7.2)
|
||||||
systemu (~> 2.6.5)
|
systemu (~> 2.6.5)
|
||||||
method_source (0.9.2)
|
method_source (0.9.2)
|
||||||
|
|
@ -124,12 +105,8 @@ GEM
|
||||||
minitest (5.12.2)
|
minitest (5.12.2)
|
||||||
multi_xml (0.6.0)
|
multi_xml (0.6.0)
|
||||||
multipart-post (2.1.1)
|
multipart-post (2.1.1)
|
||||||
nenv (0.3.0)
|
|
||||||
nokogiri (1.10.4)
|
nokogiri (1.10.4)
|
||||||
mini_portile2 (~> 2.4.0)
|
mini_portile2 (~> 2.4.0)
|
||||||
notiffany (0.1.3)
|
|
||||||
nenv (~> 0.1)
|
|
||||||
shellany (~> 0.0)
|
|
||||||
nyan-cat-formatter (0.12.0)
|
nyan-cat-formatter (0.12.0)
|
||||||
rspec (>= 2.99, >= 2.14.2, < 4)
|
rspec (>= 2.99, >= 2.14.2, < 4)
|
||||||
octokit (4.21.0)
|
octokit (4.21.0)
|
||||||
|
|
@ -172,8 +149,8 @@ GEM
|
||||||
thor (>= 0.20.3, < 2.0)
|
thor (>= 0.20.3, < 2.0)
|
||||||
rainbow (3.0.0)
|
rainbow (3.0.0)
|
||||||
rake (13.0.3)
|
rake (13.0.3)
|
||||||
rb-fsevent (0.10.3)
|
rb-fsevent (0.11.0)
|
||||||
rb-inotify (0.10.0)
|
rb-inotify (0.10.1)
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
rexml (3.2.5)
|
rexml (3.2.5)
|
||||||
rspec (3.9.0)
|
rspec (3.9.0)
|
||||||
|
|
@ -217,7 +194,6 @@ GEM
|
||||||
sawyer (0.8.2)
|
sawyer (0.8.2)
|
||||||
addressable (>= 2.3.5)
|
addressable (>= 2.3.5)
|
||||||
faraday (> 0.8, < 2.0)
|
faraday (> 0.8, < 2.0)
|
||||||
shellany (0.0.1)
|
|
||||||
simplecov (0.17.1)
|
simplecov (0.17.1)
|
||||||
docile (~> 1.1)
|
docile (~> 1.1)
|
||||||
json (>= 1.8, < 3)
|
json (>= 1.8, < 3)
|
||||||
|
|
@ -254,9 +230,8 @@ DEPENDENCIES
|
||||||
diaspora_federation-rails!
|
diaspora_federation-rails!
|
||||||
diaspora_federation-test!
|
diaspora_federation-test!
|
||||||
fuubar (= 2.4.1)
|
fuubar (= 2.4.1)
|
||||||
guard-rspec
|
|
||||||
guard-rubocop
|
|
||||||
json-schema-rspec (= 0.0.4)
|
json-schema-rspec (= 0.0.4)
|
||||||
|
listen
|
||||||
nyan-cat-formatter
|
nyan-cat-formatter
|
||||||
pronto (= 0.11.0)
|
pronto (= 0.11.0)
|
||||||
pronto-rubocop (= 0.11.1)
|
pronto-rubocop (= 0.11.1)
|
||||||
|
|
|
||||||
30
Guardfile
30
Guardfile
|
|
@ -1,30 +0,0 @@
|
||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
guard :rspec, cmd: "NO_COVERAGE=true bin/rspec" do
|
|
||||||
require "guard/rspec/dsl"
|
|
||||||
dsl = Guard::RSpec::Dsl.new(self)
|
|
||||||
|
|
||||||
# RSpec files
|
|
||||||
rspec = dsl.rspec
|
|
||||||
watch(rspec.spec_helper) { rspec.spec_dir }
|
|
||||||
watch(rspec.spec_support) { rspec.spec_dir }
|
|
||||||
watch(rspec.spec_files)
|
|
||||||
|
|
||||||
# Ruby files
|
|
||||||
ruby = dsl.ruby
|
|
||||||
dsl.watch_spec_files_for(ruby.lib_files)
|
|
||||||
|
|
||||||
# Rails files
|
|
||||||
rails = dsl.rails
|
|
||||||
dsl.watch_spec_files_for(rails.app_files)
|
|
||||||
|
|
||||||
# Rails config changes
|
|
||||||
rails.app_controller = "app/controllers/diaspora_federation/application_controller.rb"
|
|
||||||
watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
|
|
||||||
watch(rails.routes) { "#{rspec.spec_dir}/routing" }
|
|
||||||
end
|
|
||||||
|
|
||||||
guard :rubocop do
|
|
||||||
watch(/.+\.rb$/)
|
|
||||||
watch(/\.rubocop\.yml$/) {|m| File.dirname(m[0]) }
|
|
||||||
end
|
|
||||||
17
bin/guard
17
bin/guard
|
|
@ -1,17 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
# frozen_string_literal: true
|
|
||||||
#
|
|
||||||
# This file was generated by Bundler.
|
|
||||||
#
|
|
||||||
# The application 'guard' is installed as part of a gem, and
|
|
||||||
# this file is here to facilitate running it.
|
|
||||||
#
|
|
||||||
|
|
||||||
require "pathname"
|
|
||||||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
||||||
Pathname.new(__FILE__).realpath)
|
|
||||||
|
|
||||||
require "rubygems"
|
|
||||||
require "bundler/setup"
|
|
||||||
|
|
||||||
load Gem.bin_path("guard", "guard")
|
|
||||||
Loading…
Reference in a new issue