rspec_runner 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec_runner/configuration.rb +3 -2
- data/lib/rspec_runner/version.rb +1 -1
- data/lib/rspec_runner/watcher.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58a4a557c6bd140b731a24af28259ed795b499e3
|
4
|
+
data.tar.gz: ec4175f860a030417a0b52cb2ca2247d533e28be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e62105908fa9d3c6f45c625b299bda45ff1492f2f5c7be45bf7f55b0a2723883c14561f04c3b2f04515218a3d86e4f8442ed5050c3596ccfff21993edc3d4ee
|
7
|
+
data.tar.gz: 56d65e4d6d819b831ac65dd65131b98e481c784957d55033423fcd3364ab66e91140d7315e612a359e6f59d3e802f02f827b0a612ca5726e93091b2fda467369
|
@@ -1,12 +1,13 @@
|
|
1
1
|
module RspecRunner
|
2
2
|
class Configuration
|
3
|
-
attr_accessor :uri, :client_timeout, :watch_directories, :watch_pattern
|
3
|
+
attr_accessor :uri, :client_timeout, :watch_directories, :watch_pattern, :ignore_pattern
|
4
4
|
|
5
5
|
def initialize
|
6
6
|
@uri = 'druby://localhost:8787'.freeze
|
7
7
|
@client_timeout = 10 # seconds
|
8
|
-
@watch_directories = ["#{Dir.pwd}
|
8
|
+
@watch_directories = ["#{Dir.pwd}"]
|
9
9
|
@watch_pattern = /\.rb$/
|
10
|
+
@ignore_pattern = /spec\/.+_spec\.rb$/
|
10
11
|
end
|
11
12
|
end
|
12
13
|
|
data/lib/rspec_runner/version.rb
CHANGED
data/lib/rspec_runner/watcher.rb
CHANGED
@@ -13,6 +13,7 @@ module RspecRunner
|
|
13
13
|
@listener = Listen.to(
|
14
14
|
*RspecRunner.configuration.watch_directories,
|
15
15
|
only: RspecRunner.configuration.watch_pattern,
|
16
|
+
ignore: RspecRunner.configuration.ignore_pattern,
|
16
17
|
wait_for_delay: 1
|
17
18
|
) do |modified, added, removed|
|
18
19
|
if((modified.size + added.size + removed.size) > 0)
|