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 +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +2 -2
- data/README.md +35 -16
- data/lib/runger_release_assistant/version.rb +1 -1
- data/lib/runger_release_assistant.rb +7 -0
- 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: 64a1650c650f99a77f5b9c36b0656420ec0943a31ce803b6501a83ed3018ed13
|
4
|
+
data.tar.gz: 32780af66bf5a617d190f01044f9e73440b42e5c653ff1e9d9daea94b5c626b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a59b28167492a89d8d2f42fb89a7a41bbf6b509c41610189a0cfc997814cef46437d3d18723544ab850571be627dd3dc9a7ae98f322e54b44fcd2b253b97b4d6
|
7
|
+
data.tar.gz: 41c32e223762cdfa3caa319d75dec549843b6a19bf7b8dcaa9e8a901b63e0497bfc0d1b76b0a9e5c5144f5e4b353399aaf613b24d91f1a535e34d71b1c1147a1
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
runger_release_assistant (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.
|
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
|
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
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
* [
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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.
|
@@ -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.
|
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-
|
11
|
+
date: 2024-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|