Sha256: 829704426dce127bf567b0f846647898aa4f302e75436100d6c70e79826f07d6

Contents?: true

Size: 672 Bytes

Versions: 6

Compression:

Stored size: 672 Bytes

Contents

require 'rake'
require 'rake/clean'
require 'rake/testtask'

CLEAN.include("**/*.gem", "**/*.rbc", "**/link*")

namespace :gem do
  desc 'Create the file-find gem'
  task :create => [:clean] do
    require 'rubygems/package'
    spec = eval(IO.read('file-find.gemspec'))
    spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
    Gem::Package.build(spec, true)
  end

  desc "Install the file-find gem"
  task :install => [:create] do
    ruby 'file-find.gemspec'
    file = Dir["*.gem"].first
    sh "gem install -l #{file}"
  end
end

Rake::TestTask.new do |t|
  task :test => 'clean'
  t.warning = true
  t.verbose = true
end

task :default => :test

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
file-find-0.4.4 Rakefile
file-find-0.4.3 Rakefile
file-find-0.4.2 Rakefile
file-find-0.4.1 Rakefile
file-find-0.4.0 Rakefile
file-find-0.3.9 Rakefile