curacao 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/curacao/matcher.rb +16 -0
- data/lib/curacao/version.rb +1 -1
- 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: eda45a5d5ea84c0c7578804e3089eac96080f694
|
4
|
+
data.tar.gz: f985020aee8084b7d08b696b122856b4c2150547
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bf2a89689eb2256071659ba341d421d4ff5b61b14084348a7b4291f9a9f35f6bc0452b1a4e53e205a8c1d58ef4d5d92bc094ccf22c46185997aa695b4b91682
|
7
|
+
data.tar.gz: 994662a0491bf22ded8c3601f77286e77628d1323c75c12cbee240b6c1fc473acc9db764b7fc1ec7cb3f1be5d18a3c8749cac35f7f388d4209a06401f61f7afe
|
data/lib/curacao/matcher.rb
CHANGED
@@ -14,4 +14,20 @@ RSpec.configure do |config|
|
|
14
14
|
config.after(:each) do
|
15
15
|
FileUtils.cd $pwd
|
16
16
|
end
|
17
|
+
|
18
|
+
# Suppress CLI output. This *will* break Pry
|
19
|
+
unless ENV['PRY']
|
20
|
+
original_stderr = $stderr
|
21
|
+
original_stdout = $stdout
|
22
|
+
config.before(:all) do
|
23
|
+
# Redirect stderr and stdout
|
24
|
+
$stderr = File.new '/dev/null', 'w'
|
25
|
+
$stdout = File.new '/dev/null', 'w'
|
26
|
+
end
|
27
|
+
|
28
|
+
config.after(:all) do
|
29
|
+
$stderr = original_stderr
|
30
|
+
$stdout = original_stdout
|
31
|
+
end
|
32
|
+
end
|
17
33
|
end
|
data/lib/curacao/version.rb
CHANGED