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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03bd3266b4c73775cf10cb0dd48fecf72120acd0
4
- data.tar.gz: 319533792d005cb2270afdabe22cdcf426eb39bd
3
+ metadata.gz: 9f99bd802b35332fa70c84fabbafcd99f9fff1e5
4
+ data.tar.gz: 0823f51c76af819d2ae11b8594efaceb76853d3d
5
5
  SHA512:
6
- metadata.gz: ba80d175ee8ea48122679be65821ffdf50dfc356bebb4cc4d46ef5674ddd513706b74124365d82f034886aeb3554f10d631543ba356094a58d8b14bdbb414d4f
7
- data.tar.gz: 004d7620c2f6766b5ab8be0c8d6aeecb738179b5485a62799c40623604eada16eb4f2ee66e2115c3a88392e410b524ae58edcbe17bbe4791c77ece4e86c41b77
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
@@ -1,3 +1,3 @@
1
1
  module NugetHelper
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -3,4 +3,5 @@
3
3
  <package id="NUnit.Runners" version="2.6.4" />
4
4
  <package id="xunit.runner.console" version="2.0.0" />
5
5
  <package id="Machine.Specifications.Runner.Console" version="0.9.0" />
6
+ <package id="nspec" version="0.9.68" />
6
7
  </packages>
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nuget_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oskar Gewalli