shkeeper 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  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/CODE_OF_CONDUCT.md +46 -0
  7. data/CONTRIBUTING.md +70 -0
  8. data/Gemfile +10 -0
  9. data/Gemfile.lock +145 -0
  10. data/LICENSE +21 -0
  11. data/README.md +113 -0
  12. data/big_keeper.gemspec +50 -0
  13. data/bin/big +14 -0
  14. data/bin/koo +14 -0
  15. data/bin/setup +8 -0
  16. data/bin/sh +14 -0
  17. data/docs/en-US/FEATURE.md +0 -0
  18. data/docs/en-US/README.md +54 -0
  19. data/docs/zh-CN/BIGKEEPER_FILE.md +84 -0
  20. data/docs/zh-CN/FEATURE&HOTFIX.md +88 -0
  21. data/docs/zh-CN/IMAGE.md +0 -0
  22. data/docs/zh-CN/PODFILE.md +43 -0
  23. data/docs/zh-CN/README.md +113 -0
  24. data/docs/zh-CN/RECOMMEND.md +22 -0
  25. data/docs/zh-CN/RELEASE.md +60 -0
  26. data/docs/zh-CN/SPEC.md +39 -0
  27. data/lib/big_keeper/command/feature&hotfix/delete.rb +40 -0
  28. data/lib/big_keeper/command/feature&hotfix/finish.rb +57 -0
  29. data/lib/big_keeper/command/feature&hotfix/list.rb +63 -0
  30. data/lib/big_keeper/command/feature&hotfix/publish.rb +56 -0
  31. data/lib/big_keeper/command/feature&hotfix/pull.rb +26 -0
  32. data/lib/big_keeper/command/feature&hotfix/push.rb +27 -0
  33. data/lib/big_keeper/command/feature&hotfix/rebase.rb +32 -0
  34. data/lib/big_keeper/command/feature&hotfix/start.rb +94 -0
  35. data/lib/big_keeper/command/feature&hotfix/switch.rb +48 -0
  36. data/lib/big_keeper/command/feature&hotfix/update.rb +74 -0
  37. data/lib/big_keeper/command/feature&hotfix.rb +169 -0
  38. data/lib/big_keeper/command/image/image.rb +0 -0
  39. data/lib/big_keeper/command/image.rb +28 -0
  40. data/lib/big_keeper/command/pod/podfile.rb +69 -0
  41. data/lib/big_keeper/command/pod.rb +42 -0
  42. data/lib/big_keeper/command/release/home.rb +91 -0
  43. data/lib/big_keeper/command/release/module.rb +61 -0
  44. data/lib/big_keeper/command/release.rb +75 -0
  45. data/lib/big_keeper/command/spec/add.rb +9 -0
  46. data/lib/big_keeper/command/spec/analyze.rb +88 -0
  47. data/lib/big_keeper/command/spec/delete.rb +9 -0
  48. data/lib/big_keeper/command/spec/list.rb +19 -0
  49. data/lib/big_keeper/command/spec/search.rb +9 -0
  50. data/lib/big_keeper/command/spec/sync.rb +12 -0
  51. data/lib/big_keeper/command/spec.rb +78 -0
  52. data/lib/big_keeper/dependency/dep_gradle_operator.rb +56 -0
  53. data/lib/big_keeper/dependency/dep_operator.rb +32 -0
  54. data/lib/big_keeper/dependency/dep_pod_operator.rb +131 -0
  55. data/lib/big_keeper/dependency/dep_service.rb +14 -0
  56. data/lib/big_keeper/dependency/dep_type.rb +33 -0
  57. data/lib/big_keeper/model/gitflow_type.rb +43 -0
  58. data/lib/big_keeper/model/library_model.rb +116 -0
  59. data/lib/big_keeper/model/operate_type.rb +27 -0
  60. data/lib/big_keeper/model/podfile_model.rb +33 -0
  61. data/lib/big_keeper/service/git_service.rb +261 -0
  62. data/lib/big_keeper/service/module_service.rb +161 -0
  63. data/lib/big_keeper/service/stash_service.rb +58 -0
  64. data/lib/big_keeper/util/bigkeeper_parser.rb +244 -0
  65. data/lib/big_keeper/util/cache_operator.rb +149 -0
  66. data/lib/big_keeper/util/code_operator.rb +37 -0
  67. data/lib/big_keeper/util/file_operator.rb +33 -0
  68. data/lib/big_keeper/util/git_operator.rb +226 -0
  69. data/lib/big_keeper/util/gitflow_operator.rb +51 -0
  70. data/lib/big_keeper/util/gradle_operator.rb +209 -0
  71. data/lib/big_keeper/util/info_plist_operator.rb +46 -0
  72. data/lib/big_keeper/util/leancloud_logger.rb +72 -0
  73. data/lib/big_keeper/util/list_generator.rb +101 -0
  74. data/lib/big_keeper/util/logger.rb +46 -0
  75. data/lib/big_keeper/util/pod_operator.rb +71 -0
  76. data/lib/big_keeper/util/podfile_detector.rb +137 -0
  77. data/lib/big_keeper/util/podfile_module.rb +63 -0
  78. data/lib/big_keeper/util/podfile_operator.rb +117 -0
  79. data/lib/big_keeper/util/verify_operator.rb +17 -0
  80. data/lib/big_keeper/util/xcode_operator.rb +15 -0
  81. data/lib/big_keeper/version.rb +3 -0
  82. data/lib/big_keeper.rb +71 -0
  83. data/resources/banner.png +0 -0
  84. data/resources/command.png +0 -0
  85. data/resources/keynote/big-keeper-readme-analyze.key +0 -0
  86. data/resources/keynote/big-keeper-readme-example.key +0 -0
  87. data/resources/keynote/big-keeper-readme-feature.key +0 -0
  88. data/resources/keynote/big-keeper-readme-release.key +0 -0
  89. data/resources/readme/big-keeper-readme.001.png +0 -0
  90. metadata +345 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 695d43e3150b62abb7d8a02977b8e2192c862f771379c00b688b96e604b44669
