kookeeper 3.0.0 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/.idea/.gitignore +8 -0
  3. data/.idea/bigkeeper.iml +68 -0
  4. data/.idea/modules.xml +8 -0
  5. data/.idea/vcs.xml +6 -0
  6. data/Gemfile.lock +68 -48
  7. data/big_keeper.gemspec +3 -3
  8. data/bin/big +1 -1
  9. data/bin/koo +1 -1
  10. data/lib/big_keeper/command/feature&hotfix/delete.rb +1 -1
  11. data/lib/big_keeper/command/feature&hotfix/finish.rb +2 -2
  12. data/lib/big_keeper/command/feature&hotfix/list.rb +1 -1
  13. data/lib/big_keeper/command/feature&hotfix/publish.rb +2 -2
  14. data/lib/big_keeper/command/feature&hotfix/start.rb +2 -2
  15. data/lib/big_keeper/command/feature&hotfix/switch.rb +2 -2
  16. data/lib/big_keeper/command/feature&hotfix/update.rb +2 -2
  17. data/lib/big_keeper/command/pod/podfile.rb +13 -16
  18. data/lib/big_keeper/command/pod.rb +5 -18
  19. data/lib/big_keeper/command/release/home.rb +1 -2
  20. data/lib/big_keeper/command/release/module.rb +0 -4
  21. data/lib/big_keeper/command/release.rb +0 -25
  22. data/lib/big_keeper/dependency/dep_gradle_operator.rb +29 -47
  23. data/lib/big_keeper/dependency/dep_operator.rb +1 -17
  24. data/lib/big_keeper/dependency/dep_pod_operator.rb +10 -10
  25. data/lib/big_keeper/model/operate_type.rb +0 -3
  26. data/lib/big_keeper/service/git_service.rb +2 -3
  27. data/lib/big_keeper/service/module_service.rb +0 -65
  28. data/lib/big_keeper/util/bigkeeper_parser.rb +1 -17
  29. data/lib/big_keeper/util/cache_operator.rb +4 -6
  30. data/lib/big_keeper/util/file_operator.rb +1 -1
  31. data/lib/big_keeper/util/git_operator.rb +4 -25
  32. data/lib/big_keeper/util/gradle_operator.rb +209 -0
  33. data/lib/big_keeper/util/leancloud_logger.rb +7 -19
  34. data/lib/big_keeper/util/list_generator.rb +2 -2
  35. data/lib/big_keeper/util/logger.rb +1 -2
  36. data/lib/big_keeper/util/podfile_detector.rb +44 -35
  37. data/lib/big_keeper/util/podfile_module.rb +1 -1
  38. data/lib/big_keeper/util/podfile_operator.rb +8 -16
  39. data/lib/big_keeper/version.rb +1 -1
  40. data/lib/big_keeper.rb +9 -19
  41. metadata +14 -25
  42. data/.github/ISSUE_TEMPLATE.md +0 -20
  43. data/.gitignore +0 -50
  44. data/.travis.yml +0 -19
  45. data/Rakefile +0 -2
  46. data/lib/big_keeper/command/client.rb +0 -50
  47. data/lib/big_keeper/command/init.rb +0 -36
  48. data/lib/big_keeper/command/release/finish.rb +0 -36
  49. data/lib/big_keeper/command/release/publish.rb +0 -4
  50. data/lib/big_keeper/command/release/start.rb +0 -78
  51. data/lib/big_keeper/util/command_line_util.rb +0 -9
  52. data/lib/big_keeper/util/gradle_content_generator.rb +0 -26
  53. data/lib/big_keeper/util/gradle_file_operator.rb +0 -339
  54. data/lib/big_keeper/util/gradle_module_operator.rb +0 -70
  55. data/lib/big_keeper/util/lockfile_parser.rb +0 -143
  56. data/lib/big_keeper/util/version_config_operator.rb +0 -29
  57. data/resources/template/Bigkeeper +0 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d36fdf5465248b90d89b30de6fa782f2defb292196f2c62bb6aae917c9969aa2
4
- data.tar.gz: 3de53403a6ffa7a37355a40a104d5efae022659cb84acf8dad5bd4945ec525c5
3
+ metadata.gz: 392f6b968d0b0342ab566d1a46c798b36111dc20d225965be367610e29d7ced2
4
+ data.tar.gz: 6793a55d9248c6ed2d6f59c8c72bbd4351001b3971f5b3968bf401b86c18d44b
5
5
  SHA512:
