yk_command 0.6.0 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8141c13dc6a21ae4316b17bb6ed7e898d1bcb10b7da807f2ec260bfb265b7edf
4
- data.tar.gz: fd594731ce8ba2b53b4a423d998a595eb614b0a280bb008b198511bf60001f87
3
+ metadata.gz: e9efefd1421026f4b6d7d44c64b8a8218ee45195f18482042f18da822c3c2c0e
4
+ data.tar.gz: 3ff7b72cdd607cfb6232fd9340916d6987b179a4319d002c7936a90055561e78
5
5
  SHA512:
6
- metadata.gz: 64389641575f68250532456ef3a76db5bd6ca9e2eaf7bcfaeaa68b485e512f29285a766445380993acfd255855480946e9230fbad97358d56894c4e36160d36b
7
- data.tar.gz: 40427b17ae505f219e78773976b3a3f68394e94d1c239385c2478803ae8df15b90def0b11aaf8962eea11034b3c0d1dc68635f6e82728a40a939c7bb8b926308
6
+ metadata.gz: 9ab433c9b8782a627d8267bfa17c56350dd936e2adba639c77b81b8809ba150c1484558127b15595ac8dd048eca3fd7ba6935f564ce83fd8eb00d51e2ea68c10
7
+ data.tar.gz: 31d22ea4a91433460a10808175ef04a1f1e1b39767e512ddaa1a9e8dabdbef8ee2b9a081bf105bfb017bd0caa325f7e9fd402ee08584d4a1dfa7637338a05b3d
@@ -0,0 +1,5 @@
1
+ ---
2
+ env: pro
3
+ version: 0.6.1
4
+ description:
5
+ deprecated_versions:
@@ -49,8 +49,6 @@ L
49
49
  lib/yk_command/bot/wx_bot.rb,9/c/9ccc9859ad5a25f9d8c2fe66d0a2c70b83c5e6df
50
50
  R
51
51
  "lib/yk_command/config/yk_config.rb,1/e/1ec6c529ce5687a35e0a698c41bf34941e1d50c2
52
- B
53
- yk_command.gemspec,8/2/82876f8dba21abb384c0c797b357f7e1280d8e1b
54
52
  9
55
53
  bin/setup,3/f/3f490f8da820b05ec772996143c1dd5b3498f750
56
54
  R
@@ -61,8 +59,6 @@ T
61
59
  $lib/yk_command/project/yk_project.rb,5/6/56b2d27b09b172bae1a27bc07f664d2ed5a6c3c6
62
60
  >
63
61
  bin/yk_command,2/5/25e93a9fc14ed57a04c2d97b92a72bda06e42ea8
64
- c
65
- 3lib/yk_command/component_manage/.YKServerConfig.yml,8/6/860c97f3074da2ed5679b85b54ffac9221eae5e2
66
62
  �
67
63
  Wlib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/CPDAppDelegate.h,8/4/84d82ed4b9fd718992be77e8ffd0bbb2d6e84470
68
64
  d
data/.idea/yk_command.iml CHANGED
@@ -12,7 +12,7 @@
12
12
  <orderEntry type="jdk" jdkName="rbenv: 2.7.6" jdkType="RUBY_SDK" />
13
13
  <orderEntry type="sourceFolder" forTests="false" />
14
14
  <orderEntry type="library" scope="PROVIDED" name="CFPropertyList (v3.0.5, rbenv: 2.7.6) [gem]" level="application" />
15
- <orderEntry type="library" scope="PROVIDED" name="activesupport (v6.1.6, rbenv: 2.7.6) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="activesupport (v6.1.6.1, rbenv: 2.7.6) [gem]" level="application" />
16
16
  <orderEntry type="library" scope="PROVIDED" name="addressable (v2.8.0, rbenv: 2.7.6) [gem]" level="application" />
17
17
  <orderEntry type="library" scope="PROVIDED" name="algoliasearch (v1.27.5, rbenv: 2.7.6) [gem]" level="application" />
18
18
  <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, rbenv: 2.7.6) [gem]" level="application" />
@@ -40,11 +40,11 @@
40
40
  <orderEntry type="library" scope="PROVIDED" name="git (v1.11.0, rbenv: 2.7.6) [gem]" level="application" />
41
41
  <orderEntry type="library" scope="PROVIDED" name="httparty (v0.20.0, rbenv: 2.7.6) [gem]" level="application" />
42
42
  <orderEntry type="library" scope="PROVIDED" name="httpclient (v2.8.3, rbenv: 2.7.6) [gem]" level="application" />
