create_github_release 2.1.1 → 2.1.3

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: 86f083d1483f3aeea61c0a35aa765b49b364bc6acd7a7636031d77976d5b214b
4
- data.tar.gz: 23878e11780006223bc164616ffb1e2e7306174d1f452535e8791a3c1b5af82e
3
+ metadata.gz: '08c3d00a0f75a3accad80335ab689ec5e8031c31d2dffd2cb5c3e169a8ee0e7b'
4
+ data.tar.gz: 298c656c98c5e0ab3c82f16ca68136f7ee171835457becda20518524b15b71f7
5
5
  SHA512:
6
- metadata.gz: a1960299c4f3b862fabade031dcecb68c9fac3eaeb998dc06c9683150a982ca564fe9d01a45844db5bc5faac55057fc2e51e03db5ad1a71a92b692755e664b7a
7
- data.tar.gz: f8ec1f69634152a15d9c46d73462e2465e21194dba6aa9437eb7db9abcd11bb8a766364611a7c55e2649e67ae90d81db9c07166a5ade137558117ac4b6a0f977
6
+ metadata.gz: e116fddb0d27f6f6ddff3a255632bdc1c4156ecedfe834d0eb84aabff7a4d56dc0be031ddddcf75d91b0405624d3b9745d16d13027712c53c204f72d7a3c19c6
7
+ data.tar.gz: 49ad78a9eca648b551b309fad714a9e48c25a10bc55691a6fbc17dcf8e7058ffa44893531efba53e555b701c0a2041d616b804e12688bdf009ceb0c0bd2c3897
data/.commitlintrc.yml ADDED
@@ -0,0 +1,16 @@
1
+ ---
2
+ extends: '@commitlint/config-conventional'
3
+
4
+ rules:
5
+ # See: https://commitlint.js.org/reference/rules.html
6
+ #
7
+ # Rules are made up by a name and a configuration array. The configuration array contains:
8
+ #
9
+ # * Severity [0..2]: 0 disable rule, 1 warning if violated, or 2 error if violated
10
+ # * Applicability [always|never]: never inverts the rule
11
+ # * Value: value to use for this rule
12
+ #
13
+ # Run `npx commitlint --print-config` to see the current setting for all rules.
14
+ #
15
+ body-leading-blank: [2, 'always']
16
+ footer-leading-blank: [2, 'always']
data/.husky/commit-msg ADDED
@@ -0,0 +1 @@
1
+ npx --no-install commitlint --edit "$1"
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "2.1.3"
3
+ }
data/.yardopts CHANGED
@@ -3,6 +3,4 @@
3
3
  --markup-provider=redcarpet
4
4
  --markup markdown
5
5
  - CHANGELOG.md
6
- - CONTRIBUTING.md
7
- - RELEASING.md
8
6
  - LICENSE.txt
