Sha256: 37320f0601a88f68c28c50c5271061b77c0c1ea704ea931fe9945bef7a0e5ef7
Contents?: true
Size: 1.09 KB
Versions: 12
Compression:
Stored size: 1.09 KB
Contents
# Copyright (c) 2024 Jerome Arbez-Gindre # frozen_string_literal: true # notifications :emacs guard :bundler do require 'guard/bundler' require 'guard/bundler/verify' helper = Guard::Bundler::Verify.new files = ['Gemfile'] files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) } # Assume files are symlinked from somewhere files.each { |file| watch(helper.real_path(file)) } end guard :rspec, cmd: 'bundle exec rspec --options config/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) end guard :rubocop, all_on_start: true, cli: ['--display-cop-names', '--config=config/rubocop.yml'] do watch(/.+\.rb$/) watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m.first) } end guard :reek, cli: ['--config config/reek.yml', '--single-line'] do watch(/.+\.rb$/) watch('config/reek.yml') end
Version data entries
12 entries across 12 versions & 2 rubygems