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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/runcs +1 -1
  3. data/lib/runcs.rb +19 -15
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a7524ec8219f43e1680653b25b6c01c20d3a39611f157656c1c784332d2545c
4
- data.tar.gz: cae398ea0b02fb18e03212d059e1e27e75df67bb456cff0acfd16ff9f22d8ed3
3
+ metadata.gz: 394eb06e7e37b0cdbcfe8e56ed1d8b7a9078e0a97d4ff4876c13ab61dd16b534
4
+ data.tar.gz: 58b9c8270c5c2745279057c7eceda72e64a3eac21472ca9a2f285fda07575bef
5
5
  SHA512:
6
- metadata.gz: 60881d548caf96604ab4926b92f6c1849fb1ed408db9a2df0f8d7699d563285b0e65ce21ebb40f0866db51e8c7a7e18d58e39d62b5bda255f41d411de8f022ba
7
- data.tar.gz: cd1079f46ba5c92524b1b35ba9609a84ce5cfd87b728cf9949bfb6dbabb03c60ec0f465086db3bc47c07d0876a81992ef423a198a3c115dbd2b4837fd2fb2746
6
+ metadata.gz: 66fcb59066c12e86271ed73bd1a33e22043a068e96868365f706110d7d22c1de4e0a48071d66f5234ae5cfbf4c733b3b9f6fe6576911677a0e4377c888719ffe
7
+ data.tar.gz: 883b90e37b983796b620fad6d8998d2851c422df8445802bff84524e37d579db6589478819758ce0a5d6671049a0e359a62b71c84574023533307ce870e93147
data/bin/runcs CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'runcs'
3
- runcs
3
+ runcs::runcs
data/lib/runcs.rb CHANGED
@@ -1,25 +1,29 @@
1
- require 'colorize'
1
+ module runcs
2
2
 
3
- arguments = ''
3
+ require 'colorize'
4
4
 
5
- ARGV.each do |a|
6
- arguments += "#{a} "
7
- end
5
+ arguments = ''
8
6
 
9
- puts "Trying to compile files: #{arguments.bold.green}\n\n"
10
-
11
- mcs = `mcs #{arguments}`
7
+ ARGV.each do |a|
8
+ arguments += "#{a} "
9
+ end
12
10
 
13
- if !$?.success?
14
- puts "Error on compilation".bold.red
11
+ puts "Trying to compile files: #{arguments.bold.green}\n\n"
15
12
 
16
- else
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 execution".bold.red
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runcs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ederson Ferreira