data/CHANGELOG.md CHANGED
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.1.3](https://github.com/main-branch/create_github_release/compare/v2.1.2...v2.1.3) (2025-04-16)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Automate commit-to-publish workflow ([934289d](https://github.com/main-branch/create_github_release/commit/934289d3fad43157982eefe5d4bd65d066ab62cd))
14
+ * Remove yardoc references to files not included in the project ([19b781c](https://github.com/main-branch/create_github_release/commit/19b781c621b0197f53c5edf19ec19c23fc497567))
15
+
16
+ ## v2.1.2 (2024-10-10)
17
+
18
+ [Full Changelog](https://github.com/main-branch/create_github_release/compare/v2.1.1..v2.1.2)
19
+
20
+ Changes since v2.1.1:
21
+
22
+ * 0bb1a31 build: remove semver pr label check
23
+ * 1c5f446 build: enforce conventional commit message formatting
24
+
8
25
  ## v2.1.1 (2024-10-10)
9
26
 
10
27
  [Full Changelog](https://github.com/main-branch/create_github_release/compare/v2.1.0..v2.1.1)
data/README.md CHANGED
@@ -4,8 +4,8 @@
4
4
  [![Documentation](https://img.shields.io/badge/Documentation-Latest-green)](https://rubydoc.info/gems/create_github_release/)
5
5
  [![Change Log](https://img.shields.io/badge/CHANGELOG-Latest-green)](https://rubydoc.info/gems/create_github_release/file/CHANGELOG.md)
6
6
  [![Build Status](https://github.com/main-branch/create_github_release/actions/workflows/continuous_integration.yml/badge.svg)](https://github.com/main-branch/create_github_release/actions/workflows/continuous_integration.yml)
7
- [![Maintainability](https://api.codeclimate.com/v1/badges/b8c0af10b15a0ffeb1a1/maintainability)](https://codeclimate.com/github/main-branch/create_github_release/maintainability)
8
- [![Test Coverage](https://api.codeclimate.com/v1/badges/b8c0af10b15a0ffeb1a1/test_coverage)](https://codeclimate.com/github/main-branch/create_github_release/test_coverage)
7
+ [![Conventional
8
+ Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org)
9
9
  [![Slack](https://img.shields.io/badge/slack-main--branch/create__github__release-yellow.svg?logo=slack)](https://main-branch.slack.com/archives/C07NG282N80)
10
10
 
11
11
  When run in your gem's git worktree, the `create-github-release` script does the
@@ -26,20 +26,22 @@ Tested on Ruby 3.0+
26
26
 
27
27
  * [Installation](#installation)
28
28
  * [Usage](#usage)
29
- * [First release using this script when there were NO prior releases](#first-release-using-this-script-when-there-were-no-prior-releases)
30
- * [First release using this script when there were prior releases](#first-release-using-this-script-when-there-were-prior-releases)
31
- * [Subsequent releases using this script](#subsequent-releases-using-this-script)
32
- * [Pre-release versions](#pre-release-versions)
33
- * [Creating the first pre-release version for a release](#creating-the-first-pre-release-version-for-a-release)
34
- * [Creating subsequent pre-releases](#creating-subsequent-pre-releases)
35
- * [Changing the pre-release type](#changing-the-pre-release-type)
36
- * [Creating the release after pre-releases](#creating-the-release-after-pre-releases)
37
- * [After Running create-github-release](#after-running-create-github-release)
38
- * [Reverting `create-github-release`](#reverting-create-github-release)
29
+ * [First release using this script when there were NO prior releases](#first-release-using-this-script-when-there-were-no-prior-releases)
30
+ * [First release using this script when there were prior releases](#first-release-using-this-script-when-there-were-prior-releases)
31
+ * [Subsequent releases using this script](#subsequent-releases-using-this-script)
32
+ * [Pre-release versions](#pre-release-versions)
33
+ * [Creating the first pre-release version for a release](#creating-the-first-pre-release-version-for-a-release)
34
+ * [Creating subsequent pre-releases](#creating-subsequent-pre-releases)
35
+ * [Changing the pre-release type](#changing-the-pre-release-type)
36
+ * [Creating the release after pre-releases](#creating-the-release-after-pre-releases)
37
+ * [After Running create-github-release](#after-running-create-github-release)
38
+ * [Reverting `create-github-release`](#reverting-create-github-release)
39
39
  * [FAQ](#faq)
40
- * [How is the changelog updated?](#how-is-the-changelog-updated)
40
+ * [How is the changelog updated?](#how-is-the-changelog-updated)
41
41
  * [Development](#development)
42
42
  * [Contributing](#contributing)
43
+ * [Commit message guidelines](#commit-message-guidelines)
44
+ * [Pull request guidelines](#pull-request-guidelines)
43
45
  * [License](#license)
44
46
 
45
47
  ## Installation
@@ -401,6 +403,31 @@ To install this gem onto your current Ruby environment, run `bundle exec rake in
401
403
  Bug reports and pull requests are welcome on
402
404
  [this project's GitHub page](https://github.com/main-branch/create_github_release)
403
405
 
406
+ ### Commit message guidelines
407
+
408
+ All commit messages must follow the [Conventional Commits
409
+ standard](https://www.conventionalcommits.org/en/v1.0.0/). This helps us maintain a
410
+ clear and structured commit history, automate versioning, and generate changelogs
411
+ effectively.
412
+
413
+ To ensure compliance, this project includes:
414
+
415
+ * A git commit-msg hook that validates your commit messages before they are accepted.
416
+
417
+ To activate the hook, you must have node installed and run `npm install`.
418
+
419
+ * A GitHub Actions workflow that will enforce the Conventional Commit standard as
420
+ part of the continuous integration pipeline.
421
+
422
+ Any commit message that does not conform to the Conventional Commits standard will
423
+ cause the workflow to fail and not allow the PR to be merged.
424
+
425
+ ### Pull request guidelines
426
+
427
+ All pull requests must be merged using rebase merges. This ensures that commit
428
+ messages from the feature branch are preserved in the release branch, keeping the
429
+ history clean and meaningful.
430
+
404
431
  ## License
405
432
 
406
433
  The gem is available as open source under the terms of the
data/Rakefile CHANGED
@@ -27,6 +27,13 @@ rescue Bundler::BundlerError => e
27
27
  exit e.status_code
28
28
  end
29
29
 
30
+ # Make it so that calling `rake release` just calls `rake release:rubygems_push` to
31
+ # avoid creating and pushing a new tag.
32
+
33
+ Rake::Task['release'].clear
34
+ desc 'Customized release task to avoid creating a new tag'
35
+ task release: 'release:rubygem_push'
36
+
30
37
  CLEAN << 'pkg'
31
38
  CLOBBER << 'Gemfile.lock'
32
39
 
@@ -40,10 +40,11 @@ Gem::Specification.new do |spec|
40
40
  'Ruby: MRI 3.1 or later, TruffleRuby 24 or later, or JRuby 9.4 or later'
41
41
  ]
42
42
 
43
- spec.add_dependency 'command_line_boss', '~> 0.1'
44
- spec.add_dependency 'version_boss', '~> 0.1'
43
+ spec.add_dependency 'command_line_boss', '~> 0.2'
44
+ spec.add_dependency 'version_boss', '~> 0.2'
45
45
 
46
46
  spec.add_development_dependency 'bundler-audit', '~> 0.9'
47
+ spec.add_development_dependency 'create_github_release', '~> 2.1'
47
48
  # spec.add_development_dependency 'debug', '~> 1.9'
48
49
  spec.add_development_dependency 'logger', '~> 1.6'
49
50
  spec.add_development_dependency 'main_branch_shared_rubocop_config', '~> 0.1'
@@ -96,6 +96,7 @@ class Parser
96
96
 
97
97
  Options:
98
98
  BANNER
99
+ private_constant :BANNER
99
100
 
100
101
  # Define the options for OptionParser
101
102
  # @return [void]
@@ -119,7 +119,7 @@ module CreateGithubRelease
119
119
  # @return [Boolean]
120
120
  # @api private
121
121
  def valid?
122
- options.quiet == true || options.quiet == false
122
+ [true, false].include? options.quiet
123
123
  end
124
124
 
125
125
  # Called when valid? is `false` to return the error messages
@@ -137,7 +137,7 @@ module CreateGithubRelease
137
137
  # @return [Boolean]
138
138
  # @api private
139
139
  def valid?
140
- options.verbose == true || options.verbose == false
140
+ [true, false].include? options.verbose
141
141
  end
142
142
 
143
143
  # Called when valid? is `false` to return the error messages
@@ -2,5 +2,5 @@
2
2
 
3
3
  module CreateGithubRelease
4
4
  # The version of this gem
5
- VERSION = '2.1.1'
5
+ VERSION = '2.1.3'
6
6
  end
data/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "devDependencies": {
3
+ "@commitlint/cli": "^19.5.0",
4
+ "@commitlint/config-conventional": "^19.5.0",
5
+ "husky": "^9.1.0"
6
+ },
7
+ "scripts": {
8
+ "postinstall": "husky",
9
+ "prepare": "husky"
10
+ }
11
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "bootstrap-sha": "5f3a18d74fb755d31cc4d3dfc9d18a6df4799945",
3
+ "packages": {
4
+ ".": {
5
+ "release-type": "ruby",
6
+ "package-name": "create_github_release",
7
+ "changelog-path": "CHANGELOG.md",
8
+ "version-file": "lib/create_github_release/version.rb",
9
+ "bump-minor-pre-major": true,
10
+ "bump-patch-for-minor-pre-major": true,
11
+ "draft": false,
12
+ "prerelease": false,
13
+ "include-component-in-tag": false
14
+ }
15
+ },
16
+ "plugins": [
17
+ {
18
+ "type": "sentence-case"
19
+ }
20
+ ],
21
+ "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
22
+ }
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: create_github_release
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-10-10 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: command_line_boss
@@ -16,28 +15,28 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '0.1'
18
+ version: '0.2'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: '0.1'
25
+ version: '0.2'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: version_boss
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - "~>"
32
31
  - !ruby/object:Gem::Version
33
- version: '0.1'
32
+ version: '0.2'
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - "~>"
39
38
  - !ruby/object:Gem::Version
40
- version: '0.1'
39
+ version: '0.2'
41
40
  - !ruby/object:Gem::Dependency
42
41
  name: bundler-audit
43
42
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +51,20 @@ dependencies:
52
51
  - - "~>"
53
52
  - !ruby/object:Gem::Version
54
53
  version: '0.9'
54
+ - !ruby/object:Gem::Dependency
55
+ name: create_github_release
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '2.1'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '2.1'
55
68
  - !ruby/object:Gem::Dependency
56
69
  name: logger
57
70
  requirement: !ruby/object:Gem::Requirement
@@ -237,7 +250,10 @@ executables:
237
250
  extensions: []
238
251
  extra_rdoc_files: []
239
252
  files:
253
+ - ".commitlintrc.yml"
254
+ - ".husky/commit-msg"
240
255
  - ".markdownlint.yml"
256
+ - ".release-please-manifest.json"
241
257
  - ".rspec"
242
258
  - ".rubocop.yml"
243
259
  - ".vscode/launch.json"
@@ -291,6 +307,8 @@ files:
291
307
  - lib/create_github_release/tasks/update_changelog.rb
292
308
  - lib/create_github_release/tasks/update_version.rb
293
309
  - lib/create_github_release/version.rb
310
+ - package.json
311
+ - release-please-config.json
294
312
  homepage: https://github.com/main-branch/create_github_release
295
313
  licenses:
296
314
  - MIT
@@ -298,10 +316,9 @@ metadata:
298
316
  allowed_push_host: https://rubygems.org
299
317
  homepage_uri: https://github.com/main-branch/create_github_release
300
318
  source_code_uri: https://github.com/main-branch/create_github_release
301
- documentation_uri: https://rubydoc.info/gems/create_github_release/2.1.1
302
- changelog_uri: https://rubydoc.info/gems/create_github_release/2.1.1/file/CHANGELOG.md
319
+ documentation_uri: https://rubydoc.info/gems/create_github_release/2.1.3
320
+ changelog_uri: https://rubydoc.info/gems/create_github_release/2.1.3/file/CHANGELOG.md
303
321
  rubygems_mfa_required: 'true'
304
- post_install_message:
305
322
  rdoc_options: []
306
323
  require_paths:
307
324
  - lib
@@ -318,8 +335,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
318
335
  requirements:
319
336
  - 'Platform: Mac, Linux, or Windows'
320
337
  - 'Ruby: MRI 3.1 or later, TruffleRuby 24 or later, or JRuby 9.4 or later'
321
- rubygems_version: 3.5.16
322
- signing_key:
338
+ rubygems_version: 3.6.7
323
339
  specification_version: 4
324
340
  summary: A script to create a GitHub release for a Ruby Gem
325
341
  test_files: []