Sha256: dd1d68de3c1f2cbff4a88cf9aa4f7c776ec214a9ff0883f97b82719493c3b7ad

Contents?: true

Size: 523 Bytes

Versions: 4

Compression:

Stored size: 523 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)

task :default => :spec

desc "Bump gem version patch number"
task :bump do
  path = File.expand_path('../lib/activefacts/version.rb', __FILE__)
  lines = File.open(path) do |fp| fp.readlines; end
  File.open(path, "w") do |fp|
    fp.write(
      lines.map do |line|
	line.gsub(/(PATCH *= *)([0-9]+)\n/) do
	  version = "#{$1}#{$2.to_i+1}"
	  puts "Version bumped to #{version}"
	  version+"\n"
	end
      end*''
    )
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activefacts-1.9.0 Rakefile
activefacts-1.8.3 Rakefile
activefacts-1.8.2 Rakefile
activefacts-1.8.1 Rakefile