nuget_helper 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nuget_helper.rb +4 -0
- data/lib/nuget_helper/version.rb +1 -1
- data/spec/Vs2013Solution/.nuget/packages.config +1 -0
- data/spec/nuget_exec_spec.rb +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f99bd802b35332fa70c84fabbafcd99f9fff1e5
|
4
|
+
data.tar.gz: 0823f51c76af819d2ae11b8594efaceb76853d3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5896585b96c398503c4fef937975530f5b4118822891ee1af8febcecc502e2f2664723d59c500124d6564bec45a6e8440d03d9545e2a69f30a20a3c791a7b981
|
7
|
+
data.tar.gz: 4db29de713b38c0c928782750b81616fcd0fffd36a744e7c013f3dcd01cf38fd7ba22261927df35dd8d3b463fa51f32c70b7a1137a2ee90fa35803c66cd6db5b
|
data/lib/nuget_helper.rb
CHANGED
@@ -53,6 +53,10 @@ module NugetHelper
|
|
53
53
|
self.command_path('Machine.Specifications', 'mspec-clr4.exe')
|
54
54
|
end
|
55
55
|
|
56
|
+
def self.nspec_path
|
57
|
+
self.command_path('nspec', 'NSpecRunner.exe')
|
58
|
+
end
|
59
|
+
|
56
60
|
def self.run_tool(command, parameters=nil)
|
57
61
|
parameters = '' if parameters.nil?
|
58
62
|
if self.os == :windows
|
data/lib/nuget_helper/version.rb
CHANGED
data/spec/nuget_exec_spec.rb
CHANGED
@@ -39,6 +39,13 @@ describe "NugetHelper" do
|
|
39
39
|
expect(c).to be false
|
40
40
|
expect($?.exitstatus).to be 1
|
41
41
|
end
|
42
|
+
|
43
|
+
it "can run nspec runner" do
|
44
|
+
cmd = NugetHelper.nspec_path
|
45
|
+
c = NugetHelper.run_tool cmd
|
46
|
+
expect(c).to be true
|
47
|
+
expect($?.exitstatus).to be 0
|
48
|
+
end
|
42
49
|
end
|
43
50
|
end
|
44
51
|
end
|