Sha256: 9376726ae715779d4e5091caa2e0fedd8730b9fe6362da5106413b42bb49271b

Contents?: true

Size: 878 Bytes

Versions: 3

Compression:

Stored size: 878 Bytes

Contents

# A sample Guardfile
# More info at https://github.com/guard/guard#readme
def fire
  require "ostruct"

  # Generic Ruby apps
  rspec = OpenStruct.new
  rspec.spec = ->(m) { "spec/#{m}_spec.rb" }
  rspec.spec_dir = "spec"
  rspec.spec_helper = "spec/spec_helper.rb"


  watch(%r{^spec/.+_spec\.rb$})
#  watch(%r{^spec/usecase/(.+)\.rb$})
  watch(%r{^arcade/(.+)\.rb$})     { |m| "spec/arcade/#{m[1]}_spec.rb" }
  watch(%r{^lib/(.+)\.rb$})     { |m| "spec/lib/#{m[1]}_spec.rb" }
#  watch(%r{^examples/time_graph/spec/(.+)_spec\.rb$}) 
#  watch('examples/time_graph/spec/create_time_spec.rb') 
  watch('spec/spec_helper.rb')  { "spec" }

  watch(%r{^spec/arcade/(.+)_spec\.rb$})  
end


#interactor :simple
#if RUBY_PLATFORM == 'java' 
#guard( 'jruby-rspec') {fire}  #', :spec_paths => ["spec"]
#else
guard( :rspec, cmd: "bundle exec rspec --format documentation ") { fire }
#end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
arcadedb-0.5.0 Guardfile
arcadedb-0.4 Guardfile
arcadedb-0.3.3 Guardfile