Skip to content

Commit

Permalink
Fix a couple of typos in the generic ruby buildpack
Browse files Browse the repository at this point in the history
- Repeated syck_hack phrase due to vim '.' command (best guess) is removed.
- Does something with GIT_DIR env variable removed.  Comment says it does so without it removed.  Fixed.
  • Loading branch information
Josh Adams committed Jan 26, 2012
1 parent cbee473 commit 8e22f2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/language_pack/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def build_bundler
end
end

# RUBYOPT line that requires syck_hack filerequires syck_hack file
# RUBYOPT line that requires syck_hack file
# @return [String] require string if needed or else an empty string
def syck_hack
syck_hack_file = File.expand_path(File.join(File.dirname(__FILE__), "../../vendor/syck_hack"))
Expand Down Expand Up @@ -425,7 +425,7 @@ def rake_task_defined?(task)
run("env PATH=$PATH bundle exec rake #{task} --dry-run") && $?.success?
end

# executes the block without GIT_DIR environment variable removed since it can mess with the current working directory git thinks it's in
# executes the block with GIT_DIR environment variable removed since it can mess with the current working directory git thinks it's in
# param [block] block to be executed in the GIT_DIR free context
def allow_git(&blk)
git_dir = ENV.delete("GIT_DIR") # can mess with bundler
Expand Down

0 comments on commit 8e22f2c

Please sign in to comment.