Sha256: d8dbb4e6bb6f9f6723e4481f69a5dbd9fef2e9694af1e4fd6303630ae99a25f8

Contents?: true

Size: 1.14 KB

Versions: 72

Compression:

Stored size: 1.14 KB

Contents

require "bundler"
Bundler::GemHelper.install_tasks

# See https://github.com/colszowka/simplecov/issues/171
desc "Set permissions on all files so they are compatible with both user-local and system-wide installs"
task :fix_permissions do
  system 'bash -c "find . -type f -exec chmod 644 {} \; && find . -type d -exec chmod 755 {} \;"'
end
# Enforce proper permissions on each build
Rake::Task[:build].prerequisites.unshift :fix_permissions

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

begin
  require "rubocop/rake_task"
  RuboCop::RakeTask.new
rescue LoadError
  task :rubocop do
    $stderr.puts "Rubocop is disabled"
  end
end

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

namespace :assets do
  desc "Compiles all assets"
  task :compile do
    puts "Compiling assets"
    require "sprockets"
    assets = Sprockets::Environment.new
    assets.append_path "assets/javascripts"
    assets.append_path "assets/stylesheets"
    assets["application.js"].write_to("public/application.js")
    assets["application.css"].write_to("public/application.css")
  end
end

Version data entries

72 entries across 60 versions & 14 rubygems

Version Path
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.1.5 vendor/bundle/ruby/2.7.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.1.4 vendor/bundle/ruby/2.7.0/gems/simplecov-html-0.10.2/Rakefile
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.1.3 vendor/bundle/ruby/2.7.0/gems/simplecov-html-0.10.2/Rakefile
tdiary-5.1.3 vendor/bundle/ruby/2.6.0/gems/simplecov-html-0.10.2/Rakefile