Sha256: 54f0f4c3707bd4357f6914063d0796d20e03f7e7912bf851c9332d5eb2d1a8e8

Contents?: true

Size: 544 Bytes

Versions: 9

Compression:

Stored size: 544 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/cql/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

9 entries across 9 versions & 1 rubygems

Version Path
activefacts-cql-1.9.6 Rakefile
activefacts-cql-1.9.5 Rakefile
activefacts-cql-1.9.4 Rakefile
activefacts-cql-1.9.3 Rakefile
activefacts-cql-1.9.2 Rakefile
activefacts-cql-1.9.1 Rakefile
activefacts-cql-1.8.3 Rakefile
activefacts-cql-1.8.2 Rakefile
activefacts-cql-1.8.1 Rakefile