Skip to content

Commit 22ceaf2

Browse files
hsbtmatzbot
authored andcommitted
[ruby/rubygems] Now ruby/rubygems is the canonical repository url
ruby/rubygems@c637007e91
1 parent 7587e92 commit 22ceaf2

File tree

14 files changed

+36
-36
lines changed

14 files changed

+36
-36
lines changed

lib/bundler/cli/issue.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def run
1010
be sure to check out these resources:
1111
1212
1. Check out our troubleshooting guide for quick fixes to common issues:
13-
https://github.com/rubygems/rubygems/blob/master/doc/bundler/TROUBLESHOOTING.md
13+
https://github.com/ruby/rubygems/blob/master/doc/bundler/TROUBLESHOOTING.md
1414
1515
2. Instructions for common Bundler uses can be found on the documentation
1616
site: https://bundler.io/
@@ -22,7 +22,7 @@ def run
2222
still aren't working the way you expect them to, please let us know so
2323
that we can diagnose and help fix the problem you're having, by filling
2424
in the new issue form located at
25-
https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md,
25+
https://github.com/ruby/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md,
2626
and copy and pasting the information below.
2727
2828
EOS

lib/bundler/friendly_errors.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ def issues_url(exception)
104104
message = message.split("-").first if exception.is_a?(Errno)
105105
require "cgi/escape"
106106
require "cgi/util" unless defined?(CGI::EscapeExt)
107-
"https://github.com/rubygems/rubygems/search?q=" \
107+
"https://github.com/ruby/rubygems/search?q=" \
108108
"#{CGI.escape(message)}&type=Issues"
109109
end
110110

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

lib/bundler/source/git/git_proxy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class GitNotAllowedError < GitError
1616
def initialize(command)
1717
msg = String.new
1818
msg << "Bundler is trying to run `#{command}` at runtime. You probably need to run `bundle install`. However, "
19-
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 "
19+
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 "
2020
msg << "with steps to reproduce as well as the following\n\nCALLER: #{caller.join("\n")}"
2121
super msg
2222
end

lib/rubygems.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module Gem
3737
# Further RubyGems documentation can be found at:
3838
#
3939
# * {RubyGems Guides}[https://guides.rubygems.org]
40-
# * {RubyGems API}[https://www.rubydoc.info/github/rubygems/rubygems] (also available from
40+
# * {RubyGems API}[https://www.rubydoc.info/github/ruby/rubygems] (also available from
4141
# <tt>gem server</tt>)
4242
#
4343
# == RubyGems Plugins
@@ -69,7 +69,7 @@ module Gem
6969
# == Bugs
7070
#
7171
# You can submit bugs to the
72-
# {RubyGems bug tracker}[https://github.com/rubygems/rubygems/issues]
72+
# {RubyGems bug tracker}[https://github.com/ruby/rubygems/issues]
7373
# on GitHub
7474
#
7575
# == Credits
@@ -105,7 +105,7 @@ module Gem
105105
#
106106
# == License
107107
#
108-
# See {LICENSE.txt}[https://github.com/rubygems/rubygems/blob/master/LICENSE.txt] for permissions.
108+
# See {LICENSE.txt}[https://github.com/ruby/rubygems/blob/master/LICENSE.txt] for permissions.
109109
#
110110
# Thanks!
111111
#

lib/rubygems/ext/cargo_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def platform_specific_rustc_args(dest_dir, flags = [])
159159
def linker_args
160160
cc_flag = self.class.shellsplit(makefile_config("CC"))
161161
# Avoid to ccache like tool from Rust build
162-
# see https://github.com/rubygems/rubygems/pull/8521#issuecomment-2689854359
162+
# see https://github.com/ruby/rubygems/pull/8521#issuecomment-2689854359
163163
# ex. CC="ccache gcc" or CC="sccache clang --any --args"
164164
cc_flag.shift if cc_flag.size >= 2 && !cc_flag[1].start_with?("-")
165165
linker = cc_flag.shift

spec/bundler/bundler/bundler_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
s.description = "Bundler manages an application's dependencies through its entire life, across many machines, systematically and repeatably"
5353
s.email = ["[email protected]"]
5454
s.homepage = "https://bundler.io"
55-
s.metadata = { "bug_tracker_uri" => "https://github.com/rubygems/rubygems/issues?q=is%3Aopen+is%3Aissue+label%3ABundler",
56-
"changelog_uri" => "https://github.com/rubygems/rubygems/blob/master/bundler/CHANGELOG.md",
55+
s.metadata = { "bug_tracker_uri" => "https://github.com/ruby/rubygems/issues?q=is%3Aopen+is%3Aissue+label%3ABundler",
56+
"changelog_uri" => "https://github.com/ruby/rubygems/blob/master/bundler/CHANGELOG.md",
5757
"homepage_uri" => "https://bundler.io/",
58-
"source_code_uri" => "https://github.com/rubygems/rubygems/tree/master/bundler" }
58+
"source_code_uri" => "https://github.com/ruby/rubygems/tree/master/bundler" }
5959
s.require_paths = ["lib"]
6060
s.required_ruby_version = Gem::Requirement.new([">= 2.6.0"])
6161
s.required_rubygems_version = Gem::Requirement.new([">= 3.0.1"])

spec/bundler/bundler/friendly_errors_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
it "generates a search URL for the exception message" do
198198
exception = Exception.new("Exception message")
199199

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

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

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

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

221221
it "removes information after - for Errono::EACCES" do
@@ -225,7 +225,7 @@
225225
allow(exception).to receive(:is_a?).with(Errno).and_return(true)
226226
issues_url = Bundler::FriendlyErrors.issues_url(exception)
227227
expect(issues_url).not_to include("/Users/foo/bar")
228-
expect(issues_url).to eq("https://github.com/rubygems/rubygems/search?q=#{CGI.escape("Errno EACCES Permission denied @ dir_s_mkdir ")}&type=Issues")
228+
expect(issues_url).to eq("https://github.com/ruby/rubygems/search?q=#{CGI.escape("Errno EACCES Permission denied @ dir_s_mkdir ")}&type=Issues")
229229
end
230230
end
231231
end

spec/bundler/bundler/source/git/git_proxy_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
RSpec.describe Bundler::Source::Git::GitProxy do
44
let(:path) { Pathname("path") }
5-
let(:uri) { "https://github.com/rubygems/rubygems.git" }
5+
let(:uri) { "https://github.com/ruby/rubygems.git" }
66
let(:ref) { nil }
77
let(:branch) { nil }
88
let(:tag) { nil }
@@ -64,21 +64,21 @@
6464
it "adds username and password to URI" do
6565
Bundler.settings.temporary(uri => "u:p") do
6666
allow(git_proxy).to receive(:git_local).with("--version").and_return("git version 2.14.0")
67-
expect(git_proxy).to receive(:capture).with([*base_clone_args, "--", "https://u:[email protected]/rubygems/rubygems.git", path.to_s], nil).and_return(["", "", clone_result])
67+
expect(git_proxy).to receive(:capture).with([*base_clone_args, "--", "https://u:[email protected]/ruby/rubygems.git", path.to_s], nil).and_return(["", "", clone_result])
6868
subject.checkout
6969
end
7070
end
7171

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

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

8888
it "keeps original userinfo" do
8989
Bundler.settings.temporary("github.com" => "u:p") do
90-
original = "https://orig:[email protected]/rubygems/rubygems.git"
90+
original = "https://orig:[email protected]/ruby/rubygems.git"
9191
git_proxy = described_class.new(Pathname("path"), original, options)
9292
allow(git_proxy).to receive(:git_local).with("--version").and_return("git version 2.14.0")
9393
expect(git_proxy).to receive(:capture).with([*base_clone_args, "--", original, path.to_s], nil).and_return(["", "", clone_result])
@@ -199,7 +199,7 @@
199199
end
200200

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

spec/bundler/commands/exec_spec.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
end
9696

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

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

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

125125
require "tempfile"
126126

@@ -153,7 +153,7 @@
153153
end
154154

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

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

807807
it "runs" do
808-
skip "https://github.com/rubygems/rubygems/issues/3351" if Gem.win_platform?
808+
skip "https://github.com/ruby/rubygems/issues/3351" if Gem.win_platform?
809809

810810
subject
811811
expect(exitstatus).to eq(exit_code)
@@ -1042,7 +1042,7 @@ def bin_path(a,b,c)
10421042
RUBY
10431043

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

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

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

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

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

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

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

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

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

spec/bundler/lock/lockfile_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@
982982
update_repo2 do
983983
# Capistrano did this (at least until version 2.5.10)
984984
# RubyGems 2.2 doesn't allow the specifying of a dependency twice
985-
# See https://github.com/rubygems/rubygems/commit/03dbac93a3396a80db258d9bc63500333c25bd2f
985+
# See https://github.com/ruby/rubygems/commit/03dbac93a3396a80db258d9bc63500333c25bd2f
986986
build_gem "double_deps", "1.0", skip_validation: true do |s|
987987
s.add_dependency "net-ssh", ">= 1.0.0"
988988
s.add_dependency "net-ssh"

0 commit comments

Comments
 (0)