kookeeper 3.0.6 → 3.0.7

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: 57f6a3e487540db4bdd18bf917a4ae6a6da9a01b5c703cc93ac1ff7fc44ea3c7
4
+ data.tar.gz: e8bf371127fe93b66c29bde4fc4d5dbcb4a19448cdc49706835bba5614929af1
5
5
  SHA512:
6
- metadata.gz: ac32efeef82e52182881b5f160dde2ca17b283f02841bb5c99d0ee535ecf723597edf0ba259d7a1b3f142a77274af628589126f7ff069be749836ef19318669f
7
- data.tar.gz: 9e8a021e6439a697e6dc0456d090c0db703973a4f2e1b3e3c4d9986f076cd57334838da2c70ee55e996354c7f74aad3b5d162b0d4310a7e040c62a052e1087d4
6
+ metadata.gz: 1b96c0d5aa8e3dca7eb245e11a99c6dc7981ff6d0592f2d2aa003219d259cec3b1e936e44d2e1726601720b4a42314997cf5e8702b82f3dc5c0ec029b44208a4
7
+ data.tar.gz: 0a45a6cd29b64e31a99dfa6e95c5e334111e88c50c2bc6b2e854e19f5d7f2bd13dba5f681b87045a773db8526dcf4c9fa3c28a477c446c810ac2835d2feef3b9
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.7)
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,35 @@ 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
+ home_branch_name = "release/#{full_name}"
19
+ GitService.new.verify_home_branch(path, home_branch_name, OperateType::SWITCH)
19
20
 
20
21
  stash_modules = ModuleCacheOperator.new(path).all_path_modules
21
-
22
+ p "2.switch_to 暂存所有"
22
23
  # Stash current branch
23
- StashService.new.stash_all(path, branch_name, user, stash_modules)
24
-
24
+ StashService.new.stash_all(path, branch_name, user, stash_modules,version)
25
+ p "3.switch_to checkout #{home_branch_name}"
25
26
  # Switch to new feature
26
- GitOperator.new.checkout(path, branch_name)
27
+ GitOperator.new.checkout(path, home_branch_name)
27
28
  GitOperator.new.pull(path)
28
-
29
+ p "4.switch_to"
29
30
  # Apply home stash
30
- StashService.new.pop_stash(path, branch_name, 'Home')
31
+ StashService.new.pop_stash(path, home_branch_name, 'Home')
31
32
 
32
33
  modules = ModuleCacheOperator.new(path).all_path_modules
33
34
 
34
35
  modules.each do |module_name|
35
36
  ModuleService.new.switch_to(path, user, module_name, branch_name, type)
36
37
  end
37
-
38
+ p "5.switch_to"
38
39
  # Install
39
40
  DepService.dep_operator(path, user).install(false)
40
-
41
+ p "6.switch_to"
41
42
  # Open home workspace
42
43
  DepService.dep_operator(path, user).open
43
44
  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.7"
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.7
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