branch-name 4.0.1 → 4.0.2

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: 28f0580a385f31569b19993d8fb73d8ef7ad5762c3c89cdd1eadc62003cf1516
4
- data.tar.gz: e15273bf7cfda4dfbd4fd9de06987b8f1150a9b027cee1673fcffb86534606e7
3
+ metadata.gz: d0066807f7fd975d5bcb42758619b31af24e4d36366a4620a2ff273e61acf46d
4
+ data.tar.gz: 820523161a15ab87d8a6b530a19cf40eece66418e9810978b0bf10525f750cb5
5
5
  SHA512:
6
- metadata.gz: 32c360e307296a03d5fb0cc531b3913549f52183b7037fd21b19633c81b181299394bbb5b4a038e3571def665caf3ad84f787f99d198ae9d84a5d664e686eb5b
7
- data.tar.gz: f17867937732b21afe0d07fe4f209b070944276f4a6b76204afe451b4f9271e1b6f41566563405fae04e2f911fd180e733ba3da7de3af9bcca17653afbdf5576
6
+ metadata.gz: fdc3491fcd5f289780e6379661f056217ccd7b78264f547f96178890853fbceec1f23b8c048014c09ba272ff0661421029e932863c6d1eec77dd439e803d0ea3
7
+ data.tar.gz: f0c66ee32bff7436e738f833c37fb689b29bc003c7db9cc2b3adabcd7a415323e722b6cdc2f58348cae91f4ff1a6987b526a6c615d527da89eb8a101f06d9b49
data/.rubocop.yml CHANGED
@@ -3,6 +3,7 @@ require:
3
3
  - rubocop-rspec
4
4
 
5
5
  AllCops:
6
+ SuggestExtensions: false
6
7
  TargetRubyVersion: 3.0
7
8
  NewCops: enable
8
9
  Exclude:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## ['4.0.2'] - 2024-02-19
2
+
3
+ Changes
4
+
5
+ - Update gems.
6
+ - Explicitly add Gemfile groups.
7
+
1
8
  ## ['4.0.1'] - 2024-01-24
2
9
 
3
10
  Changes
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', '~> 2.5', '>= 2.5.3'
9
- gem 'dotenv', '>= 2.8', '< 3.0'
10
- gem 'pry-byebug', '>= 3.10', '< 4.0'
11
- gem 'rake', '>= 13.0', '< 14'
12
- gem 'reek', '>= 6.1', '< 7.0'
13
- gem 'rspec', '>= 3.12.0', '< 4.0'
14
- gem 'rspec-activemodel-mocks', '>= 1.1', '< 2.0'
15
- gem 'rubocop', '>= 1.56.0', '< 2.0'
16
- gem 'rubocop-performance', '>= 1.19', '< 2.0'
17
- gem 'rubocop-rspec', '>= 2.23', '< 3.0'
18
- gem 'shoulda-matchers', '>= 6.0', '< 7.0'
19
- gem 'simplecov', '>= 0.22.0', '< 1.0'
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.1)
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.0)
34
+ diff-lcs (1.5.1)
35
35
  docile (1.4.0)
36
- dotenv (2.8.1)
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.21.2)
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.2.2.4)
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.2.0)
87
+ reek (6.3.0)
88
88
  dry-schema (~> 1.13.0)
89
- parser (~> 3.2.0)
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.12.0)
95
- rspec-core (~> 3.12.0)
96
- rspec-expectations (~> 3.12.0)
97
- rspec-mocks (~> 3.12.0)
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.12.2)
103
- rspec-support (~> 3.12.0)
104
- rspec-expectations (3.12.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.12.0)
107
- rspec-mocks (3.12.6)
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.12.0)
110
- rspec-support (3.12.1)
111
- rubocop (1.59.0)
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.2.2.4)
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.7)
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.12)
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 (~> 2.5, >= 2.5.3)
160
- dotenv (>= 2.8, < 3.0)
161
- pry-byebug (>= 3.10, < 4.0)
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.0, < 4.0)
164
+ rspec (>= 3.12, < 4.0)
165
165
  rspec-activemodel-mocks (>= 1.1, < 2.0)
166
- rubocop (>= 1.56.0, < 2.0)
167
- rubocop-performance (>= 1.19, < 2.0)
168
- rubocop-rspec (>= 2.23, < 3.0)
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.0, < 1.0)
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
  [![Ruby](https://github.com/gangelo/branch-name/actions/workflows/ruby.yml/badge.svg?refresh=1)](https://github.com/gangelo/branch-name/actions/workflows/ruby.yml)
4
- [![GitHub version](http://badge.fury.io/gh/gangelo%2Fbranch-name.svg?refresh=5)](https://badge.fury.io/gh/gangelo%2Fbranch-name)
5
- [![Gem Version](https://badge.fury.io/rb/branch-name.svg?refresh=5)](https://badge.fury.io/rb/branch-name)
4
+ [![GitHub version](http://badge.fury.io/gh/gangelo%2Fbranch-name.svg?refresh=6)](https://badge.fury.io/gh/gangelo%2Fbranch-name)
5
+ [![Gem Version](https://badge.fury.io/rb/branch-name.svg?refresh=6)](https://badge.fury.io/rb/branch-name)
6
6
  [![](http://ruby-gem-downloads-badge.herokuapp.com/branch-name?type=total)](http://www.rubydoc.info/gems/branch-name/)
7
7
  [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/branch-name/)
8
8
  [![Report Issues](https://img.shields.io/badge/report-issues-red.svg)](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; here are some examples:
119
+ This can be accomplished in different ways; below are some examples,
120
120
 
121
- Embed the forward-slashes using the `--format-string/-x` option:
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. Depending on *where* you want your forward-slashes to appear, you'll have to place them appropriately:
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
@@ -3,6 +3,6 @@
3
3
  module Branch
4
4
  module Name
5
5
  # branch-name version
6
- VERSION = '4.0.1'
6
+ VERSION = '4.0.2'
7
7
  end
8
8
  end
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.1
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-01-25 00:00:00.000000000 Z
11
+ date: 2024-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport