lib/orientepodspecpush.rb in orientepodspecpush-0.4.2 vs lib/orientepodspecpush.rb in orientepodspecpush-0.4.3

- old
+ new

@@ -67,11 +67,11 @@ puts "start package".green cmd = [] cmd << ['bundle exec'] if shouldUseBundleExec podPackage = "pod package #{specfile}" cmd << [podPackage] - packageCmd = "--force --spec-sources='ssh://git-codecommit.ap-southeast-1.amazonaws.com/v1/repos/ios-OrienteSpecs, https://github.com/CocoaPods/Specs.git'" + packageCmd = "--force --spec-sources='git@git.oriente.com:iOS/ios-orientespecs.git, https://github.com/CocoaPods/Specs.git'" if opts[:package] == nil cmd << packageCmd else cmd << opts[:package] end @@ -117,11 +117,11 @@ # Build lintCmd lintCmd << specfile - lintCommand = "--allow-warnings --sources='ssh://git-codecommit.ap-southeast-1.amazonaws.com/v1/repos/ios-OrienteSpecs,https://github.com/CocoaPods/Specs.git'" + lintCommand = "--allow-warnings --sources='git@git.oriente.com:iOS/ios-orientespecs.git,https://github.com/CocoaPods/Specs.git'" if opts[:lint] == nil lintCmd << [lintCommand] else lintCmd << ["#{opts[:lint]}"] end @@ -144,11 +144,11 @@ podRepoPush = "pod repo push #{opts[:specRepo]} #{specfile}" end # cmd << [podRepoPush] cmd << podRepoPush - pushCommand = "--allow-warnings --sources='ssh://git-codecommit.ap-southeast-1.amazonaws.com/v1/repos/ios-OrienteSpecs,https://github.com/CocoaPods/Specs.git'" + pushCommand = "--allow-warnings --commit-message='feat: update spec' --sources='git@git.oriente.com:iOS/ios-orientespecs.git,https://github.com/CocoaPods/Specs.git'" if opts[:push] == nil cmd << pushCommand else cmd << opts[:push] @@ -170,12 +170,12 @@ # # @podVersion = opts[:tag] # @podVersionMessage = opts[:tagCommitMsg] flag = true if @podVersionMessage == nil - flag = system "git tag -a #{@podVersion} -m 'add new tag'" + flag = system "git tag -a #{@podVersion} -m 'feat: add new tag'" else - flag = system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'" + flag = system "git tag -a #{@podVersion} -m 'feat: #{@podVersionMessage}'" end if flag == false puts "tag 已经存在".red exit end