Sha256: 932005d0da7684aaa49a4c5a3f127893af770ebe5191ab457ded9dd48f2e55f2
Contents?: true
Size: 851 Bytes
Versions: 6
Compression:
Stored size: 851 Bytes
Contents
require 'bundler/gem_tasks' task :default => [:compile, :spec] require 'rake/extensiontask' Rake::ExtensionTask.new('attribute_builder') do |ext| ext.lib_dir = 'lib/faml' end require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) namespace :benchmark do task :rendering => ['benchmark:rendering:haml', 'benchmark:rendering:attributes'] namespace :rendering do desc "Run benchmark with Haml's standard template" task :haml do haml_gem = Gem::Specification.find_by_name('haml') standard_haml_path = File.join(haml_gem.gem_dir, 'test', 'templates', 'standard.haml') sh 'ruby', 'benchmark/rendering.rb', standard_haml_path end desc "Run benchmark for attribute builder" task :attributes do sh 'ruby', 'benchmark/rendering.rb', File.join('benchmark/attribute_builder.haml') end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
faml-0.2.5 | Rakefile |
faml-0.2.4 | Rakefile |
faml-0.2.3 | Rakefile |
faml-0.2.2 | Rakefile |
faml-0.2.1 | Rakefile |
faml-0.2.0 | Rakefile |