Sha256: 77fead3265c9cbcc61e2102036a13ab237d49abee86a537017833bbb9b1fd9f7

Contents?: true

Size: 617 Bytes

Versions: 3

Compression:

Stored size: 617 Bytes

Contents

require 'rubygems'
require 'rake/gempackagetask'
require 'spec'
require 'spec/rake/spectask'
require 'yard'

WINDOWS = (PLATFORM =~ /win32|cygwin/ ? true : false) rescue false
SUDO = WINDOWS ? '' : 'sudo'

task :default => :install

load 'yard-rspec.gemspec'
Rake::GemPackageTask.new(SPEC) do |pkg|
  pkg.gem_spec = SPEC
  pkg.need_zip = true
  pkg.need_tar = true
end

desc "Install the gem locally"
task :install => :package do 
  sh "#{SUDO} gem install pkg/#{SPEC.name}-#{SPEC.version}.gem --local --no-rdoc --no-ri"
  sh "rm -rf pkg/yard-#{SPEC.version}" unless ENV['KEEP_FILES']
end

YARD::Rake::YardocTask.new

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
yard-different-rspec-0.1.1 Rakefile
yard-different-rspec-0.1 Rakefile
yard-rspec-0.1 Rakefile