Sprockets::Sprocket
Inherits Reference < Object
Constructors
new(config : Sprockets::Config)
SourceInstance methods
assets_map
Sourcecompute_target_path(filename : String) : Tuple(String, String)
Sourcefound bug when gzip is true and precompiling a Coffeescript of Sass file in the old situation the source file was just g'zipped and not the compiled version of the source file
create_file(dest : String, data : Array(String))
Sourcedebug
Sourcedebug=(debug : Bool)
Sourcedebug_copy_file(source : String, dest : String)
Sourcedebug_create_directory(dirname : String)
Sourcedebug_create_file(filename : String)
Sourcedest_dir
Sourcedest_dir=(dest_dir : String)
Sourcedigest
Sourcedigest=(digest : Bool)
Sourcefake_copy
Sourcefake_copy=(fake_copy : Bool)
Sourcegzip
Sourcegzip=(gzip : Bool)
Sourceis_relative
Sourceis_relative=(is_relative : Bool)
Sourceminified
Sourceminified=(minified : Bool)
Sourcemode
Sourcemode=(mode : String)
Sourceprecompile_assets
this function copies all the directories/files within the assets directory @source_dirs to the public directory (@public_dir)
exception : for Javascript and CSS stylesheets the assets are precompiled need to check each of these assets, they possibly contain Sprockets directives if so need to exclude the required files from being copied
prefix
Sourceprefix=(prefix : String)
Sourceprocess_file(asset : Sprockets::Asset)
Sourcepublic_dir
Sourcepublic_dir=(public_dir : String)
Sourcequiet
Sourcequiet=(quiet : Bool)
Sourceraise_runtime
Sourceraise_runtime=(raise_runtime : Bool)
Sourcerename_asset(asset : Sprockets::Asset)
Sourceroot_dir
Sourceroot_dir=(root_dir : String)
Sourceset_relative
does public dir contains a '/' at the beginning if so we are dealing with an absolute path
source_dirs
Sourcesource_dirs=(source_dirs : Array(String))
Sourceversion
Sourceversion=(version : String)
Source