semantic_release 1.2.0 → 1.3.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
- data/CHANGELOG.md +14 -4
- data/README.md +4 -1
- data/lib/semantic_release/configuration.rb +2 -1
- data/lib/semantic_release/updaters/base_updater.rb +4 -0
- data/lib/semantic_release/updaters/changelog.rb +1 -1
- data/lib/semantic_release/updaters/git_tag.rb +8 -3
- data/lib/semantic_release/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3f71bfb1b22b3307bf77b825f38245da0a2fdb496a2283a177cce46b4ad06ac
|
4
|
+
data.tar.gz: 6d3bc24a2263f8bd9d7f2d473858cd0134bc414e676425fb2b4119f764b89ec7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b66514f271a7e5fd91203815f754b05c00b390ce71bfc5fac1b2c2e4809661ef8a4db47d035c7c46e77039d588eae90160df703cf2b80a55273be374656968f5
|
7
|
+
data.tar.gz: be07bc941cd8ed5ae69a55fdb442a98a04a58553c68c3f69219bac9fc2662f27902767da0576cb7137ab920484837b3e77088043d6033adfc3974834a18eee0e
|
data/CHANGELOG.md
CHANGED
@@ -1,19 +1,29 @@
|
|
1
|
-
##
|
1
|
+
## v1.3.0 (10 February 2025)
|
2
|
+
|
3
|
+
- feat: Add config option to hide message about building and pushing the .gem file to rubygems.org
|
4
|
+
- fix: Prefix version number in changelog files with 'v'
|
5
|
+
- ci: Add rake_announcer gem
|
6
|
+
|
7
|
+
## v1.2.1 (06 February 2025)
|
8
|
+
|
9
|
+
- docs: Fix release instructions to clarify that you need to push the tag _and_ run `rake release`
|
10
|
+
|
11
|
+
## v1.2.0 (06 February 2025)
|
2
12
|
|
3
13
|
- feat: Mention 'rake release' in git tag updater output if a gemspec file is present
|
4
14
|
- feat: Stage Gemfile.lock after bumping version.rb if a gemspec file is present
|
5
15
|
|
6
|
-
##
|
16
|
+
## v1.1.0 (03 February 2025)
|
7
17
|
|
8
18
|
- Add check to prevent re-initialising if semver file already exists
|
9
19
|
- Add configuration options for semver file
|
10
20
|
- Change rake task namespace from `semantic_release` to `release` and make configurable
|
11
21
|
|
12
|
-
##
|
22
|
+
## v1.0.1 (02 February 2025)
|
13
23
|
|
14
24
|
- Add blank line after version number in changelog
|
15
25
|
- Remove unnecessary files from gem
|
16
26
|
|
17
|
-
##
|
27
|
+
## v1.0.0 (02 February 2025)
|
18
28
|
|
19
29
|
- Initial release
|
data/README.md
CHANGED
@@ -48,6 +48,7 @@ The name of the rake task and other options are configurable like so:
|
|
48
48
|
require "semantic_release/rake_task"
|
49
49
|
SemanticRelease::RakeTask.new(:semver) do |config|
|
50
50
|
config.semver_file = "semver.json"
|
51
|
+
config.disable_rubygems_message = true
|
51
52
|
end
|
52
53
|
```
|
53
54
|
|
@@ -73,7 +74,9 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
73
74
|
|
74
75
|
To install this gem onto your local machine, run `bundle exec rake install`.
|
75
76
|
|
76
|
-
To release a new version, run `bundle exec rake semver:XXX` (replacing `XXX` with `major` or `minor` or `patch`), which will bump the version number and create a git tag for the version. Then run `
|
77
|
+
To release a new version, run `bundle exec rake semver:XXX` (replacing `XXX` with `major` or `minor` or `patch`), which will bump the version number and create a git tag for the version. Then run `git push origin main --tags` to push the new tag.
|
78
|
+
|
79
|
+
Then run `bundle exec rake release`, which will build and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
77
80
|
|
78
81
|
## Contributing
|
79
82
|
|
@@ -18,7 +18,7 @@ module SemanticRelease
|
|
18
18
|
heading_marker = filepath.end_with?(".rdoc") ? "==" : "##"
|
19
19
|
content = File.read(filepath)
|
20
20
|
File.open(filepath, "w") do |f|
|
21
|
-
f.puts("#{heading_marker} #{
|
21
|
+
f.puts("#{heading_marker} #{current_version_tag} (#{Time.now.strftime("%d %B %Y")})\n\n")
|
22
22
|
f.print(content)
|
23
23
|
end
|
24
24
|
end
|
@@ -3,16 +3,21 @@
|
|
3
3
|
module SemanticRelease
|
4
4
|
module Updaters
|
5
5
|
class GitTag < BaseUpdater
|
6
|
+
# rubocop:disable Style/GuardClause
|
6
7
|
def self.update
|
7
|
-
tag =
|
8
|
-
msg = "Increment version to
|
8
|
+
tag = current_version_tag
|
9
|
+
msg = "Increment version to #{tag}"
|
9
10
|
|
10
11
|
`git add #{semver_file} && git commit -m '#{msg}' && git tag #{tag} -a -m '#{Time.now}'`
|
11
12
|
|
12
13
|
branch = `git rev-parse --abbrev-ref HEAD`.chomp
|
13
14
|
puts "To push the new tag, use 'git push origin #{branch} --tags'"
|
14
|
-
|
15
|
+
|
16
|
+
if gemspec_present? && !SemanticRelease.configuration.disable_rubygems_message
|
17
|
+
puts "To build and push the .gem file to rubygems.org use, 'bundle exec rake release'"
|
18
|
+
end
|
15
19
|
end
|
20
|
+
# rubocop:enable Style/GuardClause
|
16
21
|
end
|
17
22
|
end
|
18
23
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semantic_release
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Bull
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-02-
|
10
|
+
date: 2025-02-10 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: |
|
13
13
|
This gem helps you to manage the version number of your application or library. It provides Rake tasks to
|