semaphore_test_boosters 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/test_boosters/project_info.rb +6 -8
- data/lib/test_boosters/shell.rb +4 -0
- data/lib/test_boosters/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: 5730d36677a1460fe1976df22ef5dba8066e338c
|
4
|
+
data.tar.gz: 00d189933e4301d030d07e89057f9d1546cc3d75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c04de98162295c5a6c91e249b0327ed337e2b7d28456e8ea35a6af05042e44c83b724e875a04701027ab13f2bcf88ed99bcaf66d880f18792f80c88e76ebb34e
|
7
|
+
data.tar.gz: 86d52b3ec437cc3b0aa6ccd414d11ace058422f2b3ff9e1f554844b88e94c1929e5165b1b2295b027b980faba831295ff1e1ad4317c81991ca2f26c0879fdf1d
|
@@ -3,32 +3,30 @@ module TestBoosters
|
|
3
3
|
module_function
|
4
4
|
|
5
5
|
def display_ruby_version
|
6
|
-
version = evaluate("ruby --version").gsub("ruby ", "")
|
6
|
+
version = TestBoosters::Shell.evaluate("ruby --version").gsub("ruby ", "")
|
7
7
|
|
8
8
|
puts "Ruby Version: #{version}"
|
9
9
|
end
|
10
10
|
|
11
11
|
def display_bundler_version
|
12
|
-
version = evaluate("bundle --version").gsub("Bundler version ", "")
|
12
|
+
version = TestBoosters::Shell.evaluate("bundle --version").gsub("Bundler version ", "")
|
13
13
|
|
14
14
|
puts "Bundler Version: #{version}"
|
15
15
|
end
|
16
16
|
|
17
17
|
def display_rspec_version
|
18
|
-
|
18
|
+
command = "(bundle list | grep -q '* rspec') && bundle exec rspec --version || echo 'not found'"
|
19
|
+
version = TestBoosters::Shell.evaluate(command)
|
19
20
|
|
20
21
|
puts "RSpec Version: #{version}"
|
21
22
|
end
|
22
23
|
|
23
24
|
def display_cucumber_version
|
24
|
-
|
25
|
+
command = "(bundle list | grep -q '* cucumber') && bundle exec cucumber --version || echo 'not found'"
|
26
|
+
version = TestBoosters::Shell.evaluate(command)
|
25
27
|
|
26
28
|
puts "Cucumber Version: #{version}"
|
27
29
|
end
|
28
30
|
|
29
|
-
def evaluate(command)
|
30
|
-
Bundler.with_clean_env { `#{command}` }
|
31
|
-
end
|
32
|
-
|
33
31
|
end
|
34
32
|
end
|
data/lib/test_boosters/shell.rb
CHANGED