orientepodspecpush 0.1.1 → 0.1.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: 0be18ce9e6bc59adb214d016f6917f259dd283bccb7a9fac5a0b7d679a67fb94
4
- data.tar.gz: f62e6968808459c36573878f403089a00c18e1135053a0b0f68b34eac594a18a
3
+ metadata.gz: 5bae0ffb602e90b3cbdd44704705b8f23544d064c27dbb47a3b568a7e27b84f5
4
+ data.tar.gz: de357d0ba368533bbeb6d5ad41458c8f1ccb8a8d2e51215eb301ca8a0735780a
5
5
  SHA512:
6
- metadata.gz: 6991d9c97e3b73ca84d2837af604469fc271a7debd6ef3c850994fe7a2f872edda399125a06094581142ba5fc6f946f6d232b3413b2c21f969b2f37f9998b107
7
- data.tar.gz: 4e29b83ffe01c3c1d86eea2f8c77abb9db8eaec009dada3d07c138b936302a0350d9453dd7aced2ab352bae8480b01715f16db1247179276647b8bfa7b08f8f8
6
+ metadata.gz: 7ad6a2747690a9ce7c63351f5402aebc7aec8a085290207efedad4c413da07fd6bd5c307be0deaf6395bbc3ecdc9a8957450451c34e5613b846c1057b4173b42
7
+ data.tar.gz: 2a527fea4a97cd5ad1259304de89cded1ceef0820b2291b0bb270e746fc39b908e8ea9fc1f66df7118b63ec06926f98687ea19e7c9613ace5a0933c624c590ef
@@ -21,15 +21,18 @@ module Orientepodspecpush
21
21
  end
22
22
 
23
23
  def package
24
+ puts "start package".green
24
25
  cmd = []
25
26
  cmd << ['bundle exec'] if shouldUseBundleExec
26
27
  podPackage = "pod package #{specfile}"
27
- if opts[:package] != nil
28
- podPackage + opts[:package]
28
+ unless opts[:package] == nil
29
+ podPackage + opts[:package].to_s
29
30
  end
30
31
  cmd << [podPackage]
31
32
 
32
33
  system cmd.join(' ')
34
+
35
+ puts "finish package".green
33
36
  # system "git add ."
34
37
  # system "git commit -m 'upload framework'"
35
38
  # system "git push origin master"
@@ -52,8 +55,8 @@ module Orientepodspecpush
52
55
  lintCmd = []
53
56
  lintCmd << ['bundle exec'] if shouldUseBundleExec
54
57
  podSpecLint = "pod spec lint"
55
- if opts[:lint] != nil
56
- podSpecLint + opts[:lint]
58
+ unless opts[:lint] == nil
59
+ podSpecLint + opts[:lint].to_s
57
60
  end
58
61
 
59
62
  lintCmd << [podSpecLint]
@@ -78,8 +81,8 @@ module Orientepodspecpush
78
81
  cmd = []
79
82
  cmd << ['bundle exec'] if shouldUseBundleExec
80
83
  podRepoPush = "pod repo push #{opts[:specRepo]} #{specfile}"
81
- if opts[:push] != nil
82
- podRepoPush + opts[:push]
84
+ unless opts[:push] == nil
85
+ podRepoPush + opts[:push].to_s
83
86
  end
84
87
  cmd << [podRepoPush]
85
88
 
@@ -141,7 +144,7 @@ module Orientepodspecpush
141
144
  puts "Even with warnings, something is wrong. Look for any errors".red
142
145
  rollbackTag
143
146
  else
144
- if opts[:noPackage] == false
147
+ unless opts[:noPackage] == true
145
148
  package
146
149
  end
147
150
  end
@@ -1,3 +1,3 @@
1
1
  module Orientepodspecpush
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orientepodspecpush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John wang