6
- metadata.gz: 9d03c94d57ca93bb45efc0bc870dc56c0bb9da817df7276ea6be58161d7a76a498ca20de5cbe94af809bf95e1d7b954d113152a27aea973c9119e72a42dffa62
7
- data.tar.gz: 27746afa3f6ba1549a096579e698523d90a96ae93c1024db4cc93d3cddd4f01014f699aad58d5befee51675824684bed0e41aa87820b658b09d9460616aad3bf
6
+ metadata.gz: 2b83e38623f0294e25f509207070bfb108ef9304918f216cb7d067f15b164952a7095b241f77641c4e72cdf5ae395ae6cf75503d9510260834371379f3d03036
7
+ data.tar.gz: 2873e13e8ecc546b4dcf068b00cf87d60d476d697c2593ca73f00894fc52c56465f7b2e17e7ce651e5b6e3309e9afcbf49b5eb237926e12af3028d54b0c2352f
data/.idea/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ # 默认忽略的文件
2
+ /shelf/
3
+ /workspace.xml
4
+ # 基于编辑器的 HTTP 客户端请求
5
+ /httpRequests/
6
+ # Datasource local storage ignored files
7
+ /dataSources/
8
+ /dataSources.local.xml
@@ -0,0 +1,68 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$">
8
+ <sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
9
+ <sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
10
+ <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
11
+ </content>
12
+ <orderEntry type="jdk" jdkName="RVM: ruby-2.5.0" jdkType="RUBY_SDK" />
13
+ <orderEntry type="sourceFolder" forTests="false" />
14
+ <orderEntry type="library" scope="PROVIDED" name="CFPropertyList (v3.0.5, RVM: ruby-2.5.0) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="activesupport (v5.2.7, RVM: ruby-2.5.0) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="addressable (v2.8.0, RVM: ruby-2.5.0) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="algoliasearch (v1.27.5, RVM: ruby-2.5.0) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, RVM: ruby-2.5.0) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="atomos (v0.1.3, RVM: ruby-2.5.0) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="big_resources (v0.1.3, RVM: ruby-2.5.0) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="big_stash (v0.6.0, RVM: ruby-2.5.0) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.17.3, RVM: ruby-2.5.0) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="chunky_png (v1.4.0, RVM: ruby-2.5.0) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="claide (v1.1.0, RVM: ruby-2.5.0) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="cocoapods (v1.10.2, RVM: ruby-2.5.0) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="cocoapods-core (v1.10.2, RVM: ruby-2.5.0) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="cocoapods-deintegrate (v1.0.5, RVM: ruby-2.5.0) [gem]" level="application" />
28
+ <orderEntry type="library" scope="PROVIDED" name="cocoapods-downloader (v1.6.3, RVM: ruby-2.5.0) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="cocoapods-plugins (v1.0.0, RVM: ruby-2.5.0) [gem]" level="application" />
30
+ <orderEntry type="library" scope="PROVIDED" name="cocoapods-search (v1.0.1, RVM: ruby-2.5.0) [gem]" level="application" />
31
+ <orderEntry type="library" scope="PROVIDED" name="cocoapods-trunk (v1.6.0, RVM: ruby-2.5.0) [gem]" level="application" />
32
+ <orderEntry type="library" scope="PROVIDED" name="cocoapods-try (v1.2.0, RVM: ruby-2.5.0) [gem]" level="application" />
33
+ <orderEntry type="library" scope="PROVIDED" name="colored2 (v3.1.2, RVM: ruby-2.5.0) [gem]" level="application" />
34
+ <orderEntry type="library" scope="PROVIDED" name="colorize (v0.8.1, RVM: ruby-2.5.0) [gem]" level="application" />
35
+ <orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.1.10, RVM: ruby-2.5.0) [gem]" level="application" />
36
+ <orderEntry type="library" scope="PROVIDED" name="escape (v0.0.4, RVM: ruby-2.5.0) [gem]" level="application" />
37
+ <orderEntry type="library" scope="PROVIDED" name="ethon (v0.15.0, RVM: ruby-2.5.0) [gem]" level="application" />
38
+ <orderEntry type="library" scope="PROVIDED" name="ffi (v1.15.5, RVM: ruby-2.5.0) [gem]" level="application" />
39
+ <orderEntry type="library" scope="PROVIDED" name="fourflusher (v2.3.1, RVM: ruby-2.5.0) [gem]" level="application" />
40
+ <orderEntry type="library" scope="PROVIDED" name="fuzzy_match (v2.0.4, RVM: ruby-2.5.0) [gem]" level="application" />
41
+ <orderEntry type="library" scope="PROVIDED" name="gh_inspector (v1.1.3, RVM: ruby-2.5.0) [gem]" level="application" />
42
+ <orderEntry type="library" scope="PROVIDED" name="gli (v2.21.0, RVM: ruby-2.5.0) [gem]" level="application" />
43
+ <orderEntry type="library" scope="PROVIDED" name="httpclient (v2.8.3, RVM: ruby-2.5.0) [gem]" level="application" />
44
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v1.10.0, RVM: ruby-2.5.0) [gem]" level="application" />
45
+ <orderEntry type="library" scope="PROVIDED" name="json (v2.6.1, RVM: ruby-2.5.0) [gem]" level="application" />
46
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.15.0, RVM: ruby-2.5.0) [gem]" level="application" />
47
+ <orderEntry type="library" scope="PROVIDED" name="molinillo (v0.6.6, RVM: ruby-2.5.0) [gem]" level="application" />
48
+ <orderEntry type="library" scope="PROVIDED" name="nanaimo (v0.3.0, RVM: ruby-2.5.0) [gem]" level="application" />
49
+ <orderEntry type="library" scope="PROVIDED" name="nap (v1.1.0, RVM: ruby-2.5.0) [gem]" level="application" />
50
+ <orderEntry type="library" scope="PROVIDED" name="netrc (v0.11.0, RVM: ruby-2.5.0) [gem]" level="application" />
51
+ <orderEntry type="library" scope="PROVIDED" name="parallel (v1.22.1, RVM: ruby-2.5.0) [gem]" level="application" />
52
+ <orderEntry type="library" scope="PROVIDED" name="parser (v2.7.2.0, RVM: ruby-2.5.0) [gem]" level="application" />
53
+ <orderEntry type="library" scope="PROVIDED" name="plist (v3.6.0, RVM: ruby-2.5.0) [gem]" level="application" />
54
+ <orderEntry type="library" scope="PROVIDED" name="powerpack (v0.1.3, RVM: ruby-2.5.0) [gem]" level="application" />
55
+ <orderEntry type="library" scope="PROVIDED" name="public_suffix (v4.0.6, RVM: ruby-2.5.0) [gem]" level="application" />
56
+ <orderEntry type="library" scope="PROVIDED" name="rainbow (v2.2.2, RVM: ruby-2.5.0) [gem]" level="application" />
57
+ <orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, RVM: ruby-2.5.0) [gem]" level="application" />
58
+ <orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.5, RVM: ruby-2.5.0) [gem]" level="application" />
59
+ <orderEntry type="library" scope="PROVIDED" name="rubocop (v0.50.0, RVM: ruby-2.5.0) [gem]" level="application" />
60
+ <orderEntry type="library" scope="PROVIDED" name="ruby-macho (v1.4.0, RVM: ruby-2.5.0) [gem]" level="application" />
61
+ <orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.11.0, RVM: ruby-2.5.0) [gem]" level="application" />
62
+ <orderEntry type="library" scope="PROVIDED" name="thread_safe (v0.3.6, RVM: ruby-2.5.0) [gem]" level="application" />
63
+ <orderEntry type="library" scope="PROVIDED" name="typhoeus (v1.4.0, RVM: ruby-2.5.0) [gem]" level="application" />
64
+ <orderEntry type="library" scope="PROVIDED" name="tzinfo (v1.2.9, RVM: ruby-2.5.0) [gem]" level="application" />
65
+ <orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v1.8.0, RVM: ruby-2.5.0) [gem]" level="application" />
66
+ <orderEntry type="library" scope="PROVIDED" name="xcodeproj (v1.21.0, RVM: ruby-2.5.0) [gem]" level="application" />
67
+ </component>
68
+ </module>
data/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/bigkeeper.iml" filepath="$PROJECT_DIR$/.idea/bigkeeper.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kookeeper (1.0.0)
4
+ kookeeper (3.0.3)
5
5
  big_resources
