Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/bundler/bundler.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ Gem::Specification.new do |s|
s.description = "Bundler manages an application's dependencies through its entire life, across many machines, systematically and repeatably"

s.metadata = {
"bug_tracker_uri" => "https://github.com/rubygems/rubygems/issues?q=is%3Aopen+is%3Aissue+label%3ABundler",
"changelog_uri" => "https://github.com/rubygems/rubygems/blob/master/bundler/CHANGELOG.md",
"bug_tracker_uri" => "https://github.com/ruby/rubygems/issues?q=is%3Aopen+is%3Aissue+label%3ABundler",
"changelog_uri" => "https://github.com/ruby/rubygems/blob/master/bundler/CHANGELOG.md",
"homepage_uri" => "https://bundler.io/",
"source_code_uri" => "https://github.com/rubygems/rubygems/tree/master/bundler",
"source_code_uri" => "https://github.com/ruby/rubygems/tree/master/bundler",
}

s.required_ruby_version = ">= 3.2.0"
Expand Down
4 changes: 2 additions & 2 deletions lib/bundler/cli/issue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def run
be sure to check out these resources:

1. Check out our troubleshooting guide for quick fixes to common issues:
https://github.com/rubygems/rubygems/blob/master/doc/bundler/TROUBLESHOOTING.md
https://github.com/ruby/rubygems/blob/master/doc/bundler/TROUBLESHOOTING.md

2. Instructions for common Bundler uses can be found on the documentation
site: https://bundler.io/
Expand All @@ -22,7 +22,7 @@ def run
still aren't working the way you expect them to, please let us know so
that we can diagnose and help fix the problem you're having, by filling
in the new issue form located at
https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md,
https://github.com/ruby/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md,
and copy and pasting the information below.

EOS
Expand Down
4 changes: 2 additions & 2 deletions lib/bundler/friendly_errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ def issues_url(exception)
message = message.split("-").first if exception.is_a?(Errno)
require "cgi/escape"
require "cgi/util" unless defined?(CGI::EscapeExt)
"https://github.com/rubygems/rubygems/search?q=" \
"https://github.com/ruby/rubygems/search?q=" \
"#{CGI.escape(message)}&type=Issues"
end

def new_issue_url
"https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md"
"https://github.com/ruby/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md"
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-config.1
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export BUNDLE_GEMS__LONGEROUS__COM="claudette:s00pers3krit"
For gems with a git source with HTTP(S) URL you can specify credentials like so:
.IP "" 4
.nf
bundle config set \-\-global https://github\.com/rubygems/rubygems\.git username:password
bundle config set \-\-global https://github\.com/ruby/rubygems\.git username:password
.fi
.IP "" 0
.P
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/man/bundle-config.1.ronn
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ Or you can set the credentials as an environment variable like this:

For gems with a git source with HTTP(S) URL you can specify credentials like so:

bundle config set --global https://github.com/rubygems/rubygems.git username:password
bundle config set --global https://github.com/ruby/rubygems.git username:password

Or you can set the credentials as an environment variable like so:

Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/source/git/git_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class GitNotAllowedError < GitError
def initialize(command)
msg = String.new
msg << "Bundler is trying to run `#{command}` at runtime. You probably need to run `bundle install`. However, "
msg << "this error message could probably be more useful. Please submit a ticket at https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md "
msg << "this error message could probably be more useful. Please submit a ticket at https://github.com/ruby/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md "
msg << "with steps to reproduce as well as the following\n\nCALLER: #{caller.join("\n")}"
super msg
end
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/templates/newgem/ext/newgem/Cargo.toml.tt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ publish = false
crate-type = ["cdylib"]

