dev 2.0.158 → 2.0.159
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 +4 -4
- data/lib/apps/git.rb +5 -0
- data/lib/base/command.rb +4 -6
- data/lib/base/environment.rb +1 -1
- data/lib/tasks/test.rb +17 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c82d230e20b73eabab2f73065fcbde5bc448723
|
4
|
+
data.tar.gz: d7656b484ebb87d903479598cb965282d0bb740e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b14ff853f573ab2f12951ec70bdb01bb817c29383cbfcd9eef6a8359ee3ae246817d408cc329383368a1cc5df2684f74bbca3f8185e492e4e69183e7199ae0aa
|
7
|
+
data.tar.gz: d98faaa6af4f2c893d8f29b04e454fa32d4b08cfd7884ffbe01809e97773ec40986f4b3451a7a80e8711b0e1483b949720526492b6f5ce51ae6ce0a3dc9f1a41
|
data/lib/apps/git.rb
CHANGED
data/lib/base/command.rb
CHANGED
@@ -43,13 +43,11 @@ class Command < Hash
|
|
43
43
|
|
44
44
|
if(command.kind_of?(String))
|
45
45
|
self[:input] = command
|
46
|
-
|
46
|
+
end
|
47
47
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
}
|
52
|
-
end
|
48
|
+
if(command.kind_of?(Hash))
|
49
|
+
command.each{|k,v|self[k.to_sym]=v}
|
50
|
+
end
|
53
51
|
end
|
54
52
|
|
55
53
|
def quiet?
|
data/lib/base/environment.rb
CHANGED
@@ -63,7 +63,7 @@ class Environment < Hash
|
|
63
63
|
#["ruby","svn","git","msbuild","candle","light"].each{|cmd|
|
64
64
|
puts 'checking commands...'
|
65
65
|
missing_command=false
|
66
|
-
['ruby --version','svn --version --quiet','git --version','msbuild /version','nuget','candle','light','gem --version'].each{|cmd|
|
66
|
+
['ruby --version','svn --version --quiet','git --version','msbuild /version','nunit-console','nuget','candle','light','gem --version'].each{|cmd|
|
67
67
|
command=Command.new(cmd)
|
68
68
|
command[:quiet]=true
|
69
69
|
command[:ignore_failure]=true
|
data/lib/tasks/test.rb
CHANGED
@@ -17,7 +17,14 @@ class Test < Array
|
|
17
17
|
|
18
18
|
if(defined?(NUNIT))
|
19
19
|
NUNIT.each{|nunit_dll|
|
20
|
-
|
20
|
+
nunit_arg=Test.nunit_console
|
21
|
+
nunit_arg="\"#{Test.nunit_console}\"" if Test.nunit_console.include?(' ')
|
22
|
+
dll_arg="#{Rake.application.original_dir}\\#{nunit_dll}"
|
23
|
+
dll_arg="\"#{Rake.application.original_dir}\\#{nunit_dll}\"" if(dll_arg.include?(' '))
|
24
|
+
xml_arg="/xml:#{nunit_dll}.TestResults.xml"
|
25
|
+
xml_arg="/xml:\"#{nunit_dll}.TestResults.xml\"" if(nunit_dll.include?(' '))
|
26
|
+
add "#{nunit_arg} #{dll_arg} #{xml_arg}"
|
27
|
+
#add "\"#{Test.nunit_console}\" \"#{Rake.application.original_dir}\\#{nunit_dll}\" /xml:\"#{nunit_dll}.TestResults.xml\""
|
21
28
|
}
|
22
29
|
end
|
23
30
|
|
@@ -32,8 +39,17 @@ class Test < Array
|
|
32
39
|
end
|
33
40
|
end
|
34
41
|
|
42
|
+
def self.nunit_console_in_path?
|
43
|
+
command=Command.new('nunit-console')
|
44
|
+
command[:quiet]=true
|
45
|
+
command[:ignore_failure]=true
|
46
|
+
command.execute
|
47
|
+
return true if(command[:exit_code] == 0)
|
48
|
+
false
|
49
|
+
end
|
35
50
|
@@nunit_console=''
|
36
51
|
def self.nunit_console
|
52
|
+
return "nunit-console" if Test.nunit_console_in_path?
|
37
53
|
if(!File.exists?(@@nunit_console))
|
38
54
|
if(defined?(NUNIT_CONSOLE))
|
39
55
|
@@nunit_console = NUNIT_CONSOLE
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.159
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -105,8 +105,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
107
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.
|
108
|
+
rubygems_version: 2.4.5
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: dev
|
112
112
|
test_files: []
|
113
|
+
has_rdoc:
|