6
6
  big_stash (~> 0.1)
7
7
  cocoapods
@@ -12,15 +12,21 @@ PATH
12
12
  GEM
13
13
  remote: https://gems.ruby-china.com/
14
14
  specs:
15
- CFPropertyList (3.0.0)
16
- activesupport (4.2.11.1)
17
- i18n (~> 0.7)
15
+ CFPropertyList (3.0.5)
16
+ rexml
17
+ activesupport (5.2.7)
18
+ concurrent-ruby (~> 1.0, >= 1.0.2)
19
+ i18n (>= 0.7, < 2)
18
20
  minitest (~> 5.1)
19
- thread_safe (~> 0.3, >= 0.3.4)
20
21
  tzinfo (~> 1.1)
21
- ast (2.4.0)
22
+ addressable (2.8.0)
23
+ public_suffix (>= 2.0.2, < 5.0)
24
+ algoliasearch (1.27.5)
25
+ httpclient (~> 2.8, >= 2.8.3)
26
+ json (>= 1.5.1)
27
+ ast (2.4.2)
22
28
  atomos (0.1.3)
23
- big_resources (0.1.2)
29
+ big_resources (0.1.3)
24
30
  chunky_png
25
31
  cocoapods
26
32
  colorize
@@ -28,64 +34,75 @@ GEM
28
34
  plist
