branch-name 4.0.1 → 4.0.3
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.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/CHANGELOG.md +14 -0
- data/Gemfile +22 -12
- data/Gemfile.lock +67 -63
- data/README.md +25 -5
- data/lib/branch/name/version.rb +1 -1
- 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: 9205ddba0f152e06f4befa908482e176fa6ffdb3fefdf9ca8e8b714d2713484c
|
4
|
+
data.tar.gz: 2a52b9f69d7c0403d2c07a94b74c8a691fa4236e241127b98e3d02716920dd03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bc46a02f95297265078fba0f40e32d727eb74d9f18969bf56cf345417cbd261743ec6461d43f847d05a103146950c1875af26a8a1d3cb17f6aff2f1940de23c
|
7
|
+
data.tar.gz: '031464841a8069bc5d5d734b6a42f22718f9c7e4d699e398824a2cd1bcc6dc0af402e257b7d21229bff6e19aa2f4e72b3a0c647b3c2ec0a6f07c08eeda28714a'
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -5,15 +5,25 @@ source 'https://rubygems.org'
|
|
5
5
|
# Specify your gem's dependencies in branch-name.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
-
gem 'bundler', '
|
9
|
-
gem '
|
10
|
-
|
11
|
-
|
12
|
-
gem 'reek', '>= 6.1', '< 7.0'
|
13
|
-
gem '
|
14
|
-
gem '
|
15
|
-
gem 'rubocop', '>=
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
gem '
|
8
|
+
gem 'bundler', '>= 2.5', '< 3.0'
|
9
|
+
gem 'rake', '>= 13.0', '< 14.0'
|
10
|
+
|
11
|
+
group :development do
|
12
|
+
gem 'reek', '>= 6.1', '< 7.0'
|
13
|
+
gem 'rubocop', '>= 1.35', '< 2.0'
|
14
|
+
gem 'rubocop-performance', '>= 1.14', '< 2.0'
|
15
|
+
gem 'rubocop-rspec', '>= 2.12', '< 3.0'
|
16
|
+
end
|
17
|
+
|
18
|
+
group :test do
|
19
|
+
gem 'rspec', '>= 3.12', '< 4.0'
|
20
|
+
gem 'rspec-activemodel-mocks', '>= 1.1', '< 2.0'
|
21
|
+
gem 'shoulda-matchers', '>= 6.0', '< 7.0'
|
22
|
+
gem 'simplecov', '>= 0.22', '< 2.0'
|
23
|
+
end
|
24
|
+
|
25
|
+
group :development, :test do
|
26
|
+
gem 'dotenv', '>= 2.8', '< 4.0'
|
27
|
+
gem 'pry-byebug', '>= 3.9', '< 4.0'
|
28
|
+
gem 'thor', '>= 1.3', '< 2.0'
|
29
|
+
end
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
branch-name (4.0.
|
4
|
+
branch-name (4.0.3)
|
5
5
|
activesupport (>= 7.0.8, < 8.0.0)
|
6
6
|
colorize (>= 1.1.0, < 2.0)
|
7
7
|
os (>= 1.1, < 2.0)
|
@@ -11,9 +11,9 @@ PATH
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
activemodel (7.1.3)
|
15
|
-
activesupport (= 7.1.3)
|
16
|
-
activesupport (7.1.3)
|
14
|
+
activemodel (7.1.3.4)
|
15
|
+
activesupport (= 7.1.3.4)
|
16
|
+
activesupport (7.1.3.4)
|
17
17
|
base64
|
18
18
|
bigdecimal
|
19
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
@@ -25,30 +25,29 @@ GEM
|
|
25
25
|
tzinfo (~> 2.0)
|
26
26
|
ast (2.4.2)
|
27
27
|
base64 (0.2.0)
|
28
|
-
bigdecimal (3.1.
|
28
|
+
bigdecimal (3.1.8)
|
29
29
|
byebug (11.1.3)
|
30
30
|
coderay (1.1.3)
|
31
31
|
colorize (1.1.0)
|
32
|
-
concurrent-ruby (1.
|
32
|
+
concurrent-ruby (1.3.3)
|
33
33
|
connection_pool (2.4.1)
|
34
|
-
diff-lcs (1.5.
|
35
|
-
docile (1.4.
|
36
|
-
dotenv (
|
37
|
-
drb (2.2.
|
38
|
-
|
39
|
-
dry-configurable (1.1.0)
|
34
|
+
diff-lcs (1.5.1)
|
35
|
+
docile (1.4.1)
|
36
|
+
dotenv (3.1.2)
|
37
|
+
drb (2.2.1)
|
38
|
+
dry-configurable (1.2.0)
|
40
39
|
dry-core (~> 1.0, < 2)
|
41
40
|
zeitwerk (~> 2.6)
|
42
41
|
dry-core (1.0.1)
|
43
42
|
concurrent-ruby (~> 1.0)
|
44
43
|
zeitwerk (~> 2.6)
|
45
|
-
dry-inflector (1.
|
44
|
+
dry-inflector (1.1.0)
|
46
45
|
dry-initializer (3.1.1)
|
47
46
|
dry-logic (1.5.0)
|
48
47
|
concurrent-ruby (~> 1.0)
|
49
48
|
dry-core (~> 1.0, < 2)
|
50
49
|
zeitwerk (~> 2.6)
|
51
|
-
dry-schema (1.13.
|
50
|
+
dry-schema (1.13.4)
|
52
51
|
concurrent-ruby (~> 1.0)
|
53
52
|
dry-configurable (~> 1.0, >= 1.0.1)
|
54
53
|
dry-core (~> 1.0, < 2)
|
@@ -63,16 +62,16 @@ GEM
|
|
63
62
|
dry-inflector (~> 1.0)
|
64
63
|
dry-logic (~> 1.4)
|
65
64
|
zeitwerk (~> 2.6)
|
66
|
-
i18n (1.14.
|
65
|
+
i18n (1.14.5)
|
67
66
|
concurrent-ruby (~> 1.0)
|
68
|
-
json (2.7.
|
67
|
+
json (2.7.2)
|
69
68
|
language_server-protocol (3.17.0.3)
|
70
|
-
method_source (1.
|
71
|
-
minitest (5.
|
69
|
+
method_source (1.1.0)
|
70
|
+
minitest (5.24.1)
|
72
71
|
mutex_m (0.2.0)
|
73
72
|
os (1.1.4)
|
74
|
-
parallel (1.
|
75
|
-
parser (3.
|
73
|
+
parallel (1.25.1)
|
74
|
+
parser (3.3.4.0)
|
76
75
|
ast (~> 2.4.1)
|
77
76
|
racc
|
78
77
|
pry (0.14.2)
|
@@ -81,60 +80,63 @@ GEM
|
|
81
80
|
pry-byebug (3.10.1)
|
82
81
|
byebug (~> 11.0)
|
83
82
|
pry (>= 0.13, < 0.15)
|
84
|
-
racc (1.
|
83
|
+
racc (1.8.1)
|
85
84
|
rainbow (3.1.1)
|
86
|
-
rake (13.1
|
87
|
-
reek (6.
|
85
|
+
rake (13.2.1)
|
86
|
+
reek (6.3.0)
|
88
87
|
dry-schema (~> 1.13.0)
|
89
|
-
parser (~> 3.
|
88
|
+
parser (~> 3.3.0)
|
90
89
|
rainbow (>= 2.0, < 4.0)
|
91
90
|
rexml (~> 3.1)
|
92
|
-
regexp_parser (2.9.
|
93
|
-
rexml (3.
|
94
|
-
|
95
|
-
|
96
|
-
rspec-
|
97
|
-
rspec-
|
91
|
+
regexp_parser (2.9.2)
|
92
|
+
rexml (3.3.4)
|
93
|
+
strscan
|
94
|
+
rspec (3.13.0)
|
95
|
+
rspec-core (~> 3.13.0)
|
96
|
+
rspec-expectations (~> 3.13.0)
|
97
|
+
rspec-mocks (~> 3.13.0)
|
98
98
|
rspec-activemodel-mocks (1.2.0)
|
99
99
|
activemodel (>= 3.0)
|
100
100
|
activesupport (>= 3.0)
|
101
101
|
rspec-mocks (>= 2.99, < 4.0)
|
102
|
-
rspec-core (3.
|
103
|
-
rspec-support (~> 3.
|
104
|
-
rspec-expectations (3.
|
102
|
+
rspec-core (3.13.0)
|
103
|
+
rspec-support (~> 3.13.0)
|
104
|
+
rspec-expectations (3.13.1)
|
105
105
|
diff-lcs (>= 1.2.0, < 2.0)
|
106
|
-
rspec-support (~> 3.
|
107
|
-
rspec-mocks (3.
|
106
|
+
rspec-support (~> 3.13.0)
|
107
|
+
rspec-mocks (3.13.1)
|
108
108
|
diff-lcs (>= 1.2.0, < 2.0)
|
109
|
-
rspec-support (~> 3.
|
110
|
-
rspec-support (3.
|
111
|
-
rubocop (1.
|
109
|
+
rspec-support (~> 3.13.0)
|
110
|
+
rspec-support (3.13.1)
|
111
|
+
rubocop (1.65.1)
|
112
112
|
json (~> 2.3)
|
113
113
|
language_server-protocol (>= 3.17.0)
|
114
114
|
parallel (~> 1.10)
|
115
|
-
parser (>= 3.
|
115
|
+
parser (>= 3.3.0.2)
|
116
116
|
rainbow (>= 2.2.2, < 4.0)
|
117
|
-
regexp_parser (>=
|
117
|
+
regexp_parser (>= 2.4, < 3.0)
|
118
118
|
rexml (>= 3.2.5, < 4.0)
|
119
|
-
rubocop-ast (>= 1.
|
119
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
120
120
|
ruby-progressbar (~> 1.7)
|
121
121
|
unicode-display_width (>= 2.4.0, < 3.0)
|
122
|
-
rubocop-ast (1.
|
123
|
-
parser (>= 3.
|
124
|
-
rubocop-capybara (2.
|
122
|
+
rubocop-ast (1.31.3)
|
123
|
+
parser (>= 3.3.1.0)
|
124
|
+
rubocop-capybara (2.21.0)
|
125
125
|
rubocop (~> 1.41)
|
126
|
-
rubocop-factory_bot (2.
|
127
|
-
rubocop (~> 1.
|
128
|
-
rubocop-performance (1.
|
126
|
+
rubocop-factory_bot (2.26.1)
|
127
|
+
rubocop (~> 1.61)
|
128
|
+
rubocop-performance (1.21.1)
|
129
129
|
rubocop (>= 1.48.1, < 2.0)
|
130
|
-
rubocop-ast (>= 1.
|
131
|
-
rubocop-rspec (2.
|
130
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
131
|
+
rubocop-rspec (2.31.0)
|
132
132
|
rubocop (~> 1.40)
|
133
133
|
rubocop-capybara (~> 2.17)
|
134
134
|
rubocop-factory_bot (~> 2.22)
|
135
|
+
rubocop-rspec_rails (~> 2.28)
|
136
|
+
rubocop-rspec_rails (2.29.1)
|
137
|
+
rubocop (~> 1.61)
|
135
138
|
ruby-progressbar (1.13.0)
|
136
|
-
|
137
|
-
shoulda-matchers (6.1.0)
|
139
|
+
shoulda-matchers (6.2.0)
|
138
140
|
activesupport (>= 5.2.0)
|
139
141
|
simplecov (0.22.0)
|
140
142
|
docile (~> 1.1)
|
@@ -142,12 +144,13 @@ GEM
|
|
142
144
|
simplecov_json_formatter (~> 0.1)
|
143
145
|
simplecov-html (0.12.3)
|
144
146
|
simplecov_json_formatter (0.1.4)
|
145
|
-
|
146
|
-
|
147
|
+
strscan (3.1.0)
|
148
|
+
thor (1.3.1)
|
149
|
+
thor_nested_subcommand (1.0.9)
|
147
150
|
tzinfo (2.0.6)
|
148
151
|
concurrent-ruby (~> 1.0)
|
149
152
|
unicode-display_width (2.5.0)
|
150
|
-
zeitwerk (2.6.
|
153
|
+
zeitwerk (2.6.17)
|
151
154
|
|
152
155
|
PLATFORMS
|
153
156
|
x86_64-darwin-19
|
@@ -156,18 +159,19 @@ PLATFORMS
|
|
156
159
|
|
157
160
|
DEPENDENCIES
|
158
161
|
branch-name!
|
159
|
-
bundler (
|
160
|
-
dotenv (>= 2.8, <
|
161
|
-
pry-byebug (>= 3.
|
162
|
-
rake (>= 13.0, < 14)
|
162
|
+
bundler (>= 2.5, < 3.0)
|
163
|
+
dotenv (>= 2.8, < 4.0)
|
164
|
+
pry-byebug (>= 3.9, < 4.0)
|
165
|
+
rake (>= 13.0, < 14.0)
|
163
166
|
reek (>= 6.1, < 7.0)
|
164
|
-
rspec (>= 3.12
|
167
|
+
rspec (>= 3.12, < 4.0)
|
165
168
|
rspec-activemodel-mocks (>= 1.1, < 2.0)
|
166
|
-
rubocop (>= 1.
|
167
|
-
rubocop-performance (>= 1.
|
168
|
-
rubocop-rspec (>= 2.
|
169
|
+
rubocop (>= 1.35, < 2.0)
|
170
|
+
rubocop-performance (>= 1.14, < 2.0)
|
171
|
+
rubocop-rspec (>= 2.12, < 3.0)
|
169
172
|
shoulda-matchers (>= 6.0, < 7.0)
|
170
|
-
simplecov (>= 0.22
|
173
|
+
simplecov (>= 0.22, < 2.0)
|
174
|
+
thor (>= 1.3, < 2.0)
|
171
175
|
|
172
176
|
BUNDLED WITH
|
173
177
|
2.5.4
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# `branch-name`
|
2
2
|
|
3
3
|
[](https://github.com/gangelo/branch-name/actions/workflows/ruby.yml)
|
4
|
-
[](https://badge.fury.io/gh/gangelo%2Fbranch-name)
|
5
|
+
[](https://badge.fury.io/rb/branch-name)
|
6
6
|
[](http://www.rubydoc.info/gems/branch-name/)
|
7
7
|
[](http://www.rubydoc.info/gems/branch-name/)
|
8
8
|
[](https://github.com/gangelo/branch-name/issues)
|
@@ -116,9 +116,11 @@ $ branch-name create "Add #create and #destroy session controller actions"
|
|
116
116
|
```
|
117
117
|
#### Creating a Branch Name that Contains Forward-Slashes (`/`)
|
118
118
|
|
119
|
-
This can be accomplished in different ways;
|
119
|
+
This can be accomplished in different ways; below are some examples,
|
120
120
|
|
121
|
-
Embed the forward-slashes using the
|
121
|
+
##### Embed the forward-slashes using the configuration format-string option
|
122
|
+
|
123
|
+
Specifically, the `--format-string/-x` option.
|
122
124
|
|
123
125
|
```shell
|
124
126
|
$ branch-name create -x "%u/%t %d" "Remove debug code" UX-54321
|
@@ -126,7 +128,9 @@ $ branch-name create -x "%u/%t %d" "Remove debug code" UX-54321
|
|
126
128
|
...
|
127
129
|
```
|
128
130
|
|
129
|
-
Embed the forward-slashes in the ticket description itself
|
131
|
+
##### Embed the forward-slashes in the ticket description itself
|
132
|
+
|
133
|
+
Depending on *where* you want your forward-slashes to appear, you'll have to place them appropriately:
|
130
134
|
|
131
135
|
```shell
|
132
136
|
$ branch-name create "<username>/UX-54321 Remove debug code"
|
@@ -134,6 +138,22 @@ $ branch-name create "<username>/UX-54321 Remove debug code"
|
|
134
138
|
...
|
135
139
|
```
|
136
140
|
|
141
|
+
If you want a more **pernament solution**, you can [change the configuration `format_string` string](#creating-feature-branch-names-and-projects-examples) to include forward-slashes.
|
142
|
+
|
143
|
+
Below is an example using forward-slashes and username using the `%u` format specifier (assuming it coincides with your current username): `format_string: "%u/%t %d"`
|
144
|
+
|
145
|
+
```shell
|
146
|
+
$ branch-name create "Remove debug code" UX-54321
|
147
|
+
#=> Branch name "<username>/ux-54321-remove-debug-code"
|
148
|
+
```
|
149
|
+
|
150
|
+
Lastly, you can, of course, embed a forward-slash or any other token and hard-code (for example) a username, just like any other token. The below is an example that would result if your configuration format_string looked like `format_string: "jsmith/%t %d"`.
|
151
|
+
|
152
|
+
```shell
|
153
|
+
$ branch-name create "Remove debug code" UX-54321
|
154
|
+
#=> Branch name "jsmith/ux-54321-remove-debug-code"
|
155
|
+
```
|
156
|
+
|
137
157
|
NOTE: Project folders that are formulated (`branch-name create [-p|--project] ...`), will have any tokens comprising the project folder name delimited according to the following rules: if the `options[:separator]` option (-s) is included in `Branch::Name::Normalizable::PROJECT_FOLDER_TOKEN_SEPARATORS`, `options[:separator]` (-s) will be used as the project folder token delimiter; otherwise, `Branch::Name::Normalizable::DEFAULT_PROJECT_FOLDER_TOKEN_SEPARATOR` will be used.
|
138
158
|
|
139
159
|
## Development
|
data/lib/branch/name/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: branch-name
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gene M. Angelo, Jr.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|