43
- <orderEntry type="library" scope="PROVIDED" name="i18n (v1.10.0, rbenv: 2.7.6) [gem]" level="application" />
43
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v1.12.0, rbenv: 2.7.6) [gem]" level="application" />
44
44
  <orderEntry type="library" scope="PROVIDED" name="json (v2.6.2, rbenv: 2.7.6) [gem]" level="application" />
45
45
  <orderEntry type="library" scope="PROVIDED" name="mime-types (v3.4.1, rbenv: 2.7.6) [gem]" level="application" />
46
46
  <orderEntry type="library" scope="PROVIDED" name="mime-types-data (v3.2022.0105, rbenv: 2.7.6) [gem]" level="application" />
47
- <orderEntry type="library" scope="PROVIDED" name="minitest (v5.15.0, rbenv: 2.7.6) [gem]" level="application" />
47
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.16.2, rbenv: 2.7.6) [gem]" level="application" />
48
48
  <orderEntry type="library" scope="PROVIDED" name="molinillo (v0.8.0, rbenv: 2.7.6) [gem]" level="application" />
49
49
  <orderEntry type="library" scope="PROVIDED" name="multi_xml (v0.6.0, rbenv: 2.7.6) [gem]" level="application" />
50
50
  <orderEntry type="library" scope="PROVIDED" name="nanaimo (v0.3.0, rbenv: 2.7.6) [gem]" level="application" />
@@ -70,11 +70,11 @@
70
70
  <orderEntry type="library" scope="PROVIDED" name="rubyzip (v2.3.2, rbenv: 2.7.6) [gem]" level="application" />
71
71
  <orderEntry type="library" scope="PROVIDED" name="thor (v1.2.1, rbenv: 2.7.6) [gem]" level="application" />
72
72
  <orderEntry type="library" scope="PROVIDED" name="typhoeus (v1.4.0, rbenv: 2.7.6) [gem]" level="application" />
73
- <orderEntry type="library" scope="PROVIDED" name="tzinfo (v2.0.4, rbenv: 2.7.6) [gem]" level="application" />
73
+ <orderEntry type="library" scope="PROVIDED" name="tzinfo (v2.0.5, rbenv: 2.7.6) [gem]" level="application" />
74
74
  <orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.1.0, rbenv: 2.7.6) [gem]" level="application" />
75
75
  <orderEntry type="library" scope="PROVIDED" name="wechat_work_webhook (v0.1.0, rbenv: 2.7.6) [gem]" level="application" />
76
76
  <orderEntry type="library" scope="PROVIDED" name="xcodeproj (v1.21.0, rbenv: 2.7.6) [gem]" level="application" />
77
- <orderEntry type="library" scope="PROVIDED" name="zeitwerk (v2.5.4, rbenv: 2.7.6) [gem]" level="application" />
77
+ <orderEntry type="library" scope="PROVIDED" name="zeitwerk (v2.6.0, rbenv: 2.7.6) [gem]" level="application" />
78
78
  </component>
79
79
  <component name="RakeTasksCache">
80
80
  <option name="myRootTask">
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yk_command (0.6.0)
4
+ yk_command (0.6.2)
5
5
  bundler
6
6
  cocoapods
7
7
  cocoapods-core
@@ -123,7 +123,7 @@ module YkCommand
123
123
  say "failed :#{failed_count},#{failed_name_list}", :red
124
124
  say "skip :#{skip_count}", :yellow
125
125
 
126
- # bot_message path ,success_name_list,failed_name_list
126
+ bot_message path ,success_name_list,failed_name_list
127
127
 
128
128
  end
129
129
 
@@ -8,7 +8,7 @@ module YkCommand
8
8
 
9
9
  def initialize(config)
10
10
  @config = config
11
- self.class.base_uri @config[:local]
11
+ self.class.base_uri @config[:pro]
12
12
  puts "🍉 #{self.class.base_uri}"
13
13
  end
14
14
 
@@ -29,7 +29,7 @@ module YkCommand
29
29
 
30
30
  desc 'create_simple_project <Path>', '在某个路径下交互式生成一个简单的demo项目'
31
31
  method_option :create, aliases: '-c'
32
-
32
+
33
33
  def create_simple_project(path = nil)
34
34
  YkModule.new(self .args,self .options ).create(path,true )
35
35
  end