29
35
  big_stash (0.6.0)
30
36
  gli (~> 2.16)
31
- chunky_png (1.3.11)
32
- claide (1.0.2)
33
- cocoapods (1.5.0)
34
- activesupport (>= 4.0.2, < 5)
37
+ chunky_png (1.4.0)
38
+ claide (1.1.0)
39
+ cocoapods (1.10.2)
40
+ addressable (~> 2.6)
35
41
  claide (>= 1.0.2, < 2.0)
36
- cocoapods-core (= 1.5.0)
37
- cocoapods-deintegrate (>= 1.0.2, < 2.0)
38
- cocoapods-downloader (>= 1.2.0, < 2.0)
42
+ cocoapods-core (= 1.10.2)
43
+ cocoapods-deintegrate (>= 1.0.3, < 2.0)
44
+ cocoapods-downloader (>= 1.4.0, < 2.0)
39
45
  cocoapods-plugins (>= 1.0.0, < 2.0)
40
46
  cocoapods-search (>= 1.0.0, < 2.0)
41
- cocoapods-stats (>= 1.0.0, < 2.0)
42
- cocoapods-trunk (>= 1.3.0, < 2.0)
47
+ cocoapods-trunk (>= 1.4.0, < 2.0)
43
48
  cocoapods-try (>= 1.1.0, < 2.0)
44
49
  colored2 (~> 3.1)
45
50
  escape (~> 0.0.4)
46
- fourflusher (~> 2.0.1)
51
+ fourflusher (>= 2.3.0, < 3.0)
47
52
  gh_inspector (~> 1.0)
48
- molinillo (~> 0.6.5)
53
+ molinillo (~> 0.6.6)
49
54
  nap (~> 1.0)
50
- ruby-macho (~> 1.1)
51
- xcodeproj (>= 1.5.7, < 2.0)
52
- cocoapods-core (1.5.0)
53
- activesupport (>= 4.0.2, < 6)
55
+ ruby-macho (~> 1.4)
56
+ xcodeproj (>= 1.19.0, < 2.0)
57
+ cocoapods-core (1.10.2)
58
+ activesupport (> 5.0, < 6)
59
+ addressable (~> 2.6)
60
+ algoliasearch (~> 1.0)
61
+ concurrent-ruby (~> 1.1)
54
62
  fuzzy_match (~> 2.0.4)
55
63
  nap (~> 1.0)
56
- cocoapods-deintegrate (1.0.4)
57
- cocoapods-downloader (1.2.2)
64
+ netrc (~> 0.11)
65
+ public_suffix
66
+ typhoeus (~> 1.0)
67
+ cocoapods-deintegrate (1.0.5)
68
+ cocoapods-downloader (1.6.3)
58
69
  cocoapods-plugins (1.0.0)
59
70
  nap
60
- cocoapods-search (1.0.0)
61
- cocoapods-stats (1.1.0)
62
- cocoapods-trunk (1.3.1)
71
+ cocoapods-search (1.0.1)
72
+ cocoapods-trunk (1.6.0)
63
73
  nap (>= 0.8, < 2.0)
64
74
  netrc (~> 0.11)
65
- cocoapods-try (1.1.0)
75
+ cocoapods-try (1.2.0)
66
76
  colored2 (3.1.2)
67
77
  colorize (0.8.1)
68
- concurrent-ruby (1.1.5)
78
+ concurrent-ruby (1.1.10)
69
79
  escape (0.0.4)
70
- fourflusher (2.0.1)
80
+ ethon (0.15.0)
81
+ ffi (>= 1.15.0)
82
+ ffi (1.15.5)
83
+ fourflusher (2.3.1)
71
84
  fuzzy_match (2.0.4)
72
85
  gh_inspector (1.1.3)
73
- gli (2.18.0)
74
- i18n (0.9.5)
86
+ gli (2.21.0)
87
+ httpclient (2.8.3)
88
+ i18n (1.10.0)
75
89
  concurrent-ruby (~> 1.0)
76
- minitest (5.11.3)
90
+ json (2.6.1)
91
+ minitest (5.15.0)
77
92
  molinillo (0.6.6)
78
- nanaimo (0.2.6)
93
+ nanaimo (0.3.0)
79
94
  nap (1.1.0)
80
95
  netrc (0.11.0)
81
- parallel (1.12.1)
82
- parser (2.5.1.2)
83
- ast (~> 2.4.0)
84
- plist (3.5.0)
85
- powerpack (0.1.2)
96
+ parallel (1.22.1)
97
+ parser (2.7.2.0)
98
+ ast (~> 2.4.1)
99
+ plist (3.6.0)
100
+ powerpack (0.1.3)
101
+ public_suffix (4.0.6)
86
102
  rainbow (2.2.2)
87
103
  rake
88
- rake (10.5.0)
104
+ rake (13.0.6)
105
+ rexml (3.2.5)
89
106
  rubocop (0.50.0)
90
107
  parallel (~> 1.10)
91
108
  parser (>= 2.3.3.1, < 3.0)
@@ -94,32 +111,35 @@ GEM
94
111
  ruby-progressbar (~> 1.7)
95
112
  unicode-display_width (~> 1.0, >= 1.0.1)
96
113
  ruby-macho (1.4.0)
97
- ruby-progressbar (1.9.0)
114
+ ruby-progressbar (1.11.0)
98
115
  thread_safe (0.3.6)
99
- tzinfo (1.2.5)
116
+ typhoeus (1.4.0)
117
+ ethon (>= 0.9.0)
118
+ tzinfo (1.2.9)
100
119
  thread_safe (~> 0.1)
101
- unicode-display_width (1.4.0)
102
- xcodeproj (1.8.2)
120
+ unicode-display_width (1.8.0)
121
+ xcodeproj (1.21.0)
103
122
  CFPropertyList (>= 2.3.3, < 4.0)
104
123
  atomos (~> 0.1.3)
105
124
  claide (>= 1.0.2, < 2.0)
106
125
  colored2 (~> 3.1)
107
- nanaimo (~> 0.2.6)
126
+ nanaimo (~> 0.3.0)
127
+ rexml (~> 3.2.4)
108
128
 
109
129
  PLATFORMS
110
130
  ruby
111
131
 
112
132
  DEPENDENCIES
113
- big_resources (~> 0.1.2)
133
+ big_resources
114
134
  big_stash (~> 0.1)
115
- bigkeeper!
116
135
  bundler (~> 1.15)
117
136
  cocoapods
118
137
  colorize
119
138
  gli (~> 2.16)
139
+ kookeeper!
120
140
  plist
121
141
  rake
122
142
  rubocop (~> 0.50.0)
123
143
 
124
144
  BUNDLED WITH
125
- 1.17.2
145
+ 1.17.3
data/big_keeper.gemspec CHANGED
@@ -6,8 +6,8 @@ require "big_keeper/version"
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "kookeeper"
8
8
  spec.version = BigKeeper::VERSION
9
- spec.authors = ["weiyanwu"]
10
- spec.email = ["2126724184@qq.com"]
9
+ spec.authors = ["mmoaay"]
10
+ spec.email = ["mmoaay@sina.com"]
11
11
 
12
12
  spec.summary = %q{Efficiency improvement for iOS&Android modular development.}
13
13
  spec.description = %q{Efficiency improvement for iOS&Android modular development, iOSer&Androider using this tool can make modular development easier.}
@@ -42,7 +42,7 @@ Gem::Specification.new do |spec|
42
42
  spec.add_development_dependency "rake", "~> 10.0"
