Sha256: d30cfb9351b8109cdba3905a8cb5f46a652a502c331abbcf3169f6cab54be812

Contents?: true

Size: 556 Bytes

Versions: 10

Compression:

Stored size: 556 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"
require 'rdoc/task'

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

task :default => :spec

desc "Bump gem version patch number"
task :bump do
  path = File.expand_path('../lib/tracing/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(/(VERSION *= *"[0-9.]*\.)([0-9]+)"\n/) do
	  version = "#{$1}#{$2.to_i+1}"
	  puts "Version bumped to #{version}\""
	  version+"\"\n"
	end
      end*''
    )
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tracing-2.0.10 Rakefile
tracing-2.0.9 Rakefile
tracing-2.0.8 Rakefile
tracing-2.0.7 Rakefile
tracing-2.0.6 Rakefile
tracing-2.0.5 Rakefile
tracing-2.0.4 Rakefile
tracing-2.0.3 Rakefile
tracing-2.0.2 Rakefile
tracing-2.0.1 Rakefile