Permalink
Browse files

updated rakefile to simplify creation of PagedList.Mvc nuget package …

…as well
  • Loading branch information...
1 parent 417d7e7 commit 85907d877fc5d6ad30a5975f6eb60863f1e2cb9a @troygoode committed Aug 3, 2011
Showing with 5,307 additions and 742 deletions.
  1. +2 −1 .gitignore
  2. +0 −17 packages/PagedList.Mvc/PagedList.Mvc.nuspec
  3. +12 −18 rakefile.rb
  4. +1 −0 src/PagedList.Mvc/PagedList.Mvc.csproj
  5. +20 −0 src/PagedList.Mvc/PagedList.Mvc.nuspec
  6. +1 −1 src/PagedList.Mvc/Properties/AssemblyInfo.cs
  7. +0 −117 src/PagedList.Tests/Dependencies/xUnit 1.1/HTML.xslt
  8. BIN src/PagedList.Tests/Dependencies/xUnit 1.1/xunit.console.exe
  9. BIN src/PagedList.Tests/Dependencies/xUnit 1.1/xunit.dll
  10. BIN src/PagedList.Tests/Dependencies/xUnit 1.1/xunit.extensions.dll
  11. BIN src/PagedList.Tests/Dependencies/xUnit 1.1/xunit.gui.exe
  12. BIN src/PagedList.Tests/Dependencies/xUnit 1.1/xunit.installer.exe
  13. BIN src/PagedList.Tests/Dependencies/xUnit 1.1/xunit.runner.msbuild.dll
  14. BIN src/PagedList.Tests/Dependencies/xUnit 1.1/xunit.runner.resharper.dll
  15. BIN src/PagedList.Tests/Dependencies/xUnit 1.1/xunit.runner.tdnet.dll
  16. BIN src/PagedList.Tests/Dependencies/xUnit 1.1/xunit.runner.utility.dll
  17. +0 −407 src/PagedList.Tests/Dependencies/xUnit 1.1/xunit.runner.utility.xml
  18. +29 −0 src/PagedList.Tests/Dependencies/xunit-1.8/EULA.txt
  19. +128 −0 src/PagedList.Tests/Dependencies/xunit-1.8/HTML.xslt
  20. 0 src/PagedList.Tests/Dependencies/{xUnit 1.1 → xunit-1.8}/NUnitXml.xslt
  21. BIN src/PagedList.Tests/Dependencies/xunit-1.8/xunit.console.clr4.exe
  22. +21 −0 src/PagedList.Tests/Dependencies/xunit-1.8/xunit.console.clr4.exe.config
  23. BIN src/PagedList.Tests/Dependencies/xunit-1.8/xunit.console.clr4.x86.exe
  24. +21 −0 src/PagedList.Tests/Dependencies/xunit-1.8/xunit.console.clr4.x86.exe.config
  25. BIN src/PagedList.Tests/Dependencies/xunit-1.8/xunit.console.exe
  26. 0 src/PagedList.Tests/Dependencies/{xUnit 1.1 → xunit-1.8}/xunit.console.exe.config
  27. BIN src/PagedList.Tests/Dependencies/xunit-1.8/xunit.console.x86.exe
  28. +21 −0 src/PagedList.Tests/Dependencies/xunit-1.8/xunit.console.x86.exe.config
  29. BIN src/PagedList.Tests/Dependencies/xunit-1.8/xunit.dll
  30. +5 −0 src/PagedList.Tests/Dependencies/xunit-1.8/xunit.dll.tdnet
  31. BIN src/PagedList.Tests/Dependencies/xunit-1.8/xunit.extensions.dll
  32. +118 −26 src/PagedList.Tests/Dependencies/{xUnit 1.1 → xunit-1.8}/xunit.extensions.xml
  33. BIN src/PagedList.Tests/Dependencies/xunit-1.8/xunit.gui.clr4.exe
  34. BIN src/PagedList.Tests/Dependencies/xunit-1.8/xunit.gui.clr4.x86.exe
  35. BIN src/PagedList.Tests/Dependencies/xunit-1.8/xunit.gui.exe
  36. BIN src/PagedList.Tests/Dependencies/xunit-1.8/xunit.gui.x86.exe
  37. BIN src/PagedList.Tests/Dependencies/xunit-1.8/xunit.installer.exe
  38. BIN src/PagedList.Tests/Dependencies/xunit-1.8/xunit.runner.msbuild.dll
  39. BIN src/PagedList.Tests/Dependencies/xunit-1.8/xunit.runner.tdnet.dll
  40. BIN src/PagedList.Tests/Dependencies/xunit-1.8/xunit.runner.utility.dll
  41. +1,212 −0 src/PagedList.Tests/Dependencies/xunit-1.8/xunit.runner.utility.xml
  42. +442 −135 src/PagedList.Tests/Dependencies/{xUnit 1.1 → xunit-1.8}/xunit.xml
  43. +32 −19 src/PagedList.Tests/PagedList.Tests.csproj
  44. +5 −0 src/PagedList.Tests/packages.config
  45. +0 −1 src/PagedList.sln
  46. +1 −0 src/packages/repositories.config
  47. BIN src/packages/xunit.1.8.0.1545/lib/xunit.dll
  48. +2,439 −0 src/packages/xunit.1.8.0.1545/lib/xunit.xml
  49. BIN src/packages/xunit.1.8.0.1545/xunit.1.8.0.1545.nupkg
  50. BIN src/packages/xunit.extensions.1.8.0.1545/lib/xunit.extensions.dll
  51. +797 −0 src/packages/xunit.extensions.1.8.0.1545/lib/xunit.extensions.xml
  52. BIN src/packages/xunit.extensions.1.8.0.1545/xunit.extensions.1.8.0.1545.nupkg
View
@@ -18,4 +18,5 @@ _ReSharper*
packages/PagedList/lib/40/
packages/PagedList.Mvc/content/
packages/PagedList.Mvc/lib/40/
-packages/*.nupkg
+packages/*.nupkg
+src/PagedList.Mvc/Content/
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
- <metadata schemaVersion="2">
- <id>PagedList.Mvc</id>
- <version>3.3.0.0</version>
- <authors>Troy Goode</authors>
- <owners>TroyGoode</owners>
- <description><![CDATA[Asp.Net MVC HtmlHelper method for generating paging control for use with PagedList library.]]></description>
- <tags>paging pager page infinitescroll ajax mvc</tags>
- <language>en-US</language>
- <projectUrl>http://github.com/TroyGoode/PagedList</projectUrl>
- <licenseUrl>http://www.opensource.org/licenses/mit-license.php</licenseUrl>
- <dependencies>
- <dependency id="PagedList" version="1.5" />
- </dependencies>
- </metadata>
-</package>
View
@@ -1,4 +1,5 @@
require 'albacore' # >= 0.2.7
+require 'fileutils'
task :default => [:build]
@@ -9,7 +10,7 @@
end
xunit :test => :build do |xunit|
- xunit.command = "src/PagedList.Tests/bin/debug/xunit.console.exe"
+ xunit.command = "src/PagedList.Tests/Dependencies/xunit-1.8/xunit.console.clr4.exe"
xunit.assembly = "src/PagedList.Tests/bin/debug/PagedList.Tests.dll"
end
@@ -24,31 +25,24 @@
nuget.output = './packages/'
end
-task :prepare_package_pagedlistmvc => :release do
- require 'fileutils'
-
- build_directory = './src/PagedList.Mvc/bin/Release/'
+#HACK: remove once http://nuget.codeplex.com/workitem/1349 is fixed
+task :prepare_package_pagedlistmvc do
content_directory = './src/PagedList.Mvc.Example/Content/'
script_directory = './src/PagedList.Mvc.Example/Scripts/PagedList/'
- lib_output_directory = './packages/PagedList.Mvc/lib/40/'
- content_output_directory = './packages/PagedList.Mvc/content/Content/'
- script_output_directory = './packages/PagedList.Mvc/content/Scripts/PagedList/'
+ content_directory_out = './src/PagedList.Mvc/Content/Content/'
+ script_directory_out = './src/PagedList.Mvc/Content/Scripts/PagedList/'
- FileUtils.mkdir_p lib_output_directory
- FileUtils.mkdir_p content_output_directory
- FileUtils.mkdir_p script_output_directory
+ FileUtils.mkdir_p content_directory_out
+ FileUtils.mkdir_p script_directory_out
- FileUtils.cp build_directory + 'PagedList.Mvc.dll', lib_output_directory + 'PagedList.Mvc.dll'
- FileUtils.cp build_directory + 'PagedList.Mvc.pdb', lib_output_directory + 'PagedList.Mvc.pdb'
- FileUtils.cp build_directory + 'PagedList.Mvc.xml', lib_output_directory + 'PagedList.Mvc.xml'
- FileUtils.cp content_directory + 'PagedList.css', content_output_directory + 'PagedList.css'
- FileUtils.cp script_directory + 'PagedList.Mvc.js', script_output_directory + 'PagedList.Mvc.js'
- FileUtils.cp script_directory + 'PagedList.Mvc.Template.html', script_output_directory + 'PagedList.Mvc.Template.html'
+ FileUtils.cp content_directory + 'PagedList.css', content_directory_out + 'PagedList.css'
+ FileUtils.cp script_directory + 'PagedList.Mvc.js', script_directory_out + 'PagedList.Mvc.js'
+ FileUtils.cp script_directory + 'PagedList.Mvc.Template.html', script_directory_out + 'PagedList.Mvc.Template.html'
end
nugetpack :package_pagedlistmvc => :prepare_package_pagedlistmvc do |nuget|
- nuget.nuspec = './packages/PagedList.Mvc/PagedList.Mvc.nuspec'
+ nuget.nuspec = './src/PagedList.Mvc/PagedList.Mvc.csproj -Prop Configuration=Release'
nuget.output = './packages/'
end
@@ -60,6 +60,7 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
+ <None Include="PagedList.Mvc.nuspec" />
<None Include="PublicKeyFile.snk" />
<None Include="PublicPrivateKeyFile.snk" />
</ItemGroup>
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <metadata schemaVersion="2">
+ <id>$id$</id>
+ <version>$version$</version>
+ <authors>$author$</authors>
+ <owners>TroyGoode BOOM BOOM BOOM</owners>
+ <description><![CDATA[$description$]]></description>
+ <tags>paging pager page infinitescroll ajax mvc</tags>
+ <language>en-US</language>
+ <projectUrl>http://github.com/TroyGoode/PagedList</projectUrl>
+ <licenseUrl>http://www.opensource.org/licenses/mit-license.php</licenseUrl>
+ <dependencies>
+ <dependency id="PagedList" version="1.5" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="Content\**\*.*" target="Content" />
+ </files>
+</package>
@@ -11,7 +11,7 @@
// associated with an assembly.
[assembly: AssemblyTitle("PagedList.Mvc")]
-[assembly: AssemblyDescription("HtmlHelper extensions for displaying paging controls in Asp.Net MVC when using the PagedList library.")]
+[assembly: AssemblyDescription("Asp.Net MVC HtmlHelper method for generating paging control for use with PagedList library.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Troy Goode")]
[assembly: AssemblyProduct("PagedList.Mvc")]
@@ -1,117 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="html"/>
- <xsl:template match="/">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="assembly">
- <xsl:text disable-output-escaping="yes"><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">]]></xsl:text>
- <html>
- <head>
- <title>xUnit.net Test Results - <xsl:value-of select="@name"/>
- </title>
- <style type="text/css">
- body { font-family: Calibri, Verdana, Arial, sans-serif; background-color: White; color: Black; }
- h2,h3,h5 { margin: 0; padding: 0; }
- h2 { border-top: solid 1px #f0f5fa; padding-top: 0.5em; }
- h3 { font-weight: normal; }
- h5 { font-weight: normal; font-style: italic; margin-bottom: 0.75em; }
- pre { font-family: Consolas; font-size: 85%; margin: 0 0 0 1em; padding: 0; }
- .row, .altrow { padding: 0.1em 0.3em; }
- .row { background-color: #f0f5fa; }
- .altrow { background-color: #e1ebf4; }
- .success, .failure, .skipped { font-family: Arial Unicode MS; font-weight: normal; float: left; width: 1em; display: block; }
- .success { color: #0c0; }
- .failure { color: #c00; }
- .skipped { color: #cc0; }
- .timing { float: right; }
- .indent { margin: 0.25em 0 0.5em 2em; }
- .clickable { cursor: pointer; }
- .testcount { font-size: 85%; }
- </style>
- <script language="javascript">
- function ToggleClass(id) {
- var elem = document.getElementById(id);
- if (elem.style.display == "none")
- elem.style.display = "block";
- else
- elem.style.display = "none";
- }
- </script>
- </head>
- <body>
- <h3><b>Results for <xsl:value-of select="@name"/></b></h3>
- <div>
- Tests run: <a href="#all"><b><xsl:value-of select="@total"/></b></a> &#160;
- Failures: <a href="#failures"><b><xsl:value-of select="@failed"/></b></a>,
- Skipped: <a href="#skipped"><b><xsl:value-of select="@skipped"/></b></a>,
- Run time: <b><xsl:value-of select="@time"/>s</b>
- </div>
- <xsl:if test="//test[@result='Fail']">
- <br />
- <h2><a name="failures"></a>Failed tests</h2>
- <xsl:apply-templates select="//test[@result='Fail']"><xsl:sort select="@name"/></xsl:apply-templates>
- </xsl:if>
- <xsl:if test="//class/failure">
- <br />
- <h2><a name="failures"></a>Failed fixtures</h2>
- <xsl:apply-templates select="//class/failure"><xsl:sort select="../@name"/></xsl:apply-templates>
- </xsl:if>
- <xsl:if test="@skipped > 0">
- <br />
- <h2><a name="skipped"></a>Skipped tests</h2>
- <xsl:apply-templates select="//test[@result='Skip']"><xsl:sort select="@name"/></xsl:apply-templates>
- </xsl:if>
- <br />
- <h2><a name="all"></a>All tests</h2>
- <h5>Click test class name to expand/collapse test details</h5>
- <xsl:apply-templates select="//class"><xsl:sort select="@name"/></xsl:apply-templates>
- <br /><h5>Results generated <xsl:value-of select="@run-date"/> at <xsl:value-of select="@run-time"/></h5>
- </body>
- </html>
- </xsl:template>
-
- <xsl:template match="test">
- <div>
- <xsl:attribute name="class"><xsl:if test="(position() mod 2 = 0)">alt</xsl:if>row</xsl:attribute>
- <xsl:if test="@result!='Skip'"><span class="timing"><xsl:value-of select="@time"/>s</span></xsl:if>
- <xsl:if test="@result='Skip'"><span class="timing">Skipped</span><span class="skipped">&#x2762;</span></xsl:if>
- <xsl:if test="@result='Fail'"><span class="failure">&#x2718;</span></xsl:if>
- <xsl:if test="@result='Pass'"><span class="success">&#x2714;</span></xsl:if>
- &#160;<xsl:value-of select="@name"/>
- <xsl:if test="child::node()/message"> : <xsl:value-of select="child::node()/message"/></xsl:if>
- <br clear="all" />
- <xsl:if test="failure/stack-trace">
- <pre><xsl:value-of select="failure/stack-trace"/></pre>
- </xsl:if>
- </div>
- </xsl:template>
-
- <xsl:template match="failure">
- <span class="failure">&#x2718;</span> <xsl:value-of select="../@name"/> : <xsl:value-of select="message"/><br clear="all"/>
- Stack Trace:<br />
- <pre><xsl:value-of select="stack-trace"/></pre>
- </xsl:template>
-
- <xsl:template match="class">
- <h3>
- <span class="timing"><xsl:value-of select="@time"/>s</span>
- <span class="clickable">
- <xsl:attribute name="onclick">ToggleClass('class<xsl:value-of select="position()"/>')</xsl:attribute>
- <xsl:attribute name="ondblclick">ToggleClass('class<xsl:value-of select="position()"/>')</xsl:attribute>
- <xsl:if test="@failed > 0"><span class="failure">&#x2718;</span></xsl:if>
- <xsl:if test="@failed = 0"><span class="success">&#x2714;</span></xsl:if>
- &#160;<xsl:value-of select="@name"/>
- &#160;<span class="testcount">(<xsl:value-of select="@total"/>&#160;test<xsl:if test="@total > 1">s</xsl:if>)</span>
- </span>
- <br clear="all" />
- </h3>
- <div class="indent">
- <xsl:if test="@failed = 0"><xsl:attribute name="style">display: none;</xsl:attribute></xsl:if>
- <xsl:attribute name="id">class<xsl:value-of select="position()"/></xsl:attribute>
- <xsl:apply-templates select="test"><xsl:sort select="@name"/></xsl:apply-templates>
- </div>
- </xsl:template>
-
-</xsl:stylesheet>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.

0 comments on commit 85907d8

Please sign in to comment.