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

Version Path
dev_commands-0.0.56 lib/publish.rb
dev_commands-0.0.55 lib/publish.rb
dev_commands-0.0.49 lib/publish.rb
dev_commands-0.0.48 lib/publish.rb
dev_commands-0.0.47 lib/publish.rb
dev_commands-0.0.46 lib/publish.rb
dev_commands-0.0.45 lib/publish.rb
dev_commands-0.0.44 lib/publish.rb
dev_commands-0.0.43 lib/publish.rb
dev_commands-0.0.42 lib/publish.rb
dev_commands-0.0.41 lib/publish.rb
dev_commands-0.0.40 lib/publish.rb
dev_commands-0.0.39 lib/publish.rb
dev_commands-0.0.38 lib/publish.rb
dev_commands-0.0.37 lib/publish.rb
dev_commands-0.0.36 lib/publish.rb