fuburake 0.5.0.19 → 0.5.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/nunit.rb +2 -1
  3. data/lib/platform.rb +1 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWI5ZDczNGIxZGIxZjFlNzM4Mjk5YjkxZDg1MzFlY2M3YWE2MzFiNA==
4
+ NTk2ZDNiZDk5YmVjODM0NjZiYjVhYjRkZjBiOGFkNmUwNmVmNmUxMg==
5
5
  data.tar.gz: !binary |-
6
- OTg2YzJlNmIwNTdmN2JkMjczMzNmZTFiZmJlNTVmOWQ0MTQ2Y2Y5MQ==
6
+ ODBhOTRhMmVlNTIxYjUzN2NlNDY4NWJiZGU1ODQ5YTE0MWI4YTBlMA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MTU5MzYxN2FiMWRkNGQ1OGEwN2NmZjhlNTVjYWExNzVlOWFjMDRkNGI0Yjg0
10
- ZThhMjA0YzIzNDVlMzA5NWUzZjBhZmY0YTNlZWQxZDVhOWY3YWUzNmU4NGVm
11
- N2RiOGI4YTYxZGYwNTAxYzBkNzMyZDVjYWE2MjU1ZjYwNmU4NGE=
9
+ MmZhYWE4NDJiOWYxODAyNGVkZGJlY2Q4MTE1MmZkZGM1YmU3ZjkwYmNkNzI4
10
+ OTEwNTc0ZmM5ODA3MDAyODNhMGZiMDkzNjhkMjJlNGY0YjU2ZWFlMWI0MmY5
11
+ MDFiNGYxOTYzOWFhMjkyMDMyODdmNDYzYjYxYzA4ZmM5ZWIyZjc=
12
12
  data.tar.gz: !binary |-
13
- ZTE4ZmIwMTIzYzI0YzQ4YjYwZTRjMjY0N2Y5OGJhMGU5MWQ1ZDZkNzAyZmJm
14
- NjNhYTlhMmRkYjc1NzFlOGNiMzI2NWYzZDk2NWRhZWViZDZlMzg0ODJhOWFi
15
- ODJiM2QxMjM2MTgzZTI3M2Q0YTBhMjc1ZDBkNWI4YjNiZjBkMWI=
13
+ MTAyZTYxOTg0Njk4ZWEzYWUwYmY2ZTJiMDcwNmJiNGZjNjFmNjVmYTZkYzI0
14
+ MDkzOTFlYTdjYzBiY2MzNzE3OTM0YmUwMGViYThkN2ZkYmQ2Mzk2MWY3NjA1
15
+ NTcyNGE2ZGZjNzAzYzkxMTg0MTI0YzMyNmVhYTZmZTg0Njk4ZWQ=
data/lib/nunit.rb CHANGED
@@ -42,6 +42,7 @@ class NUnitRunner
42
42
  @resultsDir = paths.fetch(:results, 'results')
43
43
  @compilePlatform = paths.fetch(:platform, 'x86')
44
44
  @compileTarget = paths.fetch(:compilemode, 'debug')
45
+ @clrversion = paths.fetch(:clrversion, 'v4.0.30319')
45
46
  @nunitExe = Nuget.tool("NUnit", "nunit-console#{(@compilePlatform.empty? ? '' : "-#{@compilePlatform}")}.exe") + Platform.switch("nothread")
46
47
  end
47
48
 
@@ -50,7 +51,7 @@ class NUnitRunner
50
51
 
51
52
  assemblies.each do |assem|
52
53
  file = File.expand_path("#{@sourceDir}/#{assem}/bin/#{@compileTarget}/#{assem}.dll")
53
- sh Platform.runtime("#{@nunitExe} -xml=#{@resultsDir}/#{assem}-TestResults.xml \"#{file}\"")
54
+ sh Platform.runtime("#{@nunitExe} -xml=#{@resultsDir}/#{assem}-TestResults.xml \"#{file}\"", @clrversion)
54
55
  end
55
56
  end
56
57
 
data/lib/platform.rb CHANGED
@@ -4,10 +4,9 @@ module Platform
4
4
  !RUBY_PLATFORM.match("linux|darwin").nil?
5
5
  end
6
6
 
7
- def self.runtime(cmd)
7
+ def self.runtime(cmd, runtime)
8
8
  command = cmd
9
9
  if self.is_nix
10
- runtime = (CLR_TOOLS_VERSION || "v4.0.30319")
11
10
  command = "mono --runtime=#{runtime} #{cmd}"
12
11
  end
13
12
  command
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuburake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0.19
4
+ version: 0.5.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy D. Miller