Skip to content

Commit

Permalink
Move files of bundler/tool to top of repository
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed May 31, 2023
1 parent e996131 commit 7b78821
Show file tree
Hide file tree
Showing 18 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ module RubyGems

def bundle_dev_gemfile(*args)
name = RUBY_VERSION.start_with?("2.6") ? "dev26_gems" : "dev_gems"
sh "ruby", "-I", "lib", "bundler/spec/support/bundle.rb", *args, "--gemfile=bundler/tool/bundler/#{name}.rb"
sh "ruby", "-I", "lib", "bundler/spec/support/bundle.rb", *args, "--gemfile=tool/bundler/#{name}.rb"
end

def bundle_support_gemfile(name, *args)
sh "ruby", "-I", "lib", "bundler/spec/support/bundle.rb", *args, "--gemfile=bundler/tool/bundler/#{name}.rb"
sh "ruby", "-I", "lib", "bundler/spec/support/bundle.rb", *args, "--gemfile=tool/bundler/#{name}.rb"
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion bin/rubocop
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

$LOAD_PATH.unshift(File.expand_path("../bundler/lib", __dir__))

ENV["BUNDLE_GEMFILE"] = File.expand_path("../bundler/tool/bundler/lint_gems.rb", __dir__)
ENV["BUNDLE_GEMFILE"] = File.expand_path("../tool/bundler/lint_gems.rb", __dir__)
require "bundler/setup"

load Gem.bin_path("rubocop", "rubocop")
6 changes: 3 additions & 3 deletions bundler/spec/support/path.rb
Original file line number Diff line number Diff line change
Expand Up @@ -292,15 +292,15 @@ def ruby_core_tarball?
end

def rubocop_gemfile_basename
source_root.join("tool/bundler/rubocop_gems.rb")
source_root.join("../tool/bundler/rubocop_gems.rb")
end

def standard_gemfile_basename
source_root.join("tool/bundler/standard_gems.rb")
source_root.join("../tool/bundler/standard_gems.rb")
end

def tool_dir
source_root.join("tool/bundler")
source_root.join("../tool/bundler")
end

def templates_dir
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tool/release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def self.install_dependencies!
File.expand_path("../lib", __dir__),
File.expand_path("../bundler/spec/support/bundle.rb", __dir__),
"install",
"--gemfile=#{File.expand_path("../bundler/tool/bundler/release_gems.rb", __dir__)}",
"--gemfile=#{File.expand_path("bundler/release_gems.rb", __dir__)}",
exception: true
)
end
Expand Down

0 comments on commit 7b78821

Please sign in to comment.