bundler-fixture 1.5.0 → 1.6.0

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: 325d6cee72122a5efbdd6cae02fc8b7835387588
4
- data.tar.gz: 4bc227d2f1ded990d61beeb4a1eda6fdd49fa61d
3
+ metadata.gz: e1e2ee2100bdfc523e972a894c6a8900e2a60264
4
+ data.tar.gz: 7b8ee112cf884b576c38d327e636aa5dcf7bb438
5
5
  SHA512:
6
- metadata.gz: 0ecabe68e5d6026e8dbe7e2bdd97212f531274753dc76bafd7a4a7ec8c5611d1d0ba111d126b98eec300909ad17cf551a27b7d02322d2b01486f8121dd496988
7
- data.tar.gz: d7ff261ac62c34791379a361935e091b07292ac03955c7ca41e54e4f821a442d3d03d92ed21c5cb2a5c13cf91650b236598862c3efdcf43b392c1cc058223f9f
6
+ metadata.gz: de13744fc757af8d7cca3258bf791c937dcba8bbbef63a960124f0ff2952676efa1ac3384398b180a1ab6c99138cec7dba746ca653730e207dc1e1ab23f84498
7
+ data.tar.gz: 2ffbaec9e77d5ccd163be568be9e86d8101fdbf3796be5cf3eb93df85b8704e769b96583755e41ac7376ea2623fec855b4f8c5b9382eeae82ace6ba10f00fd6e
@@ -28,8 +28,8 @@ matrix:
28
28
  - rvm: 2.2.7
29
29
  env: BUNDLER_TEST_VERSION=1.14.6
30
30
  - rvm: 2.3.4
31
- env: BUNDLER_TEST_VERSION=1.15.0
31
+ env: BUNDLER_TEST_VERSION=1.15.1
32
32
  - rvm: 2.1.10
33
- env: BUNDLER_TEST_VERSION=1.15.0
33
+ env: BUNDLER_TEST_VERSION=1.15.1
34
34
  - rvm: 2.2.7
35
- env: BUNDLER_TEST_VERSION=1.15.0
35
+ env: BUNDLER_TEST_VERSION=1.15.1
@@ -90,6 +90,23 @@ class BundlerFixture
90
90
  File.open(gemfile_filename, 'w') { |f| f.puts lines }
91
91
  end
92
92
 
93
+ def create_config(hash)
94
+ config_dir = File.join(@dir, '.bundle')
95
+ FileUtils.makedirs config_dir
96
+ s = Bundler::Settings.new(config_dir)
97
+ hash.each_pair do |k, v|
98
+ # never support set_global, we don't want a test fixture jacking with an entire machine's bundler config
99
+ s.set_local(k, v)
100
+ if k.to_s == 'path'
101
+ if v.nil?
102
+ s.set_local('disable_shared_gems', nil)
103
+ else
104
+ s.set_local('disable_shared_gems', 'true')
105
+ end
106
+ end
107
+ end
108
+ end
109
+
93
110
  def requirement_to_s(req)
94
111
  case req
95
112
  when Gem::Requirement
@@ -1,5 +1,5 @@
1
1
  module Bundler
2
2
  module Fixture
3
- VERSION = '1.5.0'
3
+ VERSION = '1.6.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler-fixture
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - chrismo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-24 00:00:00.000000000 Z
11
+ date: 2017-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.5.2
95
+ rubygems_version: 2.6.12
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Simple fixture to generate for-realz Gemfile.lock files