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

Version Path
dev-2.0.168 lib/tasks/publish.rb
dev-2.0.167 lib/tasks/publish.rb
dev-2.0.166 lib/tasks/publish.rb
dev-2.0.165 lib/tasks/publish.rb
dev-2.0.164 lib/tasks/publish.rb
dev-2.0.163 lib/tasks/publish.rb
dev-2.0.162 lib/tasks/publish.rb
dev-2.0.161 lib/tasks/publish.rb
dev-2.0.160 lib/tasks/publish.rb
dev-2.0.159 lib/tasks/publish.rb
dev-2.0.158 lib/tasks/publish.rb
dev-2.0.157 lib/tasks/publish.rb
dev-2.0.156 lib/tasks/publish.rb
dev-2.0.155 lib/tasks/publish.rb
dev-2.0.154 lib/tasks/publish.rb
dev-2.0.153 lib/tasks/publish.rb
dev-2.0.152 lib/tasks/publish.rb
dev-2.0.151 lib/tasks/publish.rb
dev-2.0.150 lib/tasks/publish.rb