Sha256: 79bac17931e8899023757ad9385aa971b44c323939759e47ab67185004740829
Contents?: true
Size: 1.46 KB
Versions: 1
Compression:
Stored size: 1.46 KB
Contents
#!/usr/bin/env ruby require 'rubygems' require 'bundler/setup' require 'rake' require 'rspec' require 'rspec/core/rake_task' require 'rubygems/package_task' RSpec::Core::RakeTask.new("spec") do |spec| spec.pattern = "spec/**/*_spec.rb" end desc "Run the Integration Specs (rendering)" RSpec::Core::RakeTask.new("spec:integration") do |spec| spec.pattern = "spec/unit/*_spec.rb" end desc "Run the Unit Specs" RSpec::Core::RakeTask.new("spec:unit") do |spec| spec.pattern = "spec/unit/*_spec.rb" end desc "Run all the specs without all the verbose spec output" RSpec::Core::RakeTask.new('spec:progress') do |spec| spec.rspec_opts = %w(--format progress) spec.pattern = "spec/**/*_spec.rb" end task :default => :spec gemspec = eval(File.read('locomotive_liquid.gemspec')) Gem::PackageTask.new(gemspec) do |pkg| pkg.gem_spec = gemspec end desc "build the gem and release it to rubygems.org" task :release => :gem do puts "Tagging #{gemspec.version}..." system "git tag -a #{gemspec.version} -m 'Tagging #{gemspec.version}'" puts "Pushing to Github..." system "git push --tags" puts "Pushing to rubygems.org..." system "gem push pkg/#{gemspec.name}-#{gemspec.version}.gem" end namespace :profile do task :default => [:run] desc "Run the liquid profile/perforamce coverage" task :run do ruby "performance/shopify.rb" end desc "Run KCacheGrind" task :grind => :run do system "kcachegrind /tmp/liquid.rubyprof_calltreeprinter.txt" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
locomotive_liquid-2.2.3 | Rakefile |