lib/blocks/compile.rb in bake-toolkit-2.42.3 vs lib/blocks/compile.rb in bake-toolkit-2.43.0

- old
+ new

@@ -32,10 +32,11 @@ end def get_object_file(source) # until now all OBJECT_FILE_ENDING are equal in all three types - srcWithoutDotDot = source.chomp(File.extname(source)).gsub(/\.\./, "__") + sourceEndingAdapted = @block.tcs[:KEEP_FILE_ENDINGS] ? source : source.chomp(File.extname(source)) + srcWithoutDotDot = sourceEndingAdapted.gsub(/\.\./, "__") if srcWithoutDotDot[0] == '/' srcWithoutDotDot = "_" + srcWithoutDotDot elsif srcWithoutDotDot[1] == ':' srcWithoutDotDot = "_" + srcWithoutDotDot[0] + "_" + srcWithoutDotDot[2..-1] end \ No newline at end of file