runger_release_assistant 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f602de5188864bef60835e784830100b08349a1719e1d96ccd71a3e76871b3c
4
- data.tar.gz: 103c5b3b87636d53f4dc9f8872feee81449e498ded6c190716776c0e007d9918
3
+ metadata.gz: 64a1650c650f99a77f5b9c36b0656420ec0943a31ce803b6501a83ed3018ed13
4
+ data.tar.gz: 32780af66bf5a617d190f01044f9e73440b42e5c653ff1e9d9daea94b5c626b2
5
5
  SHA512:
6
- metadata.gz: 70d1914de0407029e273495d797330164fab880f53e113734475410c0bbe82625b318b1b52544eb4ab028443324fe8019ef8653855775aa66a0ae1ba4813d9a6
7
- data.tar.gz: b0cbe79c7c6255012d517289c16d14a07a20e24711f6679a8560b17a3c71e8ad1d6c86d1ec57631a15c809ef33ea821ca4f584b500210fc8e9ac2aefe3a2d1b7
6
+ metadata.gz: a59b28167492a89d8d2f42fb89a7a41bbf6b509c41610189a0cfc997814cef46437d3d18723544ab850571be627dd3dc9a7ae98f322e54b44fcd2b253b97b4d6
7
+ data.tar.gz: 41c32e223762cdfa3caa319d75dec549843b6a19bf7b8dcaa9e8a901b63e0497bfc0d1b76b0a9e5c5144f5e4b353399aaf613b24d91f1a535e34d71b1c1147a1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v0.11.0 (2024-07-23)
2
+ - Run 'safe' command (if one exists) after releasing
3
+
1
4
  ## v0.10.0 (2024-07-12)
2
5
  - Don't require enter key when confirming release
3
6
  - Print currently released version when confirming release
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- runger_release_assistant (0.10.0)
4
+ runger_release_assistant (0.11.0)
5
5
  activesupport (>= 6, < 8)
6
6
  memo_wise (>= 1.7, < 2)
7
7
  rainbow (>= 3.0, < 4)
@@ -52,7 +52,7 @@ GEM
52
52
  rainbow (3.1.1)
53
53
  rake (13.2.1)
54
54
  regexp_parser (2.9.2)
55
- rexml (3.3.1)
55
+ rexml (3.3.2)
56
56
  strscan
57
57
  rspec (3.13.0)
58
58
  rspec-core (~> 3.13.0)
data/README.md CHANGED
@@ -2,27 +2,46 @@
2
2
 
3
3
  # `runger_release_assistant`
4
4
 
5
- This is a CLI tool that helps to automate the process of releasing new versions of a gem via
6
- git/GitHub and (optionally) via RubyGems.
5
+ This is a CLI tool that I (David Runger) use to automate the release of new gem
6
+ versions via git/GitHub and (optionally) via RubyGems.
7
+
8
+ **I do not recommend this gem for general use.**
7
9
 
8
10
  <!--ts-->
9
- * [runger_release_assistant](#runger_release_assistant)
10
- * [Dependencies](#dependencies)
11
- * [Installation](#installation)
12
- * [Global installation](#global-installation)
13
- * [Installation in a specific project](#installation-in-a-specific-project)
14
- * [Create a binstub](#create-a-binstub)
15
- * [Basic usage](#basic-usage)
16
- * [Available options and examples](#available-options-and-examples)
17
- * [Using with RubyGems](#using-with-rubygems)
18
- * [Development](#development)
19
- * [Contributing](#contributing)
20
- * [License](#license)
21
-
22
- <!-- Added by: david, at: Mon Feb 1 20:16:03 PST 2021 -->
11
+ * [runger_release_assistant](#runger_release_assistant)
12
+ * [Not recommended for general use!](#not-recommended-for-general-use)
13
+ * [Dependencies](#dependencies)
14
+ * [Installation](#installation)
15
+ * [Global installation](#global-installation)
16
+ * [Installation in a specific project](#installation-in-a-specific-project)
17
+ * [Create a binstub](#create-a-binstub)
18
+ * [Basic usage](#basic-usage)
19
+ * [Available options and examples](#available-options-and-examples)
20
+ * [Config](#config)
21
+ * [Using with RubyGems](#using-with-rubygems)
22
+ * [Development](#development)
23
+ * [Contributing](#contributing)
24
+ * [License](#license)
25
+
26
+ <!-- Created by https://github.com/ekalinin/github-markdown-toc -->
27
+ <!-- Added by: david, at: Tue Jul 23 12:46:01 AM CDT 2024 -->
23
28
 
24
29
  <!--te-->
25
30
 
31
+ ## Not recommended for general use!
32
+
33
+ This gem is somewhat customized and built specifically for my (David Runger's)
34
+ custom and idiosyncratic workflow. For example, after releasing, this gem will
35
+ automatically execute a `safe` command, if one is present on the machine. You
36
+ might not want this behavior (if you have a `safe` command that you _don't_ want
37
+ to be invoked after a release).
38
+
39
+ Realistically speaking, though, this gem actually probably could be used by
40
+ anyone, since most of this gem's functionality actually is built in a
41
+ generalized way that I think won't conflict with most other people's workflows,
42
+ but, still, I'm guessing that there are other, better tools available, anyway,
43
+ and, so, on net, I just wouldn't recommend that others use this gem.
44
+
26
45
  ## Dependencies
27
46
 
28
47
  This gem assumes that you have `git` installed.
@@ -2,6 +2,6 @@
2
2
 
3
3
  # rubocop:disable Style/StaticClass
4
4
  class RungerReleaseAssistant
5
- VERSION = '0.10.0'
5
+ VERSION = '0.11.0'
6
6
  end
7
7
  # rubocop:enable Style/StaticClass
@@ -97,6 +97,7 @@ class RungerReleaseAssistant
97
97
  ERROR_LOG
98
98
  restore_and_abort(exit_code: 1)
99
99
  else
100
+ run_safe_command
100
101
  switch_to_initial_branch
101
102
  end
102
103
 
@@ -220,6 +221,12 @@ class RungerReleaseAssistant
220
221
  execute_command('bundle exec rake release', show_system_output: true)
221
222
  end
222
223
 
224
+ def run_safe_command
225
+ if system('which safe')
226
+ execute_command('safe')
227
+ end
228
+ end
229
+
223
230
  def switch_to_initial_branch
224
231
  execute_command("git checkout #{@initial_branch}") if @initial_branch
225
232
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runger_release_assistant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Runger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-12 00:00:00.000000000 Z
11
+ date: 2024-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport