gb 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands/create_tag.rb +1 -1
- data/lib/commands/delete_tag.rb +1 -1
- data/lib/commands/forall.rb +1 -1
- data/lib/commands/merge.rb +1 -1
- data/lib/commands/review.rb +2 -2
- data/lib/commands/start.rb +1 -1
- data/lib/commands/status.rb +1 -1
- data/lib/commands/sync.rb +1 -1
- data/lib/commands/workspace.rb +1 -1
- data/lib/gb/version.rb +1 -1
- data/lib/sub_command.rb +12 -18
- 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: 3b92ad8cd61b9c2d62fb116b18f32d32427991a19ff500143a73ae56bfb83594
|
4
|
+
data.tar.gz: 11abb0149753c7034552e921f7cc99def1d8e0ef69d5047c760998fd6306d43e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25dc38f5ed524a36c9e73845c846ea78e9f5772c8ce2d6feb9b5d7bd8c9d5dcda30e93b503ebaed158b64104abd1f66e0502591cdb6b0da21b4ded543f3d63a6
|
7
|
+
data.tar.gz: 344af45ef1f1baa0b2810a738f5aacb6c4d1cfe8610226d86b59ad6f34d8a63bc0bc104d3d619ec74ff1727202c35e6812f5db0e66426f13717ad37af989f899
|
data/lib/commands/create_tag.rb
CHANGED
data/lib/commands/delete_tag.rb
CHANGED
data/lib/commands/forall.rb
CHANGED
data/lib/commands/merge.rb
CHANGED
data/lib/commands/review.rb
CHANGED
@@ -47,7 +47,7 @@ module Gb
|
|
47
47
|
# end
|
48
48
|
end
|
49
49
|
|
50
|
-
def
|
50
|
+
def run_in_config
|
51
51
|
|
52
52
|
@working_branch = self.workspace_config.work_branch
|
53
53
|
@remote_branch = self.workspace_config.remote_branch
|
@@ -194,7 +194,7 @@ module Gb
|
|
194
194
|
end until @title.length > 0
|
195
195
|
end
|
196
196
|
|
197
|
-
if at_user.nil?
|
197
|
+
if at_user.nil? && !users.nil?
|
198
198
|
info "Find user for @."
|
199
199
|
puts "0、none".green
|
200
200
|
users.each_with_index do |user, index|
|
data/lib/commands/start.rb
CHANGED
data/lib/commands/status.rb
CHANGED
data/lib/commands/sync.rb
CHANGED
data/lib/commands/workspace.rb
CHANGED
data/lib/gb/version.rb
CHANGED
data/lib/sub_command.rb
CHANGED
@@ -12,14 +12,8 @@ module Gb
|
|
12
12
|
self.ignore_in_command_lookup = true
|
13
13
|
attr_reader :gb_config
|
14
14
|
|
15
|
-
def self.options
|
16
|
-
[
|
17
|
-
['--config=[Gb.yml]', 'gb配置, 默认为Gb.yml'],
|
18
|
-
].concat(super)
|
19
|
-
end
|
20
|
-
|
21
15
|
def initialize(argv)
|
22
|
-
@yml = argv.option('config')
|
16
|
+
# @yml = argv.option('config')
|
23
17
|
if @yml.nil?
|
24
18
|
@yml = 'Gb.yml'
|
25
19
|
end
|
@@ -31,31 +25,31 @@ module Gb
|
|
31
25
|
end
|
32
26
|
|
33
27
|
def run
|
34
|
-
|
35
|
-
|
28
|
+
config_dir = "./"
|
29
|
+
find_config = false;
|
36
30
|
begin
|
37
31
|
result = nil
|
38
|
-
Dir.chdir(
|
39
|
-
result = Dir.glob('.
|
32
|
+
Dir.chdir(config_dir) do
|
33
|
+
result = Dir.glob('Gb.yml', File::FNM_DOTMATCH)
|
40
34
|
end
|
41
35
|
if result.length > 0
|
42
|
-
|
36
|
+
find_config = true
|
43
37
|
break
|
44
38
|
else
|
45
|
-
|
39
|
+
config_dir = File.expand_path("../", config_dir)
|
46
40
|
end
|
47
|
-
end while
|
41
|
+
end while config_dir.length > 0 && config_dir != "/"
|
48
42
|
|
49
|
-
if
|
50
|
-
Dir.chdir(
|
51
|
-
self.
|
43
|
+
if find_config
|
44
|
+
Dir.chdir(config_dir) do
|
45
|
+
self.run_in_config()
|
52
46
|
end
|
53
47
|
else
|
54
48
|
raise Error.new("Current path is not gb workspace. please run 'gb start' first.")
|
55
49
|
end
|
56
50
|
end
|
57
51
|
|
58
|
-
def
|
52
|
+
def run_in_config
|
59
53
|
|
60
54
|
end
|
61
55
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- binluo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitlab
|