DYAutomate 1.1.4 → 1.1.5

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: fd0ed0bb0eee6aeaed3bd2d0b1797fa505bc8ad4f7e78f6a90bcd213a997a4dd
4
- data.tar.gz: 6da66ccf749afef5502e9af5e1e6cd6f211b3dd1428272734a3e9e96841496e8
3
+ metadata.gz: 7464e070b8d6ea964eb5c255de678fd531d23955c8e851696f29119fc4078ab8
4
+ data.tar.gz: c6ea05feca63a3c0d4372d506edaf980a75c538a7404d444238577cb35ccbb87
5
5
  SHA512:
6
- metadata.gz: ba7999eb56829b33a5ac21ef8775bac4204eae60dda0f9c58e90c510b4c9ec943c7f439cc14bd8c9bf9ebc6cb7c2d980de80fe550c4912b29f787530937eb50c
7
- data.tar.gz: 0005ba4dd079fbf013d97b2cdc8b9fb17ee04ec74feded7ce7596a951ec0886145920cf63ae230a62a408e356c4393a05ae0faf32146f8ba1fb4b715200f157d
6
+ metadata.gz: 3322a16cbdd540a2244077c7e725a41098cf66d5d6b64f07149a32af331cc32e8c16583946fc19ad4d729229c5e410713224053d2c9fadd301d48ecce7ee17be
7
+ data.tar.gz: 564ff4d2745d164d36863b5da47c922e30375242b9f2d96cf978c6fc2b0d0eb81edf317f5df2b9752555653005dd8898ab744d3aa10bb0a57bb125f0b4c51db2
data/README.md CHANGED
@@ -22,17 +22,69 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ ### 代码模版
26
+ - 自动生成代码
27
+ ```
28
+ dj code
29
+ ```
30
+ - 拷贝代码片段到xcode中
31
+ ```
32
+ dj snippet
33
+ ```
34
+
35
+ ### 私有库
36
+ - 查看使用方法
37
+ ```
38
+ dj pod -h
39
+ ```
40
+ - 版本更改 1.1.1 -> 1.1.2
41
+ ```
42
+ dj pod ver 1
43
+ ```
44
+ 或者
45
+ ```
46
+ dj pod ver 0 1
47
+ ```
48
+ - 版本更改 1.1.1 -> 1.2.0
49
+ ```
50
+ dj pod ver 1 0
51
+ ```
52
+ - 提交私有库
53
+ ```
54
+ dj pod push
55
+ ```
56
+
57
+ ### workspce
58
+ - 项目pod update
59
+ ```
60
+ dj ws up
61
+ ```
62
+ - 项目pod install
63
+ ```
64
+ dj ws in
65
+ ```
26
66
 
27
67
  ## Development
28
68
 
29
69
  After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
70
 
71
+ For build
72
+ ```
73
+ bundle rake build
74
+ ```
75
+
76
+ For push
77
+ ```
78
+ gem push DYAutomate.gemspec
79
+ ```
80
+ or ↓↓↓↓↓↓
81
+
31
82
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
83
 
33
84
  ## Contributing
34
85
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/DYAutomate. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
86
+ 有问题,可以
87
+ > Email:784767574@qq.com
36
88
 
37
89
  ## License
38
90
 
@@ -25,23 +25,23 @@ module DYAutomate
25
25
  # self.plugin_prefixes = %w(claide DYAutomate)
26
26
 
27
27
  def initialize(argv)
28
- super
29
- @config = DYAutomateConfig.loadConfig
30
- @env_str = @config.detailObj.env_str if @config
31
- @repoName = @config.detailObj.private_repo_name if @config
28
+ super
29
+ @config = DYAutomateConfig.loadConfig
30
+ @env_str = @config.detailObj.env_str if @config
31
+ @repoName = @config.detailObj.private_repo_name if @config
32
32
  end
33
33
 
34
- def self.options
35
- [
36
- ['--silent', 'Show nothing'],
37
- ].concat(super)
38
- end
34
+ # def self.options
35
+ # [
36
+ # ['--silent', 'Show nothing'],
37
+ # ].concat(super)
38
+ # end
39
39
 
40
40
  def run
41
41
  pp('automate works!!',1)
42
42
  end
43
43
 
44
- def pp(msg,level)
44
+ def pp(msg,level = 2)
45
45
  unless msg
46
46
  return
47
47
  end
@@ -0,0 +1,44 @@
1
+
2
+ require 'Core/DYBaseObj'
3
+
4
+ class TestInfo < DYBaseObj
5
+ attr_accessor :user_name
6
+ attr_accessor :user_name
7
+ attr_accessor :git_branch
8
+ attr_accessor :version
9
+ attr_accessor :has_merge_master
10
+ attr_accessor :ipa_qrcode_url
11
+ end
12
+
13
+ module DYAutomate
14
+ class Command
15
+ class TaskFlow <Command
16
+ class Test < TaskFlow
17
+
18
+ # self.abstract_command = true
19
+ self.command = 'test'
20
+ self.summary = "
21
+ 提交测试
22
+ "
23
+ self.arguments = [
24
+ # CLAide::Argument.new('addVersion', false,'升级一个小版本'),
25
+ # CLAide::Argument.new('addBigVersion', false)
26
+ ]
27
+
28
+
29
+ def initialize(argv)
30
+ super
31
+ end
32
+
33
+ def run
34
+ loop do
35
+ UI.puts("请输入你的名字")
36
+ end
37
+
38
+ end
39
+
40
+ end
41
+ end
42
+ end
43
+ end
44
+
@@ -18,6 +18,7 @@ module DYAutomate
18
18
  # #查询结果lib信息
