rspec-command 1.0.1 → 1.0.2

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
  SHA1:
3
- metadata.gz: 7040f773d00c7ff74267fa1bb5149d78168c7f25
4
- data.tar.gz: 97158cbbd450af2c85fab66892b7ec440c0083d6
3
+ metadata.gz: d3cc17c2edf6a57ef745ad47c3c42e14ea1b2f9a
4
+ data.tar.gz: def3ac3b795c8b921ef2476d106b00e329da40a7
5
5
  SHA512:
6
- metadata.gz: e79718541bf2f9b12af5203fad9b1581d39aef64515ab5780cb9d071301d114aebc0cbf348b9d55aaae9c712d6e34e89c73e64138c6ecbc55784a944ee78846e
7
- data.tar.gz: 20e2124042c1ab886aa83d657c0324b25e180569f12947a77b50ebb9378faeba32f99adfe7ed1463c86ff0c6af2971434341fce07f2b9025b6a2747ca94d60da
6
+ metadata.gz: 35cd6196ddc26a22da2a1cd03d0e6632aef150f8b4969a404620042c3e06f85ebb66ac02301381d93a1b29cd75f5d11d669451dbb1d571f27e33bdcf872d4f77
7
+ data.tar.gz: 3bf9ba30c791b0c99e1091ec36de6d1ae587874584d1bb4f24774e48027db39d0c38258ed43e1d16d0b02e9a991790cd68d48b921d8bfb0b55fb4b854188f502
@@ -88,6 +88,7 @@ module RSpecCommand
88
88
  gemfile_path = ENV['BUNDLE_GEMFILE'] || find_file(self.class.file_path, 'Gemfile')
89
89
  gemfile_environment = gemfile_path ? {'BUNDLE_GEMFILE' => gemfile_path} : {}
90
90
  # Create the command
91
+ options = options.dup
91
92
  allow_error = options.delete(:allow_error)
92
93
  full_cmd = if gemfile_path
93
94
  if cmd.is_a?(Array)
@@ -104,10 +105,10 @@ module RSpecCommand
104
105
  cwd: temp_path,
105
106
  environment: gemfile_environment.merge(_environment),
106
107
  }.merge(options),
107
- ).tap do |cmd|
108
+ ).tap do |cmd_out|
108
109
  # Run the command
109
- cmd.run_command
110
- cmd.error! unless allow_error
110
+ cmd_out.run_command
111
+ cmd_out.error! unless allow_error
111
112
  end
112
113
  end
113
114
 
@@ -346,7 +347,11 @@ module RSpecCommand
346
347
  def environment(variables)
347
348
  before do
348
349
  variables.each do |key, value|
349
- _environment[key.to_s] = value.to_s
350
+ if value.nil?
351
+ _environment.delete(key.to_s)
352
+ else
353
+ _environment[key.to_s] = value.to_s
354
+ end
350
355
  end
351
356
  end
352
357
  end
@@ -17,5 +17,5 @@
17
17
 
18
18
  module RSpecCommand
19
19
  # RSpec-command gem version.
20
- VERSION = '1.0.1'
20
+ VERSION = '1.0.2'
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-command
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Kantrowitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-18 00:00:00.000000000 Z
11
+ date: 2017-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
221
  version: '0'
222
222
  requirements: []
223
223
  rubyforge_project:
224
- rubygems_version: 2.4.5
224
+ rubygems_version: 2.6.11
225
225
  signing_key:
226
226
  specification_version: 4
227
227
  summary: An RSpec helper module for testing command-line tools.
@@ -237,4 +237,3 @@ test_files:
237
237
  - spec/match_fixture_spec.rb
238
238
  - spec/rake_spec.rb
239
239
  - spec/spec_helper.rb
240
- has_rdoc: