Sha256: 365d42941e63821675be5ac661be87876e1b192d1edad823a42c1f2a912d6bd4

Contents?: true

Size: 557 Bytes

Versions: 2

Compression:

Stored size: 557 Bytes

Contents

#!C:/Dev/ruby/bin/ruby.exe
# If first Arg is a number, it indicates version bump
bump = ARGV[0].to_i > 0 ? ARGV.shift.to_i : 0 
message = ARGV.empty? ? 'Commit' : ARGV.join(' ')
message += " #{Time.now.to_s[0..-6]}"
puts "Committing (versionup =#{bump}) with message: #{message}"
system %Q[git add .]
system %Q[git commit -a -m "#{message}" --author arvicco]
case bump
  when 1..9
	system %Q[rake version:bump:patch]
  when 10..99
	system %Q[rake version:bump:minor]
  when 10..99
	system %Q[rake version:bump:major]
end	
system %Q[git push]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
my_scripts-0.0.2 bin/gitcp
my_scripts-0.0.1 bin/gitcp