orientepodspecpush 0.3.1 → 0.3.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: f5ca41a78450a6f3109dcf48041fbbe7dbc2a35dc96dbfc3547236cfb449561c
4
- data.tar.gz: dcee93a2d508d9569477bb0edc3b6922b9df933c4aa42751310cfc9150cc23eb
3
+ metadata.gz: febaada3fa09e21f240f81e29f14f33ede491ff6c3f3fc604b6dbe3cd0f8090e
4
+ data.tar.gz: f2df7d6e631b0c3821b595c7e79d46e9a8ea55b0c1e5f7f71e78650c9bc44310
5
5
  SHA512:
6
- metadata.gz: b2cf9587175fde4ce0b78f4b671bc5aed31776971a94b87f94976468b56caf06ff5020161ebb50da8f411d3cfd0e2fac5bcdeaa2a67d1c530c216da7ea2e7743
7
- data.tar.gz: 3fa4def9f18bae6b2dec57690d038f6ec5f5685d6ec7d23e07575e7db4a5efd2199d98bf03b704f6c0bc91c1d7842e6435ad307177ded062e41666fd76750f28
6
+ metadata.gz: 411dde01beecf8e68d721afdf9e186c94127a3128281ca69b968e0d7552856dc056588ddf9a01d2962912d6990af82c0e789a15e1716a499b994b42e2edcd5d6
7
+ data.tar.gz: 49f0f4bdb71f5d46fcb924620fbf36e70e76e95659bf64d5a1e5e3fe5d10ffb6c7ad06a7c13d85903dce1fc32cd0ae2d51a910a540fb551dd678e0977a3517ac
@@ -1,3 +1,3 @@
1
1
  module Orientepodspecpush
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -98,18 +98,19 @@ module Orientepodspecpush
98
98
  # system "git add ."
99
99
  # system "git commit -m 'upload framework'"
100
100
  #
101
-
102
- if opts[:tagCommitMsg] == nil
103
- system "git tag -a #{opts[:tag]} -m 'add new tag'"
101
+ # @podVersion = opts[:tag]
102
+ # @podVersionMessage = opts[:tagCommitMsg]
103
+ if @podVersionMessage == nil
104
+ system "git tag -a #{@podVersion} -m 'add new tag'"
104
105
  else
105
- system "git tag -a #{opts[:tag]} -m '#{opts[:tagCommitMsg]}'"
106
+ system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
106
107
  end
107
108
  # system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
108
109
  system "git push --tags"
109
110
 
110
111
  contents = File.read(specfile)
111
112
  oldVersion = Regexp.new('[0-9.]{2,6}').match(Regexp.new('(s.version)\s*=.*\n').match(contents).to_s).to_s
112
- File.write(specfile, contents.sub!(oldVersion, opts[:tag]))
113
+ File.write(specfile, contents.sub!(oldVersion, @podVersion))
113
114
 
114
115
  # cmd = []
115
116
  # cmd << ['bundle exec'] if shouldUseBundleExec
@@ -207,6 +208,7 @@ module Orientepodspecpush
207
208
 
208
209
  # User input
209
210
  @podVersion = opts[:tag]
211
+ @podVersionMessage = opts[:tagCommitMsg]
210
212
  puts "----------------------------"
211
213
  puts @podVersion
212
214
  puts "------------------------------------------------"
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.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John wang