kookeeper 3.0.8 → 3.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd6c22dfb14b333e9e1e2d3ba129cfb6a5d5cd68b0e2f1f760576131cd34e75e
4
- data.tar.gz: ed7ae0bc9bd3146ac128c523a5de31df19a30ef51e4aa5e40964c1d987163c99
3
+ metadata.gz: 5f71d885879aa95039511f78d5771166a44994f862a45b4bed927f3002ceb5e8
4
+ data.tar.gz: 4c2ddfdbbd0981917ac6b22de832e4c46a09550fb4a81ca6a9a9f97f8929f41b
5
5
  SHA512:
6
- metadata.gz: 9f4aca38e2e35f715f1f07ff6e602228e757b304e8dfd601e69baceb237a9aa5188c51b48a48f48e8d7f999fac9b77b9331a2dc681922496ca23e6428f612486
7
- data.tar.gz: 131e6fc9c0b074b37d61b9a511efce1e2cc8ff18422081e0c14c7add3c203b42c20973769857f183f6e0542b4ce130068286445d6dffdeec4e1b18d5da53d5f9
6
+ metadata.gz: a5565e95c940d75542d2de6dceeabef4302b765178c5256a4dfe3633951f83366c9327f1d1881458e8d0e41a36aff1996a0a1f0ee41fd04b4edecb3dae593634
7
+ data.tar.gz: 8eefdfbd881c0ac68b39bb4f20c96c2d3f3c9ab0a9687a5302d27319481ac1b8a1d351e2eac044f4048a1e2d7af1c1cf2d11d7ecdb8e5f94f820b629f1d4b679
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kookeeper (3.0.8)
4
+ kookeeper (3.1.2)
5
5
  big_resources
6
6
  big_stash (~> 0.1)
7
7
  cocoapods
@@ -30,7 +30,9 @@ module BigKeeper
30
30
 
31
31
  ModuleCacheOperator.new(path).cache_git_modules(ModuleCacheOperator.new(path).all_path_modules)
32
32
 
33
- modules = ModuleCacheOperator.new(path).remain_git_modules
33
+ modules = ModuleCacheOperator.new(path).current_path_modules_path(path)
34
+
35
+ #modules = ModuleCacheOperator.new(path).remain_git_modules
34
36
  # Rebase modules and modify module as git
35
37
  modules.each do |module_name|
36
38
  ModuleService.new.finish(path, user, module_name, branch_name, type)
@@ -22,7 +22,7 @@ module BigKeeper
22
22
  stash_modules = ModuleCacheOperator.new(path).all_path_modules
23
23
  p "2.switch_to 暂存所有"
24
24
  # Stash current branch
25
- StashService.new.stash_all(path, branch_name, user, stash_modules,version)
25
+ StashService.new.stash_all(path, branch_name, user, stash_modules,full_name)
26
26
  p "3.switch_to checkout #{home_branch_name}"
27
27
  # Switch to new feature
28
28
  GitOperator.new.checkout(path, home_branch_name)
@@ -31,8 +31,8 @@ module BigKeeper
31
31
  # Apply home stash
32
32
  StashService.new.pop_stash(path, home_branch_name, 'Home')
33
33
 
34
- modules = ModuleCacheOperator.new(path).all_path_modules
35
-
34
+ #modules = ModuleCacheOperator.new(path).all_path_modules
35
+ modules = ModuleCacheOperator.new(path).current_path_modules_path(path)
36
36
  modules.each do |module_name|
37
37
  ModuleService.new.switch_to(path, user, module_name, branch_name, type)
38
38
  end
@@ -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).current_path_modules
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}分支"
@@ -27,6 +27,8 @@ module BigKeeper
27
27
 
28
28
  StashService.new.pop_stash(module_full_path, home_branch_name, module_name)
29
29
  end
30
+
31
+ StashService.new.pop_stash(module_full_path, home_branch_name, module_name)
30
32
  end
31
33
 
32
34
  def push(path, user, module_name, home_branch_name, type, comment)
@@ -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?
@@ -1,3 +1,3 @@
1
1
  module BigKeeper
2
- VERSION = "3.0.8"
2
+ VERSION = "3.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kookeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.8
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmoaay