Sha256: f92db00bd8c0880af3afe1d144b829ca5a1262084a73492e95a60547cf99472a
Contents?: true
Size: 765 Bytes
Versions: 11
Compression:
Stored size: 765 Bytes
Contents
require 'bundler/setup' require 'rake/clean' require 'rspec/core/rake_task' require 'rake/extensiontask' require 'yard' require 'redcloth' require 'launchy' begin require 'devkit' # only used on windows rescue LoadError end spec = Gem::Specification.load Dir['*.gemspec'].first Gem::PackageTask.new spec do end Rake::ExtensionTask.new 'ashton', spec do |ext| RUBY_VERSION =~ /(\d+.\d+)/ ext.lib_dir = "lib/ashton/#{$1}" end YARD::Rake::YardocTask.new task :default => :spec task :spec => :compile RSpec::Core::RakeTask.new do |t| end desc "Open yard docs in browser" task :browse_yard => :yard do Launchy.open "doc/index.html" rescue nil end desc "Create platform-specific compiled gem" task :native_gem do Rake::Task["native"].invoke "gem" end
Version data entries
11 entries across 11 versions & 2 rubygems