Skip to content

Commit

Permalink
@gem_package needs to be initialized before init_entrance
Browse files Browse the repository at this point in the history
  • Loading branch information
jakolehm committed Jan 3, 2019
1 parent 7f54da4 commit 598c925
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,12 @@ def initialize(entrance, options = {})
@gem_package = nil
@options = options
@utils = Utils.new(options)
@gem_package = GemPackage.new(@entrance, @options, @utils) if @options[:gem]

init_options
init_entrance if entrance
init_tmpdir

@gem_package = GemPackage.new(@entrance, @options, @utils) if @options[:gem]

log "Ruby Compiler (rubyc) v#{::Compiler::VERSION}"
if entrance
log "- entrance: #{@entrance}"
Expand Down

0 comments on commit 598c925

Please sign in to comment.