Sha256: 3be6ca87f1e989db07a780f16a0026717580de0368e65451b9e02d7494217c67
Contents?: true
Size: 494 Bytes
Versions: 5
Compression:
Stored size: 494 Bytes
Contents
# encoding: utf-8 # Force JRuby not to select the current working directory # as a temporary directory on Travis CI. # https://github.com/jruby/jruby/issues/405 if ENV['TRAVIS'] && RUBY_ENGINE == 'jruby' require 'fileutils' tmp_dir = ENV['TMPDIR'] || ENV['TMP'] || ENV['TEMP'] || Etc.systmpdir || '/tmp' non_world_writable_tmp_dir = File.join(tmp_dir, 'rubocop') FileUtils.makedirs(non_world_writable_tmp_dir, mode: 0700) ENV['TMPDIR'] = non_world_writable_tmp_dir end
Version data entries
5 entries across 5 versions & 1 rubygems