releasetool 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/releasetool.rb +1 -1
- data/lib/tasks/release_thor.rb +8 -6
- data/release_notes/v0.5.1.md +8 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be31ca29505431ae2078f139521c8a0de7ebe18146acee1feaa862e169475645
|
4
|
+
data.tar.gz: cf6a69fe17b82ea44099124cfc61b53b5541b9767d813cc4260d9908e9260446
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0c60d8f3d241c2bbc4035cbd71e5b8a744a99618c9f4aa72718918c6c66b926647d0bf4bd327cf5a1b87066631a94b73160be3972e0b5b62e9449a84d496485
|
7
|
+
data.tar.gz: 1a38cc0c5f621f84030f95baa81fe13229ac51621cee1462cdb88e9d907039595b76825eb3e47c4007f17391a7472ed8c1cd0485da0bce9fc835e578e0c322fd
|
data/lib/releasetool.rb
CHANGED
data/lib/tasks/release_thor.rb
CHANGED
@@ -73,14 +73,16 @@ class Release < Thor
|
|
73
73
|
If no version given, it will use the version stored by release start
|
74
74
|
END
|
75
75
|
|
76
|
-
|
77
|
-
method_option :
|
76
|
+
method_option :edit, type: :boolean, desc: "release commit --edit allows you to edit, or --no-edit (default) which allows you to just skip", aliases: 'e', default: false
|
77
|
+
method_option :after, type: :boolean, desc: " --after (only do after -- needed for when after fails first time); --no-after (only do the standard); default is do both", default: "default", check_default_type: false
|
78
78
|
def commit(version = nil)
|
79
79
|
version ||= stored_version
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
80
|
+
if options[:after] == "default" || !options[:after]
|
81
|
+
guarded_system("git add #{DIR}")
|
82
|
+
guarded_system("git add #{Releasetool::Util.version_file}") if File.exist?(Releasetool::Util.version_file)
|
83
|
+
guarded_system("git commit #{DIR} #{File.exist?(Releasetool::Util.version_file) ? Releasetool::Util.version_file : ''} #{options[:edit] ? '-e' : nil} -m\"#{DEFAULT_COMMIT_MESSAGE}\"")
|
84
|
+
end
|
85
|
+
config.after_commit_hook(version) unless options[:after]
|
84
86
|
end
|
85
87
|
|
86
88
|
desc "tag (NEW_VERSION)", <<-END
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: releasetool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Diggins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -114,6 +114,7 @@ files:
|
|
114
114
|
- release_notes/v0.3.0.md
|
115
115
|
- release_notes/v0.4.0.md
|
116
116
|
- release_notes/v0.5.0.md
|
117
|
+
- release_notes/v0.5.1.md
|
117
118
|
- releasetool.gemspec
|
118
119
|
- spec/fixtures/empty_file.rb
|
119
120
|
- spec/fixtures/example_with_releases.tar
|