ucc 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ucc.rb +3 -2
- data/lib/ucc/version.rb +1 -1
- metadata +1 -1
data/lib/ucc.rb
CHANGED
@@ -11,7 +11,7 @@ module Ucc
|
|
11
11
|
class Runner
|
12
12
|
attr_reader :source_files
|
13
13
|
|
14
|
-
#
|
14
|
+
# Here we pass the compiler (to be able to choose between gcc or g++)
|
15
15
|
def initialize(compiler)
|
16
16
|
@compiler = compiler
|
17
17
|
raise "Compiler must be specified" unless @compiler
|
@@ -69,12 +69,13 @@ module Ucc
|
|
69
69
|
return @app_filename if @app_filename
|
70
70
|
@app_filename = source_files[0].sub(/\.\w+$/, '')
|
71
71
|
@app_filename += ".exe" if WINDOWS
|
72
|
+
@app_filename
|
72
73
|
end
|
73
74
|
|
74
75
|
# Main logic
|
75
76
|
# ==========
|
76
77
|
|
77
|
-
# Does option parsing using
|
78
|
+
# Does option parsing using optparse
|
78
79
|
def parse_options
|
79
80
|
begin
|
80
81
|
optparse.parse!
|
data/lib/ucc/version.rb
CHANGED