Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

#2. Add some comments explaining reasoning.

  • Loading branch information...
commit 6524852874b4e43adc67629ce8ada240164c3ea3 1 parent 5c4d95d
@hone hone authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/language_pack/ruby.rb
View
2  lib/language_pack/ruby.rb
@@ -161,6 +161,8 @@ def build_bundler
yaml_include = File.expand_path("#{libyaml_dir}/include")
yaml_lib = File.expand_path("#{libyaml_dir}/lib")
pwd = run("pwd").chomp
+ # we need to set BUNDLE_CONFIG and BUNDLE_GEMFILE for
+ # codon since it uses bundler.
env_vars = "env BUNDLE_GEMFILE=#{pwd}/Gemfile BUNDLE_CONFIG=#{pwd}/.bundle/config CPATH=#{yaml_include}:$CPATH CPPATH=#{yaml_include}:$CPPATH LIBRARY_PATH=#{yaml_lib}:$LIBRARY_PATH"
puts "Running: #{bundle_command}"
pipe("#{env_vars} #{bundle_command} --no-clean 2>&1")
Please sign in to comment.
Something went wrong with that request. Please try again.