pre_push 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. data/.gitignore +21 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +29 -0
  5. data/Rakefile +5 -0
  6. data/bin/pre-push +15 -0
  7. data/bin/prepush +19 -0
  8. data/lib/pre_push/version.rb +3 -0
  9. data/lib/pre_push.rb +53 -0
  10. data/lib/prepush_validator.rb +23 -0
  11. data/lib/runners/mspec/CommandLine.dll +0 -0
  12. data/lib/runners/mspec/CommandLine.xml +504 -0
  13. data/lib/runners/mspec/InstallDotCoverRunner.2.0.bat +7 -0
  14. data/lib/runners/mspec/InstallDotCoverRunner.2.1.bat +7 -0
  15. data/lib/runners/mspec/InstallDotCoverRunner.2.2.bat +7 -0
  16. data/lib/runners/mspec/InstallResharperRunner.6.1.bat +10 -0
  17. data/lib/runners/mspec/InstallResharperRunner.7.0.bat +10 -0
  18. data/lib/runners/mspec/InstallResharperRunner.7.1.bat +10 -0
  19. data/lib/runners/mspec/InstallTDNetRunner.bat +16 -0
  20. data/lib/runners/mspec/InstallTDNetRunnerSilent.bat +16 -0
  21. data/lib/runners/mspec/JetBrains.dotCover.Resources.dll +0 -0
  22. data/lib/runners/mspec/License.txt +54 -0
  23. data/lib/runners/mspec/Machine.Specifications.Clr4.dll +0 -0
  24. data/lib/runners/mspec/Machine.Specifications.GallioAdapter.dll +0 -0
  25. data/lib/runners/mspec/Machine.Specifications.GallioAdapter.plugin +43 -0
  26. data/lib/runners/mspec/Machine.Specifications.ReSharperRunner.6.0.dll +0 -0
  27. data/lib/runners/mspec/Machine.Specifications.ReSharperRunner.6.1.dll +0 -0
  28. data/lib/runners/mspec/Machine.Specifications.ReSharperRunner.7.0.dll +0 -0
  29. data/lib/runners/mspec/Machine.Specifications.ReSharperRunner.7.1.dll +0 -0
  30. data/lib/runners/mspec/Machine.Specifications.Reporting.Templates.dll +0 -0
  31. data/lib/runners/mspec/Machine.Specifications.Reporting.dll +0 -0
  32. data/lib/runners/mspec/Machine.Specifications.SeleniumSupport.dll +0 -0
  33. data/lib/runners/mspec/Machine.Specifications.TDNetRunner.dll +0 -0
  34. data/lib/runners/mspec/Machine.Specifications.WatinSupport.dll +0 -0
  35. data/lib/runners/mspec/Machine.Specifications.WebDriverSupport.dll +0 -0
  36. data/lib/runners/mspec/Machine.Specifications.dll +0 -0
  37. data/lib/runners/mspec/Machine.Specifications.dll.tdnet +5 -0
  38. data/lib/runners/mspec/Machine.Specifications.dotCoverRunner.2.0.dll +0 -0
  39. data/lib/runners/mspec/Machine.Specifications.dotCoverRunner.2.1.dll +0 -0
  40. data/lib/runners/mspec/Machine.Specifications.dotCoverRunner.2.2.dll +0 -0
  41. data/lib/runners/mspec/Spark.dll +0 -0
  42. data/lib/runners/mspec/TestDriven.Framework.dll +0 -0
  43. data/lib/runners/mspec/install.ps1 +6 -0
  44. data/lib/runners/mspec/mspec-clr4.exe +0 -0
  45. data/lib/runners/mspec/mspec-clr4.exe.config +9 -0
  46. data/lib/runners/mspec/mspec-x86-clr4.exe +0 -0
  47. data/lib/runners/mspec/mspec-x86-clr4.exe.config +9 -0
  48. data/lib/runners/mspec/mspec-x86.exe +0 -0
  49. data/lib/runners/mspec/mspec.exe +0 -0
  50. data/lib/runners/nunit262/framework/nunit.framework.dll +0 -0
  51. data/lib/runners/nunit262/framework/nunit.framework.xml +10899 -0
  52. data/lib/runners/nunit262/framework/nunit.mocks.dll +0 -0
  53. data/lib/runners/nunit262/lib/NSubstitute.dll +0 -0
  54. data/lib/runners/nunit262/lib/nunit-console-runner.dll +0 -0
  55. data/lib/runners/nunit262/lib/nunit-gui-runner.dll +0 -0
  56. data/lib/runners/nunit262/lib/nunit.core.dll +0 -0
  57. data/lib/runners/nunit262/lib/nunit.core.interfaces.dll +0 -0
  58. data/lib/runners/nunit262/lib/nunit.uiexception.dll +0 -0
  59. data/lib/runners/nunit262/lib/nunit.uikit.dll +0 -0
  60. data/lib/runners/nunit262/lib/nunit.util.dll +0 -0
  61. data/lib/runners/nunit262/nunit-agent.exe +0 -0
  62. data/lib/runners/nunit262/nunit-agent.exe.config +37 -0
  63. data/lib/runners/nunit262/nunit-console.exe +0 -0
  64. data/lib/runners/nunit262/nunit-console.exe.config +24 -0
  65. data/lib/runners/nunit262/nunit-editor.exe +0 -0
  66. data/lib/runners/nunit262/nunit.exe +0 -0
  67. data/lib/runners/nunit262/nunit.exe.config +23 -0
  68. data/lib/runners/nunit262/nunit.framework.dll +0 -0
  69. data/lib/runners/xunit191/xunit.console.exe +0 -0
  70. data/lib/runners/xunit191/xunit.console.exe.config +21 -0
  71. data/lib/runners/xunit191/xunit.dll +0 -0
  72. data/lib/runners/xunit191/xunit.dll.tdnet +5 -0
  73. data/lib/runners/xunit191/xunit.extensions.dll +0 -0
  74. data/lib/runners/xunit191/xunit.runner.msbuild.dll +0 -0
  75. data/lib/runners/xunit191/xunit.runner.tdnet.dll +0 -0
  76. data/lib/runners/xunit191/xunit.runner.utility.dll +0 -0
  77. data/lib/runners/xunit191/xunit.runner.utility.xml +1212 -0
  78. data/lib/runners/xunit191/xunit.xml +2611 -0
  79. data/lib/spec_helper.rb +4 -0
  80. data/pre_push.gemspec +23 -0
  81. data/spec/TestProj/TestProj/AllTests.cs +31 -0
  82. data/spec/TestProj/TestProj/Properties/AssemblyInfo.cs +36 -0
  83. data/spec/TestProj/TestProj/TestProj.csproj +71 -0
  84. data/spec/TestProj/TestProj/TestProj.csproj.user +6 -0
  85. data/spec/TestProj/TestProj/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache +0 -0
  86. data/spec/TestProj/TestProj/packages.config +6 -0
  87. data/spec/TestProj/TestProj.5.1.ReSharper.user +59 -0
  88. data/spec/TestProj/TestProj.sln +20 -0
  89. data/spec/TestProj/TestProj.suo +0 -0
  90. data/spec/TestProj/packages/Machine.Specifications.0.5.12/Machine.Specifications.0.5.12.nupkg +0 -0
  91. data/spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net20/Machine.Specifications.TDNetRunner.dll +0 -0
  92. data/spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net20/Machine.Specifications.dll +0 -0
  93. data/spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net20/Machine.Specifications.dll.tdnet +5 -0
  94. data/spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net40/Machine.Specifications.Clr4.dll +0 -0
  95. data/spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net40/Machine.Specifications.TDNetRunner.dll +0 -0
  96. data/spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net40/Machine.Specifications.dll +0 -0
  97. data/spec/TestProj/packages/Machine.Specifications.0.5.12/lib/net40/Machine.Specifications.dll.tdnet +5 -0
  98. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/CommandLine.dll +0 -0
  99. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/CommandLine.xml +504 -0
  100. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallDotCoverRunner.2.0.bat +7 -0
  101. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallDotCoverRunner.2.1.bat +7 -0
  102. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallDotCoverRunner.2.2.bat +7 -0
  103. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallResharperRunner.6.1.bat +10 -0
  104. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallResharperRunner.7.0.bat +10 -0
  105. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallResharperRunner.7.1.bat +10 -0
  106. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallTDNetRunner.bat +16 -0
  107. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallTDNetRunnerSilent.bat +16 -0
  108. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/JetBrains.dotCover.Resources.dll +0 -0
  109. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/License.txt +54 -0
  110. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.Clr4.dll +0 -0
  111. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.GallioAdapter.dll +0 -0
  112. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.GallioAdapter.plugin +43 -0
  113. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.ReSharperRunner.6.1.dll +0 -0
  114. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.ReSharperRunner.7.0.dll +0 -0
  115. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.ReSharperRunner.7.1.dll +0 -0
  116. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.Reporting.Templates.dll +0 -0
  117. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.Reporting.dll +0 -0
  118. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.SeleniumSupport.dll +0 -0
  119. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.TDNetRunner.dll +0 -0
  120. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.WatinSupport.dll +0 -0
  121. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.WebDriverSupport.dll +0 -0
  122. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.dll +0 -0
  123. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.dll.tdnet +5 -0
  124. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.dotCoverRunner.2.0.dll +0 -0
  125. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.dotCoverRunner.2.1.dll +0 -0
  126. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Machine.Specifications.dotCoverRunner.2.2.dll +0 -0
  127. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/Spark.dll +0 -0
  128. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/TestDriven.Framework.dll +0 -0
  129. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/install.ps1 +6 -0
  130. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec-clr4.exe +0 -0
  131. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec-clr4.exe.config +9 -0
  132. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec-x86-clr4.exe +0 -0
  133. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec-x86-clr4.exe.config +9 -0
  134. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec-x86.exe +0 -0
  135. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec.exe +0 -0
  136. data/spec/TestProj/packages/NUnit.2.6.2/NUnit.2.6.2.nupkg +0 -0
  137. data/spec/TestProj/packages/NUnit.2.6.2/lib/nunit.framework.dll +0 -0
  138. data/spec/TestProj/packages/NUnit.2.6.2/lib/nunit.framework.xml +10899 -0
  139. data/spec/TestProj/packages/NUnit.2.6.2/license.txt +15 -0
  140. data/spec/TestProj/packages/repositories.config +4 -0
  141. data/spec/TestProj/packages/xunit.1.9.1/lib/net20/xunit.dll +0 -0
  142. data/spec/TestProj/packages/xunit.1.9.1/lib/net20/xunit.dll.tdnet +5 -0
  143. data/spec/TestProj/packages/xunit.1.9.1/lib/net20/xunit.runner.msbuild.dll +0 -0
  144. data/spec/TestProj/packages/xunit.1.9.1/lib/net20/xunit.runner.tdnet.dll +0 -0
  145. data/spec/TestProj/packages/xunit.1.9.1/lib/net20/xunit.runner.utility.dll +0 -0
  146. data/spec/TestProj/packages/xunit.1.9.1/lib/net20/xunit.xml +2611 -0
  147. data/spec/TestProj/packages/xunit.1.9.1/xunit.1.9.1.nupkg +0 -0
  148. data/spec/mspec_integration_spec.rb +13 -0
  149. data/spec/nunit_integration_spec.rb +14 -0
  150. data/spec/pre_push_spec.rb +36 -0
  151. metadata +290 -0
