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 +4 -4
- data/.travis.yml +3 -3
- data/lib/bundler/fixture.rb +17 -0
- data/lib/bundler/fixture/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1e2ee2100bdfc523e972a894c6a8900e2a60264
|
4
|
+
data.tar.gz: 7b8ee112cf884b576c38d327e636aa5dcf7bb438
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de13744fc757af8d7cca3258bf791c937dcba8bbbef63a960124f0ff2952676efa1ac3384398b180a1ab6c99138cec7dba746ca653730e207dc1e1ab23f84498
|
7
|
+
data.tar.gz: 2ffbaec9e77d5ccd163be568be9e86d8101fdbf3796be5cf3eb93df85b8704e769b96583755e41ac7376ea2623fec855b4f8c5b9382eeae82ace6ba10f00fd6e
|
data/.travis.yml
CHANGED
@@ -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.
|
31
|
+
env: BUNDLER_TEST_VERSION=1.15.1
|
32
32
|
- rvm: 2.1.10
|
33
|
-
env: BUNDLER_TEST_VERSION=1.15.
|
33
|
+
env: BUNDLER_TEST_VERSION=1.15.1
|
34
34
|
- rvm: 2.2.7
|
35
|
-
env: BUNDLER_TEST_VERSION=1.15.
|
35
|
+
env: BUNDLER_TEST_VERSION=1.15.1
|
data/lib/bundler/fixture.rb
CHANGED
@@ -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
|
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.
|
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-
|
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.
|
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
|