Sha256: 266cde7e2aad8964b56261a9ba7ea849c6e118cb6b95cfe60196ac7bbfab24c2

Contents?: true

Size: 956 Bytes

Versions: 4

Compression:

Stored size: 956 Bytes

Contents

# require 'rake'
require 'fileutils'

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

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

desc "Build the gem"
task :gem => :gemspec do
  sh "gem build irbtools.gemspec"
  sh "gem build every_day_irb.gemspec"
  FileUtils.mkdir_p 'pkg'
  FileUtils.mv "#{gemspec1.name}-#{gemspec1.version}.gem", '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-rdoc --no-ri}
  sh %{gem install pkg/#{gemspec1.name}-#{gemspec1.version}.gem --no-rdoc --no-ri}
end

desc "Generate the gemspec"
task :generate do
  puts gemspec1.to_ruby
  puts gemspec2.to_ruby
end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
irbtools-1.6.1 Rakefile
irbtools-1.6.0 Rakefile
irbtools-1.5.1 Rakefile
irbtools-1.5.0 Rakefile