git_curate 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/git_curate/runner.rb +2 -0
- data/lib/git_curate/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: df823d05987433aa12d7ce81b00455c1b4e3940a4817d0d3cc1ff7379f221126
|
4
|
+
data.tar.gz: 4ba8cd121ce30faf4debbfe48b448d211fe018f19a05898b9a0af24540f161a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac08472f3b2f26f27bd0f8723652fd8f8ccfb2715827db7a4b5c8e32d42383e1bdb095b34a84c4fd6da4f403e0b5ee2b49fee1f1b26302294d35b990480e3f65
|
7
|
+
data.tar.gz: 661ca5b4287cfa65148045b2917eaa752d69d088ae2ba454a656850c3ce44e94960c9d373c6d7d49b3b3cc229f305e81cddb47d0ee86fb45f09a82c2eb8d768b
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.1
|
data/lib/git_curate/runner.rb
CHANGED
@@ -7,6 +7,7 @@ module GitCurate
|
|
7
7
|
|
8
8
|
# Regexes for unpacking the output of `git branch -vv`
|
9
9
|
BRANCH_NAME_REGEX = /\s+/
|
10
|
+
LEADING_STAR_REGEX = /^\* /
|
10
11
|
REMOTE_INFO_REGEX = /^[^\s]+\s+[^\s]+\s+\[(.+?)\]/
|
11
12
|
|
12
13
|
Branch = Struct.new("Branch", :raw, :proper, :displayable)
|
@@ -127,6 +128,7 @@ module GitCurate
|
|
127
128
|
# branch (up to date, or ahead/behind)
|
128
129
|
def get_upstream_branches
|
129
130
|
command_to_a("git branch -vv").map do |line|
|
131
|
+
line.gsub!(LEADING_STAR_REGEX, "")
|
130
132
|
branch_name = line.split(BRANCH_NAME_REGEX)[0]
|
131
133
|
remote_info = line[REMOTE_INFO_REGEX, 1]
|
132
134
|
if remote_info.nil?
|
data/lib/git_curate/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_curate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Harvey
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|