Sha256: 40d7a5744ba0a49919f6d73b4097e12be88c95fa8d38cea563f2b2e785ac6363

Contents?: true

Size: 687 Bytes

Versions: 12

Compression:

Stored size: 687 Bytes

Contents

require 'fileutils'
require "rspec/core/rake_task"

task :test => :spec
task :default => :spec
RSpec::Core::RakeTask.new(:spec) do |t|
  t.rspec_opts = '--backtrace --color'
end

def gemspec2
  @gemspec2 ||= eval(File.read('irbtools.gemspec'), binding, 'irbtools.gemspec')
end

desc "Build the gems"
task :gem => :gemspec do
  sh "gem build #{gemspec2.name}.gemspec"
  FileUtils.mkdir_p 'pkg'
  FileUtils.mv "#{gemspec2.name}-#{gemspec2.version}.gem", 'pkg'
end

desc "Install the gem locally (without docs)"
task :install => :gem do
  sh %{gem install pkg/#{gemspec2.name}-#{gemspec2.version}.gem --no-document}
end

desc "Validate the gemspec"
task :gemspec do
  gemspec2.validate
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
irbtools-4.1.0 Rakefile
irbtools-4.0.11 Rakefile
irbtools-4.0.10 Rakefile
irbtools-4.0.9 Rakefile
irbtools-4.0.8 Rakefile
irbtools-4.0.7 Rakefile
irbtools-4.0.6 Rakefile
irbtools-4.0.5 Rakefile
irbtools-4.0.4 Rakefile
irbtools-4.0.3 Rakefile
irbtools-4.0.2 Rakefile
irbtools-4.0.1 Rakefile