Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Udpates to Yahoo YUI Compressor defaults. Updated default encoding.

  • Loading branch information...
commit 8c1abe5d79f1af86cd6964fbb953097efac7ecac 1 parent c8b24b0
@skroonenburg authored
View
2  Nuspec/Rejuicer.nuspec
@@ -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>
View
12 Source/Rejuicer/Rejuicer/Engine/MinificationProviders/JsMinificationProvider.cs
@@ -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;
- }
}
View
4 Source/Rejuicer/Rejuicer/Properties/AssemblyInfo.cs
@@ -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")]
Please sign in to comment.
Something went wrong with that request. Please try again.