Permalink
Browse files

updated reference to newer yui compressor. Made configuration propert…

…ies public for better testability
  • Loading branch information...
1 parent a432de0 commit 2f3c7511d60b79fd34ce9af5ca5e2ef3217bda9f Karl Seguin committed Apr 6, 2011
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -24,7 +24,7 @@ public class Configuration : IInitialConfiguration, IConfiguration
{
private const string _assetHashesCacheKey = "Metsys.WebOp.Mvc.AssetHashes";
private static readonly Configuration _instance = new Configuration();
- internal static Configuration Instance
+ public static Configuration Instance
{
get { return _instance; }
}
@@ -38,39 +38,39 @@ internal static Configuration Instance
private bool _enableSmartDebug;
private IDictionary<string, string[]> _combinedData;
- internal string RootAssetPath
+ public string RootAssetPath
{
get { return _rootAssetPath; }
}
- internal string StylesFolder
+ public string StylesFolder
{
get { return _stylesFolder; }
}
- internal string ScriptsFolder
+ public string ScriptsFolder
{
get { return _scriptsFolder; }
}
- internal string ImagesFolder
+ public string ImagesFolder
{
get { return _imagesFolder; }
}
- internal string AssetFilePath
+ public string AssetFilePath
{
get { return _assetHashesFilePath; }
}
- internal string FullAssetPath
+ public string FullAssetPath
{
get { return _fullAssetPath; }
}
- internal bool SmartDebug
+ public bool SmartDebug
{
get { return _enableSmartDebug; }
}
- internal string CommandFile
+ public string CommandFile
{
get { return string.Concat(_fullAssetPath, "\\webop.dat"); }
}
- internal IDictionary<string, string> AssetHashes
+ public IDictionary<string, string> AssetHashes
{
get
{
@@ -22,7 +22,7 @@ private void OnRequestEnd(object sender, EventArgs e)
//doesn't work great in Cassini + you don't want caching on while developing.
//HttpContext.Current can be null within OnPreSendRequestHeaders, so we do this here
var context = HttpContext.Current;
- _headersToRemove.ForEach(h => context.Response.Headers.Remove(h));
+ _headersToRemove.ForEach(h => context.Response.Headers.Remove(h));
var extension = Path.GetExtension(context.Request.Url.AbsolutePath);
if (_longCacheExtensions.Contains(extension))
{
@@ -1,26 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual Studio 2008
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Metsys.WebOp.Runner", "Metsys.WebOp.Runner\Metsys.WebOp.Runner.csproj", "{67C6730C-9A0A-472E-8E80-7DFC304CDE9D}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Metsys.WebOp.Mvc", "Metsys.WebOp.Mvc\Metsys.WebOp.Mvc.csproj", "{856E9262-61C1-4B01-8874-107E1E8440F2}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {67C6730C-9A0A-472E-8E80-7DFC304CDE9D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {67C6730C-9A0A-472E-8E80-7DFC304CDE9D}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {67C6730C-9A0A-472E-8E80-7DFC304CDE9D}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {67C6730C-9A0A-472E-8E80-7DFC304CDE9D}.Release|Any CPU.Build.0 = Release|Any CPU
- {856E9262-61C1-4B01-8874-107E1E8440F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {856E9262-61C1-4B01-8874-107E1E8440F2}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {856E9262-61C1-4B01-8874-107E1E8440F2}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {856E9262-61C1-4B01-8874-107E1E8440F2}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal

0 comments on commit 2f3c751

Please sign in to comment.