bake-gem 0.7.0 → 0.9.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/version.rb +9 -1
- data/bake/gem.rb +2 -4
- data/lib/bake/gem/helper.rb +0 -7
- data/lib/bake/gem/version.rb +1 -1
- data/readme.md +4 -4
- data.tar.gz.sig +0 -0
- metadata +3 -3
- 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: 307b46bb648004706745207f0c6d53fcd1a30b8c2bfed945b57f23a2d65685d8
|
4
|
+
data.tar.gz: 3ed9dee4422cf593efe9ca45a92b1db0e55f2cf4d863f8e38d1b46fa5ce7b2cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3984cc693ce4a547ab0c880a396738b5c9f74c16bf604b8c56494ad7aafe9d68f8b2468a52c52d816532c290a6828b4236a0274f535842850ecf38d7f166cc7a
|
7
|
+
data.tar.gz: dffb5ba0adff68a801aa29a0cb76275cee66d3218227e2333ffc2dae98da546a86faef310ba11b0045dd447a4bbb08fc7ad53711ff036e6948d9b424fb1756f5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/bake/gem/release/version.rb
CHANGED
@@ -38,6 +38,8 @@ def increment(bump, message: "Bump version.")
|
|
38
38
|
|
39
39
|
# Ensure that any subsequent tasks use the correct version!
|
40
40
|
gemspec.version = ::Gem::Version.new(version_string)
|
41
|
+
|
42
|
+
after_increment(version)
|
41
43
|
end
|
42
44
|
end
|
43
45
|
|
@@ -54,9 +56,15 @@ def commit(bump, message: "Bump version.")
|
|
54
56
|
version_path = increment(bump, message: message)
|
55
57
|
|
56
58
|
if version_path
|
57
|
-
system("git", "add",
|
59
|
+
system("git", "add", "--all", chdir: context.root)
|
58
60
|
system("git", "commit", "-m", message, chdir: context.root)
|
59
61
|
else
|
60
62
|
raise "Could not find version number!"
|
61
63
|
end
|
62
64
|
end
|
65
|
+
|
66
|
+
protected
|
67
|
+
|
68
|
+
def after_increment(version)
|
69
|
+
context['after_gem_release_version_increment']&.call(version)
|
70
|
+
end
|
data/bake/gem.rb
CHANGED
@@ -42,13 +42,11 @@ def install(local: false)
|
|
42
42
|
@helper.install_gem(*arguments, path: path)
|
43
43
|
end
|
44
44
|
|
45
|
+
# Release the gem by building it, pushing it to the server, and tagging the release.
|
46
|
+
# @parameter tag [Boolean] Whether to tag the release.
|
45
47
|
def release(tag: true)
|
46
48
|
@helper.guard_clean
|
47
49
|
|
48
|
-
unless @helper.guard_default_branch
|
49
|
-
Console.warn(self, "Not on default branch.")
|
50
|
-
end
|
51
|
-
|
52
50
|
version = @helper.gemspec.version
|
53
51
|
|
54
52
|
if tag
|
data/lib/bake/gem/helper.rb
CHANGED
@@ -70,13 +70,6 @@ module Bake
|
|
70
70
|
return true
|
71
71
|
end
|
72
72
|
|
73
|
-
def guard_default_branch
|
74
|
-
branch = readlines("git", "branch", "--show-current", chdir: @root).first.chomp
|
75
|
-
remote_head_branch = readlines("git", "symbolic-ref", "refs/remotes/origin/HEAD", chdir: @root).first.chomp.split('/').last
|
76
|
-
|
77
|
-
return branch == remote_head_branch
|
78
|
-
end
|
79
|
-
|
80
73
|
# @parameter root [String] The root path for package files.
|
81
74
|
# @parameter signing_key [String | Nil] The signing key to use for signing the package.
|
82
75
|
# @returns [String] The path to the built gem package.
|
data/lib/bake/gem/version.rb
CHANGED
data/readme.md
CHANGED
@@ -10,6 +10,10 @@ 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
|
+
## See Also
|
14
|
+
|
15
|
+
- [Bake](https://github.com/ioquatix/bake) — The bake task execution tool.
|
16
|
+
|
13
17
|
## Contributing
|
14
18
|
|
15
19
|
We welcome contributions to this project.
|
@@ -27,7 +31,3 @@ This project uses the [Developer Certificate of Origin](https://developercertifi
|
|
27
31
|
### Contributor Covenant
|
28
32
|
|
29
33
|
This project is governed by the [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
|
30
|
-
|
31
|
-
## See Also
|
32
|
-
|
33
|
-
- [Bake](https://github.com/ioquatix/bake) — The bake task execution tool.
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bake-gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -37,7 +37,7 @@ cert_chain:
|
|
37
37
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
38
38
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
39
39
|
-----END CERTIFICATE-----
|
40
|
-
date: 2024-
|
40
|
+
date: 2024-08-22 00:00:00.000000000 Z
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: console
|
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
- !ruby/object:Gem::Version
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
|
-
rubygems_version: 3.5.
|
93
|
+
rubygems_version: 3.5.11
|
94
94
|
signing_key:
|
95
95
|
specification_version: 4
|
96
96
|
summary: Release management for Ruby gems.
|
metadata.gz.sig
CHANGED
Binary file
|