Skip to content

Commit b88ff89

Browse files
committed
added guard
1 parent a7e04d9 commit b88ff89

File tree

3 files changed

+92
-1
lines changed

3 files changed

+92
-1
lines changed

Gemfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@ source "https://rubygems.org"
22

33
gemspec
44

5-
gem "rack-proxy", :git => 'https://github.com/tstmedia/rack-proxy.git'
5+
gem "rack-proxy", :git => 'https://github.com/tstmedia/rack-proxy.git'
6+
gem 'rb-fsevent'
7+
gem 'guard'
8+
gem 'guard-rspec'
9+
gem 'guard-shell'
10+
gem 'guard-bundler'
11+
gem 'terminal-notifier-guard'

Gemfile.lock

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,54 @@ GEM
1515
remote: https://rubygems.org/
1616
specs:
1717
addressable (2.2.6)
18+
coderay (1.0.9)
1819
crack (0.1.8)
20+
ffi (1.9.0)
21+
ffi (1.9.0-java)
22+
formatador (0.2.4)
23+
guard (1.8.1)
24+
formatador (>= 0.2.4)
25+
listen (>= 1.0.0)
26+
lumberjack (>= 1.0.2)
27+
pry (>= 0.9.10)
28+
thor (>= 0.14.6)
29+
guard-bundler (1.0.0)
30+
bundler (~> 1.0)
31+
guard (~> 1.1)
32+
guard-rspec (1.2.1)
33+
guard (>= 1.1)
34+
guard-shell (0.5.1)
35+
guard (>= 1.1.0)
36+
listen (1.2.2)
37+
rb-fsevent (>= 0.9.3)
38+
rb-inotify (>= 0.9)
39+
rb-kqueue (>= 0.2)
40+
lumberjack (1.0.4)
41+
method_source (0.8.1)
42+
pry (0.9.12.2)
43+
coderay (~> 1.0.5)
44+
method_source (~> 0.8)
45+
slop (~> 3.4)
46+
pry (0.9.12.2-java)
47+
coderay (~> 1.0.5)
48+
method_source (~> 0.8)
49+
slop (~> 3.4)
50+
spoon (~> 0.0)
1951
rack (1.4.1)
2052
rack-test (0.5.7)
2153
rack (>= 1.0)
2254
rake (0.8.7)
55+
rb-fsevent (0.9.3)
56+
rb-inotify (0.9.0)
57+
ffi (>= 0.5.0)
58+
rb-kqueue (0.2.0)
59+
ffi (>= 0.5.0)
2360
rspec (1.3.2)
61+
slop (3.4.5)
62+
spoon (0.0.4)
63+
ffi
64+
terminal-notifier-guard (1.5.3)
65+
thor (0.18.1)
2466
webmock (1.5.0)
2567
addressable (>= 2.2.2)
2668
crack (>= 0.1.7)
@@ -30,9 +72,15 @@ PLATFORMS
3072
ruby
3173

3274
DEPENDENCIES
75+
guard
76+
guard-bundler
77+
guard-rspec
78+
guard-shell
3379
rack-proxy!
3480
rack-reverse-proxy!
3581
rack-test (~> 0.5.7)
3682
rake (~> 0.8.7)
83+
rb-fsevent
3784
rspec (~> 1.3.2)
85+
terminal-notifier-guard
3886
webmock (~> 1.5.0)

Guardfile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# A sample Guardfile
2+
# More info at https://github.com/guard/guard#readme
3+
4+
guard 'bundler' do
5+
watch('Gemfile')
6+
# Uncomment next line if Gemfile contain `gemspec' command
7+
# watch(/^.+\.gemspec/)
8+
end
9+
10+
guard 'rspec', :version => 1 do
11+
watch(%r{^spec/.+_spec\.rb$})
12+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
13+
watch('spec/spec_helper.rb') { "spec" }
14+
15+
# Rails example
16+
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
17+
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
18+
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"] }
19+
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
20+
watch('config/routes.rb') { "spec/routing" }
21+
watch('app/controllers/application_controller.rb') { "spec/controllers" }
22+
23+
# Capybara request specs
24+
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
25+
26+
# Turnip features and steps
27+
watch(%r{^spec/acceptance/(.+)\.feature$})
28+
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
29+
end
30+
31+
32+
# Add files and commands to this file, like the example:
33+
# watch(%r{file/path}) { `command(s)` }
34+
#
35+
guard 'shell' do
36+
watch(/(.*).txt/) {|m| `tail #{m[0]}` }
37+
end

0 commit comments

Comments
 (0)