kookeeper 3.0.9 → 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: 886b326b907296e3ddeeac5e62b4614815151265401e5b67bf34a59af4174c2f
4
- data.tar.gz: d5a76a7cb2bcca2271c1536946f2a5f07aab71542bc83c19318f6b4e0a26baa9
3
+ metadata.gz: cfabea23fd7bf2e0197cbf2c147a2f3684c85fc9e580633086fda7c6c8bc4b6c
4
+ data.tar.gz: 1ebb55ae84fa925a6a9bd6ee0b95591d6bee0c8a85a503d8272a27d7eec6d4f7
5
5
  SHA512:
6
- metadata.gz: cdc9706567ef75dc19977213a4ba85b1ef3f2433411d5604aa7dfd0da201ba896638843b9ac15338765dd6df2647f5ff26286d1a2f9d1e65f62b08dfc8d5a136
7
- data.tar.gz: 01161b62cae921cb92e5e91b99b9d2a97f6968e39bc4b4bb50ccd8c721e5b1e316d253567f2a6f4bcdc35202567c803a968aa7ebcbbfda10f8e7449dbf87bd12
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.9)
4
+ kookeeper (3.1.0)
5
5
  big_resources
6
6
  big_stash (~> 0.1)
7
7
  cocoapods
@@ -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.9"
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.9
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmoaay