bigkeeper 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile.lock +19 -19
- data/big_keeper.gemspec +1 -1
- data/bin/big +1 -1
- data/lib/big_keeper.rb +3 -2
- data/lib/big_keeper/util/git_operator.rb +8 -3
- data/lib/big_keeper/util/leancloud_logger.rb +7 -7
- data/lib/big_keeper/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2af3fd1d2d026824666e8f1898d809c30989787500affa9550dd569adb7c6f37
|
4
|
+
data.tar.gz: b672ad8078c2dbb9576ed9a7f366e301334ef77d253e9ed06084691b1463897c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 713abcd176db1ef408c5b4c93f870157ab56d788af607eb9eb49aebeee72f68f8831d9fd584bc57edd293a47f26195cc316e4efdb2c14aa1d9799cf213ab0a49
|
7
|
+
data.tar.gz: 704f9cdf0743c58597f6109a302fe8941cd99bcaa37a56ed69e37a06a3f43fdbfd0249410abe09ff6dcba21fc4f8a6379fdc0c372c75a9e545f71b1ebd58a7f2
|
data/Gemfile.lock
CHANGED
@@ -13,14 +13,14 @@ GEM
|
|
13
13
|
remote: https://gems.ruby-china.com/
|
14
14
|
specs:
|
15
15
|
CFPropertyList (3.0.0)
|
16
|
-
activesupport (4.2.11)
|
16
|
+
activesupport (4.2.11.1)
|
17
17
|
i18n (~> 0.7)
|
18
18
|
minitest (~> 5.1)
|
19
19
|
thread_safe (~> 0.3, >= 0.3.4)
|
20
20
|
tzinfo (~> 1.1)
|
21
21
|
ast (2.3.0)
|
22
22
|
atomos (0.1.3)
|
23
|
-
big_resources (0.1.
|
23
|
+
big_resources (0.1.2)
|
24
24
|
chunky_png
|
25
25
|
cocoapods
|
26
26
|
colorize
|
@@ -30,50 +30,50 @@ GEM
|
|
30
30
|
gli (~> 2.16)
|
31
31
|
chunky_png (1.3.11)
|
32
32
|
claide (1.0.2)
|
33
|
-
cocoapods (1.
|
33
|
+
cocoapods (1.6.1)
|
34
34
|
activesupport (>= 4.0.2, < 5)
|
35
35
|
claide (>= 1.0.2, < 2.0)
|
36
|
-
cocoapods-core (= 1.
|
36
|
+
cocoapods-core (= 1.6.1)
|
37
37
|
cocoapods-deintegrate (>= 1.0.2, < 2.0)
|
38
|
-
cocoapods-downloader (>= 1.2.
|
38
|
+
cocoapods-downloader (>= 1.2.2, < 2.0)
|
39
39
|
cocoapods-plugins (>= 1.0.0, < 2.0)
|
40
40
|
cocoapods-search (>= 1.0.0, < 2.0)
|
41
41
|
cocoapods-stats (>= 1.0.0, < 2.0)
|
42
|
-
cocoapods-trunk (>= 1.3.
|
42
|
+
cocoapods-trunk (>= 1.3.1, < 2.0)
|
43
43
|
cocoapods-try (>= 1.1.0, < 2.0)
|
44
44
|
colored2 (~> 3.1)
|
45
45
|
escape (~> 0.0.4)
|
46
|
-
fourflusher (
|
46
|
+
fourflusher (>= 2.2.0, < 3.0)
|
47
47
|
gh_inspector (~> 1.0)
|
48
|
-
molinillo (~> 0.6.
|
48
|
+
molinillo (~> 0.6.6)
|
49
49
|
nap (~> 1.0)
|
50
|
-
ruby-macho (~> 1.
|
51
|
-
xcodeproj (>= 1.
|
52
|
-
cocoapods-core (1.
|
50
|
+
ruby-macho (~> 1.4)
|
51
|
+
xcodeproj (>= 1.8.1, < 2.0)
|
52
|
+
cocoapods-core (1.6.1)
|
53
53
|
activesupport (>= 4.0.2, < 6)
|
54
54
|
fuzzy_match (~> 2.0.4)
|
55
55
|
nap (~> 1.0)
|
56
|
-
cocoapods-deintegrate (1.0.
|
56
|
+
cocoapods-deintegrate (1.0.4)
|
57
57
|
cocoapods-downloader (1.2.2)
|
58
58
|
cocoapods-plugins (1.0.0)
|
59
59
|
nap
|
60
60
|
cocoapods-search (1.0.0)
|
61
|
-
cocoapods-stats (1.
|
61
|
+
cocoapods-stats (1.1.0)
|
62
62
|
cocoapods-trunk (1.3.1)
|
63
63
|
nap (>= 0.8, < 2.0)
|
64
64
|
netrc (~> 0.11)
|
65
65
|
cocoapods-try (1.1.0)
|
66
66
|
colored2 (3.1.2)
|
67
67
|
colorize (0.8.1)
|
68
|
-
concurrent-ruby (1.1.
|
68
|
+
concurrent-ruby (1.1.5)
|
69
69
|
escape (0.0.4)
|
70
|
-
fourflusher (2.0
|
70
|
+
fourflusher (2.2.0)
|
71
71
|
fuzzy_match (2.0.4)
|
72
72
|
gh_inspector (1.1.3)
|
73
73
|
gli (2.18.0)
|
74
74
|
i18n (0.9.5)
|
75
75
|
concurrent-ruby (~> 1.0)
|
76
|
-
minitest (5.
|
76
|
+
minitest (5.11.3)
|
77
77
|
molinillo (0.6.6)
|
78
78
|
nanaimo (0.2.6)
|
79
79
|
nap (1.1.0)
|
@@ -93,13 +93,13 @@ GEM
|
|
93
93
|
rainbow (>= 2.2.2, < 3.0)
|
94
94
|
ruby-progressbar (~> 1.7)
|
95
95
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
96
|
-
ruby-macho (1.
|
96
|
+
ruby-macho (1.4.0)
|
97
97
|
ruby-progressbar (1.9.0)
|
98
98
|
thread_safe (0.3.6)
|
99
99
|
tzinfo (1.2.5)
|
100
100
|
thread_safe (~> 0.1)
|
101
101
|
unicode-display_width (1.3.0)
|
102
|
-
xcodeproj (1.
|
102
|
+
xcodeproj (1.8.2)
|
103
103
|
CFPropertyList (>= 2.3.3, < 4.0)
|
104
104
|
atomos (~> 0.1.3)
|
105
105
|
claide (>= 1.0.2, < 2.0)
|
@@ -110,7 +110,7 @@ PLATFORMS
|
|
110
110
|
ruby
|
111
111
|
|
112
112
|
DEPENDENCIES
|
113
|
-
big_resources
|
113
|
+
big_resources (~> 0.1.2)
|
114
114
|
big_stash (~> 0.1)
|
115
115
|
bigkeeper!
|
116
116
|
bundler (~> 1.15)
|
data/big_keeper.gemspec
CHANGED
@@ -41,7 +41,7 @@ Gem::Specification.new do |spec|
|
|
41
41
|
spec.add_development_dependency "rake", "~> 10.0"
|
42
42
|
spec.add_development_dependency "gli", "~> 2.16"
|
43
43
|
spec.add_development_dependency "big_stash", "~> 0.1"
|
44
|
-
spec.add_development_dependency "big_resources"
|
44
|
+
spec.add_development_dependency "big_resources", "~> 0.1.2"
|
45
45
|
spec.add_development_dependency "cocoapods"
|
46
46
|
spec.add_development_dependency "plist"
|
47
47
|
spec.add_development_dependency "colorize"
|
data/bin/big
CHANGED
data/lib/big_keeper.rb
CHANGED
@@ -27,7 +27,8 @@ module BigKeeper
|
|
27
27
|
|
28
28
|
flag %i[p path], default_value: './'
|
29
29
|
flag %i[v ver], default_value: 'Version in Bigkeeper file'
|
30
|
-
flag %i[u user], default_value: GitOperator.new.user
|
30
|
+
flag %i[u user], default_value: GitOperator.new.user
|
31
|
+
flag %i[l log], default_value: true
|
31
32
|
|
32
33
|
if VerifyOperator.already_in_process?
|
33
34
|
p %Q(There is another 'big' command in process, please wait)
|
@@ -44,7 +45,7 @@ module BigKeeper
|
|
44
45
|
end
|
45
46
|
|
46
47
|
post do |global_options,command,options,args|
|
47
|
-
LeanCloudLogger.instance.end_log(true)
|
48
|
+
LeanCloudLogger.instance.end_log(true, global_options[:log] == "true")
|
48
49
|
end
|
49
50
|
|
50
51
|
feature_and_hotfix_command(GitflowType::FEATURE)
|
@@ -127,7 +127,14 @@ module BigKeeper
|
|
127
127
|
end
|
128
128
|
|
129
129
|
def user
|
130
|
-
`git config user.name`.chop
|
130
|
+
name = `git config user.name`.chop
|
131
|
+
cn_reg = /[\u4e00-\u9fa5]{1}/
|
132
|
+
cn_arr = name.scan(cn_reg)
|
133
|
+
if cn_arr.count > 0
|
134
|
+
Logger.error("git config user.name has Chinese character")
|
135
|
+
else
|
136
|
+
name.gsub(/[^0-9A-Za-z]/, '').downcase
|
137
|
+
end
|
131
138
|
end
|
132
139
|
|
133
140
|
def tag(path, version)
|
@@ -216,6 +223,4 @@ module BigKeeper
|
|
216
223
|
|
217
224
|
end
|
218
225
|
|
219
|
-
# p GitOperator.new.user
|
220
|
-
# BigStash::StashOperator.new("/Users/mmoaay/Documents/eleme/BigKeeperMain").list
|
221
226
|
end
|
@@ -21,7 +21,7 @@ module BigKeeper
|
|
21
21
|
@path = global_options['path']
|
22
22
|
end
|
23
23
|
|
24
|
-
def end_log(is_success)
|
24
|
+
def end_log(is_success, is_show_log)
|
25
25
|
@end_timestamp = Time.new.to_i
|
26
26
|
@is_success = is_success
|
27
27
|
@version = BigkeeperParser.version if @version == 'Version in Bigkeeper file'
|
@@ -34,12 +34,13 @@ module BigKeeper
|
|
34
34
|
parameter = parameter.merge('version' => @version) unless @version == nil || @version == ""
|
35
35
|
parameter = parameter.merge('parameter' => @parameter) unless @parameter == nil || @parameter == ""
|
36
36
|
|
37
|
-
|
38
|
-
|
39
|
-
|
37
|
+
if @command
|
38
|
+
leancloud_file = @command.split("/").first
|
39
|
+
send_log_cloud(leancloud_file, parameter, is_show_log)
|
40
|
+
end
|
40
41
|
end
|
41
42
|
|
42
|
-
def send_log_cloud(file_name, parameter)
|
43
|
+
def send_log_cloud(file_name, parameter, is_show_log)
|
43
44
|
if file_name == nil
|
44
45
|
return
|
45
46
|
end
|
@@ -59,8 +60,7 @@ module BigKeeper
|
|
59
60
|
req = Net::HTTP::Post.new(uri.path, header)
|
60
61
|
req.body = parameter.to_json
|
61
62
|
res = https.request(req)
|
62
|
-
|
63
|
-
Logger.highlight("Send LeanCloud success, response #{res.body}")
|
63
|
+
Logger.highlight("Send LeanCloud success, response #{res.body}") unless !is_show_log
|
64
64
|
end
|
65
65
|
|
66
66
|
def assemble_request
|
data/lib/big_keeper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bigkeeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mmoaay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|
@@ -154,16 +154,16 @@ dependencies:
|
|
154
154
|
name: big_resources
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: 0.1.2
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - "
|
164
|
+
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: 0.1.2
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: cocoapods
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -341,8 +341,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
341
341
|
- !ruby/object:Gem::Version
|
342
342
|
version: '0'
|
343
343
|
requirements: []
|
344
|
-
|
345
|
-
rubygems_version: 2.5.2.3
|
344
|
+
rubygems_version: 3.0.1
|
346
345
|
signing_key:
|
347
346
|
specification_version: 4
|
348
347
|
summary: Efficiency improvement for iOS&Android modular development.
|