tworingtools 4.6.0 → 4.7.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/migrate-changelog +6 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2fe979b414cfe169507152fd96770716705407581cbf9ce214f9b47f57a41a5
4
- data.tar.gz: 6ec6e1aa51a0148dbf9874cbee97ed919f63aa8401e632408256fd05d5f4c933
3
+ metadata.gz: ab98c6a76083beb69e5321318a516f318c978c52fae24bf2cb1a7c4ff0f0da56
4
+ data.tar.gz: 3e4b33808f476411d426dcc5c01f5cb43769384128f7631b295e0713eccb6626
5
5
  SHA512:
6
- metadata.gz: 7cae7573fa1f433369a3b913934f63f0f4fdfdfc984ec1ea40b016851417c829abf63e1fc2241e7e1e07f3794dc5097a16c6c44b020df2a8d757a634cd583163
7
- data.tar.gz: 4fff891e96685968e0f7dfcd46c09c7fe2b362362ae5f5d52719553d9a93e3e84691c95b83a55d996ff08bb322d53de09205808fb1e6acd1b58739ee2bfeb43d
6
+ metadata.gz: c88c9a7ff566bdef41e3201b0871466a760fff3f9faf48c1133fda4a136ba1758bb87cbfa0a955380b4e9c90bc3b8fad2a5c95570c774146436fce7d5885bdcb
7
+ data.tar.gz: ccec1349aa05d908361c0d35d64b1546748f3d089529a191348c8424facd1e25180adf826bbabfa86d959a377e907e126d692d8c5a0a17dfdd37fceaad4985c8
@@ -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
- opts.on('-h', '--help', 'Print this help message.') do
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
- `git add #{changelog_path}`
43
- `git commit --message "chore(changelog): moved Unreleased entries to #{version}"`
43
+ unless options[:no_commit] then
44
+ `git add #{changelog_path}`
45
+ `git commit --message "chore(changelog): moved Unreleased entries to #{version}"`
46
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tworingtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.0
4
+ version: 4.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew McKnight