pre_push 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/lib/pre_push/version.rb +1 -1
  2. data/lib/pre_push.rb +1 -0
  3. data/lib/runners/nunit263/framework/nunit.framework.dll +0 -0
  4. data/lib/runners/nunit263/framework/nunit.framework.xml +10960 -0
  5. data/lib/runners/nunit263/framework/nunit.mocks.dll +0 -0
  6. data/lib/runners/nunit263/lib/NSubstitute.dll +0 -0
  7. data/lib/runners/nunit263/lib/nunit-console-runner.dll +0 -0
  8. data/lib/runners/nunit263/lib/nunit-gui-runner.dll +0 -0
  9. data/lib/runners/nunit263/lib/nunit.core.dll +0 -0
  10. data/lib/runners/nunit263/lib/nunit.core.interfaces.dll +0 -0
  11. data/lib/runners/nunit263/lib/nunit.uiexception.dll +0 -0
  12. data/lib/runners/nunit263/lib/nunit.uikit.dll +0 -0
  13. data/lib/runners/nunit263/lib/nunit.util.dll +0 -0
  14. data/lib/runners/nunit263/nunit-agent.exe +0 -0
  15. data/lib/runners/nunit263/nunit-agent.exe.config +37 -0
  16. data/lib/runners/nunit263/nunit-console.exe +0 -0
  17. data/lib/runners/nunit263/nunit-console.exe.config +24 -0
  18. data/lib/runners/nunit263/nunit-editor.exe +0 -0
  19. data/lib/runners/nunit263/nunit.exe +0 -0
  20. data/lib/runners/nunit263/nunit.exe.config +23 -0
  21. data/lib/runners/nunit263/nunit.framework.dll +0 -0
  22. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallDotCoverRunner.2.0.bat +7 -7
  23. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallDotCoverRunner.2.1.bat +7 -7
  24. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallDotCoverRunner.2.2.bat +7 -7
  25. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallResharperRunner.6.1.bat +10 -10
  26. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallResharperRunner.7.0.bat +10 -10
  27. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/InstallResharperRunner.7.1.bat +10 -10
  28. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec-clr4.exe.config +8 -8
  29. data/spec/TestProj/packages/Machine.Specifications.0.5.12/tools/mspec-x86-clr4.exe.config +8 -8
  30. data/spec/TestProj/packages/NUnit.2.6.2/NUnit.2.6.2.nuspec +8 -8
  31. data/spec/nunit_integration_spec.rb +1 -1
  32. data/spec/spec_helper.rb +76 -76
  33. metadata +30 -5
  34. checksums.yaml +0 -7
