Permalink
Browse files

Adding .gitattributes and .gitignore file

Fixing up line endings too.
  • Loading branch information...
1 parent 174257c commit aab2c1d514270ae1292a7b858b898415282859f7 @Haacked committed Jul 20, 2012
Showing with 23,240 additions and 23,218 deletions.
  1. +22 −0 .gitattributes
  2. +28 −28 .hgignore
  3. +3 −3 build.bat
  4. +23 −23 docs/license.txt
  5. +1 −1 out/readme..txt
  6. +21 −21 src/RouteDebug/App_Start/PreApplicationStart.cs
  7. +17 −17 src/RouteDebug/DebugRoute.cs
  8. +13 −13 src/RouteDebug/DebugRouteHandler.cs
  9. +34 −34 src/RouteDebug/RouteDebugger.cs
  10. +138 −138 src/RouteDebug/RouteDebugger.csproj
  11. +34 −34 src/RouteDebug/RouteDebuggerHttpModule.cs
  12. +5 −5 src/RouteDebug/Web.config.transform
  13. +324 −324 src/RouteDebuggerDemoWeb/Content/Site.css
  14. +1 −1 src/RouteDebuggerDemoWeb/Global.asax
  15. +24 −24 src/RouteDebuggerDemoWeb/Global.asax.cs
  16. +35 −35 src/RouteDebuggerDemoWeb/Properties/AssemblyInfo.cs
  17. +125 −125 src/RouteDebuggerDemoWeb/RouteDebuggerDemoWeb.csproj
  18. +16 −16 src/RouteDebuggerDemoWeb/TestController.cs
  19. +31 −31 src/RouteDebuggerDemoWeb/Views/Shared/_Layout.cshtml
  20. +3 −3 src/RouteDebuggerDemoWeb/Views/Test/Index.cshtml
  21. +54 −54 src/RouteDebuggerDemoWeb/Views/Web.config
  22. +2 −2 src/RouteDebuggerDemoWeb/Views/_ViewStart.cshtml
  23. +54 −54 src/RouteDebuggerDemoWeb/Web.config
  24. +67 −67 src/RouteMagic.Mvc/MvcRouteExtensions.cs
  25. +7 −7 src/RouteMagic.Mvc/Properties/AssemblyInfo.cs
  26. +13 −13 src/RouteMagic.Mvc/RouteHandlers/DependencyResolvingRouteHandler.cs
  27. +85 −85 src/RouteMagic.Mvc/RouteMagic.Mvc.csproj
  28. +17 −17 src/RouteMagic.Mvc/routemagic.mvc.nuspec
  29. +55 −55 src/RouteMagic.sln
  30. +82 −82 src/RouteMagic/GroupRoute.cs
  31. +39 −39 src/RouteMagic/HttpHandlers/DelegateHttpHandler.cs
  32. +56 −56 src/RouteMagic/HttpHandlers/RedirectHttpHandler.cs
  33. +8 −8 src/RouteMagic/IRouteRegistrar.cs
  34. +16 −16 src/RouteMagic/IncomingOnlyRouteConstraint.cs
  35. +298 −298 src/RouteMagic/Internals/ChildHttpContextWrapper.cs
  36. +424 −424 src/RouteMagic/Internals/ChildHttpRequest.Wrapper.cs
  37. +63 −63 src/RouteMagic/Internals/ConfigChangeNotifier.cs
  38. +8 −8 src/RouteMagic/Internals/IVirtualPathResolver.cs
  39. +86 −86 src/RouteMagic/Internals/NormalizeRoute.cs
  40. +116 −116 src/RouteMagic/Internals/RedirectRoute.cs
  41. +39 −39 src/RouteMagic/Internals/RedirectWithoutExtensionRoute.cs
  42. +40 −40 src/RouteMagic/Internals/StringExtensions.cs
  43. +18 −18 src/RouteMagic/Internals/VirtualPathResolver.cs
  44. +7 −7 src/RouteMagic/Properties/AssemblyInfo.cs
  45. +7 −7 src/RouteMagic/Properties/AssemblyInfo.cs.orig
  46. +31 −31 src/RouteMagic/RedirectRouteExtensions.cs
  47. +102 −102 src/RouteMagic/RouteExtensions.cs
  48. +31 −31 src/RouteMagic/RouteHandlers/DelegateRouteHandler.cs
  49. +24 −24 src/RouteMagic/RouteHandlers/HttpHandlerRouteHandler.cs
  50. +25 −25 src/RouteMagic/RouteHandlers/HttpHandlerRouteHandler~1.cs
  51. +95 −95 src/RouteMagic/RouteMagic.csproj
  52. +35 −35 src/RouteMagic/RouteRegistrationExtensions.cs
  53. +63 −63 src/RouteMagic/RouteValueDictionaryExtensions.cs
  54. +21 −21 src/RouteMagic/routemagic.nuspec
  55. +17 −17 src/RouteMagicDemo.Web/Controllers/HomeController.cs
  56. +1 −1 src/RouteMagicDemo.Web/Global.asax
  57. +55 −55 src/RouteMagicDemo.Web/Global.asax.cs
  58. +13 −13 src/RouteMagicDemo.Web/HttpHandlers/HelloWorldHttpHandler.cs
  59. +34 −34 src/RouteMagicDemo.Web/Properties/AssemblyInfo.cs
  60. +123 −123 src/RouteMagicDemo.Web/RouteMagicDemo.Web.csproj
  61. +9 −9 src/RouteMagicDemo.Web/Views/Home/Index (Megaverse).cshtml
  62. +53 −53 src/RouteMagicDemo.Web/Views/Home/Index.cshtml
  63. +19 −19 src/RouteMagicDemo.Web/Views/Shared/_Layout.cshtml
  64. +54 −54 src/RouteMagicDemo.Web/Views/Web.config
  65. +2 −2 src/RouteMagicDemo.Web/Views/_ViewStart.cshtml
  66. +29 −29 src/RouteMagicDemo.Web/Web.Debug.config
  67. +30 −30 src/RouteMagicDemo.Web/Web.Release.config
  68. +53 −53 src/RouteMagicDemo.Web/Web.config
  69. +10 −10 src/SolutionInfo.cs
  70. +180 −180 src/UnitTests/GroupRouteTest.cs
  71. +47 −47 src/UnitTests/HttpHandlers/DelegateHttpHandlerTest.cs
  72. +37 −37 src/UnitTests/HttpHandlers/RedirectHttpHandlerTest.cs
  73. +27 −27 src/UnitTests/IncomingOnlyRouteConstraintTests.cs
  74. +92 −92 src/UnitTests/Internals/NormalizeRouteTest.cs
  75. +113 −113 src/UnitTests/Internals/RedirectRouteTest.cs
  76. +36 −36 src/UnitTests/Properties/AssemblyInfo.cs
  77. +77 −77 src/UnitTests/RedirectRouteExtensionsTest.cs
  78. +47 −47 src/UnitTests/RouteEvaluator.cs
  79. +145 −145 src/UnitTests/RouteExtensionsTest.cs
  80. +37 −37 src/UnitTests/RouteHandlers/DelegateRouteHandlerTest.cs
  81. +38 −38 src/UnitTests/RouteHandlers/HttpHandlerRouteHandlerTest.cs
  82. +103 −103 src/UnitTests/RouteHandlers/RedirectRouteHandlerTest.cs
  83. +88 −88 src/UnitTests/RouteMockHelpers.cs
  84. +72 −72 src/UnitTests/RouteTests.cs
  85. +57 −57 src/UnitTests/RouteValueDictionaryExtensionsTest.cs
  86. +103 −103 src/UnitTests/UnitTests.csproj
  87. +4 −4 src/UnitTests/packages.config
  88. +23 −23 src/license.txt
  89. +38 −38 src/packages/Moq.4.0.10827/License.txt
  90. +5,768 −5,768 src/packages/Moq.4.0.10827/lib/NET35/Moq.xml
  91. +5,120 −5,120 src/packages/Moq.4.0.10827/lib/NET40/Moq.xml
  92. +5,101 −5,101 src/packages/Moq.4.0.10827/lib/Silverlight4/Moq.Silverlight.xml
  93. +3 −3 src/packages/repositories.config
  94. +4 −4 src/packages/xunit.1.7.0.1540/lib/xunit.dll.tdnet
  95. +2,392 −2,392 src/packages/xunit.1.7.0.1540/lib/xunit.xml
