Sha256: 0416d6e61909fd1809f1bdc78ef6d2cf5c0cf3a37fe639eb59e04d3dcef86c41
Contents?: true
Size: 604 Bytes
Versions: 4
Compression:
Stored size: 604 Bytes
Contents
# frozen_string_literal: true %w[lib spec].select { |d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist") } guard(:rspec, cmd: "bundle exec rspec --format progress") 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) do watch(/.+\.rb$/) watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) } end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
zapp-0.2.2 | Guardfile |
zapp-0.2.1 | Guardfile |
zapp-0.1.1 | Guardfile |
zapp-0.1.0 | Guardfile |