Sha256: 7a2e32dc2aab15a5079efd5c4cb914542bf7fa39c4a369b2325a4e9e3c557adb
Contents?: true
Size: 544 Bytes
Versions: 5
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/orm/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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
activefacts-orm-1.9.4 | Rakefile |
activefacts-orm-1.9.3 | Rakefile |
activefacts-orm-1.9.2 | Rakefile |
activefacts-orm-1.9.1 | Rakefile |
activefacts-orm-1.8.1 | Rakefile |