Sha256: df8bbd0143f7c748e17948da048ceb559cb4ec3e7205c15da15d79ef1eac2f15
Contents?: true
Size: 739 Bytes
Versions: 4
Compression:
Stored size: 739 Bytes
Contents
require "rake/testtask" require 'rake/gempackagetask' task :default => :test gem_spec_file = 'ohm.gemspec' gem_spec = eval(File.read(gem_spec_file)) rescue nil desc 'Run all tests' Rake::TestTask.new(:test) do |t| t.pattern = 'test/**/*_test.rb' t.verbose = false end Rake::GemPackageTask.new(gem_spec) do |pkg| pkg.need_zip = false pkg.need_tar = false rm_f FileList['pkg/**/*.*'] end if gem_spec desc "Generate the gemspec file." task :gemspec do require 'erb' File.open(gem_spec_file, 'w') do |f| f.write ERB.new(File.read("#{gem_spec_file}.erb")).result(binding) end end desc "Builds and installs the gem." task :install => :repackage do `sudo gem install pkg/#{gem_spec.name}-#{gem_spec.version}.gem` end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ohm-0.0.5 | Rakefile |
ohm-0.0.3 | Rakefile |
ohm-0.0.2 | Rakefile |
ohm-0.0.4 | Rakefile |