kookeeper 3.0.6 → 3.0.9

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: 33a8bec3932e96c58808fe6b50e205f181c58df2a24172b7cd2191064e973a2c
4
- data.tar.gz: cad57a9f7876441d4b3224d7351988a1b7062b9ad34a9e77e9997d92cb799ecb
3
+ metadata.gz: 886b326b907296e3ddeeac5e62b4614815151265401e5b67bf34a59af4174c2f
4
+ data.tar.gz: d5a76a7cb2bcca2271c1536946f2a5f07aab71542bc83c19318f6b4e0a26baa9
5
5
  SHA512:
6
- metadata.gz: ac32efeef82e52182881b5f160dde2ca17b283f02841bb5c99d0ee535ecf723597edf0ba259d7a1b3f142a77274af628589126f7ff069be749836ef19318669f
7
- data.tar.gz: 9e8a021e6439a697e6dc0456d090c0db703973a4f2e1b3e3c4d9986f076cd57334838da2c70ee55e996354c7f74aad3b5d162b0d4310a7e040c62a052e1087d4
6
+ metadata.gz: cdc9706567ef75dc19977213a4ba85b1ef3f2433411d5604aa7dfd0da201ba896638843b9ac15338765dd6df2647f5ff26286d1a2f9d1e65f62b08dfc8d5a136
7
+ data.tar.gz: 01161b62cae921cb92e5e91b99b9d2a97f6968e39bc4b4bb50ccd8c721e5b1e316d253567f2a6f4bcdc35202567c803a968aa7ebcbbfda10f8e7449dbf87bd12
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kookeeper (3.0.6)
4
+ kookeeper (3.0.9)
5
5
  big_resources
6
6
  big_stash (~> 0.1)
7
7
  cocoapods
@@ -17,7 +17,7 @@ require 'big_keeper/service/module_service'
17
17
 
18
18
 
19
19
  module BigKeeper
20
- def self.start(path, version, user, name, modules, type)
20
+ def self.start(path, version, user, modules, type)
21
21
  begin
22
22
  # Parse Bigkeeper file
23
23
  p "----------1.开始解析#{path}/Bigkeeper"
@@ -26,7 +26,9 @@ module BigKeeper
26
26
  version = BigkeeperParser.version if version == 'Version in Bigkeeper file'
27
27
 
28
28
  p "----------2.version:#{version}"
29
- full_name = "#{version}_#{user}_#{name}"
29
+
30
+ full_name = "#{version}"
31
+ #full_name = "#{version}_#{user}_#{name}"
30
32
  p "----------3.full_name:#{full_name}"
31
33
  branch_name = "#{GitflowType.name(type)}/#{full_name}"
32
34
  p "----------4.branch_name:#{branch_name}"
@@ -10,34 +10,36 @@ module BigKeeper
10
10
  def self.switch_to(path, version, user, full_name, type)
11
11
  begin
12
12
  # Parse Bigkeeper file
13
+ p "1.switch_to #{version} 解析Bigkeeper"
13
14
  BigkeeperParser.parse("#{path}/Bigkeeper")
14
15
 
15
16
  version = BigkeeperParser.version if version == 'Version in Bigkeeper file'
16
17
  branch_name = "#{GitflowType.name(type)}/#{full_name}"
17
-
18
- GitService.new.verify_home_branch(path, branch_name, OperateType::SWITCH)
18
+ ModuleCacheOperator.new(path).cache_branch_name(branch_name)
19
+ home_branch_name = "release/#{full_name}"
20
+ GitService.new.verify_home_branch(path, home_branch_name, OperateType::SWITCH)
19
21
 
20
22
  stash_modules = ModuleCacheOperator.new(path).all_path_modules
21
-
23
+ p "2.switch_to 暂存所有"
22
24
  # Stash current branch
23
- StashService.new.stash_all(path, branch_name, user, stash_modules)
24
-
25
+ StashService.new.stash_all(path, branch_name, user, stash_modules,full_name)
26
+ p "3.switch_to checkout #{home_branch_name}"
25
27
  # Switch to new feature
26
- GitOperator.new.checkout(path, branch_name)
28
+ GitOperator.new.checkout(path, home_branch_name)
27
29
  GitOperator.new.pull(path)
28
-
30
+ p "4.switch_to"
29
31
  # Apply home stash
30
- StashService.new.pop_stash(path, branch_name, 'Home')
32
+ StashService.new.pop_stash(path, home_branch_name, 'Home')
31
33
 
32
34
  modules = ModuleCacheOperator.new(path).all_path_modules
33
35
 
34
36
  modules.each do |module_name|
35
37
  ModuleService.new.switch_to(path, user, module_name, branch_name, type)
36
38
  end
37
-
39
+ p "5.switch_to"
38
40
  # Install
39
41
  DepService.dep_operator(path, user).install(false)
40
-
42
+ p "6.switch_to"
41
43
  # Open home workspace
42
44
  DepService.dep_operator(path, user).open
43
45
  ensure
@@ -24,9 +24,11 @@ module BigKeeper
24
24
 
25
25
  help_now!('user name is required') if user and user.empty?
26
26
  help_now!("#{GitflowType.name(type)} name is required") if args.length < 1
27
- name = args[0]
28
- modules = args[(1...args.length)] if args.length > 1
29
- start(path, version, user, name, modules, type)
27
+ #name = args[0]
28
+ #modules = args[(1...args.length)] if args.length > 1
29
+ modules = args[(0...args.length)] if args.length > 0
30
+ #start(path, version, user, name, modules, type)
31
+ start(path, version, user, modules, type)
30
32
  end
31
33
  end
32
34
 
@@ -1,3 +1,3 @@
1
1
  module BigKeeper
2
- VERSION = "3.0.6"
2
+ VERSION = "3.0.9"
3
3
  end
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.6
4
+ version: 3.0.9
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-12 00:00:00.000000000 Z
11
+ date: 2022-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli