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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/git_reflow/git_helpers.rb +8 -2
- data/lib/git_reflow/version.rb +1 -1
- data/spec/lib/git_reflow/git_helpers_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b1b9acdcd9558da180198608f42c0e65f51ce6ae
|
|
4
|
+
data.tar.gz: 161108a3bf8877b1b7ec8893e379d2d16a87cd22
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 581c01a3ba9c9db3a19a60cd69d92364e4387a650b649450f823d2a2b41b33cc7eb4820e031318316de6b8bf6c4f22b96294a074d4b797fb533e7d6f38c6b771
|
|
7
|
+
data.tar.gz: b443cfbc4749b6e85f0ceb9338f6c9fe7f4ded9d0eff3f9f0f29581856e9a50e053acb83f779c1cbb8dcfb2e3a3b7697fbd59196a1964c6f7f79748dc3ef4cc9
|
data/Gemfile.lock
CHANGED
|
@@ -6,11 +6,17 @@ module GitReflow
|
|
|
6
6
|
include Sandbox
|
|
7
7
|
|
|
8
8
|
def git_root_dir
|
|
9
|
-
@git_root_dir
|
|
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')
|
|
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
|
data/lib/git_reflow/version.rb
CHANGED
|
@@ -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
|
|
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.
|
|
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-
|
|
13
|
+
date: 2016-08-04 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: appraisal
|