Sha256: a8378f62610719d0ed0bc72d1f677be97a159bdc27dce69e5731b62055cf3626

Contents?: true

Size: 593 Bytes

Versions: 4

Compression:

Stored size: 593 Bytes

Contents

require "bundler/gem_tasks"

desc "Run test"
task :test do
  ruby("test/run.rb")
end

namespace :version do
  desc "Bump version"
  task :bump do
    version_rb_path = "lib/fiddle/version.rb"
    version_rb = File.read(version_rb_path).gsub(/VERSION = "(.+?)"/) do
      version = $1
      "VERSION = \"#{version.succ}\""
    end
    File.write(version_rb_path, version_rb)
  end
end

if RUBY_ENGINE == "ruby"
  require 'rake/extensiontask'
  Rake::ExtensionTask.new("fiddle")
  Rake::ExtensionTask.new("-test-/memory_view")
  task test: :compile
else
  task :compile
end

task default: :test

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fiddle-1.1.6 Rakefile
fiddle-1.1.5 Rakefile
fiddle-1.1.4 Rakefile
fiddle-1.1.3 Rakefile