Sha256: eeba8683c14dd84055af3133b878ee250972696f95457d39cb027447c3e34bc4

Contents?: true

Size: 855 Bytes

Versions: 32

Compression:

Stored size: 855 Bytes

Contents

begin
  require 'rake/testtask'
  require 'bundler'
  Bundler.setup
rescue LoadError
  warn 'bunler missing'
  exit 42
end

gemspec = eval(File.read(Dir['*.gemspec'].first))
file    = [gemspec.name, gemspec.version].join('-') + '.gem'

desc 'Validate gemspec'
task :gemspec do
  gemspec.validate
end

desc 'Run minitest'
task :test do
  Rake::TestTask.new do |t|
    t.libs.push "lib"
    t.test_files = FileList['spec/*_spec.rb']
    t.verbose = true
  end
end

desc 'Build gem'
task :build do
  system "gem build #{gemspec.name}.gemspec"
  FileUtils.mkdir_p 'gems'
  FileUtils.mv file, 'gems'
end

desc 'Install gem'
task :install => :build do
  system "sudo -E sh -c \'umask 022; gem install gems/#{file}\'"
end

desc 'Remove gems'
task :clean do
  FileUtils.rm_rf 'gems'
end

desc 'Push to rubygems'
task :push do
  system "gem push gems/#{file}"
end

Version data entries

32 entries across 32 versions & 6 rubygems

Version Path
seeker-junos-0.2.0 Rakefile
netcrawl-0.1.0 Rakefile
seeker-junos-0.1.0 Rakefile
asetus-0.1.1 Rakefile
asetus-0.1.0 Rakefile
oxidized-script-0.0.4 Rakefile
corona-0.0.13 Rakefile
oxidized-web-0.0.1 Rakefile
netcrawl-0.0.8 Rakefile
asetus-0.0.7 Rakefile
corona-0.0.12 Rakefile
corona-0.0.11 Rakefile
oxidized-script-0.0.3 Rakefile
asetus-0.0.6 Rakefile
oxidized-script-0.0.2 Rakefile
asetus-0.0.5 Rakefile
asetus-0.0.4 Rakefile
corona-0.0.10 Rakefile
corona-0.0.9 Rakefile
oxidized-script-0.0.1 Rakefile