Sha256: 250c6cf4124e385ae5a74f2256638551dab2e1c1a7c52a41f414a03e97bba6e2

Contents?: true

Size: 875 Bytes

Versions: 14

Compression:

Stored size: 875 Bytes

Contents

# rubocop:disable all
# 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

CMD = 'bundle exec rspec -f doc --color'

guard :rspec, cmd: CMD 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, cli: ['-D'] do
#   watch(%r{.+\.rb$})
#   watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
# end
# rubocop:enable all

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
movie_organizer-1.0.2 Guardfile
movie_organizer-1.0.1 Guardfile
movie_organizer-0.1.11 Guardfile
movie_organizer-0.1.10 Guardfile
movie_organizer-0.1.9 Guardfile
movie_organizer-0.1.8 Guardfile
movie_organizer-0.1.7 Guardfile
movie_organizer-0.1.6 Guardfile
movie_organizer-0.1.5 Guardfile
movie_organizer-0.1.4 Guardfile
movie_organizer-0.1.3 Guardfile
movie_organizer-0.1.2 Guardfile
movie_organizer-0.1.1 Guardfile
movie_organizer-0.1.0 Guardfile