@@ -0,0 +1,37 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <configuration>
3
+ <!--
4
+ The .NET 2.0 build of nunit-agent only
5
+ runs under .NET 2.0 or higher. The setting
6
+ useLegacyV2RuntimeActivationPolicy only applies
7
+ under .NET 4.0 and permits use of mixed mode
8
+ assemblies, which would otherwise not load
9
+ correctly.
10
+ -->
11
+ <startup useLegacyV2RuntimeActivationPolicy="true">
12
+ <!--
13
+ Nunit-agent is normally run by the console or gui
14
+ runners and not independently. In normal usage,
15
+ the runner specifies which runtime should be used.
16
+
17
+ Do NOT add any supportedRuntime elements here,
18
+ since they may prevent the runner from controlling
19
+ the runtime that is used!
20
+ -->
21
+ </startup>
22
+
23
+ <runtime>
24
+ <!-- Ensure that test exceptions don't crash NUnit -->
25
+ <legacyUnhandledExceptionPolicy enabled="1" />
26
+
27
+ <!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
28
+ <loadFromRemoteSources enabled="true" />
29
+
30
+ <!-- Look for addins in the addins directory for now -->
31
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
32
+ <probing privatePath="lib;addins"/>
33
+ </assemblyBinding>
34
+
35
+ </runtime>
36
+
37
+ </configuration>
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <configuration>
3
+ <!--
4
+ The .NET 2.0 build of the console runner only
5
+ runs under .NET 2.0 or higher. The setting
6
+ useLegacyV2RuntimeActivationPolicy only applies
7
+ under .NET 4.0 and permits use of mixed mode
8
+ assemblies, which would otherwise not load
9
+ correctly.
10
+ -->
11
+ <startup useLegacyV2RuntimeActivationPolicy="true">
12
+ <!-- Comment out the next line to force use of .NET 4.0 -->
13
+ </startup>
14
+ <runtime>
15
+ <!-- Ensure that test exceptions don't crash NUnit -->
16
+ <legacyUnhandledExceptionPolicy enabled="1"/>
17
+ <!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
18
+ <loadFromRemoteSources enabled="true"/>
19
+ <!-- Look for addins in the addins directory for now -->
20
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
21
+ <probing privatePath="lib;addins"/>
22
+ </assemblyBinding>
23
+ </runtime>
24
+ </configuration>
Binary file
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <configuration>
3
+ <!--
4
+ The GUI only runs under .NET 2.0 or higher. The
5
+ useLegacyV2RuntimeActivationPolicy setting only
6
+ applies under .NET 4.0 and permits use of mixed
7
+ mode assemblies, which would otherwise not load
8
+ correctly.
9
+ -->
10
+ <startup useLegacyV2RuntimeActivationPolicy="true">
11
+ <!-- Comment out the next line to force use of .NET 4.0 -->
12
+ </startup>
13
+ <runtime>
14
+ <!-- Ensure that test exceptions don't crash NUnit -->
15
+ <legacyUnhandledExceptionPolicy enabled="1"/>
16
+ <!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
17
+ <loadFromRemoteSources enabled="true"/>
18
+ <!-- Look for addins in the addins directory for now -->
19
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
20
+ <probing privatePath="lib;addins"/>
21
+ </assemblyBinding>
22
+ </runtime>
23
+ </configuration>
@@ -1,7 +1,7 @@
1
- mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins" 2> NUL
2
- mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins\mspec" 2> NUL
3
- copy /y Machine.Specifications.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins\mspec"
4
- copy /y Machine.Specifications.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins\mspec" > NUL
5
- copy /y Machine.Specifications.dotCoverRunner.2.0.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins\mspec"
6
- copy /y Machine.Specifications.dotCoverRunner.2.0.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins\mspec" > NUL
7
- pause
1
+ mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins" 2> NUL
2
+ mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins\mspec" 2> NUL
3
+ copy /y Machine.Specifications.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins\mspec"
4
+ copy /y Machine.Specifications.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins\mspec" > NUL
5
+ copy /y Machine.Specifications.dotCoverRunner.2.0.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins\mspec"
6
+ copy /y Machine.Specifications.dotCoverRunner.2.0.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.0\Plugins\mspec" > NUL
7
+ pause
@@ -1,7 +1,7 @@
1
- mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins" 2> NUL
2
- mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins\mspec" 2> NUL
3
- copy /y Machine.Specifications.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins\mspec"
4
- copy /y Machine.Specifications.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins\mspec" > NUL
5
- copy /y Machine.Specifications.dotCoverRunner.2.1.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins\mspec"
6
- copy /y Machine.Specifications.dotCoverRunner.2.1.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins\mspec" > NUL
7
- pause
1
+ mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins" 2> NUL
2
+ mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins\mspec" 2> NUL
3
+ copy /y Machine.Specifications.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins\mspec"
4
+ copy /y Machine.Specifications.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins\mspec" > NUL
5
+ copy /y Machine.Specifications.dotCoverRunner.2.1.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins\mspec"
6
+ copy /y Machine.Specifications.dotCoverRunner.2.1.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.1\Plugins\mspec" > NUL
7
+ pause
@@ -1,7 +1,7 @@
1
- mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins" 2> NUL
2
- mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins\mspec" 2> NUL
3
- copy /y Machine.Specifications.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins\mspec"
4
- copy /y Machine.Specifications.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins\mspec" > NUL
5
- copy /y Machine.Specifications.dotCoverRunner.2.2.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins\mspec"
6
- copy /y Machine.Specifications.dotCoverRunner.2.2.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins\mspec" > NUL
7
- pause
1
+ mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins" 2> NUL
2
+ mkdir "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins\mspec" 2> NUL
3
+ copy /y Machine.Specifications.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins\mspec"
4
+ copy /y Machine.Specifications.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins\mspec" > NUL
5
+ copy /y Machine.Specifications.dotCoverRunner.2.2.dll "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins\mspec"
6
+ copy /y Machine.Specifications.dotCoverRunner.2.2.pdb "%LOCALAPPDATA%\JetBrains\dotCover\v2.2\Plugins\mspec" > NUL
7
+ pause
@@ -1,10 +1,10 @@
1
- del "%APPDATA%\JetBrains\ReSharper\v6.1\vs9.0\Plugins\Machine.Specifications.*" 2> NUL
2
- del "%APPDATA%\JetBrains\ReSharper\v6.1\vs10.0\Plugins\Machine.Specifications.*" 2> NUL
3
-
4
- mkdir "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins" 2> NUL
5
- mkdir "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins\mspec" 2> NUL
6
- copy /y Machine.Specifications.dll "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins\mspec"
7
- copy /y Machine.Specifications.pdb "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins\mspec" > NUL
8
- copy /y Machine.Specifications.ReSharperRunner.6.1.dll "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins\mspec"
9
- copy /y Machine.Specifications.ReSharperRunner.6.1.pdb "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins\mspec" > NUL
10
- pause
1
+ del "%APPDATA%\JetBrains\ReSharper\v6.1\vs9.0\Plugins\Machine.Specifications.*" 2> NUL
2
+ del "%APPDATA%\JetBrains\ReSharper\v6.1\vs10.0\Plugins\Machine.Specifications.*" 2> NUL
3
+
4
+ mkdir "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins" 2> NUL
5
+ mkdir "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins\mspec" 2> NUL
6
+ copy /y Machine.Specifications.dll "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins\mspec"
7
+ copy /y Machine.Specifications.pdb "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins\mspec" > NUL
8
+ copy /y Machine.Specifications.ReSharperRunner.6.1.dll "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins\mspec"
9
+ copy /y Machine.Specifications.ReSharperRunner.6.1.pdb "%APPDATA%\JetBrains\ReSharper\v6.1\Plugins\mspec" > NUL
10
+ pause
@@ -1,10 +1,10 @@
1
- del "%APPDATA%\JetBrains\ReSharper\v7.0\vs10.0\Plugins\Machine.Specifications.*" 2> NUL
2
- del "%APPDATA%\JetBrains\ReSharper\v7.0\vs11.0\Plugins\Machine.Specifications.*" 2> NUL
3
-
4
- mkdir "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins" 2> NUL
5
- mkdir "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins\mspec" 2> NUL
6
- copy /y Machine.Specifications.dll "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins\mspec"
7
- copy /y Machine.Specifications.pdb "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins\mspec" > NUL
8
- copy /y Machine.Specifications.ReSharperRunner.7.0.dll "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins\mspec"
9
- copy /y Machine.Specifications.ReSharperRunner.7.0.pdb "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins\mspec" > NUL
10
- pause
1
+ del "%APPDATA%\JetBrains\ReSharper\v7.0\vs10.0\Plugins\Machine.Specifications.*" 2> NUL
2
+ del "%APPDATA%\JetBrains\ReSharper\v7.0\vs11.0\Plugins\Machine.Specifications.*" 2> NUL
3
+
4
+ mkdir "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins" 2> NUL
5
+ mkdir "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins\mspec" 2> NUL
6
+ copy /y Machine.Specifications.dll "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins\mspec"
7
+ copy /y Machine.Specifications.pdb "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins\mspec" > NUL
8
+ copy /y Machine.Specifications.ReSharperRunner.7.0.dll "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins\mspec"
9
+ copy /y Machine.Specifications.ReSharperRunner.7.0.pdb "%APPDATA%\JetBrains\ReSharper\v7.0\Plugins\mspec" > NUL
10
+ pause
@@ -1,10 +1,10 @@
1
- del "%APPDATA%\JetBrains\ReSharper\v7.1\vs10.0\Plugins\Machine.Specifications.*" 2> NUL
2
- del "%APPDATA%\JetBrains\ReSharper\v7.1\vs11.0\Plugins\Machine.Specifications.*" 2> NUL
3
-
4
- mkdir "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins" 2> NUL
5
- mkdir "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins\mspec" 2> NUL
6
- copy /y Machine.Specifications.dll "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins\mspec"
7
- copy /y Machine.Specifications.pdb "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins\mspec" > NUL
8
- copy /y Machine.Specifications.ReSharperRunner.7.1.dll "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins\mspec"
9
- copy /y Machine.Specifications.ReSharperRunner.7.1.pdb "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins\mspec" > NUL
10
- pause
1
+ del "%APPDATA%\JetBrains\ReSharper\v7.1\vs10.0\Plugins\Machine.Specifications.*" 2> NUL
2
+ del "%APPDATA%\JetBrains\ReSharper\v7.1\vs11.0\Plugins\Machine.Specifications.*" 2> NUL
3
+
4
+ mkdir "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins" 2> NUL
5
+ mkdir "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins\mspec" 2> NUL
6
+ copy /y Machine.Specifications.dll "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins\mspec"
7
+ copy /y Machine.Specifications.pdb "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins\mspec" > NUL
8
+ copy /y Machine.Specifications.ReSharperRunner.7.1.dll "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins\mspec"
9
+ copy /y Machine.Specifications.ReSharperRunner.7.1.pdb "%APPDATA%\JetBrains\ReSharper\v7.1\Plugins\mspec" > NUL
10
+ pause
@@ -1,9 +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>
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
9
  </configuration>
