DYAutomate 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 438507c33cf700baf806f30fe9affe634ca0384e
4
- data.tar.gz: b85adef4ae7fdf87feffe6c93dd208eb8339fc53
3
+ metadata.gz: 8cece690d31b9c48e92f8d2fbed11fde2acd5fd7
4
+ data.tar.gz: 187b6d0fde6816001bf9cfb720f705ba78c404cd
5
5
  SHA512:
6
- metadata.gz: f4e43f68cb255bc3003615e922314ff25fe3f357074fc69034dd05cb4585f9c7208452d0f62d1775b0f20af590742985178787d84c682ac9fc472b341fd1d696
7
- data.tar.gz: 78a16749ad3cc6a01645fdefed2da52fe4fdb2a8b7ca0684693625f7e8ec04ebd9e23052950567a4050551a826b66146bb983e7da0b32ce3f6499da0ffac1e41
6
+ metadata.gz: 91ec377a56e5c67bb1af469d3016847001571d120ba6ba4f5b1f545db51b5690b0c85c93f50633a117d42fea1af6b7e02b7035140e91d4a59fc6bca452332334
7
+ data.tar.gz: d2eb99d791b057c03dd569daa97ea1fbd316b823901cc0f7a94c80f1d3769b8a329465d5d886edcccce9c34cb25b1755d19044d7e8bc4981280315d514054c66
@@ -6,7 +6,13 @@ module DYAutomate
6
6
 
7
7
  # self.abstract_command = true
8
8
  self.command = 'ver'
9
- self.summary = '修改podspec文件版本号'
9
+ self.summary = '''
10
+ 修改podspec文件版本号
11
+ 用法:
12
+ `dj pod ver 1` 只升级一个小版本0.1.0 --> 0.1.1
13
+ `dj pod ver 1 1` 升级一个小版本和一个大版本 0.1.0 --> 0.2.1
14
+ `dj pod ver 0 1` 只升级一个大版本 0.1.0 --> 0.2.0
15
+ '''
10
16
  self.arguments = [
11
17
  CLAide::Argument.new('addVersion', false),
12
18
  CLAide::Argument.new('addBigVersion', false)
@@ -42,8 +42,9 @@ module DYAutomate
42
42
  end
43
43
 
44
44
  def do_install
45
- system "rm -rf Podfile.lock"
46
- isOk = system "pod install"
45
+ # system "rm -rf Podfile.lock"
46
+ # system "rm -rf Pods/*"
47
+ isOk = system "pod update --no-repo-update"
47
48
  if isOk
48
49
  pp("pod install 成功",1)
49
50
  else
@@ -7,7 +7,7 @@ module DYAutomate
7
7
 
8
8
  self.abstract_command = true
9
9
  self.command = 'pod'
10
- self.summary = 'pod的相关操作'
10
+ self.summary = '私有库的相关操作'
11
11
  # self.default_subcommand = 'list'
12
12
  self.arguments = [
13
13
  # CLAide::Argument.new('NAME', true),
@@ -26,6 +26,7 @@ module DYAutomate
26
26
  def initialize(argv)
27
27
  @path = Dir.pwd
28
28
  # @path = '/Users/cdd/Documents/Dy/podsDemo/DYPodDemoA'
29
+ # @repoName = CoreConfig::Core_previte_repo_name
29
30
  @repoName = 'dy_repo_private_pods'
30
31
  super
31
32
  end
@@ -33,7 +34,8 @@ module DYAutomate
33
34
  def validate!
34
35
  super
35
36
  unless existPodspec?
36
- help! "!!! has no podspec file at #{@path}"
37
+ help! "
38
+ error -- >!!! has no podspec file at #{@path}"
37
39
  else
38
40
  puts "find podspec" + "#{@spec_path}"
39
41
  end
@@ -29,7 +29,8 @@ module DYAutomate
29
29
  def validate!
30
30
  super
31
31
  unless existProject?
32
- help! "!!! has no project file at --> #{@path}"
32
+ help! "
33
+ error -- >has no project file at --> #{@path}"
33
34
  else
34
35
  pp("find project at -->#{@project_path}",1)
35
36
  end
@@ -1,8 +1,9 @@
1
1
  require 'DYAutomate.rb'
2
2
  require 'version'
3
+ # require 'CoreConfig'
3
4
 
4
5
  module DYAutomate
5
-
6
+ # include CoreConfig
6
7
  require 'CLAide'
7
8
 
8
9
  class Command < CLAide::Command
@@ -1,3 +1,3 @@
1
1
  module DYAutomate
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
data/lib/DYAutomate.rb CHANGED
@@ -2,10 +2,7 @@
2
2
  require 'DYAutomate/Command'
3
3
 
4
4
  module DYAutomate
5
-
6
5
  autoload :Command ,'DYAutomate/Command'
7
6
  require 'colored2'
8
-
9
- end
10
-
11
7
 
8
+ 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.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - 陈冬冬
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-20 00:00:00.000000000 Z
11
+ date: 2019-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler