nbuild 0.0.1 → 0.0.3
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.
- data/lib/nbuild/cmd.rb +6 -2
- data/lib/nbuild/install_util_cmd.rb +1 -1
- data/lib/nbuild/msbuild_cmd.rb +12 -1
- data/lib/nbuild/ncache_cmd.rb +1 -1
- data/lib/nbuild/ncover_cmd.rb +1 -1
- data/lib/nbuild/tf.rb +1 -1
- metadata +2 -2
data/lib/nbuild/cmd.rb
CHANGED
@@ -23,8 +23,12 @@ module Nbuild
|
|
23
23
|
def execute_internal
|
24
24
|
puts "running command \"#{command}\""
|
25
25
|
system "#{command} 2>&1"
|
26
|
-
puts "exit status was #{
|
27
|
-
raise "Process failed" unless
|
26
|
+
puts "exit status was #{exit_status}"
|
27
|
+
raise "Process failed" unless exit_status.success?
|
28
|
+
end
|
29
|
+
|
30
|
+
def exit_status
|
31
|
+
$?
|
28
32
|
end
|
29
33
|
end
|
30
34
|
|
data/lib/nbuild/msbuild_cmd.rb
CHANGED
@@ -3,8 +3,11 @@ require 'nbuild/cmd'
|
|
3
3
|
module Nbuild
|
4
4
|
class MSBuildCmd < Cmd
|
5
5
|
def initialize params={}
|
6
|
-
@path = 'C:\WINDOWS\Microsoft.NET\Framework\v3.5'
|
7
6
|
@params = params
|
7
|
+
version = params.delete(:framework_version)
|
8
|
+
version ||= '3.5'
|
9
|
+
path = ENV['MS_NET_FRAMEWORK_HOME'] || 'C:\WINDOWS\Microsoft.NET\Framework'
|
10
|
+
@path = "#{path}\\v#{version}"
|
8
11
|
end
|
9
12
|
|
10
13
|
def command
|
@@ -21,4 +24,12 @@ module Nbuild
|
|
21
24
|
def msbuild_command params={}
|
22
25
|
MSBuildCmd.new(params).execute
|
23
26
|
end
|
27
|
+
|
28
|
+
def msbuild2_command params={}
|
29
|
+
msbuild_command params.merge(:framework_version => '2.0.50727')
|
30
|
+
end
|
31
|
+
|
32
|
+
def msbuild35_command params
|
33
|
+
msbuild_command params.merge(:framework_version => '3.5')
|
34
|
+
end
|
24
35
|
end
|
data/lib/nbuild/ncache_cmd.rb
CHANGED
data/lib/nbuild/ncover_cmd.rb
CHANGED
data/lib/nbuild/tf.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nbuild
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Ryall
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-23 00:00:00 +11:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|