pre_push 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e09d5104c4233c2941daa15f57205fd191e61487
4
+ data.tar.gz: 47a07425e8b613e674dcf28c0b395a2b30dbfe96
5
+ SHA512:
6
+ metadata.gz: 81cf47b697f0254be3f2e8c88b0b3235e1708ab77651ac34ff1e5458f2769510036e6e33aa95a26a1cb741d6c00abaaef6a14547f37b85c77330a870bd52680e
7
+ data.tar.gz: 86bcc1524667745b5d3e26e5424af40ffb280dd99c8b2475a50cee9e6d68dc778c2e22f99c15014025bc8a280f45d410464bec84c5a81e29df9d25c1e5a7ae99
data/bin/prepush CHANGED
@@ -18,7 +18,7 @@ if PrePush::Validator.validate(runner)
18
18
  pre_push_hook = ".git/hooks/pre-push"
19
19
  file_text = File.read(pre_push_hook)
20
20
  sln_path = PrePush::SlnFinder.find || "path/to/your.sln"
21
- content = file_text.gsub(/\{runner\}/, "\"#{runner}\"").gsub(/\{sln_path\}/, "\"#{sln_path}\"")
21
+ content = file_text.gsub(/\{runner\}/, "\"#{runner}\"").gsub(/\{sln_path\}/, "[\"#{sln_path}\"]")
22
22
  if test_dlls != nil
23
23
  content = content.sub("# @assemblies = [{test_dlls}]", "@assemblies = [#{test_dlls}]")
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module PrePush
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
data/lib/pre_push.rb CHANGED
@@ -16,11 +16,13 @@ module PrePush
16
16
  end
17
17
  end
18
18
  def build
19
- system "#{msbuild} #{@solution}"
19
+ @solution.to_a.each do |s|
20
+ system "#{msbuild} #{s}"
21
+ end
20
22
  $?.success?
21
23
  end
22
24
  def run_tests assemblies
23
- assemblies = assemblies.to_a.empty? ? [@solution] : assemblies
25
+ assemblies = assemblies.to_a.empty? ? @solution.to_a : assemblies
24
26
  success = true
25
27
  gem_lib = File.dirname(__FILE__)
26
28
  tests_to_run = @tests_to_run || {@test_runner => assemblies}
@@ -67,4 +69,10 @@ module PrePush
67
69
  receiver.extend ClassMethods
68
70
  #receiver.send :include, InstanceMethods
69
71
  end
72
+ end
73
+
74
+ class String
75
+ def to_a
76
+ [self]
77
+ end
70
78
  end
@@ -1,37 +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
-
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
37
  </configuration>
@@ -1,24 +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>
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>
@@ -1,23 +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
+ <?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>
@@ -18,6 +18,11 @@ end
18
18
 
19
19
  class DummyCustomMSBuild < Dummy
20
20
  override_msbuild 'path/to/custom/msbuild.exe'
21
+ @solution = 'some/solution.sln'
22
+ end
23
+
24
+ class DummyMultipleSolutions < Dummy
25
+ @solution = ["path/to/solution1.sln","path/to/solution2.sln"]
21
26
  end
22
27
 
23
28
  class DummyCustomTestRunner < Dummy
@@ -40,9 +45,14 @@ describe PrePush do
40
45
  Dummy.build
41
46
  end
42
47
  it "should use custom msbuild when specified" do
43
- DummyCustomMSBuild.should_receive("system").with(/^path\/to\/custom\/msbuild.exe/)
48
+ DummyCustomMSBuild.should_receive("system").with(/^path\/to\/custom\/msbuild.exe some\/solution.sln/)
44
49
  DummyCustomMSBuild.build
45
50
  end
51
+ it "should build all solutions specified" do
52
+ DummyMultipleSolutions.should_receive("system").with(/path\/to\/solution1.sln/)
53
+ DummyMultipleSolutions.should_receive("system").with(/path\/to\/solution2.sln/)
54
+ DummyMultipleSolutions.build
55
+ end
46
56
  end
47
57
  describe 'run_tests' do
48
58
  it 'should call system to run tests on specified assemblies' do
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,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pre_push
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
5
- prerelease:
4
+ version: 1.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - nieve
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-01-03 00:00:00.000000000 Z
11
+ date: 2014-01-31 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -260,6 +255,7 @@ files:
260
255
  homepage: https://github.com/nieve/prepush
261
256
  licenses:
262
257
  - MIT
258
+ metadata: {}
263
259
  post_install_message: ! "cd to your git repository (containing the .git directory)
264
260
  and from there type 'prepush' to drop the prush hook into .git/hooks. \nBy default
265
261
  the hook will use 'C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe' to
@@ -269,22 +265,20 @@ rdoc_options: []
269
265
  require_paths:
270
266
  - lib
271
267
  required_ruby_version: !ruby/object:Gem::Requirement
272
- none: false
273
268
  requirements:
274
269
  - - ! '>='
275
270
  - !ruby/object:Gem::Version
276
271
  version: '0'
277
272
  required_rubygems_version: !ruby/object:Gem::Requirement
278
- none: false
279
273
  requirements:
280
274
  - - ! '>='
281
275
  - !ruby/object:Gem::Version
282
276
  version: '0'
283
277
  requirements: []
284
278
  rubyforge_project:
285
- rubygems_version: 1.8.24
279
+ rubygems_version: 2.1.11
286
280
  signing_key:
287
- specification_version: 3
281
+ specification_version: 4
288
282
  summary: Add a pre-push git hook on any of your repos to build & run tests of your
289
283
  .net project.
290
284
  test_files: