Sha256: c407c476c410486cc15ba29e3e627ac00f3285fec732f0417c95aa67bafb9b62
Contents?: true
Size: 561 Bytes
Versions: 16
Compression:
Stored size: 561 Bytes
Contents
require_relative('internet.rb') class Publish < Array def update if(Internet.available?) if(File.exists?('.git')) if(`git branch`.include?('* master')) Dir.glob('*.gemspec').each{|gemspec_file| add "gem push #{Gemspec.gemfile(gemspec_file)}" if !Gemspec.published? gemspec_file } end end if(File.exists?('.svn')) if(`svn info`.include?('/trunk')) Dir.glob('*.gemspec').each{|gemspec_file| add "gem push #{Gemspec.gemfile(gemspec_file)}" if !Gemspec.published? gemspec_file } end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems