bake-gem 0.10.0 → 0.11.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 436620eb899794e3709390307a7d665798d1808b2cdded1a151c005db9c3f55d
4
- data.tar.gz: c438bf0f5436b9eb5935661d8d9b4b4241050f7d5dfd4f0da086a4fe9ff48e04
3
+ metadata.gz: 6696fea309e0e6f44c0907ec7f989ba035ed1894f8d1451e748a7dc643f59a68
4
+ data.tar.gz: 6ab62d3b7d148130eb2b9812f57750321efb6cb8cc50f5f50fa9fd8306ae2f56
5
5
  SHA512:
6
- metadata.gz: 3bb4833a86116ebdcfb5949f5d8960473ded2595ad0fbd3d533988a79fb8158535c43ffeeb1755e5ac657a2f884f863f99c3d4dca562a2efc2f2c8b53abe8735
7
- data.tar.gz: 5821fefb80eac7a536e54c0f4df700ff0d800938bd72e4ad4c364f1262878247a68922ae70474bfc57a44821efad2ae7cf394ae19abef5fe12d0a9038887f2dd
6
+ metadata.gz: f77553e1d121cc08a9ee60bd8e1baaa8a64f767039f10339f40571abf41c20f024192c612d72143f08aedde596f2ac171bbda93e5c1ca5ca531da69bb640d247
7
+ data.tar.gz: ecabafafebf96384fae2a85dfb4d8421bd592617105aba85a7e14e2fe34a2853abb4f9916cdd70a66459bb39787a3dc7c1a40d97aeb63e6a5d6112e105e1c9ad
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2024, by Samuel Williams.
4
+ # Copyright, 2021-2025, by Samuel Williams.
5
5
 
6
- require_relative '../../../lib/bake/gem/shell'
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('gem:release')
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('gem:release:version:increment').call(bump, message: message)
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
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2024, by Samuel Williams.
4
+ # Copyright, 2021-2025, by Samuel Williams.
5
5
 
6
- require_relative '../../../lib/bake/gem/shell'
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('gem:release')
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('gem:release')
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['after_gem_release_version_increment']&.call(version)
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-2024, by Samuel Williams.
4
+ # Copyright, 2021-2025, by Samuel Williams.
5
5
 
6
- require_relative '../lib/bake/gem/helper'
7
- require_relative '../lib/bake/gem/shell'
6
+ require_relative "../lib/bake/gem/helper"
7
+ require_relative "../lib/bake/gem/shell"
8
8
 
9
9
  include Bake::Gem::Shell
10
10
 
@@ -18,9 +18,7 @@ attr :helper
18
18
 
19
19
  # List all the files that will be included in the gem:
20
20
  def files
21
- @helper.gemspec.files.each do |path|
22
- $stdout.puts path
23
- end
21
+ @helper.gemspec.files
24
22
  end
25
23
 
26
24
  # Build the gem into the pkg directory.
@@ -40,6 +38,12 @@ def install(local: false)
40
38
  arguments << "--local" if local
41
39
 
42
40
  @helper.install_gem(*arguments, path: path)
41
+
42
+ return {
43
+ name: @helper.gemspec.name,
44
+ version: @helper.gemspec.version,
45
+ package_path: path,
46
+ }
43
47
  end
44
48
 
45
49
  # Release the gem by building it, pushing it to the server, and tagging the release.
@@ -69,6 +73,13 @@ def release(tag: true)
69
73
  end
70
74
 
71
75
  system("git", "push", "--tags")
76
+
77
+ return {
78
+ name: @helper.gemspec.name,
79
+ version: @helper.gemspec.version,
80
+ package_path: path,
81
+ tag: name,
82
+ }
72
83
  end
73
84
 
74
85
  private
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2023, by Samuel Williams.
4
+ # Copyright, 2021-2025, by Samuel Williams.
5
5
 
6
- require 'rubygems'
7
- require 'rubygems/package'
8
- require 'fileutils'
6
+ require "rubygems"
7
+ require "rubygems/package"
8
+ require "fileutils"
9
9
 
10
- require_relative 'shell'
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('pkg', @gemspec.file_name)
127
+ output_path = File.join("pkg", @gemspec.file_name)
128
128
 
129
129
  if signing_key == false
130
130
  @gemspec.signing_key = nil
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2024, by Samuel Williams.
4
+ # Copyright, 2021-2025, by Samuel Williams.
5
5
 
6
- require 'console'
7
- require 'console/event/spawn'
6
+ require "console"
7
+ require "console/event/spawn"
8
8
 
9
9
  module Bake
10
10
  module Gem
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2023, by Samuel Williams.
4
+ # Copyright, 2021-2025, by Samuel Williams.
5
5
 
6
6
  module Bake
7
7
  module Gem
8
- VERSION = "0.10.0"
8
+ VERSION = "0.11.1"
9
9
  end
10
10
  end
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
- This project uses the [Developer Certificate of Origin](https://developercertificate.org/). All contributors to this project must agree to this document to have their contributions accepted.
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
- ### Contributor Covenant
39
+ ### Community Guidelines
32
40
 
33
- This project is governed by the [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
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
@@ -0,0 +1,5 @@
1
+ # Releases
2
+
3
+ ## v0.11.0
4
+
5
+ - Improved bake task return values.
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.10.0
4
+ version: 0.11.1
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: 2024-08-23 00:00:00.000000000 Z
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.1'
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.5.11
94
- signing_key:
90
+ rubygems_version: 3.6.9
95
91
  specification_version: 4
96
92
  summary: Release management for Ruby gems.
97
93
  test_files: []
metadata.gz.sig CHANGED
Binary file