runger_release_assistant 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +5 -2
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +19 -28
- data/README.md +10 -1
- data/bin/release +1 -0
- data/lib/runger_release_assistant/config_file_reader.rb +1 -0
- data/lib/runger_release_assistant/version.rb +1 -1
- data/lib/runger_release_assistant.rb +2 -2
- data/runger_release_assistant.gemspec +2 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0c99d3dec5f2bdd4c9568d3ce6326371cf08d7f7ddde0f0237f6122fdef768a
|
4
|
+
data.tar.gz: d01f8b764551671d3db86dadc41216aac3c0a89275a25f2b273a327607f88d0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76746bae3f96fee9498b4e31547ca9ca414c2b1f9a957ab45b9075128eddba960f7d12a3506575f2c32416f7b7ae6b4eebb4ba69b601bc384f5805f924d28bcc
|
7
|
+
data.tar.gz: 8d6f05637af0a6dbe3e805b849a46e4c030906f3b0a26e7c234c35fc45907dd257856eae241f52d9ad3f14697eeb7ab6eb2f20054b99c6b4896f4827aa744e95
|
data/.github/workflows/ruby.yml
CHANGED
@@ -3,13 +3,16 @@ name: Run RuboCop and RSpec
|
|
3
3
|
on:
|
4
4
|
pull_request:
|
5
5
|
branches:
|
6
|
-
|
6
|
+
- '*'
|
7
|
+
push:
|
8
|
+
branches:
|
9
|
+
- main
|
7
10
|
|
8
11
|
jobs:
|
9
12
|
build:
|
10
13
|
runs-on: ubuntu-latest
|
11
14
|
steps:
|
12
|
-
- uses: actions/checkout@
|
15
|
+
- uses: actions/checkout@v4
|
13
16
|
- uses: ruby/setup-ruby@v1
|
14
17
|
with:
|
15
18
|
bundler-cache: true
|
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.9.0)
|
5
5
|
activesupport (>= 6, < 8)
|
6
6
|
memo_wise (>= 1.7, < 2)
|
7
7
|
rainbow (>= 3.0, < 4)
|
@@ -10,7 +10,7 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
activesupport (7.1.3.
|
13
|
+
activesupport (7.1.3.4)
|
14
14
|
base64
|
15
15
|
bigdecimal
|
16
16
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
@@ -25,7 +25,7 @@ GEM
|
|
25
25
|
bigdecimal (3.1.8)
|
26
26
|
byebug (11.1.3)
|
27
27
|
coderay (1.1.3)
|
28
|
-
concurrent-ruby (1.
|
28
|
+
concurrent-ruby (1.3.3)
|
29
29
|
connection_pool (2.4.1)
|
30
30
|
diff-lcs (1.5.1)
|
31
31
|
drb (2.2.1)
|
@@ -33,15 +33,15 @@ GEM
|
|
33
33
|
concurrent-ruby (~> 1.0)
|
34
34
|
json (2.7.2)
|
35
35
|
language_server-protocol (3.17.0.3)
|
36
|
-
memo_wise (1.
|
37
|
-
method_source (1.
|
38
|
-
minitest (5.
|
36
|
+
memo_wise (1.9.0)
|
37
|
+
method_source (1.1.0)
|
38
|
+
minitest (5.24.0)
|
39
39
|
mutex_m (0.2.0)
|
40
|
-
parallel (1.
|
41
|
-
parser (3.3.
|
40
|
+
parallel (1.25.1)
|
41
|
+
parser (3.3.3.0)
|
42
42
|
ast (~> 2.4.1)
|
43
43
|
racc
|
44
|
-
prism (0.
|
44
|
+
prism (0.30.0)
|
45
45
|
pry (0.14.2)
|
46
46
|
coderay (~> 1.1)
|
47
47
|
method_source (~> 1.0)
|
@@ -52,22 +52,22 @@ GEM
|
|
52
52
|
rainbow (3.1.1)
|
53
53
|
rake (13.2.1)
|
54
54
|
regexp_parser (2.9.2)
|
55
|
-
rexml (3.
|
56
|
-
strscan
|
55
|
+
rexml (3.3.1)
|
56
|
+
strscan
|
57
57
|
rspec (3.13.0)
|
58
58
|
rspec-core (~> 3.13.0)
|
59
59
|
rspec-expectations (~> 3.13.0)
|
60
60
|
rspec-mocks (~> 3.13.0)
|
61
61
|
rspec-core (3.13.0)
|
62
62
|
rspec-support (~> 3.13.0)
|
63
|
-
rspec-expectations (3.13.
|
63
|
+
rspec-expectations (3.13.1)
|
64
64
|
diff-lcs (>= 1.2.0, < 2.0)
|
65
65
|
rspec-support (~> 3.13.0)
|
66
|
-
rspec-mocks (3.13.
|
66
|
+
rspec-mocks (3.13.1)
|
67
67
|
diff-lcs (>= 1.2.0, < 2.0)
|
68
68
|
rspec-support (~> 3.13.0)
|
69
|
-
rspec-support (3.13.
|
70
|
-
rubocop (1.64.
|
69
|
+
rspec-support (3.13.1)
|
70
|
+
rubocop (1.64.1)
|
71
71
|
json (~> 2.3)
|
72
72
|
language_server-protocol (>= 3.17.0)
|
73
73
|
parallel (~> 1.10)
|
@@ -80,22 +80,13 @@ GEM
|
|
80
80
|
unicode-display_width (>= 2.4.0, < 3.0)
|
81
81
|
rubocop-ast (1.31.3)
|
82
82
|
parser (>= 3.3.1.0)
|
83
|
-
rubocop-
|
84
|
-
rubocop (~> 1.41)
|
85
|
-
rubocop-factory_bot (2.25.1)
|
86
|
-
rubocop (~> 1.41)
|
87
|
-
rubocop-performance (1.21.0)
|
83
|
+
rubocop-performance (1.21.1)
|
88
84
|
rubocop (>= 1.48.1, < 2.0)
|
89
85
|
rubocop-ast (>= 1.31.1, < 2.0)
|
90
|
-
rubocop-rspec (
|
91
|
-
rubocop (~> 1.
|
92
|
-
rubocop-capybara (~> 2.17)
|
93
|
-
rubocop-factory_bot (~> 2.22)
|
94
|
-
rubocop-rspec_rails (~> 2.28)
|
95
|
-
rubocop-rspec_rails (2.28.3)
|
96
|
-
rubocop (~> 1.40)
|
86
|
+
rubocop-rspec (3.0.1)
|
87
|
+
rubocop (~> 1.61)
|
97
88
|
ruby-progressbar (1.13.0)
|
98
|
-
runger_style (2.
|
89
|
+
runger_style (2.8.0)
|
99
90
|
prism (>= 0.24.0)
|
100
91
|
rubocop (>= 1.38.0, < 2)
|
101
92
|
slop (4.10.1)
|
data/README.md
CHANGED
@@ -103,7 +103,7 @@ Example:
|
|
103
103
|
|
104
104
|
## Config
|
105
105
|
|
106
|
-
|
106
|
+
You can create a configuration file with `release --init`.
|
107
107
|
|
108
108
|
Here is an example:
|
109
109
|
|
@@ -114,6 +114,15 @@ rubygems: false
|
|
114
114
|
primary_branch: main
|
115
115
|
```
|
116
116
|
|
117
|
+
The above example (more or less) illustrates the default values, so you don't
|
118
|
+
need to create a config file, if those are the values that you want.
|
119
|
+
|
120
|
+
Regarding the `primary_branch` option, `runger_release_assistant` will
|
121
|
+
automatically detect as the "primary branch" any one of the following: `main`,
|
122
|
+
`master`, or `trunk`. So, if one of those is the name of your primary branch,
|
123
|
+
and if you also want `git: true` and `rubygems: false`, then you don't need to
|
124
|
+
create a config file.
|
125
|
+
|
117
126
|
## Using with RubyGems
|
118
127
|
|
119
128
|
By default, `runger_release_assistant` assumes that you only want to "release" your gem via GitHub. If
|
data/bin/release
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
../exe/release
|
@@ -130,8 +130,8 @@ class RungerReleaseAssistant
|
|
130
130
|
memo_wise \
|
131
131
|
def primary_branch
|
132
132
|
@options[:primary_branch] ||
|
133
|
-
|
134
|
-
|
133
|
+
common_primary_branch_name ||
|
134
|
+
(raise(UnknownPrimaryBranch))
|
135
135
|
end
|
136
136
|
|
137
137
|
memo_wise \
|
@@ -39,5 +39,6 @@ Gem::Specification.new do |spec|
|
|
39
39
|
spec.add_dependency('rainbow', '>= 3.0', '< 4')
|
40
40
|
spec.add_dependency('slop', '~> 4.8')
|
41
41
|
|
42
|
-
|
42
|
+
required_ruby_version = File.read('.ruby-version').rstrip.sub(/\A(\d+\.\d+)\.\d+\z/, '\1.0')
|
43
|
+
spec.required_ruby_version = ">= #{required_ruby_version}"
|
43
44
|
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.9.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-06-
|
11
|
+
date: 2024-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- bin/_guard-core
|
110
110
|
- bin/console
|
111
111
|
- bin/guard
|
112
|
+
- bin/release
|
112
113
|
- bin/rspec
|
113
114
|
- bin/rubocop
|
114
115
|
- bin/setup
|
@@ -134,14 +135,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
134
135
|
requirements:
|
135
136
|
- - ">="
|
136
137
|
- !ruby/object:Gem::Version
|
137
|
-
version: 3.3.
|
138
|
+
version: 3.3.0
|
138
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
140
|
requirements:
|
140
141
|
- - ">="
|
141
142
|
- !ruby/object:Gem::Version
|
142
143
|
version: '0'
|
143
144
|
requirements: []
|
144
|
-
rubygems_version: 3.5.
|
145
|
+
rubygems_version: 3.5.14
|
145
146
|
signing_key:
|
146
147
|
specification_version: 4
|
147
148
|
summary: A gem / CLI tool to automate the release process of other gems
|