kookeeper 3.0.9 → 3.1.0
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/big_keeper/command/feature&hotfix/update.rb +1 -1
- data/lib/big_keeper/service/git_service.rb +1 -0
- data/lib/big_keeper/util/cache_operator.rb +20 -0
- data/lib/big_keeper/util/podfile_detector.rb +26 -0
- data/lib/big_keeper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfabea23fd7bf2e0197cbf2c147a2f3684c85fc9e580633086fda7c6c8bc4b6c
|
4
|
+
data.tar.gz: 1ebb55ae84fa925a6a9bd6ee0b95591d6bee0c8a85a503d8272a27d7eec6d4f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40b2dce0ab4c9b0b2b1e99c1677c0b1c002a070c5b363040b22e37d99d4455d390edb923ea548beadb3bd0e5eec5a02d1bd2b7b1f9f1f655346b4ac15c94ae7f
|
7
|
+
data.tar.gz: 1c7ef42ff4c4e239f19fe7efba66a5ab2aa66cbbc7ea7fe8ae86b340bf158fbc364cd8623d08f704c8903cf67572a10c44bdf23c40aee0ba3c5fbc619936a1fd
|
data/Gemfile.lock
CHANGED
@@ -30,7 +30,7 @@ module BigKeeper
|
|
30
30
|
|
31
31
|
full_name = branch_name.gsub(/#{GitflowType.name(type)}\//, '')
|
32
32
|
|
33
|
-
current_modules = ModuleCacheOperator.new(path).
|
33
|
+
current_modules = ModuleCacheOperator.new(path).current_path_modules_path(path)
|
34
34
|
|
35
35
|
# Verify input modules
|
36
36
|
modules = BigkeeperParser.verify_modules(modules)
|
@@ -99,6 +99,7 @@ module BigKeeper
|
|
99
99
|
Logger.error(%Q('#{name}' has unpushed commits, you should fix it manually...))
|
100
100
|
end
|
101
101
|
p "------------------------------git pull"
|
102
|
+
git.checkout(path, name)
|
102
103
|
pull(path, name)
|
103
104
|
else
|
104
105
|
p "------------------------------没有本地#{name}分支"
|
@@ -54,7 +54,27 @@ module BigKeeper
|
|
54
54
|
@modules["path"]["del"]
|
55
55
|
end
|
56
56
|
|
57
|
+
def current_path_modules_path(path)
|
58
|
+
BigkeeperParser.parse("#{path}/Bigkeeper")
|
59
|
+
# Get modules' name
|
60
|
+
module_list = BigkeeperParser.module_names
|
61
|
+
detector = PodfileDetector.new(path, module_list)
|
62
|
+
# Get unlocked third party pods list
|
63
|
+
current_module_list = detector.get_current_module_list
|
64
|
+
current_module_list
|
65
|
+
#@modules["path"]["current"]
|
66
|
+
end
|
67
|
+
|
57
68
|
def current_path_modules
|
69
|
+
# BigkeeperParser.parse("#{@path}/Bigkeeper")
|
70
|
+
# # Get modules' name
|
71
|
+
# module_list = BigkeeperParser.module_names
|
72
|
+
# detector = PodfileDetector.new(@path, module_list)
|
73
|
+
# # Get unlocked third party pods list
|
74
|
+
# current_module_list = detector.get_current_module_list
|
75
|
+
# current_module_list
|
76
|
+
# #@modules["path"]["current"]
|
77
|
+
# #
|
58
78
|
@modules["path"]["current"]
|
59
79
|
end
|
60
80
|
|
@@ -7,6 +7,7 @@ module BigKeeper
|
|
7
7
|
class PodfileDetector
|
8
8
|
|
9
9
|
attr_accessor :module_list, :main_path
|
10
|
+
$current_module_list = []
|
10
11
|
$unlock_pod_list = []
|
11
12
|
$modify_pod_list = {}
|
12
13
|
|
@@ -15,6 +16,31 @@ class PodfileDetector
|
|
15
16
|
@main_path = main_path
|
16
17
|
end
|
17
18
|
|
19
|
+
|
20
|
+
def get_current_module_list
|
21
|
+
$current_module_list = []
|
22
|
+
podfile_lines = File.readlines("#{@main_path}/Podfile")
|
23
|
+
Logger.highlight("Analyzing Podfile...") unless podfile_lines.size.zero?
|
24
|
+
podfile_lines.collect do |sentence|
|
25
|
+
deal_podfile_line_forCurrent(sentence)
|
26
|
+
end
|
27
|
+
$current_module_list
|
28
|
+
end
|
29
|
+
|
30
|
+
def deal_podfile_line_forCurrent(sentence)
|
31
|
+
return unless !sentence.strip.start_with?("#")
|
32
|
+
if sentence.strip.include?('pod ')
|
33
|
+
pod_model = PodfileModel.new(sentence)
|
34
|
+
if !pod_model.name.empty? &&
|
35
|
+
pod_model.path != nil &&
|
36
|
+
pod_model.tag == nil
|
37
|
+
$current_module_list << pod_model.name if @module_list.include?(pod_model.name)
|
38
|
+
end
|
39
|
+
pod_model
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
|
18
44
|
def get_unlock_pod_list
|
19
45
|
podfile_lines = File.readlines("#{@main_path}/Podfile")
|
20
46
|
Logger.highlight("Analyzing Podfile...") unless podfile_lines.size.zero?
|
data/lib/big_keeper/version.rb
CHANGED