Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switch to Guard for autotesting.

  • Loading branch information...
commit d19fb7d64d364ceb5f29cb6cf9d042f8939f0e62 1 parent 2d36017
@mbleigh mbleigh authored
Showing with 29 additions and 4 deletions.
  1. +1 −1  .rspec
  2. +11 −2 Gemfile.lock
  3. +14 −0 Guardfile
  4. +3 −1 grape.gemspec
View
2  .rspec
@@ -1,2 +1,2 @@
--color
---format=nested
+--format=progress
View
13 Gemfile.lock
@@ -11,8 +11,14 @@ PATH
GEM
remote: http://rubygems.org/
specs:
- ZenTest (4.5.0)
diff-lcs (1.1.2)
+ guard (0.6.2)
+ thor (~> 0.14.6)
+ guard-bundler (0.1.3)
+ bundler (>= 1.0.0)
+ guard (>= 0.2.2)
+ guard-rspec (0.4.2)
+ guard (>= 0.4.0)
json_pure (1.5.2)
maruku (0.6.0)
syntax (>= 1.0.0)
@@ -35,15 +41,18 @@ GEM
diff-lcs (~> 1.1.2)
rspec-mocks (2.6.0)
syntax (1.0.0)
+ thor (0.14.6)
yard (0.7.1)
PLATFORMS
ruby
DEPENDENCIES
- ZenTest
bundler
grape!
+ guard
+ guard-bundler
+ guard-rspec
json_pure
maruku
rack-test
View
14 Guardfile
@@ -0,0 +1,14 @@
+# A sample Guardfile
+# More info at https://github.com/guard/guard#readme
+
+guard 'rspec', :version => 2 do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec/" }
+end
+
+
+guard 'bundler' do
+ watch('Gemfile')
+ watch(/^.+\.gemspec/)
+end
View
4 grape.gemspec
@@ -25,8 +25,10 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rack-test'
s.add_development_dependency 'rspec', '~> 2.6.0'
s.add_development_dependency 'json_pure'
- s.add_development_dependency 'ZenTest'
s.add_development_dependency 'bundler'
+ s.add_development_dependency 'guard'
+ s.add_development_dependency 'guard-rspec'
+ s.add_development_dependency 'guard-bundler'
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
Please sign in to comment.
Something went wrong with that request. Please try again.