Skip to content

Commit

Permalink
Add guard
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Mayer committed Mar 23, 2013
1 parent ebe7342 commit 7f0b643
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 17 deletions.
1 change: 1 addition & 0 deletions .rvmrc
@@ -0,0 +1 @@
rvm gemset use heroku_san --create
23 changes: 21 additions & 2 deletions Gemfile
@@ -1,4 +1,23 @@
source :rubygems source 'https://rubygems.org'


# Specify dependencies in heroku_san.gemspec # Specify dependencies in heroku_san.gemspec
gemspec gemspec

group :development do
gem 'rails', '>= 2'
gem 'rspec'
gem 'aruba'
gem 'cucumber'
gem 'rake'
gem 'bundler', '~> 1.1'
gem 'git-smart'
gem 'godot'
gem 'guard'
gem 'rb-inotify', :require => false
gem 'rb-fsevent', :require => false
gem 'rb-fchange', :require => false
gem 'terminal-notifier-guard'
gem 'guard-rspec'
gem 'guard-bundler'
gem 'guard-cucumber'
end
21 changes: 21 additions & 0 deletions Guardfile
@@ -0,0 +1,21 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme

guard 'bundler' do
watch('Gemfile')
watch(/^.+\.gemspec/)
end

guard 'rspec' do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
watch(%r{^spec/fixtures/(.+)\.yml$}) { "spec" }
end

guard 'cucumber', :cli => '--tags @fast' do
watch(%r{^features/.+\.feature$})
watch(%r{^features/support/.+$}) { 'features' }
watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
end
8 changes: 0 additions & 8 deletions heroku_san.gemspec
Expand Up @@ -29,14 +29,6 @@ Gem::Specification.new do |s|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<heroku-api>, ['>= 0.1.2']) s.add_runtime_dependency(%q<heroku-api>, ['>= 0.1.2'])
s.add_runtime_dependency(%q<rake>) s.add_runtime_dependency(%q<rake>)
s.add_development_dependency(%q<rails>, ['>= 2'])
s.add_development_dependency(%q<rspec>)
s.add_development_dependency(%q<aruba>)
s.add_development_dependency(%q<cucumber>)
s.add_development_dependency(%q<rake>)
s.add_development_dependency(%q<bundler>, ['~> 1.1 '])
s.add_development_dependency('git-smart')
s.add_development_dependency('godot')
else else
s.add_dependency(%q<rails>, ['>= 2']) s.add_dependency(%q<rails>, ['>= 2'])
s.add_dependency(%q<heroku-api>, ['>= 0.1.2']) s.add_dependency(%q<heroku-api>, ['>= 0.1.2'])
Expand Down
7 changes: 0 additions & 7 deletions spec/spec_helper.rb
Expand Up @@ -10,13 +10,6 @@
Dir[File.join(SPEC_ROOT, "support/**/*.rb")].each {|f| require f} Dir[File.join(SPEC_ROOT, "support/**/*.rb")].each {|f| require f}


RSpec.configure do |config| RSpec.configure do |config|
# == Mock Framework
#
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
#
# config.mock_with :mocha
# config.mock_with :flexmock
# config.mock_with :rr
config.mock_with :rspec config.mock_with :rspec
end end


Expand Down

0 comments on commit 7f0b643

Please sign in to comment.