@@ -1,9 +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>
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
9
  </configuration>
@@ -10,16 +10,16 @@
10
10
  <projectUrl>http://nunit.org/</projectUrl>
11
11
  <iconUrl>http://nunit.org/nuget/nunit_32x32.png</iconUrl>
12
12
  <requireLicenseAcceptance>false</requireLicenseAcceptance>
13
- <description>NUnit features a fluent assert syntax, parameterized, generic and theory tests and is user-extensible. A number of runners, both from the NUnit project and by third parties, are able to execute NUnit tests.
14
-
15
- Version 2.6 is the seventh major release of this well-known and well-tested programming tool.
16
-
13
+ <description>NUnit features a fluent assert syntax, parameterized, generic and theory tests and is user-extensible. A number of runners, both from the NUnit project and by third parties, are able to execute NUnit tests.
14
+
15
+ Version 2.6 is the seventh major release of this well-known and well-tested programming tool.
16
+
17
17
  This package includes only the framework assembly. You will need to install the NUnit.Runners package unless you are using a third-party runner.</description>
18
18
  <summary>NUnit is a unit-testing framework for all .Net languages with a strong TDD focus.</summary>
19
- <releaseNotes>Version 2.6 is the seventh major release of NUnit.
20
-
21
- Unlike earlier versions, this package includes only the framework assembly. You will need to install the NUnit.Runners package unless you are using a third-party runner.
22
-
19
+ <releaseNotes>Version 2.6 is the seventh major release of NUnit.
20
+
21
+ Unlike earlier versions, this package includes only the framework assembly. You will need to install the NUnit.Runners package unless you are using a third-party runner.
22
+
23
23
  The nunit.mocks assembly is now provided by the NUnit.Mocks package. The pnunit.framework assembly is provided by the pNUnit package.</releaseNotes>
