KCommercialPipeline 0.2.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.idea/.gitignore +8 -0
  4. data/.idea/inspectionProfiles/Project_Default.xml +6 -0
  5. data/.idea/inspectionProfiles/profiles_settings.xml +5 -0
  6. data/.idea/kcommercialpipeline.iml +130 -0
  7. data/.idea/misc.xml +4 -0
  8. data/.idea/modules.xml +8 -0
  9. data/.idea/vcs.xml +6 -0
  10. data/.rubocop.yml +13 -0
  11. data/.ruby-version +1 -0
  12. data/CHANGELOG.md +5 -0
  13. data/CODE_OF_CONDUCT.md +84 -0
  14. data/Gemfile +16 -0
  15. data/Gemfile.lock +224 -0
  16. data/KCommercialPipeline-0.2.5.0.gem +0 -0
  17. data/KCommercialPipeline.gemspec +49 -0
  18. data/LICENSE.txt +21 -0
  19. data/README.md +43 -0
  20. data/Rakefile +16 -0
  21. data/bin/KCommercialPipeline +17 -0
  22. data/bin/console +15 -0
  23. data/bin/setup +8 -0
  24. data/lib/KCommercialPipeline/App.rb +18 -0
  25. data/lib/KCommercialPipeline/command/app_runner.rb +34 -0
  26. data/lib/KCommercialPipeline/command/auto_cherry_pick_cmd.rb +18 -0
  27. data/lib/KCommercialPipeline/command/change_log.rb +19 -0
  28. data/lib/KCommercialPipeline/command/check_release_cmd.rb +34 -0
  29. data/lib/KCommercialPipeline/command/command.rb +44 -0
  30. data/lib/KCommercialPipeline/command/feat_check.rb +16 -0
  31. data/lib/KCommercialPipeline/command/git_hook_install_cmd.rb +29 -0
  32. data/lib/KCommercialPipeline/command/ios_publish_component.rb +71 -0
  33. data/lib/KCommercialPipeline/command/rb_auto.rb +30 -0
  34. data/lib/KCommercialPipeline/command/resource.rb +52 -0
  35. data/lib/KCommercialPipeline/core/app_demo.rb +196 -0
  36. data/lib/KCommercialPipeline/core/branch_diffs.rb +95 -0
  37. data/lib/KCommercialPipeline/core/change_log/change_log_task.rb +317 -0
  38. data/lib/KCommercialPipeline/core/change_log/doc_builder.rb +91 -0
  39. data/lib/KCommercialPipeline/core/component_publisher.rb +122 -0
  40. data/lib/KCommercialPipeline/core/feature_send.rb +88 -0
  41. data/lib/KCommercialPipeline/core/git.rb +125 -0
  42. data/lib/KCommercialPipeline/core/git_hook/install_git_hook.rb +84 -0
  43. data/lib/KCommercialPipeline/core/git_hook/prepare_commit_msg.rb +0 -0
  44. data/lib/KCommercialPipeline/core/kim_cfg.rb +64 -0
  45. data/lib/KCommercialPipeline/core/kim_notify.rb +99 -0
  46. data/lib/KCommercialPipeline/core/resource/auto_publish_resource/update_resource_component.rb +35 -0
  47. data/lib/KCommercialPipeline/core/resource/bundle/colors_generator.rb +29 -0
  48. data/lib/KCommercialPipeline/core/resource/bundle/files_generator.rb +36 -0
  49. data/lib/KCommercialPipeline/core/resource/bundle/fonts_generator.rb +29 -0
  50. data/lib/KCommercialPipeline/core/resource/bundle/i18ns_generator.rb +29 -0
  51. data/lib/KCommercialPipeline/core/resource/bundle/images_generator.rb +67 -0
  52. data/lib/KCommercialPipeline/core/resource/bundle/indexes_generator.rb +55 -0
  53. data/lib/KCommercialPipeline/core/resource/bundle/scale_pathname.rb +23 -0
  54. data/lib/KCommercialPipeline/core/resource/code_generator/code_generator.rb +59 -0
  55. data/lib/KCommercialPipeline/core/resource/code_generator/file_generator.rb +16 -0
  56. data/lib/KCommercialPipeline/core/resource/code_generator/resources_status.rb +24 -0
  57. data/lib/KCommercialPipeline/core/resource/component_resources_config.rb +63 -0
  58. data/lib/KCommercialPipeline/core/resource/file_generator.rb +16 -0
  59. data/lib/KCommercialPipeline/core/resource/i18n/auto_component.rb +61 -0
  60. data/lib/KCommercialPipeline/core/resource/i18n/bundle_generator.rb +36 -0
  61. data/lib/KCommercialPipeline/core/resource/i18n/generator.rb +368 -0
  62. data/lib/KCommercialPipeline/core/resource/key_defines.rb +41 -0
  63. data/lib/KCommercialPipeline/core/resource/objective-c/code_model.rb +51 -0
  64. data/lib/KCommercialPipeline/core/resource/objective-c/oc_file_model.rb +59 -0
  65. data/lib/KCommercialPipeline/core/resource/objective-c/oc_generator.rb +55 -0
  66. data/lib/KCommercialPipeline/core/resource/objective-c/templates/{{component_header_name}}.h +39 -0
  67. data/lib/KCommercialPipeline/core/resource/objective-c/templates/{{oc_class_name}}+Colors.h +31 -0
  68. data/lib/KCommercialPipeline/core/resource/objective-c/templates/{{oc_class_name}}+Colors.m +29 -0
  69. data/lib/KCommercialPipeline/core/resource/objective-c/templates/{{oc_class_name}}+Files.h +31 -0
  70. data/lib/KCommercialPipeline/core/resource/objective-c/templates/{{oc_class_name}}+Files.m +29 -0
  71. data/lib/KCommercialPipeline/core/resource/objective-c/templates/{{oc_class_name}}+Fonts.h +31 -0
  72. data/lib/KCommercialPipeline/core/resource/objective-c/templates/{{oc_class_name}}+Fonts.m +29 -0
  73. data/lib/KCommercialPipeline/core/resource/objective-c/templates/{{oc_class_name}}+I18ns.h +31 -0
  74. data/lib/KCommercialPipeline/core/resource/objective-c/templates/{{oc_class_name}}+I18ns.m +29 -0
  75. data/lib/KCommercialPipeline/core/resource/objective-c/templates/{{oc_class_name}}+Images.h +30 -0
  76. data/lib/KCommercialPipeline/core/resource/objective-c/templates/{{oc_class_name}}+Images.m +29 -0
  77. data/lib/KCommercialPipeline/core/resource/objective-c/templates/{{oc_class_name}}.h +39 -0
  78. data/lib/KCommercialPipeline/core/resource/objective-c/templates/{{oc_class_name}}.m +51 -0
  79. data/lib/KCommercialPipeline/core/resource/source/asset.rb +120 -0
  80. data/lib/KCommercialPipeline/core/resource/source/asset_type.rb +16 -0
  81. data/lib/KCommercialPipeline/core/resource/source/git_source.rb +105 -0
  82. data/lib/KCommercialPipeline/core/resource/source/git_source_manager.rb +114 -0
  83. data/lib/KCommercialPipeline/core/resource/source/interface.rb +9 -0
  84. data/lib/KCommercialPipeline/core/resource/source/lib_bundle.rb +50 -0
  85. data/lib/KCommercialPipeline/core/resource/source/source.rb +9 -0
  86. data/lib/KCommercialPipeline/core/resource/source/source_interface.rb +20 -0
  87. data/lib/KCommercialPipeline/core/resource/source/source_manager.rb +93 -0
  88. data/lib/KCommercialPipeline/core/resource/source/star_source.rb +145 -0
  89. data/lib/KCommercialPipeline/core/resource/source/subspec_bundle.rb +34 -0
  90. data/lib/KCommercialPipeline/core/resource/swift/colors_generator.rb +22 -0
  91. data/lib/KCommercialPipeline/core/resource/swift/files_generate.rb +22 -0
  92. data/lib/KCommercialPipeline/core/resource/swift/fonts_generator.rb +22 -0
  93. data/lib/KCommercialPipeline/core/resource/swift/i18n_generetor.rb +22 -0
  94. data/lib/KCommercialPipeline/core/resource/swift/images_generator.rb +22 -0
  95. data/lib/KCommercialPipeline/core/resource/swift/swift_generator.rb +84 -0
  96. data/lib/KCommercialPipeline/core/resource/xcassets/image.rb +30 -0
  97. data/lib/KCommercialPipeline/core/resource/xcassets/imageset.rb +53 -0
  98. data/lib/KCommercialPipeline/core/resource/xcassets/xcassets.rb +63 -0
  99. data/lib/KCommercialPipeline/core/version_pipeline/auto_cherry_pick.rb +173 -0
  100. data/lib/KCommercialPipeline/core/version_pipeline/release_branches.rb +183 -0
  101. data/lib/KCommercialPipeline/core/version_pipeline/release_check.rb +111 -0
  102. data/lib/KCommercialPipeline/version.rb +5 -0
  103. data/lib/KCommercialPipeline.rb +19 -0
  104. metadata +304 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: fa3a593c7b1b656d91522a619c06941bec2e70c55bfe5edd2c3e2d823370274a