4
+ data.tar.gz: 014f76d72e35eb7d58349626c148431a8ff9db5d3bfcf0872f6cd872d259c985
5
+ SHA512:
6
+ metadata.gz: 9a0f6dcdd903427134202d39b49da617af21a4c3dbbfe7d8d845e42884e65a869c477894deae0d53ca477ae39e3f88f1cb757d3b127c7301f7e53b8086e8676b
7
+ data.tar.gz: 8aded2dee58fba6b2a0c723a56e002fff85075181f3f4a0b85d91691099fc461acc210229335d151713e9f0f1ba19027ad128495c37ff7646571710deab5df6b
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>
@@ -0,0 +1,46 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ ## Our Standards
8
+
9
+ Examples of behavior that contributes to creating a positive environment include:
10
+
11
+ * Using welcoming and inclusive language
12
+ * Being respectful of differing viewpoints and experiences
13
+ * Gracefully accepting constructive criticism
14
+ * Focusing on what is best for the community
15
+ * Showing empathy towards other community members
16
+
17
+ Examples of unacceptable behavior by participants include:
18
+
19
+ * The use of sexualized language or imagery and unwelcome sexual attention or advances
20
+ * Trolling, insulting/derogatory comments, and personal or political attacks
21
+ * Public or private harassment
22
+ * Publishing others' private information, such as a physical or electronic address, without explicit permission
23
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
24
+
25
+ ## Our Responsibilities
26
+
27
+ Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28
+
29
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ ## Scope
32
+
33
+ This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34
+
35
+ ## Enforcement
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at mmoaay@sina.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38
+
39
+ Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40
+
41
+ ## Attribution
42
+
43
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44
+
45
+ [homepage]: http://contributor-covenant.org
46
+ [version]: http://contributor-covenant.org/version/1/4/
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,70 @@
1
+ # Contributing Guidelines
2
+
3
+ This document contains information and guidelines about contributing to this project.
4
+ Please read it before you start participating.
5
+
6
+ **Topics**
7
+
8
+ * [Asking Questions](#asking-questions)
9
+ * [Reporting Issues](#reporting-issues)
10
+ * [Developers Certificate of Origin](#developers-certificate-of-origin)
11
+
12
+ ## Asking Questions
13
+
14
+ We don't use GitHub as a support forum.
15
+ For any usage questions that are not specific to the project itself,
16
+ please ask on [Stack Overflow](https://stackoverflow.com) instead.
17
+ By doing so, you'll be more likely to quickly solve your problem,
18
+ and you'll allow anyone else with the same question to find the answer.
19
+ This also allows maintainers to focus on improving the project for others.
20
+
21
+ ## Reporting Issues
22
+
23
+ A great way to contribute to the project
24
+ is to send a detailed issue when you encounter an problem.
25
+ We always appreciate a well-written, thorough bug report.
26
+
27
+ Check that the project issues database
28
+ doesn't already include that problem or suggestion before submitting an issue.
29
+ If you find a match, add a quick "+1" or "I have this problem too."
30
+ Doing this helps prioritize the most common problems and requests.
31
+
32
+ When reporting issues, please include the following:
33
+
34
+ * The version of Xcode you're using
35
+ * The version of iOS or macOS you're targeting
36
+ * The full output of any stack trace or compiler error
37
+ * A code snippet that reproduces the described behavior, if applicable
38
+ * Any other details that would be useful in understanding the problem
39
+
40
+ This information will help us review and fix your issue faster.
41
+
42
+ ## Developer's Certificate of Origin
43
+
44
+ By making a contribution to this project, I certify that:
45
+
46
+ - (a) The contribution was created in whole or in part by me and I
47
+ have the right to submit it under the open source license
48
+ indicated in the file; or
49
+
50
+ - (b) The contribution is based upon previous work that, to the best
51
+ of my knowledge, is covered under an appropriate open source
52
+ license and I have the right under that license to submit that
53
+ work with modifications, whether created in whole or in part
54
+ by me, under the same open source license (unless I am
55
+ permitted to submit under a different license), as indicated
56
+ in the file; or
57
+
58
+ - (c) The contribution was provided directly to me by some other
59
+ person who certified (a), (b) or (c) and I have not modified
60
+ it.
61
+
62
+ - (d) I understand and agree that this project and the contribution
63
+ are public and that a record of the contribution (including all
64
+ personal information I submit with it, including my sign-off) is
65
+ maintained indefinitely and may be redistributed consistent with
66
+ this project or the open source license(s) involved.
67
+
68
+ ---
69
+
70
+ *Some of the ideas and wording for the statements above were based on work by the [Alamofire](https://github.com/Alamofire/Alamofire/blob/master/CONTRIBUTING.md) communities. We commend them for their efforts to facilitate collaboration in their projects.*
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source "https://gems.ruby-china.com/"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in big_keeper.gemspec
6
+ gemspec
7
+
8
+ group :test do
9
+ gem 'rake'
10
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,145 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ shkeeper (1.0.0)
5
+ big_resources
6
+ big_stash (~> 0.1)
7
+ cocoapods
8
+ colorize
9
+ gli (~> 2.16)
10
+ plist
11
+
12
+ GEM
13
+ remote: https://gems.ruby-china.com/
14
+ specs:
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)
20
+ minitest (~> 5.1)
21
+ tzinfo (~> 1.1)
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)
28
+ atomos (0.1.3)
29
+ big_resources (0.1.3)
30
+ chunky_png
31
+ cocoapods
32
+ colorize
33
+ gli (~> 2.16)
34
+ plist
35
+ big_stash (0.6.0)
36
+ gli (~> 2.16)
37
+ chunky_png (1.4.0)
38
+ claide (1.1.0)
39
+ cocoapods (1.10.2)
40
+ addressable (~> 2.6)
41
+ claide (>= 1.0.2, < 2.0)
42
+ cocoapods-core (= 1.10.2)
43
+ cocoapods-deintegrate (>= 1.0.3, < 2.0)
44
+ cocoapods-downloader (>= 1.4.0, < 2.0)
45
+ cocoapods-plugins (>= 1.0.0, < 2.0)
46
+ cocoapods-search (>= 1.0.0, < 2.0)
47
+ cocoapods-trunk (>= 1.4.0, < 2.0)
48
+ cocoapods-try (>= 1.1.0, < 2.0)
49
+ colored2 (~> 3.1)
50
+ escape (~> 0.0.4)
51
+ fourflusher (>= 2.3.0, < 3.0)
52
+ gh_inspector (~> 1.0)
53
+ molinillo (~> 0.6.6)
54
+ nap (~> 1.0)
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)
62
+ fuzzy_match (~> 2.0.4)
63
+ nap (~> 1.0)
64
+ netrc (~> 0.11)
65
+ public_suffix
66
+ typhoeus (~> 1.0)
67
+ cocoapods-deintegrate (1.0.5)
68
+ cocoapods-downloader (1.6.3)
69
+ cocoapods-plugins (1.0.0)
70
+ nap
71
+ cocoapods-search (1.0.1)
72
+ cocoapods-trunk (1.6.0)
73
+ nap (>= 0.8, < 2.0)
74
+ netrc (~> 0.11)
75
+ cocoapods-try (1.2.0)
76
+ colored2 (3.1.2)
77
+ colorize (0.8.1)
78
+ concurrent-ruby (1.1.10)
79
+ escape (0.0.4)
80
+ ethon (0.15.0)
81
+ ffi (>= 1.15.0)
82
+ ffi (1.15.5)
83
+ fourflusher (2.3.1)
84
+ fuzzy_match (2.0.4)
85
+ gh_inspector (1.1.3)
86
+ gli (2.21.0)
87
+ httpclient (2.8.3)
88
+ i18n (1.10.0)
89
+ concurrent-ruby (~> 1.0)
90
+ json (2.6.1)
91
+ minitest (5.15.0)
92
+ molinillo (0.6.6)
93
+ nanaimo (0.3.0)
94
+ nap (1.1.0)
95
+ netrc (0.11.0)
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)
102
+ rainbow (2.2.2)
103
+ rake
104
+ rake (13.0.6)
105
+ rexml (3.2.5)
106
+ rubocop (0.50.0)
107
+ parallel (~> 1.10)
108
+ parser (>= 2.3.3.1, < 3.0)
109
+ powerpack (~> 0.1)
110
+ rainbow (>= 2.2.2, < 3.0)
111
+ ruby-progressbar (~> 1.7)
112
+ unicode-display_width (~> 1.0, >= 1.0.1)
113
+ ruby-macho (1.4.0)
114
+ ruby-progressbar (1.11.0)
115
+ thread_safe (0.3.6)
116
+ typhoeus (1.4.0)
117
+ ethon (>= 0.9.0)
118
+ tzinfo (1.2.9)
119
+ thread_safe (~> 0.1)
120
+ unicode-display_width (1.8.0)
121
+ xcodeproj (1.21.0)
122
+ CFPropertyList (>= 2.3.3, < 4.0)
123
+ atomos (~> 0.1.3)
124
+ claide (>= 1.0.2, < 2.0)
125
+ colored2 (~> 3.1)
126
+ nanaimo (~> 0.3.0)
127
+ rexml (~> 3.2.4)
128
+
129
+ PLATFORMS
130
+ ruby
131
+
132
+ DEPENDENCIES
133
+ big_resources
134
+ big_stash (~> 0.1)
135
+ bundler (~> 1.15)
136
+ cocoapods
137
+ colorize
138
+ gli (~> 2.16)
139
+ plist
140
+ rake
141
+ rubocop (~> 0.50.0)
142
+ shkeeper!
143
+
144
+ BUNDLED WITH
145
+ 1.17.3
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 BigKeeper.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,113 @@
1
+ [English](./docs/en-US/README.md)
2
+
3
+ ---
4
+
5
+ # bigkeeper
6
+
7
+ ![](./resources/banner.png)
8
+
9
+ [![Build Status](https://travis-ci.org/BigKeeper/bigkeeper.svg?branch=master)](https://travis-ci.org/BigKeeper/bigkeeper)
10
+ [![Maintainability](https://api.codeclimate.com/v1/badges/c6dc4161e84fcec9a890/maintainability)](https://codeclimate.com/github/BigKeeper/big-keeper/maintainability)
11
+ [![Gem Version](https://badge.fury.io/rb/bigkeeper.svg)](https://rubygems.org/gems/bigkeeper)
12
+ [![Language: Ruby](https://img.shields.io/badge/language-Ruby-da212f.svg)](https://www.ruby-lang.org/)
13
+ [![License](https://img.shields.io/badge/license-MIT-000000.svg)](https://github.com/BigKeeper/big-keeper/blob/master/LICENSE)
14
+ [![Gitter](https://img.shields.io/gitter/room/BigKeeper/BigKeeper.svg)](https://gitter.im/Big-Keeper/Lobby)
15
+
16
+ bigkeeper 是一个 **iOS&Android 模块化项目**效率提升工具,旨在帮助有模块化需求的团队更轻松的渡过“半模块化”尴尬期。
17
+
18
+ 使用这个工具后,开发者**在主项目内**即可完成**包括其他业务模块在内**所有代码的编写和管理。
19
+
20
+ 我们借鉴 CocoaPods 的做法,开发团队只需要在主项目中加入一个 Bigkeeper 文件,然后利用我们提供的 `big` 命令,即可更便捷的实现**代码分支**和**业务模块**的管理;另外,通过 `big` 命令提供的流程,也能帮助开发者养成更规范的日常开发习惯,减轻项目管理者的负担。
21
+
22
+ ## 应用场景
23
+
24
+ 在模块化项目的过渡阶段,我们往往会碰到业务拆分不是那么彻底的情况(PS:比如主项目中仍然存在业务相关代码),这样就会导致一系列问题:
25
+
26
+ - 开发流程方面:开发者在开发一个 feature 时需要维护多个项目的分支,同时还要频繁修改主项目的 `Podfile`;
27
+ - 项目管理者需要花很大精力去和团队成员同步项目管理规范流程,尤其对于新人,挑战很大;
28
+ - 开发过程中如果碰到突发情况需要开新分支处理问题时对当前工作区的保存操作会很繁琐(PS:因为涉及到多个项目);
29
+ - 日常开发过程中类似 commit、pull、push 等操作比较繁琐(PS:因为涉及到多个项目);
30
+ - 资源(比如图片)散落在各个业务模块,可能存在重名、重复等问题,难以管理;
31
+ - 业务模块可能存在横向依赖的问题,导致业务模块间耦合严重,不能单独编译运行。
32
+ - 各模块依赖的版本没有统一的同步更新方式,导致各个模块的开发环境不一致,问题百出。
33
+
34
+ bigkeeper 的出现就是为了解决这些问题。
35
+
36
+ > 注:也有很多人认为直接做一个完整的组件化项目更合理,而不需要采用这样曲折的方案,但是很多时候我们并没有这么多的精力直接去做这些事情,bigkeeper 存在的价值也是为了帮助开发团队在** iOS&Android 模块化项目过渡阶段**能更轻松的往前走。
37
+
38
+ ## 安装
39
+
40
+ - 当作 Ruby Gem 使用:
41
+ 在项目的 Gemfile 中加入下面这行:
42
+
43
+ ```ruby
44
+ gem 'bigkeeper'
45
+ ```
46
+
47
+ 然后执行:
48
+
49
+ $ bundle
50
+
51
+ - 直接安装:
52
+
53
+ $ gem install bigkeeper
54
+
55
+ ## 使用方法
56
+
57
+ - [Bigkeeper 文件配置](./docs/zh-CN/BIGKEEPER_FILE.md)
58
+ - `bigkeeper` 工具使用:
59
+
60
+ 直接在命令行执行 `bigkeeper` 可以查看其提供的所有功能:
61
+
62
+ ```
63
+ NAME
64
+ big - Efficiency improvement for iOS&Android module development, iOSer&Android using this tool can make module development easier.
65
+
66
+ SYNOPSIS
67
+ big [global options] command [command options] [arguments...]
68
+
69
+
70
+ GLOBAL OPTIONS
71
+ --help - Show this message
72
+ -p, --path=arg - (default: ./)
73
+ -u, --user=arg - (default: mmoaay)
74
+ -v, --ver=arg - (default: Version in Bigkeeper file)
75
+
76
+ COMMANDS
77
+ feature - Gitflow feature operations
78
+ help - Shows a list of commands or help for one command
79
+ hotfix - Gitflow hotfix operations
80
+ image - Image operations
81
+ podfile - Podfile operation
82
+ release - Gitflow release operations
83
+ spec - Spec operations
84
+ version - Show version of bigkeeper
85
+ ```
86
+
87
+ 全局参数如下:
88
+
89
+ - -p, --path:主项目所在的目录,默认是执行 bigkeeper 命令的当前目录;
90
+ - -v, --ver:版本号,如果没有指定的话,会以主项目 [Bigkeeper 文件](./docs/zh-CN/BIGKEEPER_FILE.md)中指定的版本为准。
91
+ - -u, --user:用户名,默认是 git global config 的 user.name,会显示在命令提示信息中,比如上述提示信息中的默认用户名是 mmoaay
92
+
93
+ 功能列表如下:
94
+
95
+ - [feature](./docs/zh-CN/FEATURE&HOTFIX.md):功能开发流程;
96
+ - [hotfix](./docs/zh-CN/FEATURE&HOTFIX.md):线上 Bug 修复流程;
97
+ - [release](./docs/zh-CN/RELEASE.md):发布流程;
98
+ - [podfile](./docs/zh-CN/PODFILE.md):Podfile 管理;
99
+ - [image](./docs/zh-CN/IMAGE.md):图片管理;
100
+ - [spec](./docs/zh-CN/SPEC.md):spec 管理;
101
+ - version:查看 bigkeeper 当前版本号;
102
+ - help:查看 bigkeeper 帮助文档。
103
+
104
+ ## 其他
105
+
106
+ - [一些建议](./docs/zh-CN/RECOMMEND.md)
107
+ - [一些思考]()
108
+
109
+ ## 协议
110
+
111
+ ![](https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/License_icon-mit-88x31-2.svg/128px-License_icon-mit-88x31-2.svg.png)
112
+
113
+ bigkeeper 基于 MIT 协议进行分发和使用,更多信息参见协议文件。
@@ -0,0 +1,50 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "big_keeper/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "shkeeper"
8
+ spec.version = BigKeeper::VERSION
9
+ spec.authors = ["mmoaay"]
10
+ spec.email = ["mmoaay@sina.com"]
11
+
12
+ spec.summary = %q{Efficiency improvement for iOS&Android modular development.}
13
+ spec.description = %q{Efficiency improvement for iOS&Android modular development, iOSer&Androider using this tool can make modular development easier.}
14
+ spec.homepage = "https://github.com/BigKeeper/bigkeeper"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "bin"
30
+ spec.executables = ['sh','setup']
31
+ #spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+
34
+ spec.add_runtime_dependency "gli", "~> 2.16"
35
+ spec.add_runtime_dependency "big_stash", "~> 0.1"
36
+ spec.add_runtime_dependency "cocoapods"
37
+ spec.add_runtime_dependency "plist"
38
+ spec.add_runtime_dependency "colorize"
39
+ spec.add_runtime_dependency "big_resources"
40
+
41
+ spec.add_development_dependency "bundler", "~> 1.15"
42
+ spec.add_development_dependency "rake", "~> 10.0"
43
+ spec.add_development_dependency "gli", "~> 2.16"
44
+ spec.add_development_dependency "big_stash", "~> 0.1"
45
+ spec.add_development_dependency "big_resources"
46
+ spec.add_development_dependency "cocoapods"
47
+ spec.add_development_dependency "plist"
48
+ spec.add_development_dependency "colorize"
49
+ spec.add_development_dependency "rubocop", "~> 0.50.0"
50
+ end
data/bin/big ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # require "bundler/setup"
4
+ require "big_keeper"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/koo ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # require "bundler/setup"
4
+ require "big_keeper"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/bin/sh ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # require "bundler/setup"
4
+ require "big_keeper"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
File without changes