From b0791a22bd4c4dd3a1b5791cb70c6a256fe4dc89 Mon Sep 17 00:00:00 2001 From: Lucas Cimon Date: Thu, 13 Aug 2015 15:27:41 +0200 Subject: [PATCH] Adding "--no-document" argument to "gem install" command for ruby-based hooks to fix issue with Cygwin --- pre_commit/languages/ruby.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pre_commit/languages/ruby.py b/pre_commit/languages/ruby.py index 18f304e5..7b018c1a 100644 --- a/pre_commit/languages/ruby.py +++ b/pre_commit/languages/ruby.py @@ -88,7 +88,8 @@ def install_environment(repo_cmd_runner, version='default'): if version != 'default': _install_ruby(ruby_env, version) ruby_env.run( - 'cd {prefix} && gem build *.gemspec && gem install *.gem', + 'cd {prefix} && gem build *.gemspec' + ' && gem install --no-document *.gem', )