runcs 1.0.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 +7 -0
- data/lib/runcs.rb +25 -0
- metadata +43 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 9967f3fb35625685836b31983f148fe7a3a4dfdfce742db7cdd7a686be2d4047
|
|
4
|
+
data.tar.gz: a6c4403a555152ef33c1a1ebb478f720f67e49c8d1f879702229aca9d662b1cb
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: a480188452674aba81f10e48bf4d09e9bd491d2d442ee9f519280d23a4e31198069361b0398bd16d40e0a32a7e472b39ecd3ef00d4e412e572f6958716210c3d
|
|
7
|
+
data.tar.gz: d401741afff5defdf5925ac6983dc28efa41ec4844b4d894667ea44dc9afde2f591d7462b3879fb02ec4438188beab3deaa9a38bf42a43c2264ca8893de82d21
|
data/lib/runcs.rb
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
require 'colorize'
|
|
2
|
+
|
|
3
|
+
arguments = ''
|
|
4
|
+
|
|
5
|
+
ARGV.each do |a|
|
|
6
|
+
arguments += "#{a} "
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
puts "Trying to compile files: #{arguments.bold.green}\n\n"
|
|
10
|
+
|
|
11
|
+
mcs = `mcs #{arguments}`
|
|
12
|
+
|
|
13
|
+
if !$?.success?
|
|
14
|
+
puts "Error on compilation".bold.red
|
|
15
|
+
|
|
16
|
+
else
|
|
17
|
+
exe = ARGV[0].gsub(*/.cs/, ".exe")
|
|
18
|
+
mono = `mono #{exe}`
|
|
19
|
+
puts mono
|
|
20
|
+
|
|
21
|
+
if !$?.success?
|
|
22
|
+
puts "Error on execution".bold.red
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: runcs
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Ederson Ferreira
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2020-05-28 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: a automaticly C# Compiler and Runner
|
|
14
|
+
email: edersondeveloper@gmail.com
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- lib/runcs.rb
|
|
20
|
+
homepage: https://github.com/edersonferreira/runcs
|
|
21
|
+
licenses:
|
|
22
|
+
- MIT
|
|
23
|
+
metadata: {}
|
|
24
|
+
post_install_message:
|
|
25
|
+
rdoc_options: []
|
|
26
|
+
require_paths:
|
|
27
|
+
- lib
|
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
34
|
+
requirements:
|
|
35
|
+
- - ">="
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
38
|
+
requirements: []
|
|
39
|
+
rubygems_version: 3.1.2
|
|
40
|
+
signing_key:
|
|
41
|
+
specification_version: 4
|
|
42
|
+
summary: runcs
|
|
43
|
+
test_files: []
|