43
43
  spec.add_development_dependency "gli", "~> 2.16"
44
44
  spec.add_development_dependency "big_stash", "~> 0.1"
45
- spec.add_development_dependency "big_resources", "~> 0.1.2"
45
+ spec.add_development_dependency "big_resources"
46
46
  spec.add_development_dependency "cocoapods"
47
47
  spec.add_development_dependency "plist"
48
48
  spec.add_development_dependency "colorize"
data/bin/big CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- #require "bundler/setup"
3
+ # require "bundler/setup"
4
4
  require "big_keeper"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
data/bin/koo CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- #require "bundler/setup"
3
+ # require "bundler/setup"
4
4
  require "big_keeper"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
@@ -20,9 +20,9 @@ module BigKeeper
20
20
  # Parse Bigkeeper file
21
21
  BigkeeperParser.parse("#{path}/Bigkeeper")
22
22
  branch_name = "#{GitflowType.name(type)}/#{name}"
23
- version = 'all version'
24
23
 
25
24
  modules = BigkeeperParser.module_names
25
+
26
26
  modules.each do |module_name|
27
27
  module_full_path = BigkeeperParser.module_full_path(path, user, module_name)
28
28
 
@@ -6,7 +6,7 @@ require 'big_keeper/util/pod_operator'
6
6
  require 'big_keeper/util/xcode_operator'
7
7
  require 'big_keeper/util/cache_operator'
8
8
  require 'big_keeper/util/bigkeeper_parser'
9
- require 'big_keeper/model/operate_type'
9
+
10
10
  require 'big_keeper/dependency/dep_service'
11
11
 
12
12
  require 'big_keeper/dependency/dep_type'
@@ -41,7 +41,7 @@ module BigKeeper
41
41
  ModuleCacheOperator.new(path).cache_path_modules([], [], [])
42
42
 
43
43
  # Install
44
- DepService.dep_operator(path, user).install(modules, OperateType::FINISH, false)
44
+ DepService.dep_operator(path, user).install(false)
45
45
 
46
46
  # Open home workspace
47
47
  DepService.dep_operator(path, user).open
@@ -19,7 +19,7 @@ module BigKeeper
19
19
  begin
20
20
  #get cache file path
21
21
  FileUtils.mkdir_p(cache_path) unless File.exist?(cache_path)
22
- file = File.new(json_path, 'w', :encoding => 'UTF-8')
22
+ file = File.new(json_path, 'w')
23
23
  begin
24
24
  #get all modules info
25
25
  module_list_dic = get_module_info(path, user, type, version, branches, is_print_log)
@@ -6,7 +6,7 @@ require 'big_keeper/util/pod_operator'
6
6
  require 'big_keeper/util/xcode_operator'
7
7
  require 'big_keeper/util/cache_operator'
8
8
  require 'big_keeper/util/bigkeeper_parser'
9
- require 'big_keeper/model/operate_type'
9
+
10
10
  require 'big_keeper/dependency/dep_service'
11
11
 
12
12
  require 'big_keeper/dependency/dep_type'
@@ -32,7 +32,7 @@ module BigKeeper
32
32
  end
33
33
 
34
34
  # Install
35
- DepService.dep_operator(path, user).install(modules, OperateType::PUBLISH, false)
35
+ DepService.dep_operator(path, user).install(false)
36
36
 
37
37
  # Modify module as git
38
38
  modules.each do |module_name|
@@ -7,7 +7,7 @@ require 'big_keeper/util/logger'
7
7
  require 'big_keeper/util/pod_operator'
8
8
  require 'big_keeper/util/xcode_operator'
9
9
  require 'big_keeper/util/cache_operator'
10
- require 'big_keeper/model/operate_type'
10
+
11
11
  require 'big_keeper/dependency/dep_service'
12
12
 
13
13
  require 'big_keeper/dependency/dep_type'
@@ -56,7 +56,7 @@ module BigKeeper
56
56
  end
57
57
 
58
58
  # install
59
- DepService.dep_operator(path, user).install(modules, OperateType::START, true)
59
+ DepService.dep_operator(path, user).install(true)
60
60
 
61
61
  # Open home workspace
62
62
  DepService.dep_operator(path, user).open
@@ -3,7 +3,7 @@ require 'big_stash/stash_operator'
3
3
  require 'big_keeper/util/logger'
4
4
  require 'big_keeper/util/pod_operator'