[dependencies]
magnus = { version = "0.6.2" }
magnus = { version = "0.8.2" }
6 changes: 3 additions & 3 deletions lib/rubygems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module Gem
# Further RubyGems documentation can be found at:
#
# * {RubyGems Guides}[https://guides.rubygems.org]
# * {RubyGems API}[https://www.rubydoc.info/github/rubygems/rubygems] (also available from
# * {RubyGems API}[https://www.rubydoc.info/github/ruby/rubygems] (also available from
# <tt>gem server</tt>)
#
# == RubyGems Plugins
Expand Down Expand Up @@ -69,7 +69,7 @@ module Gem
# == Bugs
#
# You can submit bugs to the
# {RubyGems bug tracker}[https://github.com/rubygems/rubygems/issues]
# {RubyGems bug tracker}[https://github.com/ruby/rubygems/issues]
# on GitHub
#
# == Credits
Expand Down Expand Up @@ -105,7 +105,7 @@ module Gem
#
# == License
#
# See {LICENSE.txt}[https://github.com/rubygems/rubygems/blob/master/LICENSE.txt] for permissions.
# See {LICENSE.txt}[https://github.com/ruby/rubygems/blob/master/LICENSE.txt] for permissions.
#
# Thanks!
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rubygems/ext/cargo_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def platform_specific_rustc_args(dest_dir, flags = [])
def linker_args
cc_flag = self.class.shellsplit(makefile_config("CC"))
# Avoid to ccache like tool from Rust build
# see https://github.com/rubygems/rubygems/pull/8521#issuecomment-2689854359
# see https://github.com/ruby/rubygems/pull/8521#issuecomment-2689854359
# ex. CC="ccache gcc" or CC="sccache clang --any --args"
cc_flag.shift if cc_flag.size >= 2 && !cc_flag[1].start_with?("-")
linker = cc_flag.shift
Expand Down
6 changes: 3 additions & 3 deletions spec/bundler/bundler/bundler_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@
s.description = "Bundler manages an application's dependencies through its entire life, across many machines, systematically and repeatably"
s.email = ["team@bundler.io"]
s.homepage = "https://bundler.io"
s.metadata = { "bug_tracker_uri" => "https://github.com/rubygems/rubygems/issues?q=is%3Aopen+is%3Aissue+label%3ABundler",
"changelog_uri" => "https://github.com/rubygems/rubygems/blob/master/bundler/CHANGELOG.md",
s.metadata = { "bug_tracker_uri" => "https://github.com/ruby/rubygems/issues?q=is%3Aopen+is%3Aissue+label%3ABundler",
"changelog_uri" => "https://github.com/ruby/rubygems/blob/master/bundler/CHANGELOG.md",
"homepage_uri" => "https://bundler.io/",
"source_code_uri" => "https://github.com/rubygems/rubygems/tree/master/bundler" }
"source_code_uri" => "https://github.com/ruby/rubygems/tree/master/bundler" }
s.require_paths = ["lib"]
s.required_ruby_version = Gem::Requirement.new([">= 2.6.0"])
s.required_rubygems_version = Gem::Requirement.new([">= 3.0.1"])
Expand Down
8 changes: 4 additions & 4 deletions spec/bundler/bundler/friendly_errors_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
it "generates a search URL for the exception message" do
exception = Exception.new("Exception message")

expect(Bundler::FriendlyErrors.issues_url(exception)).to eq("https://github.com/rubygems/rubygems/search?q=Exception+message&type=Issues")
expect(Bundler::FriendlyErrors.issues_url(exception)).to eq("https://github.com/ruby/rubygems/search?q=Exception+message&type=Issues")
end

it "generates a search URL for only the first line of a multi-line exception message" do
Expand All @@ -206,7 +206,7 @@
Second line of the exception message
END

expect(Bundler::FriendlyErrors.issues_url(exception)).to eq("https://github.com/rubygems/rubygems/search?q=First+line+of+the+exception+message&type=Issues")
expect(Bundler::FriendlyErrors.issues_url(exception)).to eq("https://github.com/ruby/rubygems/search?q=First+line+of+the+exception+message&type=Issues")
end

it "generates the url without colons" do
Expand All @@ -215,7 +215,7 @@
END
issues_url = Bundler::FriendlyErrors.issues_url(exception)
expect(issues_url).not_to include("%3A")
expect(issues_url).to eq("https://github.com/rubygems/rubygems/search?q=#{CGI.escape("Exception with colons ")}&type=Issues")
expect(issues_url).to eq("https://github.com/ruby/rubygems/search?q=#{CGI.escape("Exception with colons ")}&type=Issues")
end

it "removes information after - for Errono::EACCES" do
Expand All @@ -225,7 +225,7 @@
allow(exception).to receive(:is_a?).with(Errno).and_return(true)
issues_url = Bundler::FriendlyErrors.issues_url(exception)
expect(issues_url).not_to include("/Users/foo/bar")
expect(issues_url).to eq("https://github.com/rubygems/rubygems/search?q=#{CGI.escape("Errno EACCES Permission denied @ dir_s_mkdir ")}&type=Issues")
expect(issues_url).to eq("https://github.com/ruby/rubygems/search?q=#{CGI.escape("Errno EACCES Permission denied @ dir_s_mkdir ")}&type=Issues")
end
end
end
12 changes: 6 additions & 6 deletions spec/bundler/bundler/source/git/git_proxy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