@@ -0,0 +1,14 @@
1
+ # references:
2
+ # * https://www.objc.io/issues/6-build-tools/travis-ci/
3
+ # * https://github.com/supermarin/xcpretty#usage
4
+
5
+ osx_image: xcode7.3
6
+ language: objective-c
7
+ # cache: cocoapods
8
+ # podfile: Example/Podfile
9
+ # before_install:
10
+ # - gem install cocoapods # Since Travis is not always on latest version
11
+ # - pod install --project-directory=Example
12
+ script:
13
+ - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/${POD_NAME}.xcworkspace -scheme ${POD_NAME}-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
14
+ - pod lib lint
@@ -0,0 +1,14 @@
1
+ # references:
2
+ # * https://www.objc.io/issues/6-build-tools/travis-ci/
3
+ # * https://github.com/supermarin/xcpretty#usage
4
+
5
+ osx_image: xcode7.3
6
+ language: objective-c
7
+ # cache: cocoapods
8
+ # podfile: Example/Podfile
9
+ # before_install:
10
+ # - gem install cocoapods # Since Travis is not always on latest version
11
+ # - pod install --project-directory=Example
12
+ script:
13
+ - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/${POD_NAME}.xcworkspace -scheme ${POD_NAME}-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
14
+ - pod lib lint
@@ -0,0 +1,5 @@
1
+ component_name: <%= @component_name%>
2
+ env: <%= @env%>
3
+ version: <%= @version%>
4
+ description: <%= @description%>
5
+ deprecated_versions:
@@ -122,15 +122,21 @@ module YkCommand
122
122
 
123
123
  old_version_string = config['deprecated_versions'].join(",")
124
124
 
125
- deprecated_versions = read_user_input('请上报需要升级的版本号(三位数字版本号,用逗号分隔)', "Component Deprecated Versions",old_version_string , nil)
126
-
125
+ deprecated_versions = read_user_input('请上报需要升级的版本号(三位数字版本号,用逗号分隔),无输入则跳过', "Component Deprecated Versions",old_version_string , nil)
126
+ if deprecated_versions == old_version_string
127
+ say '跳过过期版本上报......', :yellow
128
+ exit
129
+ elsif
127
130
  deprecated_versions.split(',').each do |version|
128
131
  unless version.match(/\d\.\d.\d/)
129
132
  say '版本号输入不合法', :red
130
133
  exit
131
134
  end
132
135
  end
136
+ end
137
+
133
138
 
139
+ say '正在上报过期版本......', :yellow
134
140
  config['deprecated_versions'] = config['deprecated_versions']|deprecated_versions.split(',')
135
141
  File.open(config_file_path, 'w') do |f|
136
142
  f.write config.to_yaml
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module YkCommand
4
- VERSION = '0.6.0'.freeze
4
+ VERSION = '0.6.2'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yk_command
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Major Tom
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-16 00:00:00.000000000 Z
11
+ date: 2022-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -230,6 +230,7 @@ executables:
230
230
  extensions: []
231
231
  extra_rdoc_files: []
232
232
  files:
233
+ - ".YKPodSpecConfig.yml"
233
234
  - ".idea/.gitignore"
234
235
  - ".idea/misc.xml"
235
236
  - ".idea/modules.xml"
@@ -300,6 +301,7 @@ files:
300
301
  - lib/yk_command/module/template/swift/RouterDefine.swift
301
302
  - lib/yk_command/module/yk_module.rb
302
303
  - lib/yk_command/project/YKProjectTemplate/.gitignore
304
+ - lib/yk_command/project/YKProjectTemplate/.travis.yml
303
305
  - lib/yk_command/project/YKProjectTemplate/CODE_OF_CONDUCT.md
304
306
  - lib/yk_command/project/YKProjectTemplate/LICENSE
305
307
  - lib/yk_command/project/YKProjectTemplate/NAME-osx.podspec
@@ -360,6 +362,7 @@ files:
360
362
  - lib/yk_command/project/setup/ProjectManipulator.rb
361
363
  - lib/yk_command/project/setup/TemplateConfigurator.rb
362
364
  - lib/yk_command/project/simple_project_template/.gitignore
365
+ - lib/yk_command/project/simple_project_template/.travis.yml
363
366
  - lib/yk_command/project/simple_project_template/CODE_OF_CONDUCT.md
364
367
  - lib/yk_command/project/simple_project_template/LICENSE
365
368
  - lib/yk_command/project/simple_project_template/NAME-osx.podspec
@@ -419,6 +422,7 @@ files:
419
422
  - lib/yk_command/project/test_examples/xctest.m
420
423
  - lib/yk_command/project/test_examples/xctest.swift
421
424
  - lib/yk_command/project/yk_project.rb
425
+ - lib/yk_command/repo_publish/component_default.yml
422
426
  - lib/yk_command/repo_publish/component_publish.rb
423
427
  - lib/yk_command/version.rb
424
428
  - sig/yk_command.rbs