Sha256: b7e264d0e0e28b273d2f21959c0628c68a1156a338755368c285c4c8f9165302
Contents?: true
Size: 687 Bytes
Versions: 1
Compression:
Stored size: 687 Bytes
Contents
require "sass" module Sprockets module Sass class CacheStore < ::Sass::CacheStores::Base attr_reader :environment def initialize(environment) @environment = environment end def _store(key, version, sha, contents) environment.send :cache_set, "sass/#{key}", { :version => version, :sha => sha, :contents => contents } end def _retrieve(key, version, sha) if obj = environment.send(:cache_get, "sass/#{key}") return unless obj[:version] == version return unless obj[:sha] == sha obj[:obj] else nil end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sprockets-sass-0.7.0 | lib/sprockets/sass/cache_store.rb |