branch-name 4.0.1 → 4.0.2
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 +7 -0
- data/Gemfile +22 -12
- data/Gemfile.lock +32 -31
- 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: d0066807f7fd975d5bcb42758619b31af24e4d36366a4620a2ff273e61acf46d
|
|
4
|
+
data.tar.gz: 820523161a15ab87d8a6b530a19cf40eece66418e9810978b0bf10525f750cb5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fdc3491fcd5f289780e6379661f056217ccd7b78264f547f96178890853fbceec1f23b8c048014c09ba272ff0661421029e932863c6d1eec77dd439e803d0ea3
|
|
7
|
+
data.tar.gz: f0c66ee32bff7436e738f833c37fb689b29bc003c7db9cc2b3adabcd7a415323e722b6cdc2f58348cae91f4ff1a6987b526a6c615d527da89eb8a101f06d9b49
|
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.2)
|
|
5
5
|
activesupport (>= 7.0.8, < 8.0.0)
|
|
6
6
|
colorize (>= 1.1.0, < 2.0)
|
|
7
7
|
os (>= 1.1, < 2.0)
|
|
@@ -31,9 +31,9 @@ GEM
|
|
|
31
31
|
colorize (1.1.0)
|
|
32
32
|
concurrent-ruby (1.2.3)
|
|
33
33
|
connection_pool (2.4.1)
|
|
34
|
-
diff-lcs (1.5.
|
|
34
|
+
diff-lcs (1.5.1)
|
|
35
35
|
docile (1.4.0)
|
|
36
|
-
dotenv (
|
|
36
|
+
dotenv (3.0.2)
|
|
37
37
|
drb (2.2.0)
|
|
38
38
|
ruby2_keywords
|
|
39
39
|
dry-configurable (1.1.0)
|
|
@@ -68,11 +68,11 @@ GEM
|
|
|
68
68
|
json (2.7.1)
|
|
69
69
|
language_server-protocol (3.17.0.3)
|
|
70
70
|
method_source (1.0.0)
|
|
71
|
-
minitest (5.
|
|
71
|
+
minitest (5.22.2)
|
|
72
72
|
mutex_m (0.2.0)
|
|
73
73
|
os (1.1.4)
|
|
74
74
|
parallel (1.24.0)
|
|
75
|
-
parser (3.
|
|
75
|
+
parser (3.3.0.5)
|
|
76
76
|
ast (~> 2.4.1)
|
|
77
77
|
racc
|
|
78
78
|
pry (0.14.2)
|
|
@@ -84,35 +84,35 @@ GEM
|
|
|
84
84
|
racc (1.7.3)
|
|
85
85
|
rainbow (3.1.1)
|
|
86
86
|
rake (13.1.0)
|
|
87
|
-
reek (6.
|
|
87
|
+
reek (6.3.0)
|
|
88
88
|
dry-schema (~> 1.13.0)
|
|
89
|
-
parser (~> 3.
|
|
89
|
+
parser (~> 3.3.0)
|
|
90
90
|
rainbow (>= 2.0, < 4.0)
|
|
91
91
|
rexml (~> 3.1)
|
|
92
92
|
regexp_parser (2.9.0)
|
|
93
93
|
rexml (3.2.6)
|
|
94
|
-
rspec (3.
|
|
95
|
-
rspec-core (~> 3.
|
|
96
|
-
rspec-expectations (~> 3.
|
|
97
|
-
rspec-mocks (~> 3.
|
|
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.0)
|
|
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.0)
|
|
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.0)
|
|
111
|
+
rubocop (1.60.2)
|
|
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
117
|
regexp_parser (>= 1.8, < 3.0)
|
|
118
118
|
rexml (>= 3.2.5, < 4.0)
|
|
@@ -143,11 +143,11 @@ GEM
|
|
|
143
143
|
simplecov-html (0.12.3)
|
|
144
144
|
simplecov_json_formatter (0.1.4)
|
|
145
145
|
thor (1.3.0)
|
|
146
|
-
thor_nested_subcommand (1.0.
|
|
146
|
+
thor_nested_subcommand (1.0.8)
|
|
147
147
|
tzinfo (2.0.6)
|
|
148
148
|
concurrent-ruby (~> 1.0)
|
|
149
149
|
unicode-display_width (2.5.0)
|
|
150
|
-
zeitwerk (2.6.
|
|
150
|
+
zeitwerk (2.6.13)
|
|
151
151
|
|
|
152
152
|
PLATFORMS
|
|
153
153
|
x86_64-darwin-19
|
|
@@ -156,18 +156,19 @@ PLATFORMS
|
|
|
156
156
|
|
|
157
157
|
DEPENDENCIES
|
|
158
158
|
branch-name!
|
|
159
|
-
bundler (
|
|
160
|
-
dotenv (>= 2.8, <
|
|
161
|
-
pry-byebug (>= 3.
|
|
162
|
-
rake (>= 13.0, < 14)
|
|
159
|
+
bundler (>= 2.5, < 3.0)
|
|
160
|
+
dotenv (>= 2.8, < 4.0)
|
|
161
|
+
pry-byebug (>= 3.9, < 4.0)
|
|
162
|
+
rake (>= 13.0, < 14.0)
|
|
163
163
|
reek (>= 6.1, < 7.0)
|
|
164
|
-
rspec (>= 3.12
|
|
164
|
+
rspec (>= 3.12, < 4.0)
|
|
165
165
|
rspec-activemodel-mocks (>= 1.1, < 2.0)
|
|
166
|
-
rubocop (>= 1.
|
|
167
|
-
rubocop-performance (>= 1.
|
|
168
|
-
rubocop-rspec (>= 2.
|
|
166
|
+
rubocop (>= 1.35, < 2.0)
|
|
167
|
+
rubocop-performance (>= 1.14, < 2.0)
|
|
168
|
+
rubocop-rspec (>= 2.12, < 3.0)
|
|
169
169
|
shoulda-matchers (>= 6.0, < 7.0)
|
|
170
|
-
simplecov (>= 0.22
|
|
170
|
+
simplecov (>= 0.22, < 2.0)
|
|
171
|
+
thor (>= 1.3, < 2.0)
|
|
171
172
|
|
|
172
173
|
BUNDLED WITH
|
|
173
174
|
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.2
|
|
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-02-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|