bake-gem 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48eb04c9e92c22e34e9504d4cd5e29b47f7c01d5649815872f8163ff0352b14d
4
- data.tar.gz: 486fa34ab83b02141d1b526ea19cfbb078cb0dd126d5c361f3d617dce9c72939
3
+ metadata.gz: 307b46bb648004706745207f0c6d53fcd1a30b8c2bfed945b57f23a2d65685d8
4
+ data.tar.gz: 3ed9dee4422cf593efe9ca45a92b1db0e55f2cf4d863f8e38d1b46fa5ce7b2cc
5
5
  SHA512:
6
- metadata.gz: 9edd13ef496b1b47c49040d87f3010f4ca2a3e3a46458ce3eedb5d6d185fed45a2eacdee97c2f4c700ba31f73e8cdeea358ebd5c5a3b7a201c9c5aac9cfe89eb
7
- data.tar.gz: 57d47443d4e6c56f245342106e7c024a2b6caa5c432acf5f2bd702a7de712d56cb3e83c9848c59a39b0009e5e44550fa7db7120291d69e53a784e3fd4a31bae8
6
+ metadata.gz: 3984cc693ce4a547ab0c880a396738b5c9f74c16bf604b8c56494ad7aafe9d68f8b2468a52c52d816532c290a6828b4236a0274f535842850ecf38d7f166cc7a
7
+ data.tar.gz: dffb5ba0adff68a801aa29a0cb76275cee66d3218227e2333ffc2dae98da546a86faef310ba11b0045dd447a4bbb08fc7ad53711ff036e6948d9b424fb1756f5
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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", version_path, chdir: context.root)
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,6 +42,8 @@ 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
 
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Bake
7
7
  module Gem
8
- VERSION = "0.8.0"
8
+ VERSION = "0.9.0"
9
9
  end
10
10
  end
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.8.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-06-23 00:00:00.000000000 Z
40
+ date: 2024-08-22 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: console
metadata.gz.sig CHANGED
Binary file