Sha256: 3e9fb633c3b4e57e1a7abf43a510641f1ce4f2d518ca0148d256dc262918caea

Contents?: true

Size: 408 Bytes

Versions: 4

Compression:

Stored size: 408 Bytes

Contents

require "bundler/gem_tasks"

desc 'vup'
task :vup do
	path = 'lib/barthes/version.rb'
	if version = ENV['VERSION']
		file = File.open(path, 'w')
		file.puts "module Barthes"
		file.puts "	VERSION = \"#{version}\""
		file.puts "end"
		file.close
		system "git add lib/barthes/version.rb"
		system "git commit -m 'version up to #{version}'"
		Rake::Task["release"].invoke
	else
		puts File.read(path)
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
barthes-0.0.43 Rakefile
barthes-0.0.42 Rakefile
barthes-0.0.41 Rakefile
barthes-0.0.40 Rakefile