Sha256: 1e99d84f5945cb0d4bf73d6cabba205e3415e87efc943a84b017b80b4c62e1e4
Contents?: true
Size: 459 Bytes
Versions: 1
Compression:
Stored size: 459 Bytes
Contents
module AssetsBooster module Merger class Simple def self.name "Simple Merger" end def self.merge(sources, target) sources.inject("") do |code, source| File.open(source, "r") do |file| code << file.read.strip+"\n" end end.strip end def self.mtime(sources) sources.map{ |source| File.mtime(source) }.max end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
assets_booster-0.0.1 | lib/assets_booster/merger/simple.rb |