View
@@ -0,0 +1,22 @@
+# Auto detect text files and perform LF normalization
+* text=auto
+
+# Custom for Visual Studio
+*.cs diff=csharp
+*.sln merge=union
+*.csproj merge=union
+*.vbproj merge=union
+*.fsproj merge=union
+*.dbproj merge=union
+
+# Standard to msysgit
+*.doc diff=astextplain
+*.DOC diff=astextplain
+*.docx diff=astextplain
+*.DOCX diff=astextplain
+*.dot diff=astextplain
+*.DOT diff=astextplain
+*.pdf diff=astextplain
+*.PDF diff=astextplain
+*.rtf diff=astextplain
+*.RTF diff=astextplain
View
@@ -1,29 +1,29 @@
-syntax: glob
-*.suo
-*.user
-*.FileListAbsolute.txt
-*\bin\*
-*\obj\*
-*.ncb
-*.nlb
-*.aps
-*.clw
-*.pdb
-*.obj
-*.exe
-*.pch
-*.vspscc
-*_i.c
-*_p.c
-*.tlb
-*.tlh
-*.bak
-*.cache
-*.Cache
-*.ilk
-*.log
-*.lib
-*.sbr
-*.scc
-*.sig
+syntax: glob
+*.suo
+*.user
+*.FileListAbsolute.txt
+*\bin\*
+*\obj\*
+*.ncb
+*.nlb
+*.aps
+*.clw
+*.pdb
+*.obj
+*.exe
+*.pch
+*.vspscc
+*_i.c
+*_p.c
+*.tlb
+*.tlh
+*.bak
+*.cache
+*.Cache
+*.ilk
+*.log
+*.lib
+*.sbr
+*.scc
+*.sig
_ReSharper*\*
View
@@ -1,4 +1,4 @@
-
-.\tools\nuget.exe pack src\RouteDebug\RouteDebugger.csproj -Build -Symbols -Properties Configuration=Release -o .\out
-.\tools\nuget.exe pack src\RouteMagic\RouteMagic.csproj -Build -Symbols -Properties Configuration=Release -o .\out
+
+.\tools\nuget.exe pack src\RouteDebug\RouteDebugger.csproj -Build -Symbols -Properties Configuration=Release -o .\out
+.\tools\nuget.exe pack src\RouteMagic\RouteMagic.csproj -Build -Symbols -Properties Configuration=Release -o .\out
.\tools\nuget.exe pack src\RouteMagic.Mvc\RouteMagic.Mvc.csproj -Build -Symbols -Properties Configuration=Release -o .\out
View
@@ -1,24 +1,24 @@
-Copyright 2010 - Phil Haack
-
-Microsoft Public License (Ms-PL)
-
-This license governs use of the accompanying software. If you use the software, you
-accept this license. If you do not accept the license, do not use the software.
-
-1. Definitions
-The terms "reproduce," "reproduction," "derivative works," and "distribution" have the
-same meaning here as under U.S. copyright law.
-A "contribution" is the original software, or any additions or changes to the software.
-A "contributor" is any person that distributes its contribution under this license.
-"Licensed patents" are a contributor's patent claims that read directly on its contribution.
-
-2. Grant of Rights
-(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
-(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
-
-3. Conditions and Limitations
-(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
-(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
-(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
-(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
+Copyright 2010 - Phil Haack
+
+Microsoft Public License (Ms-PL)
+
+This license governs use of the accompanying software. If you use the software, you
+accept this license. If you do not accept the license, do not use the software.
+
+1. Definitions
+The terms "reproduce," "reproduction," "derivative works," and "distribution" have the
+same meaning here as under U.S. copyright law.
+A "contribution" is the original software, or any additions or changes to the software.
+A "contributor" is any person that distributes its contribution under this license.
+"Licensed patents" are a contributor's patent claims that read directly on its contribution.
+
+2. Grant of Rights
+(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
+(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
+
+3. Conditions and Limitations
+(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
+(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
+(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
+(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
(E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
View
@@ -1,2 +1,2 @@
-Compiling the solution will place packages here. We don't want to check-in
+Compiling the solution will place packages here. We don't want to check-in
the output packages, but we do want this folder to be created by default. :)
@@ -1,21 +1,21 @@
-using System;
-using System.Configuration;
-using System.Web;
-using RouteDebug;
-
-[assembly: PreApplicationStartMethod(typeof(PreApplicationStart), "Start")]
-
-namespace RouteDebug
-{
- public class PreApplicationStart
- {
- public static void Start()
- {
- bool enabled = Convert.ToBoolean(ConfigurationManager.AppSettings["RouteDebugger:Enabled"]);
- if (enabled)
- {
- Microsoft.Web.Infrastructure.DynamicModuleHelper.DynamicModuleUtility.RegisterModule(typeof(RouteDebuggerHttpModule));
- }
- }
- }
-}
+using System;
+using System.Configuration;
+using System.Web;
+using RouteDebug;
+
+[assembly: PreApplicationStartMethod(typeof(PreApplicationStart), "Start")]
+
+namespace RouteDebug
+{
+ public class PreApplicationStart
+ {
+ public static void Start()
+ {
+ bool enabled = Convert.ToBoolean(ConfigurationManager.AppSettings["RouteDebugger:Enabled"]);
+ if (enabled)
+ {
+ Microsoft.Web.Infrastructure.DynamicModuleHelper.DynamicModuleUtility.RegisterModule(typeof(RouteDebuggerHttpModule));
+ }
+ }
+ }
+}
@@ -1,17 +1,17 @@
-using System.Web.Routing;
-
-namespace RouteDebug
-{
- public class DebugRoute : Route
- {
- static readonly DebugRoute singleton = new DebugRoute();
-
- public static DebugRoute Singleton
- {
- get { return singleton; }
- }
-
- private DebugRoute()
- : base("{*catchall}", new DebugRouteHandler()) { }
- }
-}
+using System.Web.Routing;
+
+namespace RouteDebug
+{
+ public class DebugRoute : Route
+ {
+ static readonly DebugRoute singleton = new DebugRoute();
+
+ public static DebugRoute Singleton
+ {
+ get { return singleton; }
+ }
+
+ private DebugRoute()
+ : base("{*catchall}", new DebugRouteHandler()) { }
+ }
+}
@@ -1,13 +1,13 @@
-using System.Web;
-using System.Web.Routing;
-
-namespace RouteDebug
-{
- public class DebugRouteHandler : IRouteHandler
- {
- public IHttpHandler GetHttpHandler(RequestContext requestContext)
- {
- return new DebugHttpHandler();
- }
- }
-}
+using System.Web;
+using System.Web.Routing;
+
+namespace RouteDebug
+{
+ public class DebugRouteHandler : IRouteHandler
+ {
+ public IHttpHandler GetHttpHandler(RequestContext requestContext)
+ {
+ return new DebugHttpHandler();
+ }
+ }
+}
@@ -1,34 +1,34 @@
-using System.Web.Routing;
-
-namespace RouteDebug
-{
- public static class RouteDebugger
- {
- public static void RewriteRoutesForTesting(RouteCollection routes)
- {
- using (routes.GetReadLock())
- {
- bool foundDebugRoute = false;
- foreach (RouteBase routeBase in routes)
- {
- Route route = routeBase as Route;
- if (route != null)
- {
- route.RouteHandler = new DebugRouteHandler();
- }
-
- if (route == DebugRoute.Singleton)
- foundDebugRoute = true;
-
- }
- if (!foundDebugRoute)
- {
- routes.Add(DebugRoute.Singleton);
- }
- }
-
-
- }
-
- }
-}
+using System.Web.Routing;
+
+namespace RouteDebug
+{
+ public static class RouteDebugger
+ {
+ public static void RewriteRoutesForTesting(RouteCollection routes)
+ {
+ using (routes.GetReadLock())
+ {
+ bool foundDebugRoute = false;
+ foreach (RouteBase routeBase in routes)
+ {
+ Route route = routeBase as Route;
+ if (route != null)
+ {
+ route.RouteHandler = new DebugRouteHandler();
+ }
+
+ if (route == DebugRoute.Singleton)
+ foundDebugRoute = true;
+
+ }
+ if (!foundDebugRoute)
+ {
+ routes.Add(DebugRoute.Singleton);
+ }
+ }
+
+
+ }
+
+ }
+}
Oops, something went wrong.

0 comments on commit aab2c1d

Please sign in to comment.