Sha256: 2383b2203d0c3b8ac777e5d2e959a7e69fbf04505c235ba6b77ed149d36639eb

Contents?: true

Size: 887 Bytes

Versions: 45

Compression:

Stored size: 887 Bytes

Contents

begin
  require 'rake/testtask'
  require 'bundler'
  # Bundler.setup
rescue LoadError
  warn 'bundler missing'
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 -Es 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}"
  system "git tag #{gemspec.version}"
end

Version data entries

45 entries across 45 versions & 3 rubygems

Version Path
ring-sqa-0.4.3 Rakefile
ring-sqa-0.4.2 Rakefile
ring-sqa-0.4.1 Rakefile
packet_via_dmem-0.0.18 Rakefile
packet_via_dmem-0.0.17 Rakefile
ring-sqa-0.3.1 Rakefile
ring-sqa-0.3.0 Rakefile
ring-sqa-0.2.2 Rakefile
sapluuna-0.1.7 Rakefile
sapluuna-0.1.6 Rakefile
sapluuna-0.1.5 Rakefile
sapluuna-0.1.4 Rakefile
ring-sqa-0.2.1 Rakefile
ring-sqa-0.2.0 Rakefile
ring-sqa-0.1.12 Rakefile
ring-sqa-0.1.11 Rakefile
packet_via_dmem-0.0.16 Rakefile
packet_via_dmem-0.0.15 Rakefile
packet_via_dmem-0.0.14 Rakefile
packet_via_dmem-0.0.12 Rakefile