travis-web/lib/travis/assets/helpers.rb
Piotr Sarnacki b5990032f5 Remove strip_debug
We don't need it as we attach both production and debug versions of Ember.js
anyway.
2015-01-15 12:39:05 +01:00

29 lines
666 B
Ruby

require 'rake-pipeline/dsl'
module Travis
class Assets
module Helpers
def travis_handlebars(*args, &block)
filter(Filters::Handlebars, *args, &block)
end
def safe_concat(*args, &block)
if args.first.kind_of?(Array)
filter(Filters::OrderingSafeConcat, *args, &block)
else
filter(Filters::SafeConcat, *args, &block)
end
# filter(Filters::SafeConcat, *args, &block)
end
def drop(pattern)
matcher = pipeline.copy(Filters::Drop)
matcher.glob = pattern
pipeline.add_filter matcher
matcher
end
alias :skip :drop
end
end
end