4
+ data.tar.gz: 6ad9952e07e9f7ba398661c6ba1f2334e4be29ef694e73a083af3612a5036bfe
5
+ SHA512:
6
+ metadata.gz: be84a26fe6dbe96f19c66736e5d175bc991d5d18bd700c8b9cda34b8d4870420908730aaf6dd52ecd5d0131677e943ca5de52229d77c984e16b32eabd4bc93fb
7
+ data.tar.gz: 619f55143dc79f6ee0b54e676dd2490a82ce089088a83e82ea36b937ebc13e51a721054b96cb341ccd35c56824fbb2cae997d5af39fc3055474a630466579ee5
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ .idea/kcommercialpipeline.iml
10
+ .DS_Store
data/.idea/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
6
+ # Datasource local storage ignored files
7
+ /dataSources/
8
+ /dataSources.local.xml
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" />
5
+ </profile>
6
+ </component>
@@ -0,0 +1,5 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="PROJECT_PROFILE" />
4
+ </settings>
5
+ </component>
@@ -0,0 +1,130 @@
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.7.2" jdkType="RUBY_SDK" />
13
+ <orderEntry type="sourceFolder" forTests="false" />
14
+ <orderEntry type="library" scope="PROVIDED" name="CFPropertyList (v3.0.6, RVM: ruby-2.7.2) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="activesupport (v7.0.4.3, RVM: ruby-2.7.2) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="addressable (v2.8.1, RVM: ruby-2.7.2) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="algoliasearch (v1.27.5, RVM: ruby-2.7.2) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, RVM: ruby-2.7.2) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="atomos (v0.1.3, RVM: ruby-2.7.2) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="buff-ignore (v1.2.0, RVM: ruby-2.7.2) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v2.2.24, RVM: ruby-2.7.2) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="chef-utils (v18.1.29, RVM: ruby-2.7.2) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="claide (v1.1.0, RVM: ruby-2.7.2) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="cocoadepot (v0.1.1649749726, RVM: ruby-2.7.2) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="cocoadepot-core (v0.1.1649749726, RVM: ruby-2.7.2) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="cocoadepot-source (v0.1.1649749726, RVM: ruby-2.7.2) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="cocoapods (v1.12.0, RVM: ruby-2.7.2) [gem]" level="application" />
28
+ <orderEntry type="library" scope="PROVIDED" name="cocoapods-core (v1.12.0, RVM: ruby-2.7.2) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="cocoapods-deintegrate (v1.0.5, RVM: ruby-2.7.2) [gem]" level="application" />
30
+ <orderEntry type="library" scope="PROVIDED" name="cocoapods-downloader (v1.6.3, RVM: ruby-2.7.2) [gem]" level="application" />
31
+ <orderEntry type="library" scope="PROVIDED" name="cocoapods-plugins (v1.0.0, RVM: ruby-2.7.2) [gem]" level="application" />
32
+ <orderEntry type="library" scope="PROVIDED" name="cocoapods-pod-linkage (v0.0.1, RVM: ruby-2.7.2) [gem]" level="application" />
33
+ <orderEntry type="library" scope="PROVIDED" name="cocoapods-search (v1.0.1, RVM: ruby-2.7.2) [gem]" level="application" />
34
+ <orderEntry type="library" scope="PROVIDED" name="cocoapods-trunk (v1.6.0, RVM: ruby-2.7.2) [gem]" level="application" />
35
+ <orderEntry type="library" scope="PROVIDED" name="cocoapods-try (v1.2.0, RVM: ruby-2.7.2) [gem]" level="application" />
36
+ <orderEntry type="library" scope="PROVIDED" name="colored2 (v3.1.2, RVM: ruby-2.7.2) [gem]" level="application" />
37
+ <orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.2.2, RVM: ruby-2.7.2) [gem]" level="application" />
38
+ <orderEntry type="library" scope="PROVIDED" name="domain_name (v0.5.20190701, RVM: ruby-2.7.2) [gem]" level="application" />
39
+ <orderEntry type="library" scope="PROVIDED" name="escape (v0.0.4, RVM: ruby-2.7.2) [gem]" level="application" />
40
+ <orderEntry type="library" scope="PROVIDED" name="ethon (v0.16.0, RVM: ruby-2.7.2) [gem]" level="application" />
41
+ <orderEntry type="library" scope="PROVIDED" name="ffi (v1.15.5, RVM: ruby-2.7.2) [gem]" level="application" />
42
+ <orderEntry type="library" scope="PROVIDED" name="file-utils (v0.1.1, RVM: ruby-2.7.2) [gem]" level="application" />
43
+ <orderEntry type="library" scope="PROVIDED" name="fourflusher (v2.3.1, RVM: ruby-2.7.2) [gem]" level="application" />
44
+ <orderEntry type="library" scope="PROVIDED" name="fuzzy_match (v2.0.4, RVM: ruby-2.7.2) [gem]" level="application" />
45
+ <orderEntry type="library" scope="PROVIDED" name="gh_inspector (v1.1.3, RVM: ruby-2.7.2) [gem]" level="application" />
46
+ <orderEntry type="library" scope="PROVIDED" name="git (v1.17.2, RVM: ruby-2.7.2) [gem]" level="application" />
47
+ <orderEntry type="library" scope="PROVIDED" name="http-accept (v1.7.0, RVM: ruby-2.7.2) [gem]" level="application" />
48
+ <orderEntry type="library" scope="PROVIDED" name="http-cookie (v1.0.5, RVM: ruby-2.7.2) [gem]" level="application" />
49
+ <orderEntry type="library" scope="PROVIDED" name="httpclient (v2.8.3, RVM: ruby-2.7.2) [gem]" level="application" />
50
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v1.12.0, RVM: ruby-2.7.2) [gem]" level="application" />
51
+ <orderEntry type="library" scope="PROVIDED" name="json (v2.6.3, RVM: ruby-2.7.2) [gem]" level="application" />
52
+ <orderEntry type="library" scope="PROVIDED" name="kwai-core (v0.2.1, RVM: ruby-2.7.2) [gem]" level="application" />
53
+ <orderEntry type="library" scope="PROVIDED" name="liquid (v5.4.0, RVM: ruby-2.7.2) [gem]" level="application" />
54
+ <orderEntry type="library" scope="PROVIDED" name="markdown-tables (v1.1.1, RVM: ruby-2.7.2) [gem]" level="application" />
55
+ <orderEntry type="library" scope="PROVIDED" name="mime-types (v3.4.1, RVM: ruby-2.7.2) [gem]" level="application" />
56
+ <orderEntry type="library" scope="PROVIDED" name="mime-types-data (v3.2023.0218.1, RVM: ruby-2.7.2) [gem]" level="application" />
57
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.18.0, RVM: ruby-2.7.2) [gem]" level="application" />
58
+ <orderEntry type="library" scope="PROVIDED" name="mixlib-shellout (v3.2.7, RVM: ruby-2.7.2) [gem]" level="application" />
59
+ <orderEntry type="library" scope="PROVIDED" name="molinillo (v0.8.0, RVM: ruby-2.7.2) [gem]" level="application" />
60
+ <orderEntry type="library" scope="PROVIDED" name="nanaimo (v0.3.0, RVM: ruby-2.7.2) [gem]" level="application" />
61
+ <orderEntry type="library" scope="PROVIDED" name="nap (v1.1.0, RVM: ruby-2.7.2) [gem]" level="application" />
62
+ <orderEntry type="library" scope="PROVIDED" name="netrc (v0.11.0, RVM: ruby-2.7.2) [gem]" level="application" />
63
+ <orderEntry type="library" scope="PROVIDED" name="parallel (v1.22.1, RVM: ruby-2.7.2) [gem]" level="application" />
64
+ <orderEntry type="library" scope="PROVIDED" name="parser (v3.2.1.1, RVM: ruby-2.7.2) [gem]" level="application" />
65
+ <orderEntry type="library" scope="PROVIDED" name="pastel (v0.8.0, RVM: ruby-2.7.2) [gem]" level="application" />
66
+ <orderEntry type="library" scope="PROVIDED" name="pathname (v0.2.1, RVM: ruby-2.7.2) [gem]" level="application" />
67
+ <orderEntry type="library" scope="PROVIDED" name="plist (v3.7.0, RVM: ruby-2.7.2) [gem]" level="application" />
68
+ <orderEntry type="library" scope="PROVIDED" name="public_suffix (v4.0.7, RVM: ruby-2.7.2) [gem]" level="application" />
69
+ <orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, RVM: ruby-2.7.2) [gem]" level="application" />
70
+ <orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, RVM: ruby-2.7.2) [gem]" level="application" />
71
+ <orderEntry type="library" scope="PROVIDED" name="rchardet (v1.8.0, RVM: ruby-2.7.2) [gem]" level="application" />
72
+ <orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.7.0, RVM: ruby-2.7.2) [gem]" level="application" />
73
+ <orderEntry type="library" scope="PROVIDED" name="rest-client (v2.1.0, RVM: ruby-2.7.2) [gem]" level="application" />
74
+ <orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.5, RVM: ruby-2.7.2) [gem]" level="application" />
75
+ <orderEntry type="library" scope="PROVIDED" name="rubocop (v1.48.1, RVM: ruby-2.7.2) [gem]" level="application" />
76
+ <orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.27.0, RVM: ruby-2.7.2) [gem]" level="application" />
77
+ <orderEntry type="library" scope="PROVIDED" name="ruby-enum (v0.9.0, RVM: ruby-2.7.2) [gem]" level="application" />
78
+ <orderEntry type="library" scope="PROVIDED" name="ruby-macho (v2.5.1, RVM: ruby-2.7.2) [gem]" level="application" />
79
+ <orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.13.0, RVM: ruby-2.7.2) [gem]" level="application" />
80
+ <orderEntry type="library" scope="PROVIDED" name="rubyzip (v2.3.2, RVM: ruby-2.7.2) [gem]" level="application" />
81
+ <orderEntry type="library" scope="PROVIDED" name="sentry-ruby (v5.8.0, RVM: ruby-2.7.2) [gem]" level="application" />
82
+ <orderEntry type="library" scope="PROVIDED" name="terminal-table (v3.0.2, RVM: ruby-2.7.2) [gem]" level="application" />
83
+ <orderEntry type="library" scope="PROVIDED" name="tty-color (v0.6.0, RVM: ruby-2.7.2) [gem]" level="application" />
84
+ <orderEntry type="library" scope="PROVIDED" name="tty-cursor (v0.7.1, RVM: ruby-2.7.2) [gem]" level="application" />
85
+ <orderEntry type="library" scope="PROVIDED" name="tty-prompt (v0.23.1, RVM: ruby-2.7.2) [gem]" level="application" />
86
+ <orderEntry type="library" scope="PROVIDED" name="tty-reader (v0.9.0, RVM: ruby-2.7.2) [gem]" level="application" />
87
+ <orderEntry type="library" scope="PROVIDED" name="tty-screen (v0.8.1, RVM: ruby-2.7.2) [gem]" level="application" />
88
+ <orderEntry type="library" scope="PROVIDED" name="typhoeus (v1.4.0, RVM: ruby-2.7.2) [gem]" level="application" />
89
+ <orderEntry type="library" scope="PROVIDED" name="tzinfo (v2.0.6, RVM: ruby-2.7.2) [gem]" level="application" />
90
+ <orderEntry type="library" scope="PROVIDED" name="unf (v0.1.4, RVM: ruby-2.7.2) [gem]" level="application" />
91
+ <orderEntry type="library" scope="PROVIDED" name="unf_ext (v0.0.8.2, RVM: ruby-2.7.2) [gem]" level="application" />
92
+ <orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.4.2, RVM: ruby-2.7.2) [gem]" level="application" />
93
+ <orderEntry type="library" scope="PROVIDED" name="wisper (v2.0.1, RVM: ruby-2.7.2) [gem]" level="application" />
94
+ <orderEntry type="library" scope="PROVIDED" name="xcodeproj (v1.22.0, RVM: ruby-2.7.2) [gem]" level="application" />
95
+ </component>
96
+ <component name="RakeTasksCache">
97
+ <option name="myRootTask">
98
+ <RakeTaskImpl id="rake">
99
+ <subtasks>
100
+ <RakeTaskImpl description="Build KCommercialPipeline-0.2.5.0.gem into the pkg directory" fullCommand="build" id="build" />
101
+ <RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
102
+ <RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
103
+ <RakeTaskImpl description="Build and install KCommercialPipeline-0.2.5.0.gem into system gems" fullCommand="install" id="install" />
104
+ <RakeTaskImpl id="install">
105
+ <subtasks>
106
+ <RakeTaskImpl description="Build and install KCommercialPipeline-0.2.5.0.gem into system gems without network access" fullCommand="install:local" id="local" />
107
+ </subtasks>
108
+ </RakeTaskImpl>
109
+ <RakeTaskImpl description="Create tag v0.2.5.0 and build and push KCommercialPipeline-0.2.5.0.gem to https://rubygems.org" fullCommand="release[remote]" id="release[remote]" />
110
+ <RakeTaskImpl description="Run RuboCop" fullCommand="rubocop" id="rubocop" />
111
+ <RakeTaskImpl id="rubocop">
112
+ <subtasks>
113
+ <RakeTaskImpl description="Auto-correct RuboCop offenses" fullCommand="rubocop:auto_correct" id="auto_correct" />
114
+ </subtasks>
115
+ </RakeTaskImpl>
116
+ <RakeTaskImpl description="Run tests" fullCommand="test" id="test" />
117
+ <RakeTaskImpl description="" fullCommand="default" id="default" />
118
+ <RakeTaskImpl description="" fullCommand="release" id="release" />
119
+ <RakeTaskImpl id="release">
120
+ <subtasks>
121
+ <RakeTaskImpl description="" fullCommand="release:guard_clean" id="guard_clean" />
122
+ <RakeTaskImpl description="" fullCommand="release:rubygem_push" id="rubygem_push" />
123
+ <RakeTaskImpl description="" fullCommand="release:source_control_push" id="source_control_push" />
124
+ </subtasks>
125
+ </RakeTaskImpl>
126
+ </subtasks>
127
+ </RakeTaskImpl>
128
+ </option>
129
+ </component>
130
+ </module>
data/.idea/misc.xml ADDED
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.3.7" project-jdk-type="RUBY_SDK" />
4
+ </project>
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/kcommercialpipeline.iml" filepath="$PROJECT_DIR$/.idea/kcommercialpipeline.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/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.4
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.7.2
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2021-12-23
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders 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, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at huzongxing@kuaishou.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://gem.corp.kuaishou.com"
4
+ source "https://gems.ruby-china.com/"
5
+ # Specify your gem's dependencies in KCommercialPipeline.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "minitest", "~> 5.0"
11
+
12
+ gem "rubocop", "~> 1.7"
13
+
14
+ gem 'cocoadepot'
15
+
16
+ gem 'rubyzip', '~> 2.3', '= 2.3.1'
data/Gemfile.lock ADDED
@@ -0,0 +1,224 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ KCommercialPipeline (0.2.5.1)
5
+ claide
6
+ cocoadepot
7
+ file-utils
8
+ git
9
+ kwai-core
10
+ liquid
11
+ markdown-tables
12
+ pathname
13
+ rest-client
14
+ ruby-enum
15
+ tty-prompt
16
+
17
+ GEM
18
+ remote: https://gem.corp.kuaishou.com/
19
+ remote: https://gems.ruby-china.com/
20
+ specs:
21
+ CFPropertyList (3.0.6)
22
+ rexml
23
+ activesupport (7.0.4.3)
24
+ concurrent-ruby (~> 1.0, >= 1.0.2)
25
+ i18n (>= 1.6, < 2)
26
+ minitest (>= 5.1)
27
+ tzinfo (~> 2.0)
28
+ addressable (2.8.1)
29
+ public_suffix (>= 2.0.2, < 6.0)
30
+ algoliasearch (1.27.5)
31
+ httpclient (~> 2.8, >= 2.8.3)
32
+ json (>= 1.5.1)
33
+ ast (2.4.2)
34
+ atomos (0.1.3)
35
+ buff-ignore (1.2.0)
36
+ chef-utils (18.1.29)
37
+ concurrent-ruby
38
+ claide (1.1.0)
39
+ cocoadepot (0.1.1649749726)
40
+ activesupport
41
+ buff-ignore
42
+ claide
43
+ cocoadepot-core (= 0.1.1649749726)
44
+ cocoadepot-source (= 0.1.1649749726)
45
+ cocoapods (>= 1.10.0)
46
+ cocoapods-pod-linkage
47
+ colored2
48
+ git
49
+ liquid
50
+ mixlib-shellout
51
+ molinillo
52
+ parallel
53
+ rest-client
54
+ ruby-enum
55
+ rubyzip
56
+ sentry-ruby
57
+ terminal-table
58
+ tty-prompt
59
+ cocoadepot-core (0.1.1649749726)
60
+ cocoapods
61
+ cocoapods-core
62
+ colored2
63
+ ruby-enum
64
+ cocoadepot-source (0.1.1649749726)
65
+ cocoadepot-core (= 0.1.1649749726)
66
+ git
67
+ plist
68
+ rest-client
69
+ cocoapods (1.12.0)
70
+ addressable (~> 2.8)
71
+ claide (>= 1.0.2, < 2.0)
72
+ cocoapods-core (= 1.12.0)
73
+ cocoapods-deintegrate (>= 1.0.3, < 2.0)
74
+ cocoapods-downloader (>= 1.6.0, < 2.0)
75
+ cocoapods-plugins (>= 1.0.0, < 2.0)
76
+ cocoapods-search (>= 1.0.0, < 2.0)
77
+ cocoapods-trunk (>= 1.6.0, < 2.0)
78
+ cocoapods-try (>= 1.1.0, < 2.0)
79
+ colored2 (~> 3.1)
80
+ escape (~> 0.0.4)
81
+ fourflusher (>= 2.3.0, < 3.0)
82
+ gh_inspector (~> 1.0)
83
+ molinillo (~> 0.8.0)
84
+ nap (~> 1.0)
85
+ ruby-macho (>= 2.3.0, < 3.0)
86
+ xcodeproj (>= 1.21.0, < 2.0)
87
+ cocoapods-core (1.12.0)
88
+ activesupport (>= 5.0, < 8)
89
+ addressable (~> 2.8)
90
+ algoliasearch (~> 1.0)
91
+ concurrent-ruby (~> 1.1)
92
+ fuzzy_match (~> 2.0.4)
93
+ nap (~> 1.0)
94
+ netrc (~> 0.11)
95
+ public_suffix (~> 4.0)
96
+ typhoeus (~> 1.0)
97
+ cocoapods-deintegrate (1.0.5)
98
+ cocoapods-downloader (1.6.3)
99
+ cocoapods-plugins (1.0.0)
100
+ nap
101
+ cocoapods-pod-linkage (0.0.1)
102
+ cocoapods (~> 1.0)
103
+ cocoapods-search (1.0.1)
104
+ cocoapods-trunk (1.6.0)
105
+ nap (>= 0.8, < 2.0)
106
+ netrc (~> 0.11)
107
+ cocoapods-try (1.2.0)
108
+ colored2 (3.1.2)
109
+ concurrent-ruby (1.2.2)
110
+ domain_name (0.5.20190701)
111
+ unf (>= 0.0.5, < 1.0.0)
112
+ escape (0.0.4)
113
+ ethon (0.16.0)
114
+ ffi (>= 1.15.0)
115
+ ffi (1.15.5)
116
+ file-utils (0.1.1)
117
+ fourflusher (2.3.1)
118
+ fuzzy_match (2.0.4)
119
+ gh_inspector (1.1.3)
120
+ git (1.17.2)
121
+ addressable (~> 2.8)
122
+ rchardet (~> 1.8)
123
+ http-accept (1.7.0)
124
+ http-cookie (1.0.5)
125
+ domain_name (~> 0.5)
126
+ httpclient (2.8.3)
127
+ i18n (1.12.0)
128
+ concurrent-ruby (~> 1.0)
129
+ json (2.6.3)
130
+ kwai-core (0.2.1)
131
+ liquid (5.4.0)
132
+ markdown-tables (1.1.1)
133
+ mime-types (3.4.1)
134
+ mime-types-data (~> 3.2015)
135
+ mime-types-data (3.2023.0218.1)
136
+ minitest (5.18.0)
137
+ mixlib-shellout (3.2.7)
138
+ chef-utils
139
+ molinillo (0.8.0)
140
+ nanaimo (0.3.0)
141
+ nap (1.1.0)
142
+ netrc (0.11.0)
143
+ parallel (1.22.1)
144
+ parser (3.2.1.1)
145
+ ast (~> 2.4.1)
146
+ pastel (0.8.0)
147
+ tty-color (~> 0.5)
148
+ pathname (0.2.1)
149
+ plist (3.7.0)
150
+ public_suffix (4.0.7)
151
+ rainbow (3.1.1)
152
+ rake (13.0.6)
153
+ rchardet (1.8.0)
154
+ regexp_parser (2.7.0)
155
+ rest-client (2.1.0)
156
+ http-accept (>= 1.7.0, < 2.0)
157
+ http-cookie (>= 1.0.2, < 2.0)
158
+ mime-types (>= 1.16, < 4.0)
159
+ netrc (~> 0.8)
160
+ rexml (3.2.5)
161
+ rubocop (1.48.1)
162
+ json (~> 2.3)
163
+ parallel (~> 1.10)
164
+ parser (>= 3.2.0.0)
165
+ rainbow (>= 2.2.2, < 4.0)
166
+ regexp_parser (>= 1.8, < 3.0)
167
+ rexml (>= 3.2.5, < 4.0)
168
+ rubocop-ast (>= 1.26.0, < 2.0)
169
+ ruby-progressbar (~> 1.7)
170
+ unicode-display_width (>= 2.4.0, < 3.0)
171
+ rubocop-ast (1.27.0)
172
+ parser (>= 3.2.1.0)
173
+ ruby-enum (0.9.0)
174
+ i18n
175
+ ruby-macho (2.5.1)
176
+ ruby-progressbar (1.13.0)
177
+ rubyzip (2.3.1)
178
+ sentry-ruby (5.8.0)
179
+ concurrent-ruby (~> 1.0, >= 1.0.2)
180
+ terminal-table (3.0.2)
181
+ unicode-display_width (>= 1.1.1, < 3)
182
+ tty-color (0.6.0)
183
+ tty-cursor (0.7.1)
184
+ tty-prompt (0.23.1)
185
+ pastel (~> 0.8)
186
+ tty-reader (~> 0.8)
187
+ tty-reader (0.9.0)
188
+ tty-cursor (~> 0.7)
189
+ tty-screen (~> 0.8)
190
+ wisper (~> 2.0)
191
+ tty-screen (0.8.1)
192
+ typhoeus (1.4.0)
193
+ ethon (>= 0.9.0)
194
+ tzinfo (2.0.6)
195
+ concurrent-ruby (~> 1.0)
196
+ unf (0.1.4)
197
+ unf_ext
198
+ unf_ext (0.0.8.2)
199
+ unicode-display_width (2.4.2)
200
+ wisper (2.0.1)
201
+ xcodeproj (1.22.0)
202
+ CFPropertyList (>= 2.3.3, < 4.0)
203
+ atomos (~> 0.1.3)
204
+ claide (>= 1.0.2, < 2.0)
205
+ colored2 (~> 3.1)
206
+ nanaimo (~> 0.3.0)
207
+ rexml (~> 3.2.4)
208
+
209
+ PLATFORMS
210
+ ruby
211
+ x86_64-darwin-19
212
+ x86_64-darwin-20
213
+ x86_64-darwin-21
214
+
215
+ DEPENDENCIES
216
+ KCommercialPipeline!
217
+ cocoadepot
218
+ minitest (~> 5.0)
219
+ rake (~> 13.0)
220
+ rubocop (~> 1.7)
221
+ rubyzip (~> 2.3, = 2.3.1)
222
+
223
+ BUNDLED WITH
224
+ 2.2.24
Binary file
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/KCommercialPipeline/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "KCommercialPipeline"
7
+ spec.version = KCommercialPipeline::VERSION
8
+ spec.authors = ["huzongxing"]
9
+ spec.email = ["huzongxing@kuaishou.com"]
10
+
11
+ spec.summary = "kcommercial pipeline tools"
12
+ spec.description = "kcommercial pipeline tools"
13
+ spec.homepage = "https://git.corp.kuaishou.com/exploration-client/KCommercialPipeline.git"
14
+ spec.license = "MIT"
15
+
16
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
17
+ spec.metadata['homepage_uri'] = spec.homepage
18
+ spec.metadata['source_code_uri'] = 'https://git.corp.kuaishou.com/exploration-client/KCommercialPipeline.git'
19
+ spec.metadata['changelog_uri'] = 'https://rubygems.org'
20
+
21
+ spec.required_ruby_version = ">= 2.4.0"
22
+
23
+
24
+ # Specify which files should be added to the gem when it is released.
25
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
26
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
27
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
28
+ end
29
+ spec.bindir = 'bin'
30
+ spec.executables = ['KCommercialPipeline']
31
+ spec.require_paths = ['lib']
32
+
33
+ spec.add_runtime_dependency 'claide'
34
+ spec.add_runtime_dependency 'kwai-core'
35
+ spec.add_runtime_dependency "rest-client"
36
+ spec.add_runtime_dependency "ruby-enum"
37
+ spec.add_runtime_dependency 'git'
38
+ spec.add_runtime_dependency 'markdown-tables'
39
+ spec.add_runtime_dependency 'tty-prompt'
40
+ spec.add_runtime_dependency 'file-utils'
41
+ spec.add_runtime_dependency 'pathname'
42
+ spec.add_runtime_dependency 'liquid'
43
+ spec.add_runtime_dependency 'cocoadepot'
44
+ # Uncomment to register a new dependency of your gem
45
+ # spec.add_dependency "example-gem", "~> 1.0"
46
+
47
+ # For more information and examples about making a new gem, checkout our
48
+ # guide at: https://bundler.io/guides/creating_gem.html
49
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 huzongxing
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.