5
5
  require 'big_keeper/util/xcode_operator'
6
- require 'big_keeper/model/operate_type'
6
+
7
7
  require 'big_keeper/dependency/dep_service'
8
8
 
9
9
  module BigKeeper
@@ -36,7 +36,7 @@ module BigKeeper
36
36
  end
37
37
 
38
38
  # Install
39
- DepService.dep_operator(path, user).install(modules, OperateType::SWITCH, false)
39
+ DepService.dep_operator(path, user).install(false)
40
40
 
41
41
  # Open home workspace
42
42
  DepService.dep_operator(path, user).open
@@ -7,7 +7,7 @@ require 'big_keeper/util/logger'
7
7
  require 'big_keeper/util/pod_operator'
8
8
  require 'big_keeper/util/xcode_operator'
9
9
  require 'big_keeper/util/cache_operator'
10
- require 'big_keeper/model/operate_type'
10
+
11
11
  require 'big_keeper/dependency/dep_service'
12
12
 
13
13
  require 'big_keeper/dependency/dep_type'
@@ -56,7 +56,7 @@ module BigKeeper
56
56
  end
57
57
 
58
58
  # Install
59
- DepService.dep_operator(path, user).install(modules, OperateType::UPDATE, false)
59
+ DepService.dep_operator(path, user).install(false)
60
60
 
61
61
  # Open home workspace
62
62
  DepService.dep_operator(path, user).open
@@ -5,7 +5,6 @@ require 'big_keeper/util/gitflow_operator'
5
5
  require 'big_keeper/util/bigkeeper_parser'
6
6
  require 'big_keeper/dependency/dep_type'
7
7
  require 'big_keeper/util/logger'
8
- require 'big_keeper/util/lockfile_parser'
9
8
 
10
9
  module BigKeeper
11
10
 
@@ -13,10 +12,9 @@ module BigKeeper
13
12
  # Parse Bigkeeper file
14
13
  BigkeeperParser.parse("#{path}/Bigkeeper")
15
14
  # Get modules' name
16
- # module_list = BigkeeperParser.module_names
15
+ module_list = BigkeeperParser.module_names
17
16
  # initialize PodfileDetector
18
- detector = PodfileParser.instance
19
- detector.parse("#{path}")
17
+ detector = PodfileDetector.new(path, module_list)
20
18
  # Get unlocked third party pods list
21
19
  unlock_pod_list = detector.get_unlock_pod_list
22
20
  # Print out unlock pod list
@@ -27,28 +25,27 @@ module BigKeeper
27
25
 
28
26
  end
29
27
 
30
- def self.podfile_lock(path, is_all)
28
+ def self.podfile_lock(path)
31
29
  # Parse Bigkeeper file
32
30
  BigkeeperParser.parse("#{path}/Bigkeeper")
31
+ # Get modules' name
32
+ module_list = BigkeeperParser.module_names
33
33
  # initialize PodfileDetector
34
- pod_parser = PodfileParser.instance
35
- #Parser Podfile.lock
36
- pod_parser.parse(path)
37
- #initialize LockfileParser
38
- lock_parser = LockfileParser.instance
39
- #Parser Podfile.lock
40
- lock_parser.parse(path)
34
+ detector = PodfileDetector.new(path, module_list)
41
35
  # Get unlocked third party pods list
42
- unlock_pod_info = lock_parser.get_unlock_pod_list(is_all)
43
- # Lock modules in podfile
44
- if unlock_pod_info.empty?
36
+ unlock_pod_list = detector.get_unlock_pod_list
37
+ # Get Version
38
+ dictionary = detector.deal_lock_file(path, unlock_pod_list)
39
+ if dictionary.empty?
45
40
  Logger.warning("There is nothing to be locked.")
46
41
  else
47
- PodfileOperator.new.find_and_lock("#{path}/Podfile", unlock_pod_info)
42
+ PodfileOperator.new.find_and_lock("#{path}/Podfile", dictionary)
48
43
  Logger.highlight("The Podfile has been changed.")
49
44
  Logger.separator
50
45
  end
51
46
 
47
+
48
+
52
49
  end
53
50
 
54
51
  def self.podfile_modules_update(path)
@@ -20,25 +20,12 @@ module BigKeeper
20
20
 
21
21
  podfile.desc 'Lock podname should be locked.'
22
22
  podfile.command :lock do |lock|
