runcs 1.5.0 → 1.6.0
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/bin/runcs +1 -1
- data/lib/runcs.rb +19 -15
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 394eb06e7e37b0cdbcfe8e56ed1d8b7a9078e0a97d4ff4876c13ab61dd16b534
|
4
|
+
data.tar.gz: 58b9c8270c5c2745279057c7eceda72e64a3eac21472ca9a2f285fda07575bef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66fcb59066c12e86271ed73bd1a33e22043a068e96868365f706110d7d22c1de4e0a48071d66f5234ae5cfbf4c733b3b9f6fe6576911677a0e4377c888719ffe
|
7
|
+
data.tar.gz: 883b90e37b983796b620fad6d8998d2851c422df8445802bff84524e37d579db6589478819758ce0a5d6671049a0e359a62b71c84574023533307ce870e93147
|
data/bin/runcs
CHANGED
data/lib/runcs.rb
CHANGED
@@ -1,25 +1,29 @@
|
|
1
|
-
|
1
|
+
module runcs
|
2
2
|
|
3
|
-
|
3
|
+
require 'colorize'
|
4
4
|
|
5
|
-
|
6
|
-
arguments += "#{a} "
|
7
|
-
end
|
5
|
+
arguments = ''
|
8
6
|
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
ARGV.each do |a|
|
8
|
+
arguments += "#{a} "
|
9
|
+
end
|
12
10
|
|
13
|
-
|
14
|
-
puts "Error on compilation".bold.red
|
11
|
+
puts "Trying to compile files: #{arguments.bold.green}\n\n"
|
15
12
|
|
16
|
-
|
17
|
-
exe = ARGV[0].gsub(*/.cs/, ".exe")
|
18
|
-
mono = `mono #{exe}`
|
19
|
-
puts mono
|
13
|
+
mcs = `mcs #{arguments}`
|
20
14
|
|
21
15
|
if !$?.success?
|
22
|
-
puts "Error on
|
16
|
+
puts "Error on compilation".bold.red
|
17
|
+
|
18
|
+
else
|
19
|
+
exe = ARGV[0].gsub(*/.cs/, ".exe")
|
20
|
+
mono = `mono #{exe}`
|
21
|
+
puts mono
|
22
|
+
|
23
|
+
if !$?.success?
|
24
|
+
puts "Error on execution".bold.red
|
25
|
+
end
|
26
|
+
|
23
27
|
end
|
24
28
|
|
25
29
|
end
|