kookeeper 3.0.0 → 3.0.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/.idea/.gitignore +8 -0
- data/.idea/bigkeeper.iml +68 -0
- data/.idea/modules.xml +8 -0
- data/.idea/vcs.xml +6 -0
- data/Gemfile.lock +68 -48
- data/big_keeper.gemspec +3 -3
- data/bin/big +1 -1
- data/bin/koo +1 -1
- data/lib/big_keeper/command/feature&hotfix/delete.rb +1 -1
- data/lib/big_keeper/command/feature&hotfix/finish.rb +2 -2
- data/lib/big_keeper/command/feature&hotfix/list.rb +1 -1
- data/lib/big_keeper/command/feature&hotfix/publish.rb +2 -2
- data/lib/big_keeper/command/feature&hotfix/start.rb +2 -2
- data/lib/big_keeper/command/feature&hotfix/switch.rb +2 -2
- data/lib/big_keeper/command/feature&hotfix/update.rb +2 -2
- data/lib/big_keeper/command/pod/podfile.rb +13 -16
- data/lib/big_keeper/command/pod.rb +5 -18
- data/lib/big_keeper/command/release/home.rb +1 -2
- data/lib/big_keeper/command/release/module.rb +0 -4
- data/lib/big_keeper/command/release.rb +0 -25
- data/lib/big_keeper/dependency/dep_gradle_operator.rb +29 -47
- data/lib/big_keeper/dependency/dep_operator.rb +1 -17
- data/lib/big_keeper/dependency/dep_pod_operator.rb +10 -10
- data/lib/big_keeper/model/operate_type.rb +0 -3
- data/lib/big_keeper/service/git_service.rb +2 -3
- data/lib/big_keeper/service/module_service.rb +0 -65
- data/lib/big_keeper/util/bigkeeper_parser.rb +1 -17
- data/lib/big_keeper/util/cache_operator.rb +4 -6
- data/lib/big_keeper/util/file_operator.rb +1 -1
- data/lib/big_keeper/util/git_operator.rb +4 -25
- data/lib/big_keeper/util/gradle_operator.rb +209 -0
- data/lib/big_keeper/util/leancloud_logger.rb +7 -19
- data/lib/big_keeper/util/list_generator.rb +2 -2
- data/lib/big_keeper/util/logger.rb +1 -2
- data/lib/big_keeper/util/podfile_detector.rb +44 -35
- data/lib/big_keeper/util/podfile_module.rb +1 -1
- data/lib/big_keeper/util/podfile_operator.rb +8 -16
- data/lib/big_keeper/version.rb +1 -1
- data/lib/big_keeper.rb +9 -19
- metadata +14 -25
- data/.github/ISSUE_TEMPLATE.md +0 -20
- data/.gitignore +0 -50
- data/.travis.yml +0 -19
- data/Rakefile +0 -2
- data/lib/big_keeper/command/client.rb +0 -50
- data/lib/big_keeper/command/init.rb +0 -36
- data/lib/big_keeper/command/release/finish.rb +0 -36
- data/lib/big_keeper/command/release/publish.rb +0 -4
- data/lib/big_keeper/command/release/start.rb +0 -78
- data/lib/big_keeper/util/command_line_util.rb +0 -9
- data/lib/big_keeper/util/gradle_content_generator.rb +0 -26
- data/lib/big_keeper/util/gradle_file_operator.rb +0 -339
- data/lib/big_keeper/util/gradle_module_operator.rb +0 -70
- data/lib/big_keeper/util/lockfile_parser.rb +0 -143
- data/lib/big_keeper/util/version_config_operator.rb +0 -29
- data/resources/template/Bigkeeper +0 -23
@@ -7,30 +7,21 @@ module BigKeeper
|
|
7
7
|
class LeanCloudLogger
|
8
8
|
include Singleton
|
9
9
|
|
10
|
-
attr_accessor :user, :version, :start_timestamp, :end_timestamp, :command, :parameter, :is_success, :path
|
11
|
-
|
12
|
-
def initialize
|
13
|
-
@need_log = "true"
|
14
|
-
end
|
10
|
+
attr_accessor :user, :version, :start_timestamp, :end_timestamp, :command, :parameter, :is_success, :path
|
15
11
|
|
16
12
|
def set_command(set_command)
|
17
13
|
@command = set_command
|
18
14
|
end
|
19
15
|
|
20
|
-
def is_need_log
|
21
|
-
@need_log == "true"
|
22
|
-
end
|
23
|
-
|
24
16
|
def start_log(global_options, args)
|
25
17
|
@start_timestamp = Time.new.to_i
|
26
18
|
@user = global_options['user'].to_s
|
27
19
|
@parameter = args.join(",")
|
28
20
|
@version = global_options['ver']
|
29
21
|
@path = global_options['path']
|
30
|
-
@need_log = "#{global_options[:log]}"
|
31
22
|
end
|
32
23
|
|
33
|
-
def end_log(is_success
|
24
|
+
def end_log(is_success)
|
34
25
|
@end_timestamp = Time.new.to_i
|
35
26
|
@is_success = is_success
|
36
27
|
@version = BigkeeperParser.version if @version == 'Version in Bigkeeper file'
|
@@ -43,13 +34,12 @@ module BigKeeper
|
|
43
34
|
parameter = parameter.merge('version' => @version) unless @version == nil || @version == ""
|
44
35
|
parameter = parameter.merge('parameter' => @parameter) unless @parameter == nil || @parameter == ""
|
45
36
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
end
|
37
|
+
leancloud_file = @command.split("/").first
|
38
|
+
|
39
|
+
send_log_cloud(leancloud_file, parameter)
|
50
40
|
end
|
51
41
|
|
52
|
-
def send_log_cloud(file_name, parameter
|
42
|
+
def send_log_cloud(file_name, parameter)
|
53
43
|
if file_name == nil
|
54
44
|
return
|
55
45
|
end
|
@@ -70,9 +60,7 @@ module BigKeeper
|
|
70
60
|
req.body = parameter.to_json
|
71
61
|
res = https.request(req)
|
72
62
|
|
73
|
-
|
74
|
-
Logger.highlight("Send LeanCloud success, response #{res.body}")
|
75
|
-
end
|
63
|
+
Logger.highlight("Send LeanCloud success, response #{res.body}")
|
76
64
|
end
|
77
65
|
|
78
66
|
def assemble_request
|
@@ -6,7 +6,7 @@ module BigKeeper
|
|
6
6
|
#generate tree print throught console
|
7
7
|
def self.generate_tree(file_path, home_branches, version)
|
8
8
|
module_branches_dic = {}
|
9
|
-
json_data = File.read(file_path
|
9
|
+
json_data = File.read(file_path)
|
10
10
|
module_branches_dic = JSON.parse(json_data)
|
11
11
|
to_tree(module_branches_dic, home_branches, version)
|
12
12
|
File.delete(file_path)
|
@@ -15,7 +15,7 @@ module BigKeeper
|
|
15
15
|
#generate json print throught console
|
16
16
|
def self.generate_json(file_path, home_branches, version)
|
17
17
|
module_branches_dic = {}
|
18
|
-
json_data = File.read(file_path
|
18
|
+
json_data = File.read(file_path)
|
19
19
|
module_branches_dic = JSON.parse(json_data)
|
20
20
|
json = to_json(home_branches, module_branches_dic, version)
|
21
21
|
puts JSON.pretty_generate(json)
|
@@ -27,8 +27,7 @@ module BigKeeper
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def self.error(sentence)
|
30
|
-
|
31
|
-
LeanCloudLogger.instance.end_log(false, is_need_log)
|
30
|
+
LeanCloudLogger.instance.end_log(false)
|
32
31
|
raise formatter_output(sentence).colorize(:red)
|
33
32
|
end
|
34
33
|
|
@@ -1,39 +1,27 @@
|
|
1
1
|
require 'big_keeper/util/bigkeeper_parser'
|
2
2
|
require 'big_keeper/model/podfile_model'
|
3
3
|
require 'big_keeper/util/logger'
|
4
|
-
|
4
|
+
|
5
5
|
module BigKeeper
|
6
6
|
|
7
|
-
class
|
8
|
-
|
9
|
-
attr_accessor :module_list, :main_path
|
7
|
+
class PodfileDetector
|
8
|
+
|
9
|
+
attr_accessor :module_list, :main_path
|
10
10
|
$unlock_pod_list = []
|
11
11
|
$modify_pod_list = {}
|
12
12
|
|
13
|
-
def initialize
|
14
|
-
@module_list =
|
15
|
-
@
|
13
|
+
def initialize(main_path, module_list)
|
14
|
+
@module_list = module_list
|
15
|
+
@main_path = main_path
|
16
16
|
end
|
17
17
|
|
18
|
-
def
|
19
|
-
|
20
|
-
podfile_lines = File.readlines("#{@main_path}/Podfile", :encoding => 'UTF-8')
|
18
|
+
def get_unlock_pod_list
|
19
|
+
podfile_lines = File.readlines("#{@main_path}/Podfile")
|
21
20
|
Logger.highlight("Analyzing Podfile...") unless podfile_lines.size.zero?
|
22
|
-
|
23
|
-
|
24
|
-
pod_name = get_pod_name(sentence)
|
25
|
-
@pod_list << pod_name
|
21
|
+
podfile_lines.collect do |sentence|
|
22
|
+
deal_podfile_line(sentence) unless sentence =~(/(\d+.){1,2}\d+/)
|
26
23
|
end
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
def get_unlock_pod_list
|
31
|
-
podfile_lines = File.readlines("#{@main_path}/Podfile", :encoding => 'UTF-8')
|
32
|
-
#Logger.highlight("Analyzing Podfile...") unless podfile_lines.size.zero?
|
33
|
-
podfile_lines.collect do |sentence|
|
34
|
-
deal_podfile_line(sentence) unless sentence =~(/'(\d+.){1,2}\d+'/)
|
35
|
-
end
|
36
|
-
$unlock_pod_list
|
24
|
+
$unlock_pod_list
|
37
25
|
end
|
38
26
|
|
39
27
|
def deal_podfile_line(sentence)
|
@@ -44,24 +32,37 @@ class PodfileParser
|
|
44
32
|
pod_model.configurations != '[\'Debug\']' &&
|
45
33
|
pod_model.path == nil &&
|
46
34
|
pod_model.tag == nil
|
47
|
-
|
48
|
-
if pod_names.size > 1
|
49
|
-
pod_name = pod_names[0]
|
50
|
-
else
|
51
|
-
pod_name = pod_model.name
|
52
|
-
end
|
53
|
-
$unlock_pod_list << pod_name unless @module_list.include?(pod_name)
|
35
|
+
$unlock_pod_list << pod_model.name unless @module_list.include?(pod_model.name)
|
54
36
|
end
|
55
37
|
pod_model
|
56
38
|
end
|
57
39
|
end
|
58
40
|
|
59
|
-
def get_pod_name(sentence)
|
60
41
|
|
61
|
-
|
62
|
-
|
63
|
-
|
42
|
+
def deal_lock_file(main_path, deal_list)
|
43
|
+
$result = {}
|
44
|
+
podfile_lock_lines = File.readlines("#{main_path}/Podfile.lock")
|
45
|
+
Logger.highlight("Analyzing Podfile.lock...") unless podfile_lock_lines.size.zero?
|
46
|
+
podfile_lock_lines.select do |sentence|
|
47
|
+
if sentence.include?('DEPENDENCIES') #指定范围解析 Dependencies 之前
|
48
|
+
break
|
49
|
+
end
|
50
|
+
|
51
|
+
temp_sentence = sentence.strip
|
52
|
+
pod_name = get_lock_podname(temp_sentence)
|
53
|
+
if deal_list.include?(pod_name)
|
54
|
+
current_version = $result[pod_name]
|
55
|
+
temp_version = get_lock_version(temp_sentence)
|
56
|
+
if temp_version != nil
|
57
|
+
if current_version != nil
|
58
|
+
$result[pod_name] = chose_version(current_version, temp_version)
|
59
|
+
else
|
60
|
+
$result[pod_name] = temp_version
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
64
|
end
|
65
|
+
return $result
|
65
66
|
end
|
66
67
|
|
67
68
|
def self.get_pod_model(sentence)
|
@@ -71,6 +72,14 @@ class PodfileParser
|
|
71
72
|
end
|
72
73
|
end
|
73
74
|
|
75
|
+
def get_pod_name(sentence)
|
76
|
+
pod_model = deal_podfile_line(sentence)
|
77
|
+
pod_name = pod_model.name if pod_model != nil && pod_model.configurations.nil
|
78
|
+
@unlock_pod_list << pod_name unless @module_list.include pod_name
|
79
|
+
end
|
80
|
+
|
81
|
+
|
82
|
+
|
74
83
|
def get_lock_podname(sentence) #获得pod名称
|
75
84
|
match_result = /(\d+.){1,2}\d+/.match(sentence.delete('- :~>='))
|
76
85
|
pod_name = match_result.pre_match unless match_result == nil
|
@@ -37,7 +37,7 @@ class PodfileModuleDetector
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def deal_module_info
|
40
|
-
podfile_lines = File.readlines("#{@main_path}/bigKeeperPodInfo.tmp"
|
40
|
+
podfile_lines = File.readlines("#{@main_path}/bigKeeperPodInfo.tmp")
|
41
41
|
Logger.highlight("Analyzing modules info...") unless podfile_lines.size.zero?
|
42
42
|
podfile_lines.collect do |sentence|
|
43
43
|
if sentence =~(/pod/)
|
@@ -36,26 +36,19 @@ module BigKeeper
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def find_and_lock(podfile, dictionary)
|
39
|
-
temp_file = Tempfile.new('.Podfile.tmp'
|
39
|
+
temp_file = Tempfile.new('.Podfile.tmp')
|
40
40
|
begin
|
41
41
|
File.open(podfile, 'r') do |file|
|
42
42
|
file.each_line do |line|
|
43
|
-
pod_model =
|
43
|
+
pod_model = PodfileDetector.get_pod_model(line)
|
44
44
|
if pod_model != nil && pod_model.name != nil && dictionary[pod_model.name] != nil
|
45
|
+
# p "#{pod_name},#{dictionary[pod_name]}"
|
45
46
|
temp_file.puts generate_pod_config(pod_model.name, dictionary[pod_model.name], pod_model.comment)
|
46
|
-
dictionary.delete(pod_model.name)
|
47
47
|
else
|
48
48
|
temp_file.puts line
|
49
49
|
end
|
50
50
|
end
|
51
51
|
end
|
52
|
-
if !dictionary.empty?
|
53
|
-
temp_file.puts 'def sub_dependency'
|
54
|
-
dictionary.keys.each do |sub_pod|
|
55
|
-
temp_file.puts generate_pod_config(sub_pod, dictionary[sub_pod], 'bigkeeper')
|
56
|
-
end
|
57
|
-
temp_file.puts 'end'
|
58
|
-
end
|
59
52
|
temp_file.close
|
60
53
|
FileUtils.mv(temp_file.path, podfile)
|
61
54
|
ensure
|
@@ -65,13 +58,12 @@ module BigKeeper
|
|
65
58
|
end
|
66
59
|
|
67
60
|
def find_and_upgrade(podfile, dictionary)
|
68
|
-
temp_file = Tempfile.new('.Podfile.tmp'
|
61
|
+
temp_file = Tempfile.new('.Podfile.tmp')
|
69
62
|
begin
|
70
|
-
File.open(podfile, 'r'
|
63
|
+
File.open(podfile, 'r') do |file|
|
71
64
|
file.each_line do |line|
|
72
|
-
pod_model =
|
65
|
+
pod_model = PodfileDetector.get_pod_model(line)
|
73
66
|
if pod_model != nil && pod_model.name != nil && dictionary[pod_model.name] != nil
|
74
|
-
#替换
|
75
67
|
temp_file.puts generate_pod_config(pod_model.name, dictionary[pod_model.name], pod_model.comment)
|
76
68
|
else
|
77
69
|
temp_file.puts line
|
@@ -87,10 +79,10 @@ module BigKeeper
|
|
87
79
|
end
|
88
80
|
|
89
81
|
def podspec_change(podspec_file, version, module_name)
|
90
|
-
temp_file = Tempfile.new(".#{module_name}.podspec"
|
82
|
+
temp_file = Tempfile.new(".#{module_name}.podspec")
|
91
83
|
has_change = false
|
92
84
|
begin
|
93
|
-
File.open(podspec_file, 'r'
|
85
|
+
File.open(podspec_file, 'r') do |file|
|
94
86
|
file.each_line do |line|
|
95
87
|
if line.include?("s.version")
|
96
88
|
temp_line = line
|
data/lib/big_keeper/version.rb
CHANGED
data/lib/big_keeper.rb
CHANGED
@@ -13,8 +13,7 @@ require 'big_keeper/command/release'
|
|
13
13
|
require 'big_keeper/command/pod'
|
14
14
|
require 'big_keeper/command/spec'
|
15
15
|
require 'big_keeper/command/image'
|
16
|
-
|
17
|
-
require 'big_keeper/command/client'
|
16
|
+
|
18
17
|
require 'big_keeper/service/git_service'
|
19
18
|
require 'big_keeper/util/leancloud_logger'
|
20
19
|
|
@@ -28,8 +27,7 @@ module BigKeeper
|
|
28
27
|
|
29
28
|
flag %i[p path], default_value: './'
|
30
29
|
flag %i[v ver], default_value: 'Version in Bigkeeper file'
|
31
|
-
flag %i[u user], default_value: GitOperator.new.user
|
32
|
-
flag %i[l log], default_value: true
|
30
|
+
flag %i[u user], default_value: GitOperator.new.user.gsub(/[^0-9A-Za-z]/, '').downcase
|
33
31
|
|
34
32
|
if VerifyOperator.already_in_process?
|
35
33
|
p %Q(There is another 'big' command in process, please wait)
|
@@ -41,17 +39,13 @@ module BigKeeper
|
|
41
39
|
exit
|
42
40
|
end
|
43
41
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
# is_show_log = false
|
52
|
-
# end
|
53
|
-
# LeanCloudLogger.instance.end_log(true, is_show_log)
|
54
|
-
# end
|
42
|
+
pre do |global_options,command,options,args|
|
43
|
+
LeanCloudLogger.instance.start_log(global_options, args)
|
44
|
+
end
|
45
|
+
|
46
|
+
post do |global_options,command,options,args|
|
47
|
+
LeanCloudLogger.instance.end_log(true)
|
48
|
+
end
|
55
49
|
|
56
50
|
feature_and_hotfix_command(GitflowType::FEATURE)
|
57
51
|
|
@@ -65,10 +59,6 @@ module BigKeeper
|
|
65
59
|
|
66
60
|
image_command
|
67
61
|
|
68
|
-
init_command
|
69
|
-
|
70
|
-
client_command
|
71
|
-
|
72
62
|
desc 'Show version of bigkeeper'
|
73
63
|
command :version do |version|
|
74
64
|
version.action do |global_options, options, args|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kookeeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- mmoaay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-11 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: 0
|
159
|
+
version: '0'
|
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: 0
|
166
|
+
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: cocoapods
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -223,23 +223,23 @@ dependencies:
|
|
223
223
|
description: Efficiency improvement for iOS&Android modular development, iOSer&Androider
|
224
224
|
using this tool can make modular development easier.
|
225
225
|
email:
|
226
|
-
-
|
226
|
+
- mmoaay@sina.com
|
227
227
|
executables:
|
228
228
|
- koo
|
229
229
|
- setup
|
230
230
|
extensions: []
|
231
231
|
extra_rdoc_files: []
|
232
232
|
files:
|
233
|
-
- ".
|
234
|
-
- ".
|
235
|
-
- ".
|
233
|
+
- ".idea/.gitignore"
|
234
|
+
- ".idea/bigkeeper.iml"
|
235
|
+
- ".idea/modules.xml"
|
236
|
+
- ".idea/vcs.xml"
|
236
237
|
- CODE_OF_CONDUCT.md
|
237
238
|
- CONTRIBUTING.md
|
238
239
|
- Gemfile
|
239
240
|
- Gemfile.lock
|
240
241
|
- LICENSE
|
241
242
|
- README.md
|
242
|
-
- Rakefile
|
243
243
|
- big_keeper.gemspec
|
244
244
|
- bin/big
|
245
245
|
- bin/koo
|
@@ -255,7 +255,6 @@ files:
|
|
255
255
|
- docs/zh-CN/RELEASE.md
|
256
256
|
- docs/zh-CN/SPEC.md
|
257
257
|
- lib/big_keeper.rb
|
258
|
-
- lib/big_keeper/command/client.rb
|
259
258
|
- lib/big_keeper/command/feature&hotfix.rb
|
260
259
|
- lib/big_keeper/command/feature&hotfix/delete.rb
|
261
260
|
- lib/big_keeper/command/feature&hotfix/finish.rb
|
@@ -269,15 +268,11 @@ files:
|
|
269
268
|
- lib/big_keeper/command/feature&hotfix/update.rb
|
270
269
|
- lib/big_keeper/command/image.rb
|
271
270
|
- lib/big_keeper/command/image/image.rb
|
272
|
-
- lib/big_keeper/command/init.rb
|
273
271
|
- lib/big_keeper/command/pod.rb
|
274
272
|
- lib/big_keeper/command/pod/podfile.rb
|
275
273
|
- lib/big_keeper/command/release.rb
|
276
|
-
- lib/big_keeper/command/release/finish.rb
|
277
274
|
- lib/big_keeper/command/release/home.rb
|
278
275
|
- lib/big_keeper/command/release/module.rb
|
279
|
-
- lib/big_keeper/command/release/publish.rb
|
280
|
-
- lib/big_keeper/command/release/start.rb
|
281
276
|
- lib/big_keeper/command/spec.rb
|
282
277
|
- lib/big_keeper/command/spec/add.rb
|
283
278
|
- lib/big_keeper/command/spec/analyze.rb
|
@@ -300,24 +295,19 @@ files:
|
|
300
295
|
- lib/big_keeper/util/bigkeeper_parser.rb
|
301
296
|
- lib/big_keeper/util/cache_operator.rb
|
302
297
|
- lib/big_keeper/util/code_operator.rb
|
303
|
-
- lib/big_keeper/util/command_line_util.rb
|
304
298
|
- lib/big_keeper/util/file_operator.rb
|
305
299
|
- lib/big_keeper/util/git_operator.rb
|
306
300
|
- lib/big_keeper/util/gitflow_operator.rb
|
307
|
-
- lib/big_keeper/util/
|
308
|
-
- lib/big_keeper/util/gradle_file_operator.rb
|
309
|
-
- lib/big_keeper/util/gradle_module_operator.rb
|
301
|
+
- lib/big_keeper/util/gradle_operator.rb
|
310
302
|
- lib/big_keeper/util/info_plist_operator.rb
|
311
303
|
- lib/big_keeper/util/leancloud_logger.rb
|
312
304
|
- lib/big_keeper/util/list_generator.rb
|
313
|
-
- lib/big_keeper/util/lockfile_parser.rb
|
314
305
|
- lib/big_keeper/util/logger.rb
|
315
306
|
- lib/big_keeper/util/pod_operator.rb
|
316
307
|
- lib/big_keeper/util/podfile_detector.rb
|
317
308
|
- lib/big_keeper/util/podfile_module.rb
|
318
309
|
- lib/big_keeper/util/podfile_operator.rb
|
319
310
|
- lib/big_keeper/util/verify_operator.rb
|
320
|
-
- lib/big_keeper/util/version_config_operator.rb
|
321
311
|
- lib/big_keeper/util/xcode_operator.rb
|
322
312
|
- lib/big_keeper/version.rb
|
323
313
|
- resources/banner.png
|
@@ -327,7 +317,6 @@ files:
|
|
327
317
|
- resources/keynote/big-keeper-readme-feature.key
|
328
318
|
- resources/keynote/big-keeper-readme-release.key
|
329
319
|
- resources/readme/big-keeper-readme.001.png
|
330
|
-
- resources/template/Bigkeeper
|
331
320
|
homepage: https://github.com/BigKeeper/bigkeeper
|
332
321
|
licenses:
|
333
322
|
- MIT
|
@@ -348,7 +337,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
348
337
|
- !ruby/object:Gem::Version
|
349
338
|
version: '0'
|
350
339
|
requirements: []
|
351
|
-
rubygems_version: 3.3
|
340
|
+
rubygems_version: 3.2.3
|
352
341
|
signing_key:
|
353
342
|
specification_version: 4
|
354
343
|
summary: Efficiency improvement for iOS&Android modular development.
|
data/.github/ISSUE_TEMPLATE.md
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
### Check List
|
2
|
-
|
3
|
-
Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.
|
4
|
-
|
5
|
-
- [ ] I have read the [README.md](https://github.com/BigKeeper/bigkeeper/blob/master/README.md), but there is no information I need.
|
6
|
-
- [ ] I have searched in [existing issues](https://github.com/BigKeeper/bigkeeper/issues?utf8=%E2%9C%93&q=is%3Aissue), but did find a same one.
|
7
|
-
|
8
|
-
### Issue Description
|
9
|
-
|
10
|
-
#### Description
|
11
|
-
|
12
|
-
[Tell us about the issue]
|
13
|
-
|
14
|
-
#### Reproduce
|
15
|
-
|
16
|
-
[The steps to reproduce this issue. What are the parameters, where did you put your code, etc.]
|
17
|
-
|
18
|
-
#### Other Comment
|
19
|
-
|
20
|
-
[Add anything else here]
|
data/.gitignore
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
/.config
|
4
|
-
/coverage/
|
5
|
-
/InstalledFiles
|
6
|
-
/pkg/
|
7
|
-
/spec/reports/
|
8
|
-
/spec/examples.txt
|
9
|
-
/test/tmp/
|
10
|
-
/test/version_tmp/
|
11
|
-
/tmp/
|
12
|
-
|
13
|
-
# Used by dotenv library to load environment variables.
|
14
|
-
# .env
|
15
|
-
|
16
|
-
## Specific to RubyMotion:
|
17
|
-
.dat*
|
18
|
-
.repl_history
|
19
|
-
build/
|
20
|
-
*.bridgesupport
|
21
|
-
build-iPhoneOS/
|
22
|
-
build-iPhoneSimulator/
|
23
|
-
|
24
|
-
## Specific to RubyMotion (use of CocoaPods):
|
25
|
-
#
|
26
|
-
# We recommend against adding the Pods directory to your .gitignore. However
|
27
|
-
# you should judge for yourself, the pros and cons are mentioned at:
|
28
|
-
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
29
|
-
#
|
30
|
-
# vendor/Pods/
|
31
|
-
|
32
|
-
## Documentation cache and generated files:
|
33
|
-
/.yardoc/
|
34
|
-
/_yardoc/
|
35
|
-
/doc/
|
36
|
-
/rdoc/
|
37
|
-
|
38
|
-
## Environment normalization:
|
39
|
-
/.bundle/
|
40
|
-
/vendor/bundle
|
41
|
-
/lib/bundler/man/
|
42
|
-
|
43
|
-
# for a library or gem, you might want to ignore these files since the code is
|
44
|
-
# intended to run in multiple environments; otherwise, check them in:
|
45
|
-
# Gemfile.lock
|
46
|
-
# .ruby-version
|
47
|
-
# .ruby-gemset
|
48
|
-
|
49
|
-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
50
|
-
.rvmrc
|
data/.travis.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
|
3
|
-
rvm:
|
4
|
-
- 2.5.0
|
5
|
-
- 2.4.3
|
6
|
-
- 2.3.6
|
7
|
-
- 2.2.9
|
8
|
-
- 2.1.10
|
9
|
-
|
10
|
-
before_install:
|
11
|
-
- gem update --remote bundler
|
12
|
-
- gem update --system
|
13
|
-
|
14
|
-
sudo: false
|
15
|
-
|
16
|
-
bundler_args: --without=guard
|
17
|
-
|
18
|
-
notifications:
|
19
|
-
disabled: true
|
data/Rakefile
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
require 'big_keeper/util/leancloud_logger'
|
2
|
-
require 'big_keeper/command/pod/podfile'
|
3
|
-
require 'big_keeper/command/spec/list'
|
4
|
-
require 'big_keeper/util/list_generator'
|
5
|
-
|
6
|
-
module BigKeeper
|
7
|
-
|
8
|
-
def self.client_command
|
9
|
-
desc 'API for bigkeeper-client.'
|
10
|
-
command :client do | c |
|
11
|
-
c.desc 'Commands about operate modules.'
|
12
|
-
c.command :modules do |modules|
|
13
|
-
modules.desc 'Get modules list from Bigkeeper file.'
|
14
|
-
modules.command :list do |list|
|
15
|
-
list.action do |global_options, options, args|
|
16
|
-
LeanCloudLogger.instance.set_command("spec/list")
|
17
|
-
path = File.expand_path(global_options[:path])
|
18
|
-
version = global_options[:ver]
|
19
|
-
user = global_options[:user].gsub(/[^0-9A-Za-z]/, '').downcase
|
20
|
-
spec_list(path, user, options)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
modules.desc 'Update modules.'
|
24
|
-
modules.command :update do |update|
|
25
|
-
update.action do |global_options, options, args|
|
26
|
-
LeanCloudLogger.instance.set_command("spec/list")
|
27
|
-
path = File.expand_path(global_options[:path])
|
28
|
-
version = global_options[:ver]
|
29
|
-
user = global_options[:user].gsub(/[^0-9A-Za-z]/, '').downcase
|
30
|
-
spec_list(path, user, options)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
c.desc 'Commands about features.'
|
35
|
-
c.command :feature do |feature|
|
36
|
-
feature.desc "List all the features including origin."
|
37
|
-
feature.command :list do | list |
|
38
|
-
list.flag %i[v version] , default_value: 'all versions'
|
39
|
-
list.action do |global_options, options, args|
|
40
|
-
LeanCloudLogger.instance.set_command("feature/list/json")
|
41
|
-
options[:json] = true
|
42
|
-
path = File.expand_path(global_options[:path])
|
43
|
-
user = global_options[:user].gsub(/[^0-9A-Za-z]/, '').downcase
|
44
|
-
list(path, user, GitflowType::FEATURE, options)
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
require 'big_keeper/util/leancloud_logger'
|
2
|
-
require 'big_keeper/util/file_operator'
|
3
|
-
require 'fileutils'
|
4
|
-
require 'big_keeper/util/logger'
|
5
|
-
|
6
|
-
module BigKeeper
|
7
|
-
def self.init_command
|
8
|
-
desc 'BigKeeper file initialize'
|
9
|
-
command :init do | c |
|
10
|
-
c.desc "BigKeeper template file initialize."
|
11
|
-
c.action do | global_options, options, args |
|
12
|
-
LeanCloudLogger.instance.set_command("big/init")
|
13
|
-
|
14
|
-
bin_path = File.dirname(__FILE__)
|
15
|
-
bin_path = File.dirname(bin_path)
|
16
|
-
bin_path = File.dirname(bin_path)
|
17
|
-
bin_path = File.dirname(bin_path)
|
18
|
-
path = global_options['path']
|
19
|
-
Logger.highlight("Initialize BigKeeper File...")
|
20
|
-
#template path
|
21
|
-
source_file = File.join(bin_path, 'resources/template/BigKeeper')
|
22
|
-
#BigKeeper file need exist path
|
23
|
-
target_path = File.join(path, 'BigKeeper')
|
24
|
-
|
25
|
-
if !File.exists?(target_path)
|
26
|
-
FileUtils.cp(source_file, target_path)
|
27
|
-
Logger.highlight("Initialize BigKeeper Complete!")
|
28
|
-
else
|
29
|
-
Logger.highlight("BigKeeper File Has Exist!")
|
30
|
-
end
|
31
|
-
|
32
|
-
LeanCloudLogger.instance.set_command("file/init")
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|