Sha256: ddeaad1e72276c35032bc040cc83d1bf4776e913fd0be555c80416197e6a7857
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
guard 'rspec', :version => 2, :spec_paths => %w(spec), :cli => (File.read('.rspec').split("\n").join(' ') if File.exists?('.rspec')) do watch(%r{^spec/.+_spec\.rb$}) watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/requests/#{m[1]}_spec.rb"] } watch(%r{^spec/support/(.+)\.rb$}) { "spec" } watch("spec/spec_helper.rb") { "spec" } watch("config/routes.rb") watch("app/controllers/application_controller.rb") { "spec/controllers" } # Capybara request specs watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/requests/#{m[1]}_spec.rb" } watch(%r{^app/assets/javascripts/(.+)/.*\.(js|coffee|erb)$}) { |m| "spec/requests/#{m[1]}_spec.rb" } end guard 'bundler' do watch('Gemfile') watch(/^.+\.gemspec/) end guard :rubocop do watch(%r{.+\.rb$}) watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gaku-0.0.2 | core/Guardfile |
gaku-0.0.1 | core/Guardfile |