Skip to content
This repository
Browse code

Add guard

  • Loading branch information...
commit 7f0b643047f39c0ff12e93e4515130c4e1021c90 1 parent ebe7342
Ken Mayer authored
1  .rvmrc
... ... @@ -0,0 +1 @@
  1 +rvm gemset use heroku_san --create
23 Gemfile
... ... @@ -1,4 +1,23 @@
1   -source :rubygems
  1 +source 'https://rubygems.org'
2 2
3 3 # Specify dependencies in heroku_san.gemspec
4   -gemspec
  4 +gemspec
  5 +
  6 +group :development do
  7 + gem 'rails', '>= 2'
  8 + gem 'rspec'
  9 + gem 'aruba'
  10 + gem 'cucumber'
  11 + gem 'rake'
  12 + gem 'bundler', '~> 1.1'
  13 + gem 'git-smart'
  14 + gem 'godot'
  15 + gem 'guard'
  16 + gem 'rb-inotify', :require => false
  17 + gem 'rb-fsevent', :require => false
  18 + gem 'rb-fchange', :require => false
  19 + gem 'terminal-notifier-guard'
  20 + gem 'guard-rspec'
  21 + gem 'guard-bundler'
  22 + gem 'guard-cucumber'
  23 +end
21 Guardfile
... ... @@ -0,0 +1,21 @@
  1 +# A sample Guardfile
  2 +# More info at https://github.com/guard/guard#readme
  3 +
  4 +guard 'bundler' do
  5 + watch('Gemfile')
  6 + watch(/^.+\.gemspec/)
  7 +end
  8 +
  9 +guard 'rspec' do
  10 + watch(%r{^spec/.+_spec\.rb$})
  11 + watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
  12 + watch('spec/spec_helper.rb') { "spec" }
  13 + watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
  14 + watch(%r{^spec/fixtures/(.+)\.yml$}) { "spec" }
  15 +end
  16 +
  17 +guard 'cucumber', :cli => '--tags @fast' do
  18 + watch(%r{^features/.+\.feature$})
  19 + watch(%r{^features/support/.+$}) { 'features' }
  20 + watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
  21 +end
8 heroku_san.gemspec
@@ -29,14 +29,6 @@ Gem::Specification.new do |s|
29 29 if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
30 30 s.add_runtime_dependency(%q<heroku-api>, ['>= 0.1.2'])
31 31 s.add_runtime_dependency(%q<rake>)
32   - s.add_development_dependency(%q<rails>, ['>= 2'])
33   - s.add_development_dependency(%q<rspec>)
34   - s.add_development_dependency(%q<aruba>)
35   - s.add_development_dependency(%q<cucumber>)
36   - s.add_development_dependency(%q<rake>)
37   - s.add_development_dependency(%q<bundler>, ['~> 1.1 '])
38   - s.add_development_dependency('git-smart')
39   - s.add_development_dependency('godot')
40 32 else
41 33 s.add_dependency(%q<rails>, ['>= 2'])
42 34 s.add_dependency(%q<heroku-api>, ['>= 0.1.2'])
7 spec/spec_helper.rb
@@ -10,13 +10,6 @@
10 10 Dir[File.join(SPEC_ROOT, "support/**/*.rb")].each {|f| require f}
11 11
12 12 RSpec.configure do |config|
13   - # == Mock Framework
14   - #
15   - # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
16   - #
17   - # config.mock_with :mocha
18   - # config.mock_with :flexmock
19   - # config.mock_with :rr
20 13 config.mock_with :rspec
21 14 end
22 15

0 comments on commit 7f0b643

Please sign in to comment.
Something went wrong with that request. Please try again.