Sha256: e641bfde7a947f0f701f7b7bc11bb7ce8c3ab8b05434ba21436ab0c0ebe78dcc

Contents?: true

Size: 531 Bytes

Versions: 14

Compression:

Stored size: 531 Bytes

Contents

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

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

task :default => :spec

desc "Increase the revision number"
task :increase_revision_number do
  version_file = "lib/restful_resource_bugsnag/version.rb"
  file_content = File.read(version_file)
  rule = /(\d+\.\d+\.)(\d+)/
  new_revision_number = rule.match(file_content)[2].to_i + 1
  new_file_content = file_content.sub(rule, '\1' + new_revision_number.to_s)

  File.open(version_file, 'w') { |file| file.write(new_file_content) }
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
restful_resource_bugsnag-0.5.3 Rakefile
restful_resource_bugsnag-0.5.2 Rakefile
restful_resource_bugsnag-0.5.1 Rakefile
restful_resource_bugsnag-0.4.2 Rakefile
restful_resource_bugsnag-0.4.1 Rakefile
restful_resource_bugsnag-0.4.0 Rakefile
restful_resource_bugsnag-0.3.1 Rakefile
restful_resource_bugsnag-0.3.0 Rakefile
restful_resource_bugsnag-0.2.0 Rakefile
restful_resource_bugsnag-0.1.4 Rakefile
restful_resource_bugsnag-0.1.3 Rakefile
restful_resource_bugsnag-0.1.2 Rakefile
restful_resource_bugsnag-0.1.1 Rakefile
restful_resource_bugsnag-0.1.0 Rakefile