Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added Guard

  • Loading branch information...
commit 313f67b5da4be04290485552d4d194f753c5a130 1 parent 6ba6695
P. James authored

Showing 4 changed files with 55 additions and 2 deletions. Show diff stats Hide diff stats

  1. +8 0 .gitignore
  2. +12 1 Gemfile
  3. +16 1 Gemfile.lock
  4. +19 0 Guardfile
8 .gitignore
@@ -13,3 +13,11 @@
13 13 # Ignore all logfiles and tempfiles.
14 14 /log/*.log
15 15 /tmp
  16 +
  17 +# Ignore other unneeded files.
  18 +*.swp
  19 +*~
  20 +.project
  21 +.DS_Store
  22 +bundler_stubs/
  23 +.sass-cache/
13 Gemfile
@@ -8,11 +8,22 @@ gem 'rails', '3.2.3'
8 8 gem 'sqlite3'
9 9
10 10 group :development, :test do
11   - gem 'rspec-rails'
  11 + gem 'guard-rspec'
  12 + gem 'rspec-rails'
12 13 end
13 14
14 15 group :test do
15 16 gem 'capybara'
  17 +
  18 + if RUBY_PLATFORM =~ /darwin/
  19 + gem 'rb-fsevent', :require => false
  20 + gem 'growl'
  21 + else
  22 + gem 'rb-fchange'
  23 + gem 'rb-notifu'
  24 + gem 'win32console'
  25 + end
  26 +
16 27 end
17 28
18 29 # Gems used only for assets and not required
17 Gemfile.lock
@@ -51,6 +51,11 @@ GEM
51 51 execjs (1.3.0)
52 52 multi_json (~> 1.0)
53 53 ffi (1.0.11)
  54 + guard (1.0.1)
  55 + ffi (>= 0.5.0)
  56 + thor (~> 0.14.6)
  57 + guard-rspec (0.6.0)
  58 + guard (>= 0.10.0)
54 59 hike (1.2.1)
55 60 i18n (0.6.0)
56 61 journey (1.0.3)
@@ -64,6 +69,7 @@ GEM
64 69 treetop (~> 1.4.8)
65 70 mime-types (1.18)
66 71 multi_json (1.2.0)
  72 + nokogiri (1.5.2)
67 73 nokogiri (1.5.2-x86-mingw32)
68 74 polyglot (0.3.3)
69 75 rack (1.4.1)
@@ -89,6 +95,9 @@ GEM
89 95 rdoc (~> 3.4)
90 96 thor (~> 0.14.6)
91 97 rake (0.9.2.2)
  98 + rb-fchange (0.0.5)
  99 + ffi
  100 + rb-notifu (0.0.4)
92 101 rdoc (3.12)
93 102 json (~> 1.4)
94 103 rspec (2.9.0)
@@ -119,6 +128,7 @@ GEM
119 128 hike (~> 1.2)
120 129 rack (~> 1.0)
121 130 tilt (~> 1.1, != 1.3.0)
  131 + sqlite3 (1.3.5)
122 132 sqlite3 (1.3.5-x86-mingw32)
123 133 thor (0.14.6)
124 134 tilt (1.3.3)
@@ -129,6 +139,7 @@ GEM
129 139 uglifier (1.2.4)
130 140 execjs (>= 0.3.0)
131 141 multi_json (>= 1.0.2)
  142 + win32console (1.3.0-x86-mingw32)
132 143 xpath (0.1.4)
133 144 nokogiri (~> 1.3)
134 145
@@ -136,11 +147,15 @@ PLATFORMS
136 147 x86-mingw32
137 148
138 149 DEPENDENCIES
139   - capybara (= 1.1.2)
  150 + capybara
140 151 coffee-rails (~> 3.2.1)
  152 + guard-rspec
141 153 jquery-rails
142 154 rails (= 3.2.3)
  155 + rb-fchange
  156 + rb-notifu
143 157 rspec-rails
144 158 sass-rails (~> 3.2.3)
145 159 sqlite3
146 160 uglifier (>= 1.0.3)
  161 + win32console
19 Guardfile
... ... @@ -0,0 +1,19 @@
  1 +# A sample Guardfile
  2 +# More info at https://github.com/guard/guard#readme
  3 +
  4 +guard 'rspec', :version => 2, :all_after_pass => false do
  5 + watch(%r{^spec/.+_spec\.rb$})
  6 + watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
  7 + watch('spec/spec_helper.rb') { "spec" }
  8 +
  9 + # Rails example
  10 + watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
  11 + watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
  12 + watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
  13 + watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
  14 + watch('config/routes.rb') { "spec/routing" }
  15 + watch('app/controllers/application_controller.rb') { "spec/controllers" }
  16 + # Capybara request specs
  17 + watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
  18 +end
  19 +

0 comments on commit 313f67b

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