19
19
  # attr_accessor :info
20
20
 
21
+
21
22
  def initialize(argv)
22
23
  # @name = argv.shift_argument
23
24
  super
@@ -48,8 +49,12 @@ module DYAutomate
48
49
  else
49
50
  pp("pod install 失败",1)
50
51
  end
51
- system "sleep 3"
52
- system "open *.xcworkspace"
52
+
53
+ unless isSilent
54
+ system "sleep 3"
55
+ system "open *.xcworkspace"
56
+ end
57
+
53
58
  end
54
59
 
55
60
  end
@@ -9,12 +9,12 @@ module DYAutomate
9
9
  # self.abstract_command = true
10
10
  self.command = 'up'
11
11
  self.summary = '更新repo,并update'
12
- self.arguments = [
13
- # CLAide::Argument.new('NAME', true),
14
- ]
12
+ # self.arguments = [
13
+ # CLAide::Argument.new('quiet', false),
14
+ # ]
15
15
 
16
16
  # #要查询的lib名字
17
- # attr_accessor :name
17
+ attr_accessor :quiet
18
18
  # #查询结果lib信息
19
19
  # attr_accessor :info
20
20
 
@@ -48,8 +48,12 @@ module DYAutomate
48
48
  else
49
49
  pp("pod update 失败",1)
50
50
  end
51
- system "sleep 3"
52
- system "open *.xcworkspace"
51
+
52
+ unless @isSilent
53
+ system "sleep 3"
54
+ system "open *.xcworkspace"
55
+ end
56
+
53
57
  end
54
58
 
55
59
  end
@@ -70,6 +70,7 @@ module DYAutomate
70
70
  v
71
71
  end
72
72
 
73
+ # 1.1.1 => 1.1.2
73
74
  def get_version_new
74
75
  new_v = ''
75
76
  cur_v = get_spec_version
@@ -87,6 +88,7 @@ module DYAutomate
87
88
  new_v
88
89
  end
89
90
 
91
+ # 1.1.1 => 1.2.0
90
92
  def get_version_big_new
91
93
  new_v = ''
92
94
  cur_v = get_spec_version
@@ -0,0 +1,39 @@
1
+ module DYAutomate
2
+ class Command
3
+ class TaskFlow < Command
4
+
5
+ self.abstract_command = true
6
+ self.command = 'task'
7
+ self.summary = 'task相关'
8
+ # self.default_subcommand = 'list'
9
+ self.arguments = [
10
+ CLAide::Argument.new('NAME', true),
11
+ ]
12
+
13
+ #路径
14
+ attr_accessor :path
15
+ # #查询结果lib信息
16
+ attr_accessor :git_obj
17
+
18
+ def initialize(argv)
19
+ super
20
+ end
21
+
22
+ def validate!
23
+ super
24
+ # unless @name
25
+ # help! 'need the lib `NAME`.'
26
+ # end
27
+
28
+ # unless existGit?
29
+ # help! "at #{Dir.pwd},is not git"
30
+ # end
31
+ end
32
+
33
+ def run
34
+ pp('git run ...',1)
35
+ end
36
+
37
+ end
38
+ end
39
+ end
@@ -12,6 +12,12 @@ module DYAutomate
12
12
  # CLAide::Argument.new('NAME', true),
13
13
  ]
14
14
 
15
+ def self.options
16
+ [
17
+ ['--silent', 'Show nothing'],
18
+ ].concat(super)
19
+ end
20
+
15
21
  #lib名字
16
22
  attr_accessor :name
17
23
  #当前路径
@@ -22,10 +28,14 @@ module DYAutomate
22
28
  # #查询结果lib信息
23
29
  attr_accessor :workSpace_path
24
30
 
31
+ # 是否静默
32
+ attr_accessor :isSilent
33
+
25
34
  def initialize(argv)
26
35
  # @path = '/Users/cw/Documents/Dy/Apps/doing/doing'
27
36
  super
28
37
  @path = Dir.pwd
38
+ @isSilent = argv.flag?("silent")
29
39
  puts "env == #{@env_str}"
30
40
  end
31
41
 
@@ -1,3 +1,3 @@
1
1
  module DYAutomate
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: DYAutomate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - 陈冬冬
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-09 00:00:00.000000000 Z
11
+ date: 2021-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -145,12 +145,14 @@ files:
145
145
  - lib/DYAutomate/Command/Git/tagAdd.rb
146
146
  - lib/DYAutomate/Command/Pod/push.rb
147
147
  - lib/DYAutomate/Command/Pod/version.rb
148
+ - lib/DYAutomate/Command/TaksFlow/test.rb
148
149
  - lib/DYAutomate/Command/Workspace/install.rb
149
150
  - lib/DYAutomate/Command/Workspace/update.rb
150
151
  - lib/DYAutomate/Command/codeGenerate.rb
151
152
  - lib/DYAutomate/Command/codeSnippet.rb
152
153
  - lib/DYAutomate/Command/dgit.rb
153
154
  - lib/DYAutomate/Command/pod.rb
155
+ - lib/DYAutomate/Command/taskFlow.rb
154
156
  - lib/DYAutomate/Command/workspace.rb
155
157
  - lib/DYAutomate/CustomConfig/DYAutomateConfig.rb
156
158
  - lib/DYAutomate/version.rb
@@ -176,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
178
  version: '0'
177
179
  requirements: []
178
180
  rubyforge_project:
179
- rubygems_version: 2.7.8
181
+ rubygems_version: 2.7.11
180
182
  signing_key:
181
183
  specification_version: 4
182
184
  summary: 自动化工具