Sha256: efbc5eb53ee3b193db9e26dd6ae6cf8c8f23362e11ecf155ebdeadb56a8baa05

Contents?: true

Size: 789 Bytes

Versions: 10

Compression:

Stored size: 789 Bytes

Contents

require 'bundler/gem_tasks'
require 'rake/testtask'

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 << 'spec'
    t.test_files = FileList['spec/**/*_spec.rb']
    t.warning = true
    t.verbose = true
  end
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 'pkg'
end

desc 'Tag the release'
task :tag do
  system "git tag #{gemspec.version}"
end

desc 'Push to rubygems'
task :push => :tag do
  system "gem push pkg/#{file}"
end

task default: :test

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
oxidized-web-0.9.3 Rakefile
oxidized-0.21.0 Rakefile
oxidized-web-0.9.2 Rakefile
oxidized-web-0.9.1 Rakefile
oxidized-web-0.9.0 Rakefile
oxidized-0.20.0 Rakefile
oxidized-web-0.8.0 Rakefile
oxidized-0.19.0 Rakefile
oxidized-0.18.0 Rakefile
oxidized-0.17.0 Rakefile