Sha256: f37ac55a31bd2112360b5b961167c78a14865e01cbf5d13504b54670d22f5c5d

Contents?: true

Size: 936 Bytes

Versions: 12

Compression:

Stored size: 936 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 'Tag the release'
task :tag do
  system "git tag #{gemspec.version}"
end

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

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
oxidized-0.9.0 Rakefile
oxidized-web-0.5.2 Rakefile
oxidized-web-0.5.1 Rakefile
oxidized-0.8.1 Rakefile
oxidized-web-0.5.0 Rakefile
oxidized-0.8.0 Rakefile
oxidized-web-0.4.0 Rakefile
oxidized-0.7.2 Rakefile
oxidized-web-0.3.0 Rakefile
oxidized-0.7.1 Rakefile
oxidized-0.7.0 Rakefile
oxidized-0.6.0 Rakefile