specinfra 2.91.0 → 2.92.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: 97394d4373eb3883902aa11db2af73d48f90fd12fcce2f232a6f343c8909b41b
4
- data.tar.gz: a0c5cdead4225a5e8d35989a07ac009414835ff215d98bf47e5da0c2404f3caf
3
+ metadata.gz: 41eadf19553cecaad597ee42c1e22757cfcddc9ba88fcd0c7c24a2b95400d426
4
+ data.tar.gz: ddd53b0f9a6750c08bc23aeb3de8b46f4b00f63a74925a3cf85de7d44fd4a194
5
5
  SHA512:
6
- metadata.gz: cee153ac43581df36767f934669cee337c5320c7dac025bb16bb538fddacee7a79877a4e95875087cb48f43de04c2accae6efcf3333f16b167ae5e386acdbf78
7
- data.tar.gz: 3b9d90ccc47adb67253d09b4f8cb5c20b9610e0871981818222f862844008f33f625f8d8322b8c03ded7583b2d2bda33e5264c29830bfa9af06d44f942de335e
6
+ metadata.gz: b2aa5d0488509975ad807a8397b9b37d949e1a5526fa67e68a40e557b4a8fd2d688006a78b4816664408799eee6b23108a8224ba0252d75a996ec39b5903826f
7
+ data.tar.gz: 1439700273209ecd261aeb17ed9a6992925d03ddd46f09aba71d85b1def93802dce9b5fa47ed96a7e34c568c5babbc578e1162699f5564271f95a35085ee05ce
@@ -141,7 +141,7 @@ module Specinfra
141
141
  end
142
142
 
143
143
  def with_env
144
- keys = %w[BUNDLER_EDITOR BUNDLE_BIN_PATH BUNDLE_GEMFILE
144
+ keys = %w[BUNDLER_EDITOR BUNDLE_BIN_PATH BUNDLE_GEMFILE BUNDLER_SETUP
145
145
  RUBYOPT GEM_HOME GEM_PATH GEM_CACHE]
146
146
 
147
147
  keys.each { |key| ENV["_SPECINFRA_#{key}"] = ENV[key] ; ENV.delete(key) }
@@ -1,5 +1,5 @@
1
1
  module Specinfra
2
- VERSION = "2.91.0"
2
+ VERSION = "2.92.0"
3
3
 
4
4
  def self.ruby_is_older_than?(*version)
5
5
  (RUBY_VERSION.split('.').map(&:to_i) <=> version) < 0
@@ -6,7 +6,7 @@ describe Specinfra.backend.run_command('echo $LANG').stdout.strip do
6
6
  it { should eq 'C' }
7
7
  end
8
8
 
9
- describe do
9
+ describe "override ENV with config(:env)" do
10
10
  before do
11
11
  set :backend, :exec
12
12
 
@@ -18,3 +18,11 @@ describe do
18
18
  it { expect(ENV['LANG']).to eq 'C' }
19
19
  end
20
20
 
21
+ describe "clear env for BUNDLER" do
22
+ before do
23
+ set :backend, :exec
24
+
25
+ ENV['BUNDLER_SETUP'] = 'any-value'
26
+ end
27
+ it { expect(Specinfra.backend.run_command('printenv BUNDLER_SETUP').stdout).to eq '' }
28
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.91.0
4
+ version: 2.92.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-24 00:00:00.000000000 Z
11
+ date: 2025-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64