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 +4 -4
- data/.travis.yml +7 -0
- data/lib/nuget_helper/version.rb +1 -1
- data/lib/nuget_helper.rb +5 -1
- data/spec/Vs2013Solution/.nuget/packages.config +1 -0
- data/spec/nuget_exec_spec.rb +8 -5
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22afea673dd40e64c20318ffada8d9b9b850bf59
|
4
|
+
data.tar.gz: 624a38baa508f68ad4307ebf53655e0ae08abf32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2da37de0f63a69e3979351eb1b8b30f3468454098613d1092362b2edf12b14c8017c21fd5c70404f21e80f1d6c6cdbf9fb799f210eb24454a36fe1e9302b15f0
|
7
|
+
data.tar.gz: 32d4c830af513c656f103609f40c978e44b82a3a6b71f1c1368fcd4c20d2865ad7fc325f61345d30603406b27cba2ed334f6c939fbb21533f6ef29542b93b565
|
data/.travis.yml
ADDED
data/lib/nuget_helper/version.rb
CHANGED
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
|
57
|
+
system "mono --runtime=v4.0 #{command} #{parameters} "
|
54
58
|
end
|
55
59
|
end
|
56
60
|
|
data/spec/nuget_exec_spec.rb
CHANGED
@@ -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
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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.
|
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
|
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
|