git_reflow 0.8.2 → 0.8.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3b0fe812dbfd336ccb9e40f083419d607300978
4
- data.tar.gz: 876d2c887f6b2a68487dcb1fa8cca1ea34e32550
3
+ metadata.gz: b1b9acdcd9558da180198608f42c0e65f51ce6ae
4
+ data.tar.gz: 161108a3bf8877b1b7ec8893e379d2d16a87cd22
5
5
  SHA512:
6
- metadata.gz: 021be79b7f91b842c1d18ddd9af022dcbde108c644ed6eb9e2a7acca2e754083d8d80b22d060003c8e63c3857b9b4ecc0ec27c9dc3ba609a281895707ca14c6c
7
- data.tar.gz: 0c45b168febf5b66177b034ac54868c55bdcc9bbad012110eb03f7dc5e349c619922eb2cb0f30945c7c0a34a8a79e210251a6c277a53a2e4b4ab7bf3504f8b7f
6
+ metadata.gz: 581c01a3ba9c9db3a19a60cd69d92364e4387a650b649450f823d2a2b41b33cc7eb4820e031318316de6b8bf6c4f22b96294a074d4b797fb533e7d6f38c6b771
7
+ data.tar.gz: b443cfbc4749b6e85f0ceb9338f6c9fe7f4ded9d0eff3f9f0f29581856e9a50e053acb83f779c1cbb8dcfb2e3a3b7697fbd59196a1964c6f7f79748dc3ef4cc9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git_reflow (0.8.2)
4
+ git_reflow (0.8.3)
5
5
  colorize (>= 0.7.0)
6
6
  github_api (= 0.14.0)
7
7
  gli (= 2.14.0)
@@ -6,11 +6,17 @@ module GitReflow
6
6
  include Sandbox
7
7
 
8
8
  def git_root_dir
9
- @git_root_dir ||= run('git rev-parse --show-toplevel', loud: false).strip
9
+ return @git_root_dir if "#{@git_root_dir}".length > 0
10
+ @git_root_dir = run('git rev-parse --show-toplevel', loud: false).strip
10
11
  end
11
12
 
12
13
  def git_editor_command
13
- GitReflow::Config.get('core.editor') || GitReflow.default_editor
14
+ git_editor = "#{GitReflow::Config.get('core.editor')}"
15
+ if git_editor.length > 0
16
+ git_editor
17
+ else
18
+ GitReflow.default_editor
19
+ end
14
20
  end
15
21
 
16
22
  def remote_user
@@ -1,3 +1,3 @@
1
1
  module GitReflow
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
@@ -30,7 +30,7 @@ describe GitReflow::GitHelpers do
30
30
  end
31
31
 
32
32
  it 'falls back to the environment variable $EDITOR' do
33
- allow(GitReflow::Config).to receive(:get).with('core.editor').and_return nil
33
+ allow(GitReflow::Config).to receive(:get).with('core.editor').and_return ''
34
34
 
35
35
  expect(subject).to eq 'vim'
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_reflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valentino Stoll
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2016-08-01 00:00:00.000000000 Z
13
+ date: 2016-08-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: appraisal