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.9.7 vendor/rails/actionpack/Rakefile
jets-1.9.6 vendor/rails/actionpack/Rakefile
jets-1.9.5 vendor/rails/actionpack/Rakefile
jets-1.9.4 vendor/rails/actionpack/Rakefile
jets-1.9.3 vendor/rails/actionpack/Rakefile
jets-1.9.2 vendor/rails/actionpack/Rakefile
jets-1.9.1 vendor/rails/actionpack/Rakefile
jets-1.9.0 vendor/rails/actionpack/Rakefile
jets-1.8.14 vendor/rails/actionpack/Rakefile
jets-1.8.13 vendor/rails/actionpack/Rakefile
jets-1.8.12 vendor/rails/actionpack/Rakefile
jets-1.8.11 vendor/rails/actionpack/Rakefile
jets-1.8.10 vendor/rails/actionpack/Rakefile
jets-1.8.9 vendor/rails/actionpack/Rakefile
jets-1.8.8 vendor/rails/actionpack/Rakefile
jets-1.8.7 vendor/rails/actionpack/Rakefile
jets-1.8.6 vendor/rails/actionpack/Rakefile
jets-1.8.5 vendor/rails/actionpack/Rakefile
jets-1.8.4 vendor/rails/actionpack/Rakefile
jets-1.8.3 vendor/rails/actionpack/Rakefile