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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e0dc2d94365f5f12a1edd47599205648467c18e110807e14a69ff08696e9093
4
- data.tar.gz: 69bef635b1d5aae9064a03fff30ca6c81adbc3b0520d75287e96c46bf81f94b1
3
+ metadata.gz: df823d05987433aa12d7ce81b00455c1b4e3940a4817d0d3cc1ff7379f221126
4
+ data.tar.gz: 4ba8cd121ce30faf4debbfe48b448d211fe018f19a05898b9a0af24540f161a3
5
5
  SHA512:
6
- metadata.gz: 457a389f43af2378997956bb2b54aa373449b02338feab8bd067248d39cfbff3ffd57c816cd9628b4d0746084d1b9cf469e5dfcf166722fc245701507f485b67
7
- data.tar.gz: d16c4cf11e11f9c16dd68d253f23bd4cfda983c564125fd4ff18f5298cce4e23e2c38007f5065de6b849ca85f26cdb57165edee17732b3ec41167823c6701de5
6
+ metadata.gz: ac08472f3b2f26f27bd0f8723652fd8f8ccfb2715827db7a4b5c8e32d42383e1bdb095b34a84c4fd6da4f403e0b5ee2b49fee1f1b26302294d35b990480e3f65
7
+ data.tar.gz: 661ca5b4287cfa65148045b2917eaa752d69d088ae2ba454a656850c3ce44e94960c9d373c6d7d49b3b3cc229f305e81cddb47d0ee86fb45f09a82c2eb8d768b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### v0.5.1
4
+
5
+ * Fix upstream branch not showing for current branch in `git curate -l`
6
+
3
7
  ### v0.5.0
4
8
 
5
9
  * Add `-l` option to output branch information non-interactively
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git_curate (0.4.3)
4
+ git_curate (0.5.1)
5
5
  highline (= 2.0.2)
6
6
  tabulo (= 1.3.0)
7
7
  tty-screen (= 0.6.5)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
@@ -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?
@@ -1,3 +1,3 @@
1
1
  module GitCurate
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
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.0
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-22 00:00:00.000000000 Z
11
+ date: 2019-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline