tworingtools 4.6.0 → 4.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/migrate-changelog +6 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab98c6a76083beb69e5321318a516f318c978c52fae24bf2cb1a7c4ff0f0da56
|
4
|
+
data.tar.gz: 3e4b33808f476411d426dcc5c01f5cb43769384128f7631b295e0713eccb6626
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c88c9a7ff566bdef41e3201b0871466a760fff3f9faf48c1133fda4a136ba1758bb87cbfa0a955380b4e9c90bc3b8fad2a5c95570c774146436fce7d5885bdcb
|
7
|
+
data.tar.gz: ccec1349aa05d908361c0d35d64b1546748f3d089529a191348c8424facd1e25180adf826bbabfa86d959a377e907e126d692d8c5a0a17dfdd37fceaad4985c8
|
data/bin/migrate-changelog
CHANGED
@@ -13,7 +13,8 @@ parser = OptionParser.new do |opts|
|
|
13
13
|
Move any contents in Unreleased under a new heading for the specified version with current date.
|
14
14
|
|
15
15
|
BANNER
|
16
|
-
|
16
|
+
opts.on('-n', '--no-commit', 'Leave changes in the git working index instead of committing them.') do |no_commit| options[:no_commit] = true end
|
17
|
+
opts.on('-h', '--help', 'Print this help message.') do
|
17
18
|
puts opts
|
18
19
|
exit
|
19
20
|
end
|
@@ -39,5 +40,7 @@ File.open(changelog_path, 'w+') do |writable_changelog|
|
|
39
40
|
writable_changelog << changelog_contents.join('')
|
40
41
|
end
|
41
42
|
|
42
|
-
|
43
|
-
`git
|
43
|
+
unless options[:no_commit] then
|
44
|
+
`git add #{changelog_path}`
|
45
|
+
`git commit --message "chore(changelog): moved Unreleased entries to #{version}"`
|
46
|
+
end
|