Sha256: a9c8cde0bb52c1b651edbd72dbb2935b5c81fffd3e74f767bda0037a34a89c97

Contents?: true

Size: 989 Bytes

Versions: 9

Compression:

Stored size: 989 Bytes

Contents

clearing :on

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' 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

unless ENV["DISABLE_RUBOCOP"] == 'true'
  guard :rubocop do
    watch(/.+\.rb$/)
    watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) }
  end
end

unless ENV["DISABLE_YARD"] == 'true'
  guard 'yard' do
    watch(%r{app\/.+\.rb})
    watch(%r{lib\/.+\.rb})
    watch(%r{ext\/.+\.c})
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
creatable-2.3.1 Guardfile
creatable-2.3.0 Guardfile
creatable-2.2.1 Guardfile
creatable-2.2.0 Guardfile
creatable-2.1.1 Guardfile
creatable-2.1.0 Guardfile
pushover-2.0.0 Guardfile
creatable-2.0.1 Guardfile
creatable-2.0.0 Guardfile