git-branch--stray 1.8.0 → 2.0.0
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 +5 -5
- data/.rubocop.yml +10 -20
- data/.ruby-version +1 -1
- data/Gemfile.lock +13 -10
- data/lib/git/branch/stray.rb +0 -4
- data/lib/git/branch/stray/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: bbfa10a7a0d8b4278d423308d7bd4ed21363286020f3b879f9160467eb57e1a0
|
|
4
|
+
data.tar.gz: f02984b76de180144fe1b6ef6da8ff215af2a521885dbe33fcef6c193a191f61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4e96fa238e648c6c3df18b844c89319501c67868644df0238d5d74ad4785cd9ae53c2e2ffc62bf15b341438649c51b93ab9951bbe4a93c6f30cec33965d5865
|
|
7
|
+
data.tar.gz: 7cd44197c02eaaf8788f500ba0b6dfa277a7ba6487ce2b042bb070672dc0ca4aafabbe4e819879ca288897573e84aa4ba7096485eb0f62e969b3b28786e3c429
|
data/.rubocop.yml
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
AllCops:
|
|
2
|
+
TargetRubyVersion: 2.6
|
|
3
|
+
NewCops: enable
|
|
4
|
+
Exclude:
|
|
5
|
+
- 'doc/*'
|
|
6
|
+
- 'tmp/*'
|
|
7
|
+
- 'pkg/*'
|
|
8
|
+
|
|
3
9
|
Layout/MultilineOperationIndentation:
|
|
4
10
|
Enabled: false
|
|
5
11
|
|
|
@@ -7,6 +13,8 @@ Metrics/AbcSize:
|
|
|
7
13
|
Enabled: false
|
|
8
14
|
Metrics/MethodLength:
|
|
9
15
|
Enabled: false
|
|
16
|
+
Metrics/ModuleLength:
|
|
17
|
+
Enabled: false
|
|
10
18
|
|
|
11
19
|
Style/BlockDelimiters:
|
|
12
20
|
Enabled: false
|
|
@@ -14,21 +22,3 @@ Style/Documentation:
|
|
|
14
22
|
Enabled: false
|
|
15
23
|
Style/FrozenStringLiteralComment:
|
|
16
24
|
Enabled: false
|
|
17
|
-
|
|
18
|
-
#
|
|
19
|
-
# enable so-called "pending cops"
|
|
20
|
-
# after "minor" RuboCop upgrades!
|
|
21
|
-
#
|
|
22
|
-
# https://docs.rubocop.org/en/latest/versioning/#pending-cops
|
|
23
|
-
#
|
|
24
|
-
|
|
25
|
-
Style/HashEachMethods:
|
|
26
|
-
Enabled: true
|
|
27
|
-
Style/HashTransformKeys:
|
|
28
|
-
Enabled: true
|
|
29
|
-
Style/HashTransformValues:
|
|
30
|
-
Enabled: true
|
|
31
|
-
Lint/RaiseException:
|
|
32
|
-
Enabled: true
|
|
33
|
-
Lint/StructNewOverride:
|
|
34
|
-
Enabled: true
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.6.6
|
data/Gemfile.lock
CHANGED
|
@@ -1,39 +1,42 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
git-branch--stray (
|
|
4
|
+
git-branch--stray (2.0.0)
|
|
5
5
|
consenter (~> 1.0)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
ast (2.4.
|
|
11
|
-
coderay (1.1.
|
|
10
|
+
ast (2.4.1)
|
|
11
|
+
coderay (1.1.3)
|
|
12
12
|
consenter (1.0.6)
|
|
13
13
|
interception (0.5)
|
|
14
|
-
jaro_winkler (1.5.4)
|
|
15
14
|
method_source (1.0.0)
|
|
16
15
|
minitest (5.14.1)
|
|
17
|
-
parallel (1.19.
|
|
18
|
-
parser (2.7.1.
|
|
19
|
-
ast (~> 2.4.
|
|
16
|
+
parallel (1.19.2)
|
|
17
|
+
parser (2.7.1.4)
|
|
18
|
+
ast (~> 2.4.1)
|
|
20
19
|
pry (0.13.1)
|
|
21
20
|
coderay (~> 1.1)
|
|
22
21
|
method_source (~> 1.0)
|
|
23
|
-
pry-rescue (1.5.
|
|
22
|
+
pry-rescue (1.5.1)
|
|
24
23
|
interception (>= 0.5)
|
|
25
24
|
pry (>= 0.12.0)
|
|
26
25
|
rainbow (3.0.0)
|
|
27
26
|
rake (13.0.1)
|
|
27
|
+
regexp_parser (1.7.1)
|
|
28
28
|
rexml (3.2.4)
|
|
29
|
-
rubocop (0.
|
|
30
|
-
jaro_winkler (~> 1.5.1)
|
|
29
|
+
rubocop (0.85.1)
|
|
31
30
|
parallel (~> 1.10)
|
|
32
31
|
parser (>= 2.7.0.1)
|
|
33
32
|
rainbow (>= 2.2.2, < 4.0)
|
|
33
|
+
regexp_parser (>= 1.7)
|
|
34
34
|
rexml
|
|
35
|
+
rubocop-ast (>= 0.0.3)
|
|
35
36
|
ruby-progressbar (~> 1.7)
|
|
36
37
|
unicode-display_width (>= 1.4.0, < 2.0)
|
|
38
|
+
rubocop-ast (0.0.3)
|
|
39
|
+
parser (>= 2.7.0.1)
|
|
37
40
|
ruby-progressbar (1.10.1)
|
|
38
41
|
unicode-display_width (1.7.0)
|
|
39
42
|
|
data/lib/git/branch/stray.rb
CHANGED
|
@@ -24,7 +24,6 @@ module Kernel
|
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
module Git
|
|
27
|
-
|
|
28
27
|
module_function
|
|
29
28
|
|
|
30
29
|
def local_head_refs
|
|
@@ -81,7 +80,6 @@ module Git
|
|
|
81
80
|
}
|
|
82
81
|
end
|
|
83
82
|
|
|
84
|
-
# rubocop:disable Layout/LineLength
|
|
85
83
|
def delete_stray_branches
|
|
86
84
|
stray_branches.each_consented('Delete stray branch "%s"', inspector: :yellow) do |stray|
|
|
87
85
|
system("git branch -d #{stray}")
|
|
@@ -92,12 +90,10 @@ module Git
|
|
|
92
90
|
end
|
|
93
91
|
end
|
|
94
92
|
end
|
|
95
|
-
# rubocop:enable Layout/LineLength
|
|
96
93
|
|
|
97
94
|
def list_stray_branches
|
|
98
95
|
stray_branches.each do |stray|
|
|
99
96
|
system("git --no-pager branch -vv --list #{stray}")
|
|
100
97
|
end
|
|
101
98
|
end
|
|
102
|
-
|
|
103
99
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: git-branch--stray
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Vandenberk
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-06-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: consenter
|
|
@@ -161,9 +161,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
161
161
|
- !ruby/object:Gem::Version
|
|
162
162
|
version: '0'
|
|
163
163
|
requirements: []
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
signing_key:
|
|
164
|
+
rubygems_version: 3.0.3
|
|
165
|
+
signing_key:
|
|
167
166
|
specification_version: 4
|
|
168
167
|
summary: Delete stray local remote-tracking branches
|
|
169
168
|
test_files: []
|