Sha256: 4fa7772390875ce704326bf30a97479feb861c80a68a047cc4d384e250ca0204

Contents?: true

Size: 1.79 KB

Versions: 3

Compression:

Stored size: 1.79 KB

Contents

require 'rubygems'
require 'rake'

require(File.join(File.dirname(__FILE__), 'lib/ruby_less/info'))

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.version = RubyLess::VERSION
    gem.name = "rubyless"
    gem.summary = %Q{RubyLess is an interpreter for "safe ruby"}
    gem.description = %Q{RubyLess is an interpreter for "safe ruby". The idea is to transform some "unsafe" ruby code into safe, type checked ruby, eventually rewriting some variables or methods.}
    gem.email = "gaspard@teti.ch"
    gem.homepage = "http://zenadmin.org/546"
    gem.authors = ["Gaspard Bucher"]
    gem.add_dependency 'ruby_parser', '~> 2.3.1'
    gem.add_dependency 'sexp_processor', '>= 3.0.1'
    gem.add_development_dependency "shoulda", ">= 0"
    gem.add_development_dependency "yamltest", ">= 0.6.0"
    # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/**/*_test.rb'
  test.verbose = true
end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |test|
    test.libs << 'test'
    test.pattern = 'test/**/*_test.rb'
    test.verbose = true
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
  end
end

task :test => :check_dependencies

task :default => :test

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
  version = File.exist?('VERSION') ? File.read('VERSION') : ""

  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "rubyless #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubyless-0.8.11 Rakefile
rubyless-0.8.10 Rakefile
rubyless-0.8.9 Rakefile