@@ -0,0 +1,54 @@
1
+ Copyright (c) 2008 Machine Project
2
+ Portions Copyright (c) 2008 Jacob Lewallen, Aaron Jensen
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in
12
+ all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ THE SOFTWARE.
21
+
22
+ *****************************
23
+ Some parts licensed under MS-PL
24
+ *****************************
25
+
26
+ 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.
27
+
28
+ 1. Definitions
29
+
30
+ The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law.
31
+
32
+ A "contribution" is the original software, or any additions or changes to the software.
33
+
34
+ A "contributor" is any person that distributes its contribution under this license.
35
+
36
+ "Licensed patents" are a contributor's patent claims that read directly on its contribution.
37
+
38
+ 2. Grant of Rights
39
+
40
+ (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.
41
+
42
+ (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.
43
+
44
+ 3. Conditions and Limitations
45
+
46
+ (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
47
+
48
+ (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.
49
+
50
+ (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.
51
+
52
+ (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.
53
+
54
+ (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.
@@ -0,0 +1,43 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <plugin pluginId="Gallio.MSpecAdapter"
3
+ recommendedInstallationPath="MSpec"
4
+ xmlns="http://www.gallio.org/">
5
+ <traits>
6
+ <name>Machine Specifications Adapter Plugin</name>
7
+ <version>0.5.12.0</version>
8
+ <description>Provides support for running MSpec within Gallio. Requires the assemblies from MSpec.</description>
9
+ </traits>
10
+
11
+ <dependencies>
12
+ <dependency pluginId="Gallio" />
13
+ </dependencies>
14
+
15
+ <files>
16
+ <file path="Machine.Specifications.dll" />
17
+ <file path="Machine.Specifications.GallioAdapter.plugin" />
18
+ <file path="Machine.Specifications.GallioAdapter.dll" />
19
+ <!--<file path="Readme.txt" />-->
20
+ </files>
21
+
22
+ <assemblies>
23
+ <assembly fullName="Machine.Specifications.GallioAdapter, Version=0.5.12.0, Culture=neutral, PublicKeyToken=null"
24
+ codeBase="Machine.Specifications.GallioAdapter.dll"
25
+ qualifyPartialName="true" />
26
+
27
+ <assembly fullName="Machine.Specifications, Version=0.5.12.0, Culture=neutral, PublicKeyToken=5c474de7a495cff1"
28
+ codeBase="Machine.Specifications.dll" />
29
+ </assemblies>
30
+
31
+ <components>
32
+ <component componentId="Machine.Specifications"
33
+ serviceId="Gallio.TestFramework"
34
+ componentType="Machine.Specifications.GallioAdapter.MachineSpecificationsFramework, Machine.Specifications.GallioAdapter">
35
+ <traits>
36
+ <name>Machine Specifications</name>
37
+ <frameworkAssemblies>Machine.Specifications</frameworkAssemblies>
38
+ <version>0.5.12.0</version>
39
+ <fileTypes>Assembly</fileTypes>
40
+ </traits>
41
+ </component>
42
+ </components>
43
+ </plugin>
@@ -0,0 +1,5 @@
1
+ <TestRunner>
2
+ <FriendlyName>Machine.Specifications 0.5.12-e1d117a</FriendlyName>
3
+ <AssemblyPath>Machine.Specifications.TDNetRunner.dll</AssemblyPath>
4
+ <TypeName>Machine.Specifications.TDNetRunner.SpecificationRunner</TypeName>
5
+ </TestRunner>
Binary file
@@ -0,0 +1,6 @@
1
+ param($installPath, $toolsPath, $package, $project)
2
+
3
+ if ($false -eq $false)
4
+ {
5
+ Write-Warning "This is the unsigned version of Machine.Specifications. Use 'Install-Package Machine.Specifications-Signed' to install the signed version."
6
+ }
Binary file
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <configuration>
3
+ <startup useLegacyV2RuntimeActivationPolicy="true">
4
+ <supportedRuntime version="v4.0"/>
5
+ </startup>
6
+ <runtime>
7
+ <loadFromRemoteSources enabled="true"/>
8
+ </runtime>
9
+ </configuration>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <configuration>
3
+ <startup useLegacyV2RuntimeActivationPolicy="true">
4
+ <supportedRuntime version="v4.0"/>
5
+ </startup>
6
+ <runtime>
7
+ <loadFromRemoteSources enabled="true"/>
8
+ </runtime>
9
+ </configuration>
Binary file
Binary file