RSpec.describe Bundler::Source::Git::GitProxy do
let(:path) { Pathname("path") }
let(:uri) { "https://github.com/rubygems/rubygems.git" }
let(:uri) { "https://github.com/ruby/rubygems.git" }
let(:ref) { nil }
let(:branch) { nil }
let(:tag) { nil }
Expand Down Expand Up @@ -64,21 +64,21 @@
it "adds username and password to URI" do
Bundler.settings.temporary(uri => "u:p") do
allow(git_proxy).to receive(:git_local).with("--version").and_return("git version 2.14.0")
expect(git_proxy).to receive(:capture).with([*base_clone_args, "--", "https://u:p@github.com/rubygems/rubygems.git", path.to_s], nil).and_return(["", "", clone_result])
expect(git_proxy).to receive(:capture).with([*base_clone_args, "--", "https://u:p@github.com/ruby/rubygems.git", path.to_s], nil).and_return(["", "", clone_result])
subject.checkout
end
end

it "adds username and password to URI for host" do
Bundler.settings.temporary("github.com" => "u:p") do
allow(git_proxy).to receive(:git_local).with("--version").and_return("git version 2.14.0")
expect(git_proxy).to receive(:capture).with([*base_clone_args, "--", "https://u:p@github.com/rubygems/rubygems.git", path.to_s], nil).and_return(["", "", clone_result])
expect(git_proxy).to receive(:capture).with([*base_clone_args, "--", "https://u:p@github.com/ruby/rubygems.git", path.to_s], nil).and_return(["", "", clone_result])
subject.checkout
end
end

it "does not add username and password to mismatched URI" do
Bundler.settings.temporary("https://u:p@github.com/rubygems/rubygems-mismatch.git" => "u:p") do
Bundler.settings.temporary("https://u:p@github.com/ruby/rubygems-mismatch.git" => "u:p") do
allow(git_proxy).to receive(:git_local).with("--version").and_return("git version 2.14.0")
expect(git_proxy).to receive(:capture).with([*base_clone_args, "--", uri, path.to_s], nil).and_return(["", "", clone_result])
subject.checkout
Expand All @@ -87,7 +87,7 @@

it "keeps original userinfo" do
Bundler.settings.temporary("github.com" => "u:p") do
original = "https://orig:info@github.com/rubygems/rubygems.git"
original = "https://orig:info@github.com/ruby/rubygems.git"
git_proxy = described_class.new(Pathname("path"), original, options)
allow(git_proxy).to receive(:git_local).with("--version").and_return("git version 2.14.0")
expect(git_proxy).to receive(:capture).with([*base_clone_args, "--", original, path.to_s], nil).and_return(["", "", clone_result])
Expand Down Expand Up @@ -199,7 +199,7 @@
end

context "URI is HTTP" do
let(:uri) { "http://github.com/rubygems/rubygems.git" }
let(:uri) { "http://github.com/ruby/rubygems.git" }
let(:without_depth_arguments) { ["clone", "--bare", "--no-hardlinks", "--quiet", "--no-tags", "--single-branch"] }
let(:fail_clone_result) { double(Process::Status, success?: false) }

Expand Down
18 changes: 9 additions & 9 deletions spec/bundler/commands/exec_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
end

it "respects custom process title when loading through ruby" do
skip "https://github.com/rubygems/rubygems/issues/3351" if Gem.win_platform?
skip "https://github.com/ruby/rubygems/issues/3351" if Gem.win_platform?

script_that_changes_its_own_title_and_checks_if_picked_up_by_ps_unix_utility = <<~'RUBY'
Process.setproctitle("1-2-3-4-5-6-7")
Expand All @@ -120,7 +120,7 @@
end

it "handles --keep-file-descriptors" do
skip "https://github.com/rubygems/rubygems/issues/3351" if Gem.win_platform?
skip "https://github.com/ruby/rubygems/issues/3351" if Gem.win_platform?

require "tempfile"

Expand Down Expand Up @@ -153,7 +153,7 @@
end

it "can run a command named --verbose" do
skip "https://github.com/rubygems/rubygems/issues/3351" if Gem.win_platform?
skip "https://github.com/ruby/rubygems/issues/3351" if Gem.win_platform?

install_gemfile "source \"https://gem.repo1\"; gem \"myrack\""
File.open(bundled_app("--verbose"), "w") do |f|
Expand Down Expand Up @@ -805,7 +805,7 @@ def bin_path(a,b,c)
end

it "runs" do
skip "https://github.com/rubygems/rubygems/issues/3351" if Gem.win_platform?
skip "https://github.com/ruby/rubygems/issues/3351" if Gem.win_platform?

subject
expect(exitstatus).to eq(exit_code)
Expand Down Expand Up @@ -1042,7 +1042,7 @@ def bin_path(a,b,c)
RUBY

it "receives the signal" do
skip "https://github.com/rubygems/rubygems/issues/3351" if Gem.win_platform?
skip "https://github.com/ruby/rubygems/issues/3351" if Gem.win_platform?

bundle("exec #{path}") do |_, o, thr|
o.gets # Consumes 'Started' and ensures that thread has started
Expand All @@ -1065,7 +1065,7 @@ def bin_path(a,b,c)
RUBY

it "makes sure no unexpected signals are restored to DEFAULT" do
skip "https://github.com/rubygems/rubygems/issues/3351" if Gem.win_platform?
skip "https://github.com/ruby/rubygems/issues/3351" if Gem.win_platform?

test_signals.each do |n|
Signal.trap(n, "IGNORE")
Expand All @@ -1082,7 +1082,7 @@ def bin_path(a,b,c)
context "nested bundle exec" do
context "when bundle in a local path" do
before do
skip "https://github.com/rubygems/rubygems/issues/3351" if Gem.win_platform?
skip "https://github.com/ruby/rubygems/issues/3351" if Gem.win_platform?

gemfile <<-G
source "https://gem.repo1"
Expand All @@ -1106,7 +1106,7 @@ def bin_path(a,b,c)

context "when Kernel.require uses extra monkeypatches" do
before do
skip "https://github.com/rubygems/rubygems/issues/3351" if Gem.win_platform?
skip "https://github.com/ruby/rubygems/issues/3351" if Gem.win_platform?

install_gemfile "source \"https://gem.repo1\""
end
Expand Down Expand Up @@ -1211,7 +1211,7 @@ def require(path)
it "only leaves the default gem in the stdlib available" do
default_openssl_version = ruby "require 'openssl'; puts OpenSSL::VERSION"

skip "https://github.com/rubygems/rubygems/issues/3351" if Gem.win_platform?
skip "https://github.com/ruby/rubygems/issues/3351" if Gem.win_platform?

install_gemfile "source \"https://gem.repo1\"" # must happen before installing the broken system gem

Expand Down
2 changes: 1 addition & 1 deletion spec/bundler/lock/lockfile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@
update_repo2 do
# Capistrano did this (at least until version 2.5.10)
# RubyGems 2.2 doesn't allow the specifying of a dependency twice
# See https://github.com/rubygems/rubygems/commit/03dbac93a3396a80db258d9bc63500333c25bd2f
# See https://github.com/ruby/rubygems/commit/03dbac93a3396a80db258d9bc63500333c25bd2f
build_gem "double_deps", "1.0", skip_validation: true do |s|
s.add_dependency "net-ssh", ">= 1.0.0"
s.add_dependency "net-ssh"
Expand Down
2 changes: 1 addition & 1 deletion test/rubygems/test_bundled_ca.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# = Testing Bundled CA
#
# The tested hosts are explained in detail here: https://github.com/rubygems/rubygems/commit/5e16a5428f973667cabfa07e94ff939e7a83ebd9
# The tested hosts are explained in detail here: https://github.com/ruby/rubygems/commit/5e16a5428f973667cabfa07e94ff939e7a83ebd9
#

class TestGemBundledCA < Gem::TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/rubygems/test_gem_commands_info_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def setup
def gem(name, version = "1.0")
spec = quick_gem name do |gem|
gem.summary = "test gem"
gem.homepage = "https://github.com/rubygems/rubygems"
gem.homepage = "https://github.com/ruby/rubygems"
gem.files = %W[lib/#{name}.rb Rakefile]
gem.authors = ["Colby", "Jack"]
gem.license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion test/rubygems/test_gem_ext_cmake_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class TestGemExtCmakeBuilder < Gem::TestCase
def setup
super

# Details: https://github.com/rubygems/rubygems/issues/1270#issuecomment-177368340
# Details: https://github.com/ruby/rubygems/issues/1270#issuecomment-177368340
pend "CmakeBuilder doesn't work on Windows." if Gem.win_platform?

require "open3"
Expand Down
2 changes: 1 addition & 1 deletion test/rubygems/test_gem_ext_rake_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_class_build
end
end

# https://github.com/rubygems/rubygems/pull/1819
# https://github.com/ruby/rubygems/pull/1819
#
# It should not fail with a non-empty args list either
def test_class_build_with_args
Expand Down