Created
May 24, 2019 14:22
-
-
Save hanachin/3cade5381108c2f50f5a1eb9ad872951 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/exe/rubocop b/exe/rubocop | |
index abf88369e..9491ded7f 100755 | |
--- a/exe/rubocop | |
+++ b/exe/rubocop | |
@@ -3,6 +3,9 @@ | |
$LOAD_PATH.unshift("#{__dir__}/../lib") | |
+require 'bootsnap' | |
+Bootsnap.setup(cache_dir: '/tmp/rubocop/', load_path_cache: false, autoload_paths_cache: false) | |
+ | |
require 'rubocop' | |
require 'benchmark' | |
diff --git a/rubocop.gemspec b/rubocop.gemspec | |
index 96096e6d0..431d4c800 100644 | |
--- a/rubocop.gemspec | |
+++ b/rubocop.gemspec | |
@@ -33,6 +33,7 @@ Gem::Specification.new do |s| | |
'bug_tracker_uri' => 'https://github.com/rubocop-hq/rubocop/issues' | |
} | |
+ s.add_runtime_dependency('bootsnap') | |
s.add_runtime_dependency('jaro_winkler', '~> 1.5.1') | |
s.add_runtime_dependency('parallel', '~> 1.10') | |
s.add_runtime_dependency('parser', '>= 2.6') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In my environment
after
before