lib/dassets.rb in dassets-0.1.0 vs lib/dassets.rb in dassets-0.2.0

- old
+ new

@@ -3,16 +3,19 @@ require 'dassets/version' require 'dassets/root_path' require 'dassets/digests_file' +ENV['DASSETS_ASSETS_FILE'] ||= 'config/assets' + module Dassets def self.config; Config; end def self.configure(&block); Config.define(&block); end def self.init + require self.config.assets_file @digests_file = DigestsFile.new(self.config.digests_file_path) end def self.reset @digests_file = nil @@ -24,11 +27,12 @@ end class Config include NsOptions::Proxy - option :root_path, Pathname, :required => true - option :files_path, RootPath, :default => proc{ "app/assets/public" } + option :assets_file, Pathname, :default => ENV['DASSETS_ASSETS_FILE'] + option :root_path, Pathname, :required => true + option :files_path, RootPath, :default => proc{ "app/assets/public" } option :digests_file_path, RootPath, :default => proc{ "app/assets/.digests" } end end