Skip to content

Commit

Permalink
Udpates to Yahoo YUI Compressor defaults. Updated default encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
skroonenburg committed Nov 15, 2011
1 parent c8b24b0 commit 8c1abe5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Nuspec/Rejuicer.nuspec
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>Rejuicer</id>
<version>1.2.7</version>
<version>1.2.8</version>
<authors>Sam Kroonenburg</authors>
<description>Minify your CSS/JS. Simple fluent configuration. Wildcard file matching. Browser caching. Works on Azure. Easy script debugging.</description>
<language>en-US</language>
Expand Down
Expand Up @@ -12,27 +12,21 @@ public class JsMinificationProvider : BaseStringMinificationProvider
{
public override string MinifyStringValue(string data)
{
var currentCulture = Thread.CurrentThread.CurrentCulture;

try
{
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;

if (string.IsNullOrEmpty(data))
{
return "";
}

return Yahoo.Yui.Compressor.JavaScriptCompressor.Compress(data);

// Uses the same default values as Yahoo YUI Compressor
return Yahoo.Yui.Compressor.JavaScriptCompressor.Compress(data, true, true, false, false, -1, Encoding.UTF8, CultureInfo.InvariantCulture);
}
catch (InvalidOperationException e)
{
throw new InvalidOperationException("Encountered exception trying minify invalid JavaScript.", e);
}
finally
{
Thread.CurrentThread.CurrentCulture = currentCulture;
}

}

Expand Down
4 changes: 2 additions & 2 deletions Source/Rejuicer/Rejuicer/Properties/AssemblyInfo.cs
Expand Up @@ -32,7 +32,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.7.0")]
[assembly: AssemblyFileVersion("1.2.7.0")]
[assembly: AssemblyVersion("1.2.8.0")]
[assembly: AssemblyFileVersion("1.2.8.0")]
[assembly: InternalsVisibleTo("Rejuicer-test")]
[assembly: InternalsVisibleTo("RejuicerConfiguration-test")]

0 comments on commit 8c1abe5

Please sign in to comment.