nuget_helper 0.0.6 → 0.0.7

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: eb83ebbad96ab96a700e01f636597bd2575f39cd
4
- data.tar.gz: 2f1e1f606f3acc7a020b29e9ca5cdb51826b4447
3
+ metadata.gz: 22afea673dd40e64c20318ffada8d9b9b850bf59
4
+ data.tar.gz: 624a38baa508f68ad4307ebf53655e0ae08abf32
5
5
  SHA512:
6
- metadata.gz: e1a453c6678e2e14c78d9966ec6243ef42551ca70c61864df0ff710fa1a9c3a39fc425a8d58fb5b90b1792460604b77cb031188ed30c43e0f6fbcaeb04b94df1
7
- data.tar.gz: 3c2685a35c9f63ba5f35cdaa67d093a21d7f994100aa1e5aaa29e87900fdb841c779d11855079194d134fa0099a2d1e6fb6173ebb9522f9bf345fad89517d424
6
+ metadata.gz: 2da37de0f63a69e3979351eb1b8b30f3468454098613d1092362b2edf12b14c8017c21fd5c70404f21e80f1d6c6cdbf9fb799f210eb24454a36fe1e9302b15f0
7
+ data.tar.gz: 32d4c830af513c656f103609f40c978e44b82a3a6b71f1c1368fcd4c20d2865ad7fc325f61345d30603406b27cba2ed334f6c939fbb21533f6ef29542b93b565
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ language: csharp
2
+
3
+ install:
4
+ - bundle install
5
+
6
+ script:
7
+ - rake
@@ -1,3 +1,3 @@
1
1
  module NugetHelper
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/lib/nuget_helper.rb CHANGED
@@ -45,12 +45,16 @@ module NugetHelper
45
45
  return self.command_path('xunit.runner.console', 'xunit.console.exe')
46
46
  end
47
47
 
48
+ def self.mspec_path
49
+ self.command_path('Machine.Specifications', 'mspec.exe')
50
+ end
51
+
48
52
  def self.run_tool(command, parameters=nil)
49
53
  parameters = '' if parameters.nil?
50
54
  if self.os == :windows
51
55
  system "#{command} #{parameters}"
52
56
  else
53
- system "mono --runtime=v4.0.30319 #{command} #{parameters} "
57
+ system "mono --runtime=v4.0 #{command} #{parameters} "
54
58
  end
55
59
  end
56
60
 
@@ -2,4 +2,5 @@
2
2
  <packages>
3
3
  <package id="NUnit.Runners" version="2.6.4" />
4
4
  <package id="xunit.runner.console" version="2.0.0" />
5
+ <package id="Machine.Specifications.Runner.Console" version="0.9.0" />
5
6
  </packages>
@@ -23,11 +23,14 @@ describe "NugetHelper" do
23
23
  cmd = NugetHelper.xunit_path
24
24
  c = NugetHelper.run_tool cmd
25
25
  expect(c).to be false
26
- if NugetHelper.os != :windows
27
- expect($?.exitstatus).to be 1
28
- else
29
- expect($?.exitstatus).to be nil
30
- end
26
+ expect($?.exitstatus).to be 1
27
+ end
28
+
29
+ it "can run mspec runner" do
30
+ cmd = NugetHelper.mspec_path
31
+ c = NugetHelper.run_tool cmd
32
+ expect(c).to be false
33
+ expect($?.exitstatus).to be 1
31
34
  end
32
35
  end
33
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nuget_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oskar Gewalli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-31 00:00:00.000000000 Z
11
+ date: 2015-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,6 +75,7 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitattributes"
77
77
  - ".gitignore"
78
+ - ".travis.yml"
78
79
  - Gemfile
79
80
  - LICENSE
80
81
  - LICENSE.txt