Skip to content

Commit

Permalink
bootsnap upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed May 26, 2017
1 parent aa24bcb commit 076f079
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -3,7 +3,7 @@ source 'https://rubygems.org'
#source 'http://production.cf.rubygems.org'

# does not install in linux ATM, so hack this for now
gem 'bootsnap', require: false
gem 'bootsnap', '0.3.0.pre', require: false

def rails_master?
ENV["RAILS_MASTER"] == '1'
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Expand Up @@ -62,7 +62,7 @@ GEM
rack (>= 0.9.0)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bootsnap (0.2.14)
bootsnap (0.3.0.pre)
msgpack (~> 1.0)
builder (3.2.3)
bullet (5.4.2)
Expand Down Expand Up @@ -400,7 +400,7 @@ DEPENDENCIES
barber
better_errors
binding_of_caller
bootsnap
bootsnap (= 0.3.0.pre)
bullet
byebug
certified
Expand Down
6 changes: 2 additions & 4 deletions config/boot.rb
Expand Up @@ -12,16 +12,14 @@


if ENV['RAILS_ENV'] != 'production'
is_mac = !!(RUBY_PLATFORM =~ /darwin/)

require 'bootsnap'

Bootsnap.setup(
cache_dir: 'tmp/cache', # Path to your cache
load_path_cache: true, # Should we optimize the LOAD_PATH with a cache?
autoload_paths_cache: true, # Should we optimize ActiveSupport autoloads with cache?
disable_trace: false, # Sets `RubyVM::InstructionSequence.compile_option = { trace_instruction: false }`
compile_cache_iseq: is_mac, # Should compile Ruby code into ISeq cache?
compile_cache_yaml: false # Should compile YAML into a cache?
compile_cache_iseq: true, # Should compile Ruby code into ISeq cache?
compile_cache_yaml: false # Skip YAML cache for now, cause we were seeing issues with it
)
end

0 comments on commit 076f079

Please sign in to comment.