Skip to content

Commit 2de0727

Browse files
committed
Upgrade guard-rspec
1 parent c62e7d9 commit 2de0727

File tree

3 files changed

+45
-19
lines changed

3 files changed

+45
-19
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ group :development do
44
gem 'rspec'
55
gem 'rspec-power_assert'
66

7-
gem 'guard-rspec', "~> 4.3.1"
7+
gem 'guard-rspec'
88

99
# Runs on Mac OS X
1010
gem 'growl'

Gemfile.lock

+20-16
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,42 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
celluloid (0.16.0)
5-
timers (~> 4.0.0)
64
coderay (1.1.0)
75
diff-lcs (1.2.5)
8-
ffi (1.9.6)
6+
ffi (1.9.10)
97
formatador (0.2.5)
108
growl (1.0.3)
11-
guard (2.6.1)
9+
guard (2.13.0)
1210
formatador (>= 0.2.4)
13-
listen (~> 2.7)
11+
listen (>= 2.7, <= 4.0)
1412
lumberjack (~> 1.0)
13+
nenv (~> 0.1)
14+
notiffany (~> 0.0)
1515
pry (>= 0.9.12)
16+
shellany (~> 0.0)
1617
thor (>= 0.18.1)
17-
guard-rspec (4.3.1)
18+
guard-compat (1.2.1)
19+
guard-rspec (4.6.4)
1820
guard (~> 2.1)
19-
rspec (>= 2.14, < 4.0)
20-
hitimes (1.2.2)
21+
guard-compat (~> 1.1)
22+
rspec (>= 2.99.0, < 4.0)
2123
libnotify (0.8.4)
2224
ffi (>= 1.0.11)
23-
listen (2.7.11)
24-
celluloid (>= 0.15.2)
25+
listen (3.0.5)
2526
rb-fsevent (>= 0.9.3)
2627
rb-inotify (>= 0.9)
27-
lumberjack (1.0.9)
28+
lumberjack (1.0.10)
2829
method_source (0.8.2)
30+
nenv (0.2.0)
31+
notiffany (0.0.8)
32+
nenv (~> 0.1)
33+
shellany (~> 0.0)
2934
power_assert (0.2.1)
30-
pry (0.10.1)
35+
pry (0.10.3)
3136
coderay (~> 1.1.0)
3237
method_source (~> 0.8.1)
3338
slop (~> 3.4)
34-
rb-fsevent (0.9.4)
39+
rb-fsevent (0.9.7)
3540
rb-inotify (0.9.5)
3641
ffi (>= 0.5.0)
3742
rb-notifu (0.0.4)
@@ -51,17 +56,16 @@ GEM
5156
power_assert (~> 0.2.0)
5257
rspec (>= 2.14)
5358
rspec-support (3.4.1)
59+
shellany (0.0.1)
5460
slop (3.6.0)
5561
thor (0.19.1)
56-
timers (4.0.1)
57-
hitimes
5862

5963
PLATFORMS
6064
ruby
6165

6266
DEPENDENCIES
6367
growl
64-
guard-rspec (~> 4.3.1)
68+
guard-rspec
6569
libnotify
6670
rb-notifu
6771
rspec

Guardfile

+24-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
1+
# A sample Guardfile
2+
# More info at https://github.com/guard/guard#readme
13

4+
## Uncomment and set this to only include directories you want to watch
5+
# directories %w(app lib config test spec features) \
6+
# .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
27

3-
guard 'rspec', cmd: 'bundle exec rspec' do
8+
## Note: if you are using the `directories` clause above and you are not
9+
## watching the project directory ('.'), then you will want to move
10+
## the Guardfile to a watched dir and symlink it back, e.g.
11+
#
12+
# $ mkdir config
13+
# $ mv Guardfile config/
14+
# $ ln -s config/Guardfile .
15+
#
16+
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17+
18+
# Note: The cmd option is now required due to the increasing number of ways
19+
# rspec may be run, below are examples of the most common uses.
20+
# * bundler: 'bundle exec rspec'
21+
# * bundler binstubs: 'bin/rspec'
22+
# * spring: 'bin/rsspec' (This will use spring if running and you have
23+
# installed the spring binstubs per the docs)
24+
# * zeus: 'zeus rspec' (requires the server to be started separetly)
25+
# * 'just' rspec: 'rspec'
26+
guard :rspec, cmd: 'bundle exec rspec' do
427
watch(%r{^spec/.+_spec\.rb$})
528
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
629
watch('spec/spec_helper.rb') { "spec" }
730
end
8-

0 commit comments

Comments
 (0)