bake-gem 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/bake/gem/release/branch.rb +10 -4
- data/bake/gem/release/version.rb +15 -5
- data/bake/gem.rb +16 -3
- data/lib/bake/gem/helper.rb +8 -8
- data/lib/bake/gem/shell.rb +3 -3
- data/lib/bake/gem/version.rb +2 -2
- data/readme.md +11 -3
- data/releases.md +5 -0
- data.tar.gz.sig +0 -0
- metadata +5 -9
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9350c6f56e7017043a435dad7b6a1c33c8e5094607928bd584bef68701ee143e
|
4
|
+
data.tar.gz: 1e4ec888c6149c52f91575edc84dd5c65940349cb74cb7a3ec20e71678af693d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7571129ebde2c248ca42c6b30231b2299a8485f8a47ae62eb46e56bb626ffde738d5878e7273b8482cea821a68e89260f161e11fa6c114b0b19835f9f3ba093e
|
7
|
+
data.tar.gz: 0eb9329e17cf0d610d9da131717fd20bc20f671f6574afa405f41c1231aa8d5ebf4b4e1e030d16335a1ea08dd069fd4abc5dc51df4c3f66ddbeba9582234cf2e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/bake/gem/release/branch.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2021-
|
4
|
+
# Copyright, 2021-2025, by Samuel Williams.
|
5
5
|
|
6
|
-
require_relative
|
6
|
+
require_relative "../../../lib/bake/gem/shell"
|
7
7
|
|
8
8
|
include Bake::Gem::Shell
|
9
9
|
|
@@ -27,13 +27,13 @@ end
|
|
27
27
|
# @parameter bump [Array(Integer | Nil)] the version bump to apply before publishing, e.g. `0,1,0` to increment minor version number.
|
28
28
|
# @parameter message [String] the git commit message to use.
|
29
29
|
def commit(bump, message: "Bump version.")
|
30
|
-
release = context.lookup(
|
30
|
+
release = context.lookup("gem:release")
|
31
31
|
helper = release.instance.helper
|
32
32
|
gemspec = helper.gemspec
|
33
33
|
|
34
34
|
# helper.guard_clean
|
35
35
|
|
36
|
-
version_path = context.lookup(
|
36
|
+
version_path = context.lookup("gem:release:version:increment").call(bump, message: message)
|
37
37
|
|
38
38
|
if version_path
|
39
39
|
system("git", "checkout", "-b", "release-v#{gemspec.version}")
|
@@ -42,4 +42,10 @@ def commit(bump, message: "Bump version.")
|
|
42
42
|
else
|
43
43
|
raise "Could not find version number!"
|
44
44
|
end
|
45
|
+
|
46
|
+
return {
|
47
|
+
version: gemspec.version,
|
48
|
+
version_path: version_path,
|
49
|
+
branch: "release-v#{gemspec.version}",
|
50
|
+
}
|
45
51
|
end
|
data/bake/gem/release/version.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2021-
|
4
|
+
# Copyright, 2021-2025, by Samuel Williams.
|
5
5
|
|
6
|
-
require_relative
|
6
|
+
require_relative "../../../lib/bake/gem/shell"
|
7
7
|
|
8
8
|
include Bake::Gem::Shell
|
9
9
|
|
@@ -27,7 +27,7 @@ end
|
|
27
27
|
# @parameter bump [Array(Integer | Nil)] the version bump to apply before publishing, e.g. `0,1,0` to increment minor version number.
|
28
28
|
# @parameter message [String] the git commit message to use.
|
29
29
|
def increment(bump, message: "Bump version.")
|
30
|
-
release = context.lookup(
|
30
|
+
release = context.lookup("gem:release")
|
31
31
|
helper = release.instance.helper
|
32
32
|
gemspec = helper.gemspec
|
33
33
|
|
@@ -39,6 +39,11 @@ def increment(bump, message: "Bump version.")
|
|
39
39
|
|
40
40
|
after_increment(version)
|
41
41
|
end
|
42
|
+
|
43
|
+
return {
|
44
|
+
version: gemspec.version,
|
45
|
+
version_path: helper.version_path,
|
46
|
+
}
|
42
47
|
end
|
43
48
|
|
44
49
|
# Increments the version and commits the changes on the current branch.
|
@@ -46,7 +51,7 @@ end
|
|
46
51
|
# @parameter bump [Array(Integer | Nil)] the version bump to apply before publishing, e.g. `0,1,0` to increment minor version number.
|
47
52
|
# @parameter message [String] the git commit message to use.
|
48
53
|
def commit(bump, message: "Bump version.")
|
49
|
-
release = context.lookup(
|
54
|
+
release = context.lookup("gem:release")
|
50
55
|
helper = release.instance.helper
|
51
56
|
|
52
57
|
helper.guard_clean
|
@@ -59,10 +64,15 @@ def commit(bump, message: "Bump version.")
|
|
59
64
|
else
|
60
65
|
raise "Could not find version number!"
|
61
66
|
end
|
67
|
+
|
68
|
+
return {
|
69
|
+
version: helper.gemspec.version,
|
70
|
+
version_path: version_path,
|
71
|
+
}
|
62
72
|
end
|
63
73
|
|
64
74
|
protected
|
65
75
|
|
66
76
|
def after_increment(version)
|
67
|
-
context[
|
77
|
+
context["after_gem_release_version_increment"]&.call(version)
|
68
78
|
end
|
data/bake/gem.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2021-
|
4
|
+
# Copyright, 2021-2025, by Samuel Williams.
|
5
5
|
|
6
|
-
require_relative
|
7
|
-
require_relative
|
6
|
+
require_relative "../lib/bake/gem/helper"
|
7
|
+
require_relative "../lib/bake/gem/shell"
|
8
8
|
|
9
9
|
include Bake::Gem::Shell
|
10
10
|
|
@@ -40,6 +40,12 @@ def install(local: false)
|
|
40
40
|
arguments << "--local" if local
|
41
41
|
|
42
42
|
@helper.install_gem(*arguments, path: path)
|
43
|
+
|
44
|
+
return {
|
45
|
+
name: @helper.gemspec.name,
|
46
|
+
version: @helper.gemspec.version,
|
47
|
+
package_path: path,
|
48
|
+
}
|
43
49
|
end
|
44
50
|
|
45
51
|
# Release the gem by building it, pushing it to the server, and tagging the release.
|
@@ -69,6 +75,13 @@ def release(tag: true)
|
|
69
75
|
end
|
70
76
|
|
71
77
|
system("git", "push", "--tags")
|
78
|
+
|
79
|
+
return {
|
80
|
+
name: @helper.gemspec.name,
|
81
|
+
version: @helper.gemspec.version,
|
82
|
+
package_path: path,
|
83
|
+
tag: name,
|
84
|
+
}
|
72
85
|
end
|
73
86
|
|
74
87
|
private
|
data/lib/bake/gem/helper.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2021-
|
4
|
+
# Copyright, 2021-2025, by Samuel Williams.
|
5
5
|
|
6
|
-
require
|
7
|
-
require
|
8
|
-
require
|
6
|
+
require "rubygems"
|
7
|
+
require "rubygems/package"
|
8
|
+
require "fileutils"
|
9
9
|
|
10
|
-
require_relative
|
10
|
+
require_relative "shell"
|
11
11
|
|
12
12
|
module Bake
|
13
13
|
module Gem
|
@@ -42,7 +42,7 @@ module Bake
|
|
42
42
|
if @suffix
|
43
43
|
return "#{@parts.join('.')}-#{@suffix}"
|
44
44
|
else
|
45
|
-
return @parts.join(
|
45
|
+
return @parts.join(".")
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
@@ -54,7 +54,7 @@ module Bake
|
|
54
54
|
def increment(bump)
|
55
55
|
bump.each_with_index do |increment, index|
|
56
56
|
if index > @parts.size
|
57
|
-
@suffix = bump[index..-1].join(
|
57
|
+
@suffix = bump[index..-1].join(".")
|
58
58
|
break
|
59
59
|
end
|
60
60
|
|
@@ -124,7 +124,7 @@ module Bake
|
|
124
124
|
# Ensure the output directory exists:
|
125
125
|
FileUtils.mkdir_p("pkg")
|
126
126
|
|
127
|
-
output_path = File.join(
|
127
|
+
output_path = File.join("pkg", @gemspec.file_name)
|
128
128
|
|
129
129
|
if signing_key == false
|
130
130
|
@gemspec.signing_key = nil
|
data/lib/bake/gem/shell.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2021-
|
4
|
+
# Copyright, 2021-2025, by Samuel Williams.
|
5
5
|
|
6
|
-
require
|
7
|
-
require
|
6
|
+
require "console"
|
7
|
+
require "console/event/spawn"
|
8
8
|
|
9
9
|
module Bake
|
10
10
|
module Gem
|
data/lib/bake/gem/version.rb
CHANGED
data/readme.md
CHANGED
@@ -10,6 +10,14 @@ Please see the [project documentation](https://ioquatix.github.io/bake-gem/) for
|
|
10
10
|
|
11
11
|
- [Getting Started](https://ioquatix.github.io/bake-gem/guides/getting-started/index) - This guide explains how to use `bake-gem` to release gems.
|
12
12
|
|
13
|
+
## Releases
|
14
|
+
|
15
|
+
Please see the [project releases](https://ioquatix.github.io/bake-gem/releases/index) for all releases.
|
16
|
+
|
17
|
+
### v0.11.0
|
18
|
+
|
19
|
+
- Improved bake task return values.
|
20
|
+
|
13
21
|
## See Also
|
14
22
|
|
15
23
|
- [Bake](https://github.com/ioquatix/bake) — The bake task execution tool.
|
@@ -26,8 +34,8 @@ We welcome contributions to this project.
|
|
26
34
|
|
27
35
|
### Developer Certificate of Origin
|
28
36
|
|
29
|
-
|
37
|
+
In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed.
|
30
38
|
|
31
|
-
###
|
39
|
+
### Community Guidelines
|
32
40
|
|
33
|
-
This project is
|
41
|
+
This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.
|
data/releases.md
ADDED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bake-gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain:
|
11
10
|
- |
|
@@ -37,7 +36,7 @@ cert_chain:
|
|
37
36
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
38
37
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
39
38
|
-----END CERTIFICATE-----
|
40
|
-
date:
|
39
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
41
40
|
dependencies:
|
42
41
|
- !ruby/object:Gem::Dependency
|
43
42
|
name: console
|
@@ -53,8 +52,6 @@ dependencies:
|
|
53
52
|
- - "~>"
|
54
53
|
- !ruby/object:Gem::Version
|
55
54
|
version: '1.25'
|
56
|
-
description:
|
57
|
-
email:
|
58
55
|
executables: []
|
59
56
|
extensions: []
|
60
57
|
extra_rdoc_files: []
|
@@ -68,6 +65,7 @@ files:
|
|
68
65
|
- lib/bake/gem/version.rb
|
69
66
|
- license.md
|
70
67
|
- readme.md
|
68
|
+
- releases.md
|
71
69
|
homepage: https://github.com/ioquatix/bake-gem
|
72
70
|
licenses:
|
73
71
|
- MIT
|
@@ -75,7 +73,6 @@ metadata:
|
|
75
73
|
documentation_uri: https://ioquatix.github.io/bake-gem/
|
76
74
|
funding_uri: https://github.com/sponsors/ioquatix/
|
77
75
|
source_code_uri: https://github.com/ioquatix/bake-gem.git
|
78
|
-
post_install_message:
|
79
76
|
rdoc_options: []
|
80
77
|
require_paths:
|
81
78
|
- lib
|
@@ -83,15 +80,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
83
80
|
requirements:
|
84
81
|
- - ">="
|
85
82
|
- !ruby/object:Gem::Version
|
86
|
-
version: '3.
|
83
|
+
version: '3.2'
|
87
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
85
|
requirements:
|
89
86
|
- - ">="
|
90
87
|
- !ruby/object:Gem::Version
|
91
88
|
version: '0'
|
92
89
|
requirements: []
|
93
|
-
rubygems_version: 3.
|
94
|
-
signing_key:
|
90
|
+
rubygems_version: 3.6.7
|
95
91
|
specification_version: 4
|
96
92
|
summary: Release management for Ruby gems.
|
97
93
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|