Sha256: 42ebabb1171356bc29c06bfd0eca11d423c9a0b3a3dabbc28192b15f4b22e90a

Contents?: true

Size: 1.32 KB

Versions: 22

Compression:

Stored size: 1.32 KB

Contents

# A sample Guardfile
# More info at https://github.com/guard/guard#readme

## Uncomment and set this to only include directories you want to watch
# directories %w(app lib config test spec features) \
#	.select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}

## Note: if you are using the `directories` clause above and you are not
## watching the project directory ('.'), then you will want to move
## the Guardfile to a watched dir and symlink it back, e.g.
#
#	$ mkdir config
#	$ mv Guardfile config/
#	$ ln -s config/Guardfile .
#
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"

# Note: The cmd option is now required due to the increasing number of ways
#			 rspec may be run, below are examples of the most common uses.
#	* bundler: 'bundle exec rspec'
#	* bundler binstubs: 'bin/rspec'
#	* spring: 'bin/rspec' (This will use spring if running and you have
#													installed the spring binstubs per the docs)
#	* zeus: 'zeus rspec' (requires the server to be started separately)
#	* 'just' rspec: 'rspec'

guard :rspec, cmd: "rspec" do
	# watch /lib/ files
	watch(%r{^lib/(.+).rb$}) do |m|
		puts m[1]
		"spec/#{m[1]}_spec.rb"
	end
	
	watch(%r{^app/(.+).rb$}) do |m|
		puts m[1]
		"spec/#{m[1]}_spec.rb"
	end

	# watch /spec/ files
	watch(%r{^spec/(.+).rb$}) do |m|
		"spec/#{m[1]}.rb"
	end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rails_blocks-0.9.0.beta.5 Guardfile
rails_blocks-0.9.0.beta.4 Guardfile
rails_blocks-0.9.0.beta.3 Guardfile
rails_blocks-0.9.0.beta.2 Guardfile
rails_blocks-0.9.0.beta.1 Guardfile
rails_blocks-0.8.1 Guardfile
rails_blocks-0.7.12 Guardfile
rails_blocks-0.7.11 Guardfile
rails_blocks-0.7.10 Guardfile
rails_blocks-0.7.9 Guardfile
rails_blocks-0.7.8 Guardfile
rails_blocks-0.7.7 Guardfile
rails_blocks-0.7.6 Guardfile
rails_blocks-0.7.5 Guardfile
rails_blocks-0.7.4 Guardfile
rails_blocks-0.7.3 Guardfile
rails_blocks-0.7.2 Guardfile
rails_blocks-0.7.1 Guardfile
rails_blocks-0.6.5 Guardfile
rails_blocks-0.6.4 Guardfile