Sha256: a66f9b1c65a1a4cf7122e2e7216552fd62f1c17347f47cf61bc2d7610d2fccb4
Contents?: true
Size: 886 Bytes
Versions: 4
Compression:
Stored size: 886 Bytes
Contents
begin require 'rake/testtask' require 'bundler' # Bundler.setup rescue LoadError warn 'bunler 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
oxidized-web-0.2.0 | Rakefile |
oxidized-web-0.1.2 | Rakefile |
oxidized-web-0.1.1 | Rakefile |
oxidized-web-0.1.0 | Rakefile |