24
24
  <copyright />
25
25
  <language>en-US</language>
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  class NunitRunnerTester
4
4
  @solution = "spec/TestProj/TestProj.sln"
5
5
  @assemblies = ["spec/TestProj/TestProj/TestProj.csproj"]
6
- @test_runner = 'nunit262'
6
+ @test_runner = 'nunit263'
7
7
  #@runner_exe = 'nunit-console.exe' # will be selected by default
8
8
  include PrePush
9
9
  end
data/spec/spec_helper.rb CHANGED
@@ -1,76 +1,76 @@
1
- require 'rubygems'
2
- require 'spork'
3
- require 'rspec'
4
- require 'rspec/expectations'
5
- require 'nokogiri'
6
- require 'pre_push'
7
- require 'prepush_validator'
8
- require 'sln_finder'
9
- require 'args_parser'
10
-
11
- #uncomment the following line to use spork with the debugger
12
- #require 'spork/ext/ruby-debug'
13
-
14
- Spork.prefork do
15
- # Loading more in this block will cause your tests to run faster. However,
16
- # if you change any configuration or code from libraries loaded here, you'll
17
- # need to restart spork for it take effect.
18
-
19
- end
20
-
21
- Spork.each_run do
22
- # This code will be run each time you run your specs.
23
-
24
- end
25
-
26
- # --- Instructions ---
27
- # Sort the contents of this file into a Spork.prefork and a Spork.each_run
28
- # block.
29
- #
30
- # The Spork.prefork block is run only once when the spork server is started.
31
- # You typically want to place most of your (slow) initializer code in here, in
32
- # particular, require'ing any 3rd-party gems that you don't normally modify
33
- # during development.
34
- #
35
- # The Spork.each_run block is run each time you run your specs. In case you
36
- # need to load files that tend to change during development, require them here.
37
- # With Rails, your application modules are loaded automatically, so sometimes
38
- # this block can remain empty.
39
- #
40
- # Note: You can modify files loaded *from* the Spork.each_run block without
41
- # restarting the spork server. However, this file itself will not be reloaded,
42
- # so if you change any of the code inside the each_run block, you still need to
43
- # restart the server. In general, if you have non-trivial code in this file,
44
- # it's advisable to move it into a separate file so you can easily edit it
45
- # without restarting spork. (For example, with RSpec, you could move
46
- # non-trivial code into a file spec/support/my_helper.rb, making sure that the
47
- # spec/support/* files are require'd from inside the each_run block.)
48
- #
49
- # Any code that is left outside the two blocks will be run during preforking
50
- # *and* during each_run -- that's probably not what you want.
51
- #
52
- # These instructions should self-destruct in 10 seconds. If they don't, feel
53
- # free to delete them.
54
-
55
-
56
-
57
-
58
-
59
- class ReplaceClr
60
- def self.between(old_version, new_version, proj = nil)
61
- lines = []
62
- lib = File.dirname(__FILE__)
63
-
64
- proj = proj || 'TestProj'
65
- tfv = "TargetFrameworkVersion"
66
- target = "<#{tfv}>#{old_version}</#{tfv}>"
67
- replace = "<#{tfv}>#{new_version}</#{tfv}>"
68
- csproj = "#{lib}/../spec/TestProj/#{proj}/TestProj.csproj"
69
- File.open(csproj) do |f|
70
- f.each_line {|line| lines << line.sub(old_version, new_version)}
71
- end
72
- File.open(csproj, "w") do |file|
73
- lines.each { |l| file.puts l }
74
- end
75
- end
76
- end
1
+ require 'rubygems'
2
+ require 'spork'
3
+ require 'rspec'
4
+ require 'rspec/expectations'
5
+ require 'nokogiri'
6
+ require 'pre_push'
7
+ require 'prepush_validator'
8
+ require 'sln_finder'
9
+ require 'args_parser'
10
+
11
+ #uncomment the following line to use spork with the debugger
12
+ #require 'spork/ext/ruby-debug'
13
+
14
+ Spork.prefork do
15
+ # Loading more in this block will cause your tests to run faster. However,
16
+ # if you change any configuration or code from libraries loaded here, you'll
17
+ # need to restart spork for it take effect.
18
+
19
+ end
20
+
21
+ Spork.each_run do
22
+ # This code will be run each time you run your specs.
23
+
24
+ end
25
+
26
+ # --- Instructions ---
27
+ # Sort the contents of this file into a Spork.prefork and a Spork.each_run
28
+ # block.
29
+ #
30
+ # The Spork.prefork block is run only once when the spork server is started.
31
+ # You typically want to place most of your (slow) initializer code in here, in
32
+ # particular, require'ing any 3rd-party gems that you don't normally modify
33
+ # during development.
34
+ #
35
+ # The Spork.each_run block is run each time you run your specs. In case you
36
+ # need to load files that tend to change during development, require them here.
37
+ # With Rails, your application modules are loaded automatically, so sometimes
38
+ # this block can remain empty.
39
+ #
40
+ # Note: You can modify files loaded *from* the Spork.each_run block without
41
+ # restarting the spork server. However, this file itself will not be reloaded,
42
+ # so if you change any of the code inside the each_run block, you still need to
43
+ # restart the server. In general, if you have non-trivial code in this file,
44
+ # it's advisable to move it into a separate file so you can easily edit it
45
+ # without restarting spork. (For example, with RSpec, you could move
46
+ # non-trivial code into a file spec/support/my_helper.rb, making sure that the
47
+ # spec/support/* files are require'd from inside the each_run block.)
48
+ #
49
+ # Any code that is left outside the two blocks will be run during preforking
50
+ # *and* during each_run -- that's probably not what you want.
51
+ #
52
+ # These instructions should self-destruct in 10 seconds. If they don't, feel
53
+ # free to delete them.
54
+
55
+
56
+
57
+
58
+
59
+ class ReplaceClr
60
+ def self.between(old_version, new_version, proj = nil)
61
+ lines = []
62
+ lib = File.dirname(__FILE__)
63
+
64
+ proj = proj || 'TestProj'
65
+ tfv = "TargetFrameworkVersion"
66
+ target = "<#{tfv}>#{old_version}</#{tfv}>"
67
+ replace = "<#{tfv}>#{new_version}</#{tfv}>"
68
+ csproj = "#{lib}/../spec/TestProj/#{proj}/TestProj.csproj"
69
+ File.open(csproj) do |f|
70
+ f.each_line {|line| lines << line.sub(old_version, new_version)}
71
+ end
72
+ File.open(csproj, "w") do |file|
73
+ lines.each { |l| file.puts l }
74
+ end
75
+ end
76
+ end
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pre_push
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - nieve
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-11-30 00:00:00.000000000 Z
12
+ date: 2014-01-03 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rake
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ! '>='
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ! '>='
39
44
  - !ruby/object:Gem::Version
