kookeeper 3.0.7 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57f6a3e487540db4bdd18bf917a4ae6a6da9a01b5c703cc93ac1ff7fc44ea3c7
4
- data.tar.gz: e8bf371127fe93b66c29bde4fc4d5dbcb4a19448cdc49706835bba5614929af1
3
+ metadata.gz: cfabea23fd7bf2e0197cbf2c147a2f3684c85fc9e580633086fda7c6c8bc4b6c
4
+ data.tar.gz: 1ebb55ae84fa925a6a9bd6ee0b95591d6bee0c8a85a503d8272a27d7eec6d4f7
5
5
  SHA512:
6
- metadata.gz: 1b96c0d5aa8e3dca7eb245e11a99c6dc7981ff6d0592f2d2aa003219d259cec3b1e936e44d2e1726601720b4a42314997cf5e8702b82f3dc5c0ec029b44208a4
7
- data.tar.gz: 0a45a6cd29b64e31a99dfa6e95c5e334111e88c50c2bc6b2e854e19f5d7f2bd13dba5f681b87045a773db8526dcf4c9fa3c28a477c446c810ac2835d2feef3b9
6
+ metadata.gz: 40b2dce0ab4c9b0b2b1e99c1677c0b1c002a070c5b363040b22e37d99d4455d390edb923ea548beadb3bd0e5eec5a02d1bd2b7b1f9f1f655346b4ac15c94ae7f
7
+ data.tar.gz: 1c7ef42ff4c4e239f19fe7efba66a5ab2aa66cbbc7ea7fe8ae86b340bf158fbc364cd8623d08f704c8903cf67572a10c44bdf23c40aee0ba3c5fbc619936a1fd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kookeeper (3.0.7)
4
+ kookeeper (3.1.0)
5
5
  big_resources
6
6
  big_stash (~> 0.1)
7
7
  cocoapods
@@ -15,13 +15,14 @@ module BigKeeper
15
15
 
16
16
  version = BigkeeperParser.version if version == 'Version in Bigkeeper file'
17
17
  branch_name = "#{GitflowType.name(type)}/#{full_name}"
18
+ ModuleCacheOperator.new(path).cache_branch_name(branch_name)
18
19
  home_branch_name = "release/#{full_name}"
19
20
  GitService.new.verify_home_branch(path, home_branch_name, OperateType::SWITCH)
20
21
 
21
22
  stash_modules = ModuleCacheOperator.new(path).all_path_modules
22
23
  p "2.switch_to 暂存所有"
23
24
  # Stash current branch
24
- StashService.new.stash_all(path, branch_name, user, stash_modules,version)
25
+ StashService.new.stash_all(path, branch_name, user, stash_modules,full_name)
25
26
  p "3.switch_to checkout #{home_branch_name}"
26
27
  # Switch to new feature
27
28
  GitOperator.new.checkout(path, home_branch_name)
@@ -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}分支"
@@ -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.7"
2
+ VERSION = "3.1.0"
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.7
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmoaay