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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2a08a37ac39318e202926d4936943d7b03ba263
4
- data.tar.gz: e4a3781754918c0798756f02fd7406b655dbf5fc
3
+ metadata.gz: 3c82d230e20b73eabab2f73065fcbde5bc448723
4
+ data.tar.gz: d7656b484ebb87d903479598cb965282d0bb740e
5
5
  SHA512:
6
- metadata.gz: e10fb2769c387563e8fb2968b05e6046d452f8cfc6706a67465f4e3f685c470991f716074cd9009198d9d56cab78a2a8d5c6e8f413742182d036352ac628b50b
7
- data.tar.gz: 87687c61d7b0fe267c7396ebe45848b679ecf6256dcb4403affddc2c567d1a77195d3fb3d185e3a407f95a033b3e36788b41aaab622b2ae9c3a0d5e2a5c6816a
6
+ metadata.gz: b14ff853f573ab2f12951ec70bdb01bb817c29383cbfcd9eef6a8359ee3ae246817d408cc329383368a1cc5df2684f74bbca3f8185e492e4e69183e7199ae0aa
7
+ data.tar.gz: d98faaa6af4f2c893d8f29b04e454fa32d4b08cfd7884ffbe01809e97773ec40986f4b3451a7a80e8711b0e1483b949720526492b6f5ce51ae6ce0a3dc9f1a41
@@ -15,6 +15,11 @@ class Git
15
15
  end
16
16
  end
17
17
 
18
+ def self.url
19
+ url=''
20
+ url=`git config --get remote.origin.url` if(File.exists?('.git'))
21
+ end
22
+
18
23
  def self.remote_origin directory=''
19
24
  url=''
20
25
  directory=Dir.pwd if directory.length == 0
@@ -43,13 +43,11 @@ class Command < Hash
43
43
 
44
44
  if(command.kind_of?(String))
45
45
  self[:input] = command
46
- end
46
+ end
47
47
 
48
- if(command.kind_of?(Hash))
49
- command.each{|k,v|
50
- self[k.to_sym]=v
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?
@@ -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
@@ -17,7 +17,14 @@ class Test < Array
17
17
 
18
18
  if(defined?(NUNIT))
19
19
  NUNIT.each{|nunit_dll|
20
- add "\"#{Test.nunit_console}\" \"#{Rake.application.original_dir}\\#{nunit_dll}\" /xml:\"#{nunit_dll}.TestResults.xml\""
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.158
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-10 00:00:00.000000000 Z
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.2.3
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: