Sha256: 91b3570c02ff2de3ec2ebefaa2c68f01af51cd35bf31d1fa75d14622966dc55a

Contents?: true

Size: 777 Bytes

Versions: 17

Compression:

Stored size: 777 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

17 entries across 17 versions & 2 rubygems

Version Path
oxidized-script-0.6.0 Rakefile
oxidized-script-0.5.1 Rakefile
oxidized-script-0.5.0 Rakefile
oxidized-script-0.4.0 Rakefile
oxidized-0.16.3 Rakefile
oxidized-script-0.3.1 Rakefile
oxidized-0.16.2 Rakefile
oxidized-0.16.1 Rakefile
oxidized-0.16.0 Rakefile
oxidized-0.15.0 Rakefile
oxidized-0.14.3 Rakefile
oxidized-0.14.2 Rakefile
oxidized-0.14.1 Rakefile
oxidized-0.14.0 Rakefile
oxidized-0.13.1 Rakefile
oxidized-0.13.0 Rakefile
oxidized-0.12.2 Rakefile