Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Commit

Permalink
Minor style fixes after feedback from @iconara
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Segerlind committed May 20, 2016
1 parent f6a4292 commit df08782
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/puck/jar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def create_jar_bootstrap!(tmp_dir, gem_dependencies)
io.puts("PUCK_BIN_PATH << '#{JAR_GEM_HOME}/gems/#{spec[:versioned_name]}/#{spec[:bin_path]}'")
end
io.puts
io.puts %(Gem.paths = {'GEM_HOME'=>File.join(PUCK_ROOT, '#{JAR_GEM_HOME}')})
io.puts(%(Gem.paths = {'GEM_HOME' => File.join(PUCK_ROOT, '#{JAR_GEM_HOME}')}))
io.puts
io.puts(File.read(File.expand_path('../bootstrap.rb', __FILE__)))
end
Expand Down
2 changes: 1 addition & 1 deletion spec/puck/jar_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def resolve_gem_dependencies(options)

it 'sets GEM_HOME in jar-bootstrap.rb' do
bootstrap = jar_entry_contents('jar-bootstrap.rb')
bootstrap.should include(%|Gem.paths = {'GEM_HOME'=>File.join(PUCK_ROOT, 'META-INF/gem.home')}|)
bootstrap.should include(%|Gem.paths = {'GEM_HOME' => File.join(PUCK_ROOT, 'META-INF/gem.home')}|)
end

it 'adds all gem\'s bin directories to a constant in jar-bootstrap.rb' do
Expand Down

0 comments on commit df08782

Please sign in to comment.