Sha256: 9c807d18d1e3f313d17ffaf08623e28ae5f8a095248e123469dc9664af4ab772
Contents?: true
Size: 672 Bytes
Versions: 19
Compression:
Stored size: 672 Bytes
Contents
puts __FILE__ if defined?(DEBUG) desc 'performs publish commands' task :publish do Tasks.execute_task :publish; end 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
19 entries across 19 versions & 1 rubygems