@@ -138,6 +143,25 @@ files:
138
143
  - lib/runners/nunit262/nunit.exe
139
144
  - lib/runners/nunit262/nunit.exe.config
140
145
  - lib/runners/nunit262/nunit.framework.dll
146
+ - lib/runners/nunit263/framework/nunit.framework.dll
147
+ - lib/runners/nunit263/framework/nunit.framework.xml
148
+ - lib/runners/nunit263/framework/nunit.mocks.dll
149
+ - lib/runners/nunit263/lib/NSubstitute.dll
150
+ - lib/runners/nunit263/lib/nunit-console-runner.dll
151
+ - lib/runners/nunit263/lib/nunit-gui-runner.dll
152
+ - lib/runners/nunit263/lib/nunit.core.dll
153
+ - lib/runners/nunit263/lib/nunit.core.interfaces.dll
154
+ - lib/runners/nunit263/lib/nunit.uiexception.dll
155
+ - lib/runners/nunit263/lib/nunit.uikit.dll
156
+ - lib/runners/nunit263/lib/nunit.util.dll
157
+ - lib/runners/nunit263/nunit-agent.exe
158
+ - lib/runners/nunit263/nunit-agent.exe.config
159
+ - lib/runners/nunit263/nunit-console.exe
160
+ - lib/runners/nunit263/nunit-console.exe.config
161
+ - lib/runners/nunit263/nunit-editor.exe
162
+ - lib/runners/nunit263/nunit.exe
163
+ - lib/runners/nunit263/nunit.exe.config
164
+ - lib/runners/nunit263/nunit.framework.dll
141
165
  - lib/runners/xunit191/xunit.console.exe
