Skip to content

Commit 08b3c48

Browse files
Rubyinstaller2 fixed this
1 parent 4062ebf commit 08b3c48

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

bundler/spec/install/gems/standalone_spec.rb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,6 @@
173173

174174
bundle "config set --local path #{bundled_app("bundle")}"
175175

176-
# Make sure rubyinstaller2 does not activate the etc gem in its
177-
# `operating_system.rb` file, but completely disable that since it's not
178-
# really needed here
179-
if Gem.win_platform?
180-
FileUtils.mkdir_p bundled_app("rubygems/defaults")
181-
FileUtils.touch bundled_app("rubygems/defaults/operating_system.rb")
182-
end
183-
184176
bundle :install, standalone: true, dir: cwd, env: { "BUNDLER_GEM_DEFAULT_DIR" => system_gem_path.to_s }, load_path: bundled_app
185177

186178
load_path_lines = bundled_app("bundle/bundler/setup.rb").read.split("\n").select {|line| line.start_with?("$:.unshift") }
@@ -212,14 +204,6 @@
212204

213205
bundle "lock", dir: cwd
214206

215-
# Make sure rubyinstaller2 does not activate the etc gem in its
216-
# `operating_system.rb` file, but completely disable that since it's not
217-
# really needed here
218-
if Gem.win_platform?
219-
FileUtils.mkdir_p bundled_app("rubygems/defaults")
220-
FileUtils.touch bundled_app("rubygems/defaults/operating_system.rb")
221-
end
222-
223207
bundle :install, standalone: true, dir: cwd, env: { "BUNDLER_GEM_DEFAULT_DIR" => system_gem_path.to_s }, load_path: bundled_app
224208
end
225209

0 commit comments

Comments
 (0)