Sha256: 6cadb400f3419bf653ffece0caa90acce65cf2074606928b9dc677e0b25eb8eb

Contents?: true

Size: 583 Bytes

Versions: 35

Compression:

Stored size: 583 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

35 entries across 35 versions & 1 rubygems

Version Path
dev-2.0.136 lib/commands/publish.rb
dev-2.0.135 lib/commands/publish.rb
dev-2.0.134 lib/commands/publish.rb
dev-2.0.133 lib/commands/publish.rb
dev-2.0.132 lib/commands/publish.rb
dev-2.0.131 lib/commands/publish.rb
dev-2.0.130 lib/commands/publish.rb
dev-2.0.129 lib/commands/publish.rb
dev-2.0.128 lib/commands/publish.rb
dev-2.0.127 lib/commands/publish.rb
dev-2.0.126 lib/commands/publish.rb
dev-2.0.124 lib/commands/publish.rb
dev-2.0.123 lib/commands/publish.rb
dev-2.0.122 lib/commands/publish.rb
dev-2.0.121 lib/commands/publish.rb
dev-2.0.119 lib/commands/publish.rb
dev-2.0.118 lib/commands/publish.rb
dev-2.0.117 lib/commands/publish.rb
dev-2.0.116 lib/commands/publish.rb
dev-2.0.115 lib/commands/publish.rb