geordi 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17516fcb96c1a27828c5e43eea96d1ca0d8f72df42e467ff842a70a002b86459
4
- data.tar.gz: 8985476313a0c6ed93e494878e388edd3ba72a8911c7785dfe53cc9f7e17c284
3
+ metadata.gz: d495c07776a3b37bbc4a8a631fefc1faef059e39622bbb7d23ea7ae80e422a5d
4
+ data.tar.gz: 59e32fcc08b223576f916b32e39f11444474d3815add10cb8df8ea290b4beb49
5
5
  SHA512:
6
- metadata.gz: afcfaace06ff3ee48b5165de088849c537d73dea2ac544807793f59902634e07b879ca6968c12e0df3deb375686ea377fe63fd531724dae7a2125028fa9a0189
7
- data.tar.gz: 1dbac4ddff4d8c4b505756bd7ea36a2d667141268ebf90f28fd6faec32b6afb092f1f4dc32ff6442f13b07a5bc84398530bd695e1668e23ce42076752a0f7989
6
+ metadata.gz: e8090e437315b256f12e64dfff74b52d96734417af94d46dd5303aa74a41d2bf45b47d7abbb9d483f7f8794052e6bebaed336a0320c242b9a1c4eecfdde4cf69
7
+ data.tar.gz: bb359062fd81a8129bd48b3548bb4db513e6211bc1740003082e759d6cc5a3ba10abbf0db4e2d9a515c181b9b15b15950eafe9d733104a00e1f0789c20400750
data/CHANGELOG.md CHANGED
@@ -9,7 +9,13 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
9
9
  ### Breaking changes
10
10
 
11
11
 
12
- ## Unreleased
12
+ ## 2.8.0 2020-01-02
13
+
14
+ ### Compatible changes
15
+ - Fixed [#77](https://github.com/makandra/geordi/issues/77): Remove deprecation warning for "Bundler.clean_system"
16
+
17
+
18
+ ## 2.7.0 2019-11-25
13
19
 
14
20
  ### Compatible changes
15
21
  - Fixed [#68](https://github.com/makandra/geordi/issues/68): The "cucumber" command now fails early when @solo features fail.
@@ -22,7 +28,6 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
22
28
  ## 2.6.0 2019-11-04
23
29
 
24
30
  ### Compatible changes
25
-
26
31
  - Added [#73](https://github.com/makandra/geordi/issues/73): New command `chromdriver-update` allows you to update your
27
32
  chromedriver to the newest matching version.
28
33
 
data/Gemfile CHANGED
@@ -8,5 +8,8 @@ gem 'rspec-mocks'
8
8
  gem 'highline'
9
9
  gem 'parallel_tests'
10
10
  gem 'launchy'
11
- gem 'tracker_api'
12
- # gem 'pry' # Not supported for 1.8.7
11
+
12
+ if Gem::Version.new(RUBY_VERSION) > Gem::Version.new('1.8.7')
13
+ gem 'pry'
14
+ gem 'tracker_api'
15
+ end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- geordi (2.7.0)
4
+ geordi (2.8.0)
5
5
  thor (>= 0.18.0)
6
6
 
7
7
  GEM
@@ -19,6 +19,7 @@ GEM
19
19
  builder (3.2.3)
20
20
  childprocess (1.0.1)
21
21
  rake (< 13.0)
22
+ coderay (1.1.2)
22
23
  coercible (1.0.0)
23
24
  descendants_tracker (~> 0.0.1)
24
25
  cucumber (1.3.20)
@@ -44,6 +45,7 @@ GEM
44
45
  ice_nine (0.11.2)
45
46
  launchy (2.4.3)
46
47
  addressable (~> 2.3)
48
+ method_source (0.9.2)
47
49
  mimemagic (0.3.3)
48
50
  multi_json (1.13.1)
49
51
  multi_test (0.1.2)
@@ -51,6 +53,9 @@ GEM
51
53
  parallel (0.5.16)
52
54
  parallel_tests (0.6.18)
53
55
  parallel
56
+ pry (0.12.2)
57
+ coderay (~> 1.1.0)
58
+ method_source (~> 0.9.0)
54
59
  rake (10.5.0)
55
60
  representable (3.0.4)
56
61
  declarative (< 0.1.0)
@@ -91,6 +96,7 @@ DEPENDENCIES
91
96
  highline
92
97
  launchy
93
98
  parallel_tests
99
+ pry
94
100
  rspec-mocks
95
101
  tracker_api
96
102
 
data/Rakefile CHANGED
@@ -5,7 +5,11 @@ desc 'Default: Run all tests'
5
5
  task :default => :features
6
6
 
7
7
  task :features do
8
- system 'bundle exec cucumber'
8
+ if Gem::Version.new(RUBY_VERSION) > Gem::Version.new('1.8.7')
9
+ system 'bundle exec cucumber'
10
+ else
11
+ system 'bundle exec cucumber --tags "~@ruby>=1.9"'
12
+ end
9
13
  end
10
14
 
11
15
  task :readme do
@@ -1,4 +1,4 @@
1
- @announce-output
1
+ @ruby>=1.9
2
2
  Feature: Creating a git commit from a Pivotal Tracker story
3
3
 
4
4
  Scenario: Extra arguments are forwarded to "git commit"
@@ -18,20 +18,6 @@ Feature: The firefox/chrome command
18
18
  Then the output should contain "> Run `geordi vnc` to view the Selenium test browsers"
19
19
  And the output should contain "testcontent"
20
20
 
21
-
22
- # Could not get this to work
23
- # Scenario: Running a command with VNC and Firefox set up
24
- # Given a mocked home directory
25
- # Given a file named ".firefox-version" with "1337"
26
- # And a file named "bin/firefoxes/1337/firefox" with "<fake>"
27
- # And a file named "testfile" with "testcontent"
28
- #
29
- # When I run `geordi firefox cat testfile`
30
- # Then the output should contain "> VNC is ready"
31
- # And the output should contain "> Firefox for Selenium set up"
32
- # And the output should contain "testcontent"
33
-
34
-
35
21
  Scenario: Having a .firefox-version that is not installed yet
36
22
  Given a file named ".firefox-version" with "1337"
37
23
  And a file named "testfile" with "testcontent"
@@ -1,5 +1,8 @@
1
1
  require 'aruba/cucumber'
2
- # require 'pry'
2
+
3
+ if Gem::Version.new(RUBY_VERSION) > Gem::Version.new('1.8.7')
4
+ require 'pry'
5
+ end
3
6
 
4
7
  # Disables execution of Util.system! calls
5
8
  ENV['GEORDI_TESTING'] = 'true'
data/lib/geordi/util.rb CHANGED
@@ -49,7 +49,16 @@ module Geordi
49
49
  puts "Util.system! #{ commands.join ', ' }"
50
50
  else
51
51
  # Remove Geordi's Bundler environment when running commands.
52
- success = defined?(Bundler) ? Bundler.clean_system(*commands) : system(*commands)
52
+ success = if !defined?(Bundler)
53
+ system(*commands)
54
+ elsif Gem::Version.new(Bundler::VERSION) >= Gem::Version.new('2.1.2')
55
+ Bundler.with_unbundled_env do
56
+ system(*commands)
57
+ end
58
+ else
59
+ Bundler.clean_system(*commands)
60
+ end
61
+
53
62
  success or fail(options[:fail_message] || 'Something went wrong.')
54
63
  end
55
64
  end
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '2.7.0'
2
+ VERSION = '2.8.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geordi
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-25 00:00:00.000000000 Z
11
+ date: 2020-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor