Skip to content

Commit 4101f67

Browse files
committed
Missing commit incl gems and fixes to gem build/release
1 parent 0bd26d0 commit 4101f67

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+28
-36
lines changed

Gemfile.lock

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@ PATH
1111
GEM
1212
remote: https://rubygems.org/
1313
specs:
14-
activesupport (7.2.0)
14+
activesupport (7.1.3.4)
1515
base64
1616
bigdecimal
17-
concurrent-ruby (~> 1.0, >= 1.3.1)
17+
concurrent-ruby (~> 1.0, >= 1.0.2)
1818
connection_pool (>= 2.2.5)
1919
drb
2020
i18n (>= 1.6, < 2)
21-
logger (>= 1.4.2)
2221
minitest (>= 5.1)
23-
securerandom (>= 0.3)
24-
tzinfo (~> 2.0, >= 2.0.5)
22+
mutex_m
23+
tzinfo (~> 2.0)
2524
addressable (2.8.7)
2625
public_suffix (>= 2.0.2, < 7.0)
2726
ast (2.4.2)
@@ -39,11 +38,8 @@ GEM
3938
facter (4.6.1)
4039
hocon (~> 1.3)
4140
thor (>= 1.0.1, < 2.0)
42-
faraday (2.10.1)
43-
faraday-net_http (>= 2.0, < 3.2)
44-
logger
45-
faraday-net_http (3.1.1)
46-
net-http
41+
faraday (2.0.0)
42+
ruby2_keywords (>= 0.0.4)
4743
fast_gettext (2.4.0)
4844
prime
4945
forwardable (1.3.3)
@@ -59,15 +55,12 @@ GEM
5955
json (2.7.2)
6056
language_server-protocol (3.17.0.3)
6157
locale (2.1.4)
62-
logger (1.6.0)
6358
method_source (1.1.0)
6459
mini_mime (1.1.5)
6560
minitest (5.24.1)
6661
multi_json (1.15.0)
67-
multi_xml (0.7.1)
68-
bigdecimal (~> 3.1)
69-
net-http (0.4.1)
70-
uri
62+
multi_xml (0.6.0)
63+
mutex_m (0.2.0)
7164
net-ssh (7.2.3)
7265
octocatalog-diff (2.1.0)
7366
diffy (>= 3.1.0)
@@ -88,7 +81,7 @@ GEM
8881
pry (0.14.2)
8982
coderay (~> 1.1)
9083
method_source (~> 1.0)
91-
public_suffix (6.0.1)
84+
public_suffix (5.1.1)
9285
puppet (7.30.0)
9386
concurrent-ruby (~> 1.0)
9487
deep_merge (~> 1.0)
@@ -150,12 +143,12 @@ GEM
150143
rubocop (>= 1.33.0, < 2.0)
151144
rubocop-ast (>= 1.31.1, < 2.0)
152145
ruby-progressbar (1.13.0)
146+
ruby2_keywords (0.0.5)
153147
rugged (1.7.2)
154148
sawyer (0.9.2)
155149
addressable (>= 2.3.5)
156150
faraday (>= 0.17.3, < 3)
157151
scanf (1.0.0)
158-
securerandom (0.3.1)
159152
semantic_puppet (1.1.0)
160153
simplecov (0.22.0)
161154
docile (~> 1.1)
@@ -172,7 +165,6 @@ GEM
172165
tzinfo (2.0.6)
173166
concurrent-ruby (~> 1.0)
174167
unicode-display_width (2.5.0)
175-
uri (0.13.0)
176168

177169
PLATFORMS
178170
ruby

doc/octofacts-updater.md

Lines changed: 1 addition & 1 deletion

rake/gem.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
##
33
## 1. Update `.version` with new version number
44
## 2. Run `script/bootstrap` to update Gemfile.lock
5-
## 3. Commit changes, PR, and merge to master
6-
## 4. Check out master branch locally
5+
## 3. Commit changes, PR, and merge to main
6+
## 4. Check out main branch locally
77
## 5. Run `bundle exec rake gem:release`
88
# frozen_string_literal: true
99
require "fileutils"
@@ -90,7 +90,7 @@ def self.tag
9090

9191
# Tag it
9292
exec_command("git tag #{Shellwords.escape(version)}")
93-
exec_command("git push origin master")
93+
exec_command("git push origin main")
9494
exec_command("git push origin #{Shellwords.escape(version)}")
9595
end
9696

@@ -116,8 +116,8 @@ def self.exec_command(command)
116116
namespace :gem do
117117
task "build" do
118118
branch = Octofacts::Gem.branch
119-
unless branch == "master"
120-
raise "On a non-master branch #{branch}; use gem:force-build if you really want to do this"
119+
unless branch == "main"
120+
raise "On a non-main branch #{branch}; use gem:force-build if you really want to do this"
121121
end
122122
Octofacts::Gem.build
123123
end
@@ -128,8 +128,8 @@ def self.exec_command(command)
128128

129129
task "force-build" do
130130
branch = Octofacts::Gem.branch
131-
unless branch == "master"
132-
warn "WARNING: Force-building from non-master branch #{branch}"
131+
unless branch == "main"
132+
warn "WARNING: Force-building from non-main branch #{branch}"
133133
end
134134
Octofacts::Gem.build
135135
end
@@ -140,15 +140,15 @@ def self.exec_command(command)
140140

141141
task "release" do
142142
branch = Octofacts::Gem.branch
143-
unless branch == "master"
144-
raise "On a non-master branch #{branch}; refusing to release"
143+
unless branch == "main"
144+
raise "On a non-main branch #{branch}; refusing to release"
145145
end
146146
[:check, :build, :tag, :push].each { |t| Rake::Task["gem:#{t}"].invoke }
147147
end
148148

149149
task "tag" do
150150
branch = Octofacts::Gem.branch
151-
raise "On a non-master branch #{branch}; refusing to tag" unless branch == "master"
151+
raise "On a non-main branch #{branch}; refusing to tag" unless branch == "main"
152152
Octofacts::Gem.tag
153153
end
154154

spec/octofacts_updater/service/github_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
end
249249

250250
describe "#ensure_branch_exists" do
251-
let(:cfg) { { "github" => { "branch" => "foo", "repository" => "example/repo", "default_branch" => "master" } } }
251+
let(:cfg) { { "github" => { "branch" => "foo", "repository" => "example/repo", "default_branch" => "main" } } }
252252
let(:octokit) { double("Octokit") }
253253
let(:subject) { described_class.new(cfg) }
254254

@@ -264,26 +264,26 @@
264264
context "when branch does not exist" do
265265
it "should create branch of Octokit::NotFound is raised" do
266266
allow(octokit).to receive(:branch).with("example/repo", "foo").and_raise(Octokit::NotFound)
267-
allow(octokit).to receive(:branch).with("example/repo", "master").and_return(commit: { sha: "00abcdef" })
267+
allow(octokit).to receive(:branch).with("example/repo", "main").and_return(commit: { sha: "00abcdef" })
268268
expect(octokit).to receive(:create_ref).with("example/repo", "heads/foo", "00abcdef")
269-
expect(subject).to receive(:verbose).with("Created branch foo based on master 00abcdef.")
269+
expect(subject).to receive(:verbose).with("Created branch foo based on main 00abcdef.")
270270
allow(subject).to receive(:octokit).and_return(octokit)
271271
expect(subject.send(:ensure_branch_exists)).to eq(true)
272272
end
273273

274274
it "should create branch if .branch call returns nil" do
275275
allow(octokit).to receive(:branch).with("example/repo", "foo").and_return(nil)
276-
allow(octokit).to receive(:branch).with("example/repo", "master").and_return(commit: { sha: "00abcdef" })
276+
allow(octokit).to receive(:branch).with("example/repo", "main").and_return(commit: { sha: "00abcdef" })
277277
expect(octokit).to receive(:create_ref).with("example/repo", "heads/foo", "00abcdef")
278-
expect(subject).to receive(:verbose).with("Created branch foo based on master 00abcdef.")
278+
expect(subject).to receive(:verbose).with("Created branch foo based on main 00abcdef.")
279279
allow(subject).to receive(:octokit).and_return(octokit)
280280
expect(subject.send(:ensure_branch_exists)).to eq(true)
281281
end
282282
end
283283
end
284284

285285
describe "#find_or_create_pull_request" do
286-
let(:cfg) { { "github" => { "branch" => "foo", "repository" => "example/repo", "default_branch" => "master" } } }
286+
let(:cfg) { { "github" => { "branch" => "foo", "repository" => "example/repo", "default_branch" => "main" } } }
287287
let(:subject) { described_class.new(cfg) }
288288
let(:pr) { OpenStruct.new(html_url: "https://github.com/example/repo/pull/12345") }
289289

@@ -303,7 +303,7 @@
303303
octokit = double("Octokit")
304304
allow(subject).to receive(:octokit).and_return(octokit)
305305
expect(octokit).to receive(:pull_requests).with("example/repo", {head: "github:foo", state: "open"}).and_return([])
306-
expect(octokit).to receive(:create_pull_request).with("example/repo", "master", "foo", "PR_Subject", "PR_Body").and_return(pr)
306+
expect(octokit).to receive(:create_pull_request).with("example/repo", "main", "foo", "PR_Subject", "PR_Body").and_return(pr)
307307
expect(subject).to receive(:verbose).with("Created a new PR https://github.com/example/repo/pull/12345")
308308
expect(subject).to receive(:pr_subject).and_return("PR_Subject")
309309
expect(subject).to receive(:pr_body).and_return("PR_Body")
-252 KB
Binary file not shown.
252 KB
Binary file not shown.

vendor/cache/activesupport-7.2.0.gem

-243 KB
Binary file not shown.

vendor/cache/addressable-2.8.6.gem

-105 KB
Binary file not shown.

vendor/cache/bigdecimal-3.1.7.gem

-86 KB
Binary file not shown.
-341 KB
Binary file not shown.

vendor/cache/docile-1.4.0.gem

-16 KB
Binary file not shown.

vendor/cache/faraday-2.0.0.gem

64 KB
Binary file not shown.

vendor/cache/faraday-2.10.1.gem

-71.5 KB
Binary file not shown.

vendor/cache/faraday-2.8.1.gem

-69.5 KB
Binary file not shown.
-8 KB
Binary file not shown.
-8 KB
Binary file not shown.

vendor/cache/fast_gettext-1.8.0.gem

-26.5 KB
Binary file not shown.

vendor/cache/hashdiff-1.1.0.gem

-20.5 KB
Binary file not shown.

vendor/cache/httparty-0.21.0.gem

-46.5 KB
Binary file not shown.

vendor/cache/httpclient-2.8.3.gem

-377 KB
Binary file not shown.

vendor/cache/i18n-1.14.4.gem

-45 KB
Binary file not shown.

vendor/cache/json-2.7.1.gem

-67 KB
Binary file not shown.

vendor/cache/logger-1.6.0.gem

-13.5 KB
Binary file not shown.

vendor/cache/method_source-1.0.0.gem

-13.5 KB
Binary file not shown.

vendor/cache/minitest-5.22.3.gem

-97 KB
Binary file not shown.

vendor/cache/multi_xml-0.7.1.gem

-15 KB
Binary file not shown.

vendor/cache/net-http-0.4.1.gem

-50.5 KB
Binary file not shown.

vendor/cache/net-ssh-7.2.1.gem

-139 KB
Binary file not shown.

vendor/cache/octokit-8.1.0.gem

-86.5 KB
Binary file not shown.

vendor/cache/parser-3.3.0.5.gem

-933 KB
Binary file not shown.

vendor/cache/public_suffix-5.0.4.gem

-101 KB
Binary file not shown.

vendor/cache/public_suffix-5.1.1.gem

103 KB
Binary file not shown.

vendor/cache/public_suffix-6.0.1.gem

-103 KB
Binary file not shown.

vendor/cache/puppet-6.25.1.gem

-2.79 MB
Binary file not shown.

vendor/cache/racc-1.7.3.gem

-62.5 KB
Binary file not shown.

vendor/cache/rack-3.0.10.gem

-107 KB
Binary file not shown.

vendor/cache/regexp_parser-2.9.0.gem

-57 KB
Binary file not shown.

vendor/cache/rexml-3.3.3.gem

-102 KB
Binary file not shown.
-86 KB
Binary file not shown.

vendor/cache/rspec-mocks-3.13.0.gem

-80 KB
Binary file not shown.

vendor/cache/rspec-puppet-2.6.15.gem

-48.5 KB
Binary file not shown.

vendor/cache/rubocop-1.62.1.gem

-619 KB
Binary file not shown.

vendor/cache/rubocop-ast-1.31.2.gem

-56.5 KB
Binary file not shown.
-42.5 KB
Binary file not shown.

vendor/cache/rubocop-rails-2.24.0.gem

-105 KB
Binary file not shown.

vendor/cache/securerandom-0.3.1.gem

-12.5 KB
Binary file not shown.

vendor/cache/uri-0.13.0.gem

-37 KB
Binary file not shown.

0 commit comments

Comments
 (0)