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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6115ef24f4518bfaaf70e3556e1cbab67c1d8820
4
- data.tar.gz: 39f69a9a81d2dbd9df0d01c82d3d6daeefd79a28
3
+ metadata.gz: 5730d36677a1460fe1976df22ef5dba8066e338c
4
+ data.tar.gz: 00d189933e4301d030d07e89057f9d1546cc3d75
5
5
  SHA512:
6
- metadata.gz: 5f7ac16b098e9f3cd360b8451c35ed460f6b3aa970f3d72d58c23dc62bd9c4828eea35735ce56905e417165aecc562c0181cc14016d9adaee3e6badcc117ac7d
7
- data.tar.gz: c6d21b3e1db2231740b74c7f2876a3b14c921187340b2e7fc975ea0f885ffc255dda0ef6d4109b4c59a61cded45635f2b9c8a583c642c3253040bd77c488204c
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
- version = evaluate("(bundle list | grep -q '* rspec') && bundle exec rspec --version || echo 'not found'")
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
- version = evaluate("(bundle list | grep -q '* cucumber') && bundle exec cucumber --version || echo 'not found'")
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
@@ -19,6 +19,10 @@ module TestBoosters
19
19
  exit_status
20
20
  end
21
21
 
22
+ def evaluate(command)
23
+ with_clean_env { `#{command}` }
24
+ end
25
+
22
26
  def with_clean_env
23
27
  defined?(Bundler) ? Bundler.with_clean_env { yield } : yield
24
28
  end
@@ -1,3 +1,3 @@
1
1
  module TestBoosters
2
- VERSION = "2.0.1".freeze
2
+ VERSION = "2.0.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semaphore_test_boosters
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Developers at Rendered Text