Sha256: 1d30cf63a8fb8a966e10167981f7b50ff466c57bd29ac7428d13a51aa8c2c4c1

Contents?: true

Size: 795 Bytes

Versions: 48

Compression:

Stored size: 795 Bytes

Contents

# frozen_string_literal: true

require "rake/testtask"

test_files = Dir.glob("test/**/*_test.rb")

desc "Default Task"
task default: :test

task :package

# Run the unit tests
Rake::TestTask.new do |t|
  t.libs << "test"
  t.test_files = test_files

  t.warning = true
  t.verbose = true
  t.ruby_opts = ["--dev"] if defined?(JRUBY_VERSION)
end

namespace :test do
  task :isolated do
    test_files.all? do |file|
      sh(Gem.ruby, "-w", "-Ilib:test", file)
    end || raise("Failures")
  end
end

task :lines do
  load File.expand_path("..", __dir__) + "/tools/line_statistics"
  files = FileList["lib/**/*.rb"]
  CodeTools::LineStatistics.new(files).print_loc
end

rule ".rb" => ".y" do |t|
  sh "racc -l -o #{t.name} #{t.source}"
end

task compile: "lib/action_dispatch/journey/parser.rb"

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
jets-1.5.6 vendor/rails/actionpack/Rakefile
jets-1.5.5 vendor/rails/actionpack/Rakefile
jets-1.5.4 vendor/rails/actionpack/Rakefile
jets-1.5.3 vendor/rails/actionpack/Rakefile
jets-1.5.2 vendor/rails/actionpack/Rakefile
jets-1.5.1 vendor/rails/actionpack/Rakefile
jets-1.5.0 vendor/rails/actionpack/Rakefile
ruby-on-quails-0.1.0 actionpack/Rakefile