orientepodspecpush 0.2.8 → 0.2.9

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
  SHA256:
3
- metadata.gz: 83420d1d96819b819ea065bed446920c90c5093c5be611cab3cdccf37b9a56e7
4
- data.tar.gz: 835ffa01c8447567da45cab791905c5a7e2b90aa826a83281fe90c343b1b67a1
3
+ metadata.gz: b816e466e1409cf742c4e36856fd65a0e1676aac7bf53fec228fa3e4a64fde7e
4
+ data.tar.gz: cde6d65974f23244843f910ea946862ea81ba4188fcd9467db8e916a2a25f21b
5
5
  SHA512:
6
- metadata.gz: bda86eb647b59213695ec52087219220a441f4ade9e8bdb58e37583cfec5788bcdb59fb11a3eb67d69038bac71253f8a5f3c4c03bd11712016192f28948fdb07
7
- data.tar.gz: 336620790e19f2a4b5a69ca63c7a3bc1bca9c27640f3f9c666fb52ae2bb2645f21b1552c309af36a80be4393e939ccbeb1a5d919fcd6bcdb84a8829f8afe0839
6
+ metadata.gz: 5a0c0e8420aa7bc66a63b726971ef70377405a335407c5528086be7da3dfdddc7457cc4805d50a6a43d23df4b0e484761f38838e65834856633b30b2ab49116a
7
+ data.tar.gz: 73d1afcd64d5e802744d86060cb811f4eec13835a855ee89423694312517e4dde5af61441eb483ed78e24a46854b84d4ec93baa4e7186443c84892e58171e9f8
@@ -1,3 +1,3 @@
1
1
  module Orientepodspecpush
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
@@ -88,7 +88,7 @@ module Orientepodspecpush
88
88
  cmd.join(' ')
89
89
  end
90
90
 
91
- def updateVersion
91
+ def updateVersion(opts)
92
92
  # puts "Please enter new version of the pod so we can tag, lint and push it! (e.g. 1.2.0)".blue
93
93
  # @podVersion = gets.chomp.downcase
94
94
  #
@@ -99,19 +99,17 @@ module Orientepodspecpush
99
99
  # system "git commit -m 'upload framework'"
100
100
  #
101
101
 
102
- if @podVersionMessag == nil
103
- # system "git tag -a #{@podVersion} -m 'add new tag'"
104
- system "git tag -a 0.2.2.2 -m 'add new tag'"
102
+ if opts[:versionCommitMsg] == nil
103
+ system "git tag -a #{opts[:version]} -m 'add new tag'"
105
104
  else
106
- # system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
107
- system "git tag -a 0.2.2.3 -m 'test 0.2.2.3'"
105
+ system "git tag -a #{opts[:version]} -m '#{opts[:versionCommitMsg]}'"
108
106
  end
109
107
  # system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
110
108
  system "git push --tags"
111
109
 
112
110
  contents = File.read(specfile)
113
111
  oldVersion = Regexp.new('[0-9.]{2,6}').match(Regexp.new('(s.version)\s*=.*\n').match(contents).to_s).to_s
114
- File.write(specfile, contents.sub!(oldVersion, 0.2.2.3))
112
+ File.write(specfile, contents.sub!(oldVersion, opts[:version]))
115
113
 
116
114
  # cmd = []
117
115
  # cmd << ['bundle exec'] if shouldUseBundleExec
@@ -131,8 +129,8 @@ module Orientepodspecpush
131
129
  puts "Rolling back git tags".green
132
130
 
133
131
  system "git checkout ."
134
- system "git tag -d #{@podVersion}"
135
- system "git push -d origin #{@podVersion}"
132
+ system "git tag -d #{opts[:version]}"
133
+ system "git push -d origin #{opts[:version]}"
136
134
  exit
137
135
  end
138
136
 
@@ -208,12 +206,7 @@ module Orientepodspecpush
208
206
  # packageCode
209
207
 
210
208
  # User input
211
-
212
- # "#{opts[:lint]}"
213
- @podVersion = "#{opts[:tag]}"
214
- puts "tag--------'#{@podVersion}'"
215
- # @podVersionMessage = "#{opts[:tagCommitMsg]}"
216
- updateVersion
209
+ updateVersion(opts)
217
210
 
218
211
  # Cmds
219
212
  @lintCmd = makeLintCmd(opts)
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.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - John wang