Sha256: 2968d7db95e95f3e5610ac4e8580817afe46f6167ce71b451e932556b3f055bb

Contents?: true

Size: 692 Bytes

Versions: 17

Compression:

Stored size: 692 Bytes

Contents

require 'bundler/gem_tasks'

desc 'Run benchmarks'
task :bench do
  exit system('bundle exec ruby benchmarks/benchmark.rb')
end

desc 'Run RSpec code examples'
task :spec do
  exit system('bundle exec rspec --pattern spec/hamlit/**{,/\*/\*\*\}/\*_spec.rb')
end

namespace :spec do
  namespace :update do
    desc 'Generate converted ugly haml-spec'
    task :ugly do
      system('cd spec && rake ugly')
    end

    desc 'Generate converted pretty haml-spec'
    task :pretty do
      system('cd spec && rake pretty')
    end
  end
end

namespace :rails do
  desc 'Run Rails specs'
  task :spec do
    exit system('cd spec/rails && rake spec')
  end
end

task default: [:spec, 'rails:spec']

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
hamlit-0.5.3 Rakefile
hamlit-0.5.2 Rakefile
hamlit-0.5.1 Rakefile
hamlit-0.5.0 Rakefile
hamlit-0.4.3 Rakefile
hamlit-0.4.2 Rakefile
hamlit-0.4.1 Rakefile
hamlit-0.3.4 Rakefile
hamlit-0.3.3 Rakefile
hamlit-0.3.2 Rakefile
hamlit-0.3.1 Rakefile
hamlit-0.3.0 Rakefile
hamlit-0.2.0 Rakefile
hamlit-0.1.3 Rakefile
hamlit-0.1.2 Rakefile
hamlit-0.1.1 Rakefile
hamlit-0.1.0 Rakefile