23
- lock.desc 'Lock pods accouding to Podfile.'
24
- lock.command :module do |m|
25
- m.action do |global_options, options, args|
26
- LeanCloudLogger.instance.set_command("podfile/lock/module")
27
-
28
- path = File.expand_path(global_options[:path])
29
- podfile_lock(path, false)
30
- end
31
- end
32
- lock.desc 'Lock pods accouding to Podfile.lock.'
33
- lock.command :submodule do |s|
34
- s.action do |global_options, options, args|
35
- LeanCloudLogger.instance.set_command("podfile/lock/submodule")
36
-
37
- path = File.expand_path(global_options[:path])
38
- podfile_lock(path, true)
39
- end
40
- end
23
+ lock.action do |global_options, options, args|
24
+ LeanCloudLogger.instance.set_command("podfile/lock")
41
25
 
26
+ path = File.expand_path(global_options[:path])
27
+ podfile_lock(path)
28
+ end
42
29
  end
43
30
 
44
31
  podfile.desc 'Update modules should be upgrade.'
@@ -5,7 +5,6 @@ require 'big_keeper/dependency/dep_type'
5
5
  require 'big_keeper/util/info_plist_operator'
6
6
  require 'big_keeper/util/logger'
7
7
  require 'big_keeper/util/xcode_operator'
8
- require 'big_keeper/model/operate_type'
9
8
 
10
9
  module BigKeeper
11
10
  def self.release_home_start(path, version, user)
@@ -47,7 +46,7 @@ module BigKeeper
47
46
  InfoPlistOperator.new.change_version_build(path, version)
48
47
 
49
48
  GitService.new.verify_push(path, "Change version to #{version}", "release/#{version}", 'Home')
50
- DepService.dep_operator(path, user).install(modules, OperateType::RELEASE, true)
49
+ DepService.dep_operator(path, user).install(true)
51
50
  XcodeOperator.open_workspace(path)
52
51
  end
53
52
 
@@ -10,8 +10,6 @@ require 'big_keeper/util/pod_operator'
10
10
  module BigKeeper
11
11
  def self.release_module_start(path, version, user, module_name, ignore)
12
12
  BigkeeperParser.parse("#{path}/Bigkeeper")
13
-
14
- version = BigkeeperParser.version if version == 'Version in Bigkeeper file'
15
13
  module_path = BigkeeperParser.module_full_path(path, user, module_name)
16
14
 
17
15
  # stash
@@ -34,8 +32,6 @@ module BigKeeper
34
32
  ## release finish
35
33
  def self.release_module_finish(path, version, user, module_name, spec)
36
34
  BigkeeperParser.parse("#{path}/Bigkeeper")
37
-
38
- version = BigkeeperParser.version if version == 'Version in Bigkeeper file'
39
35
  module_path = BigkeeperParser.module_full_path(path, user, module_name)
40
36
 
41
37
  # check commit
@@ -1,37 +1,12 @@
1
1
  require 'big_keeper/command/release/home'
2
2
  require 'big_keeper/command/release/module'
3
3
  require 'big_keeper/util/leancloud_logger'
4
- require 'big_keeper/command/release/start'
5
- require 'big_keeper/command/release/finish'
6
- require 'big_keeper/util/command_line_util'
7
4
 
8
5
  module BigKeeper
9
6
  def self.release_command
10
7
  desc 'Gitflow release operations'
11
8
  command :release do |c|
12
9
 
13
- c.desc 'release project start'
14
- c.command :start do |start|
15
- start.action do |global_options, options, args|
16
- path = File.expand_path(global_options[:path])
17
- version = global_options[:ver]
18
- user = global_options[:user].gsub(/[^0-9A-Za-z]/, '').downcase
19
- modules = args[(0...args.length)] if args.length > 0
20
- release_start(path, version, user, modules)
21
- end
22
- end
23
-
24
- c.desc 'release project finish'
25
- c.command :finish do |finish|
26
- finish.action do |global_options, options, args|
27
- path = File.expand_path(global_options[:path])
28
- version = global_options[:ver]
29
- user = global_options[:user].gsub(/[^0-9A-Za-z]/, '').downcase
30
- modules = args[(0...args.length)] if args.length > 0
31
- release_finish(path, version, user, modules)
32
- end
33
- end
34
-
35
10
  c.desc 'Release home project operations'
36
11
  c.command :home do |home|
37
12
  home.desc 'Start release home project'