142
166
  - lib/runners/xunit191/xunit.console.exe.config
143
167
  - lib/runners/xunit191/xunit.dll
@@ -236,7 +260,6 @@ files:
236
260
  homepage: https://github.com/nieve/prepush
237
261
  licenses:
238
262
  - MIT
239
- metadata: {}
240
263
  post_install_message: ! "cd to your git repository (containing the .git directory)
241
264
  and from there type 'prepush' to drop the prush hook into .git/hooks. \nBy default
242
265
  the hook will use 'C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe' to
@@ -246,20 +269,22 @@ rdoc_options: []
246
269
  require_paths:
247
270
  - lib
248
271
  required_ruby_version: !ruby/object:Gem::Requirement
272
+ none: false
249
273
  requirements:
250
274
  - - ! '>='
251
275
  - !ruby/object:Gem::Version
252
276
  version: '0'
253
277
  required_rubygems_version: !ruby/object:Gem::Requirement
278
+ none: false
254
279
  requirements:
255
280
  - - ! '>='
256
281
  - !ruby/object:Gem::Version
257
282
  version: '0'
258
283
  requirements: []
259
284
  rubyforge_project:
260
- rubygems_version: 2.1.11
285
+ rubygems_version: 1.8.24
261
286
  signing_key:
262
- specification_version: 4
287
+ specification_version: 3
263
288
  summary: Add a pre-push git hook on any of your repos to build & run tests of your
264
289
  .net project.
265
290
  test_files:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 88d2fcd81090f8698bde0b9a45dd92a8de672ca1
4
- data.tar.gz: c6cf28cd9f7c5095bab19693fb976b0b27b0ecee
5
- SHA512:
6
- metadata.gz: 950e90534790bb61722caa2d596914f5928cbe74474661f9fc4577c59c260a64be7995d63fb293691c54ce24c4722ece21831b9eaae0595a2f3043c937c03aef
7
- data.tar.gz: 3b747cb36cc6d012f7c5e6fce9aabffed0145b261291a740be7f6c0aacf516a65b449155f01826d9e9e7dec13e62061915da21b90d7b3bc9542fd881f5e2d3b0