Sha256: 426aa0b74dc1fe2426dc74e95a29c345e167124243e1605a1b3955791087f3f4

Contents?: true

Size: 783 Bytes

Versions: 2

Compression:

Stored size: 783 Bytes

Contents

require "bundler/gem_tasks"
require "rake/testtask"
require "rake/extensiontask"
require "yard"
require "yard/rake/yardoc_task"

Rake::TestTask.new(:test) do |t|
  t.libs << "test"
  t.libs << "ext"
  t.libs << "lib"
  t.test_files = FileList["test/*_test.rb", "test/layers_test/*_test.rb"]
end

Rake::ExtensionTask.new "rb_stb_image" do |ext|
  ext.lib_dir = "lib/rb_stb_image"
end

task :build_rb_stb_image do
  sh "cd ext/rb_stb_image; ruby extconf.rb; make"
end

task :clean_rb_stb_image do
  sh "cd ext/rb_stb_image; make clean; unlink Makefile"
end

task :default => [:test, :build_rb_stb_image]

YARD::Rake::YardocTask.new do |t|
  t.files = [
    "lib/dnn.rb",
    "lib/dnn/core/*.rb",
    "lib/dnn/core/layers/*.rb",
    "lib/dnn/*.rb",
    "lib/dnn/datasets/*.rb",
  ]
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby-dnn-1.3.0 Rakefile
ruby-dnn-1.2.3 Rakefile