Sha256: c768061a2072f75f00c8ee4d71363159a8f77c193056fa9a6f4813b6993a6397

Contents?: true

Size: 348 Bytes

Versions: 3

Compression:

Stored size: 348 Bytes

Contents

module W3cRspecValidators
  class CssFiles
    def self.compiled paths=["#{Rails.root}/public/assets/*.css"]
      system "rake -q assets:precompile"
      files = Dir.glob(paths.join(","))
      css = ""
      files.each do |f|
        css += File.read f
      end
      FileUtils.rm_rf "#{Rails.root}/public/assets/"

      css
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
w3c_rspec_validators-0.3.0 lib/w3c_rspec_validators/css_files.rb
w3c_rspec_validators-0.2.1 lib/w3c_rspec_validators/css_files.rb
w3c_rspec_validators-0.2.0 lib/w3c_rspec_validators/css_files.rb