Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Commit f989a60

Browse files
committed
Use Guard
1 parent 05bd7b6 commit f989a60

File tree

4 files changed

+52
-1
lines changed

4 files changed

+52
-1
lines changed

Gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ gem 'bootstrap-sass', '~> 3.0.2.0'
1919
gem "treetop", "~> 1.4.14"
2020
gem "builder", "~> 3.2.2"
2121
gem "nokogiri", "~> 1.6.0"
22-
gem "rspec", "~> 2.14.1"
2322
gem "oauth2", "~> 0.9.2"
2423
gem "newrelic_rpm", "~> 3.7"
2524

2625
gem "log4r"
2726

2827
group :development do
2928
gem "shotgun"
29+
gem "rspec", "~> 2.14.1"
30+
gem 'guard-rspec', require: false
3031
end

Gemfile.lock

+29
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,26 @@ GEM
1212
sass (~> 3.2)
1313
builder (3.2.2)
1414
chunky_png (1.3.0)
15+
coderay (1.1.0)
1516
compass (0.12.2)
1617
chunky_png (~> 1.2)
1718
fssm (>= 0.2.7)
1819
sass (~> 3.1)
1920
diff-lcs (1.2.5)
2021
faraday (0.9.0)
2122
multipart-post (>= 1.2, < 3)
23+
ffi (1.9.3)
24+
formatador (0.2.4)
2225
fssm (0.2.10)
26+
guard (1.8.3)
27+
formatador (>= 0.2.4)
28+
listen (~> 1.3)
29+
lumberjack (>= 1.0.2)
30+
pry (>= 0.9.10)
31+
thor (>= 0.14.6)
32+
guard-rspec (3.1.0)
33+
guard (>= 1.8)
34+
rspec (~> 2.13)
2335
haml (4.0.5)
2436
tilt
2537
hike (1.2.3)
@@ -29,7 +41,13 @@ GEM
2941
i18n (0.6.9)
3042
jwt (0.1.11)
3143
multi_json (>= 1.5)
44+
listen (1.3.1)
45+
rb-fsevent (>= 0.9.3)
46+
rb-inotify (>= 0.9)
47+
rb-kqueue (>= 0.2)
3248
log4r (1.1.10)
49+
lumberjack (1.0.4)
50+
method_source (0.8.2)
3351
mini_portile (0.5.2)
3452
minitest (4.7.5)
3553
multi_json (1.8.4)
@@ -55,9 +73,18 @@ GEM
5573
i18n (~> 0.6, >= 0.6.7)
5674
padrino-core (= 0.12.0)
5775
polyglot (0.3.4)
76+
pry (0.9.12.6)
77+
coderay (~> 1.0)
78+
method_source (~> 0.8)
79+
slop (~> 3.4)
5880
rack (1.5.2)
5981
rack-protection (1.5.2)
6082
rack
83+
rb-fsevent (0.9.4)
84+
rb-inotify (0.9.3)
85+
ffi (>= 0.5.0)
86+
rb-kqueue (0.2.2)
87+
ffi (>= 0.5.0)
6188
rspec (2.14.1)
6289
rspec-core (~> 2.14.0)
6390
rspec-expectations (~> 2.14.0)
@@ -75,6 +102,7 @@ GEM
75102
tilt (~> 1.3, >= 1.3.4)
76103
sinatra-support (1.2.2)
77104
sinatra (>= 1.0)
105+
slop (3.5.0)
78106
sprockets (2.11.0)
79107
hike (~> 1.2)
80108
multi_json (~> 1.0)
@@ -103,6 +131,7 @@ DEPENDENCIES
103131
bootstrap-sass (~> 3.0.2.0)
104132
builder (~> 3.2.2)
105133
compass
134+
guard-rspec
106135
haml
107136
log4r
108137
newrelic_rpm (~> 3.7)

Guardfile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# A sample Guardfile
2+
# More info at https://github.com/guard/guard#readme
3+
4+
guard :rspec 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+
end
9+

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ Steno has a grammar which does its best to make sense of a plain text version of
3939

4040
# Developing and contributing
4141

42+
To run tests, use either
43+
44+
`rspec`
45+
46+
to run the specs once off, or use
47+
48+
`guard`
49+
50+
to run them continuously.
51+
52+
## Pull requests
53+
4254
We welcome pull requests!
4355

4456
Steno is a [Sinatra](http://www.sinatrarb.com/) ruby app. To install and run it locally,

0 commit comments

Comments
 (0)