bootsnap 1.1.8 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.travis.yml +23 -3
- data/CHANGELOG.md +35 -0
- data/README.jp.md +231 -0
- data/README.md +4 -1
- data/Rakefile +2 -1
- data/bin/ci +10 -0
- data/bin/console +3 -3
- data/bin/test-minimal-support +7 -0
- data/bootsnap.gemspec +15 -9
- data/dev.yml +1 -1
- data/ext/bootsnap/bootsnap.c +3 -22
- data/ext/bootsnap/extconf.rb +2 -1
- data/lib/bootsnap.rb +13 -6
- data/lib/bootsnap/bundler.rb +5 -3
- data/lib/bootsnap/compile_cache.rb +19 -4
- data/lib/bootsnap/compile_cache/iseq.rb +8 -8
- data/lib/bootsnap/compile_cache/yaml.rb +7 -7
- data/lib/bootsnap/explicit_require.rb +1 -1
- data/lib/bootsnap/load_path_cache.rb +28 -9
- data/lib/bootsnap/load_path_cache/cache.rb +24 -23
- data/lib/bootsnap/load_path_cache/change_observer.rb +34 -29
- data/lib/bootsnap/load_path_cache/core_ext/active_support.rb +28 -3
- data/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb +46 -52
- data/lib/bootsnap/load_path_cache/core_ext/loaded_features.rb +7 -0
- data/lib/bootsnap/load_path_cache/loaded_features_index.rb +116 -0
- data/lib/bootsnap/load_path_cache/path.rb +5 -5
- data/lib/bootsnap/load_path_cache/path_scanner.rb +14 -18
- data/lib/bootsnap/load_path_cache/realpath_cache.rb +32 -0
- data/lib/bootsnap/load_path_cache/store.rb +8 -8
- data/lib/bootsnap/setup.rb +7 -13
- data/lib/bootsnap/version.rb +1 -1
- data/shipit.rubygems.yml +4 -0
- metadata +18 -9
data/lib/bootsnap/setup.rb
CHANGED
@@ -1,14 +1,8 @@
|
|
1
|
-
require_relative
|
1
|
+
require_relative('../bootsnap')
|
2
2
|
|
3
3
|
env = ENV['RAILS_ENV'] || ENV['RACK_ENV'] || ENV['ENV']
|
4
4
|
development_mode = ['', nil, 'development'].include?(env)
|
5
5
|
|
6
|
-
# only enable on 'ruby' (MRI), POSIX (darin, linux, *bsd), and >= 2.3.0
|
7
|
-
enable_cc =
|
8
|
-
RUBY_ENGINE == 'ruby' &&
|
9
|
-
RUBY_PLATFORM =~ /darwin|linux|bsd/ &&
|
10
|
-
Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.3.0")
|
11
|
-
|
12
6
|
cache_dir = ENV['BOOTSNAP_CACHE_DIR']
|
13
7
|
unless cache_dir
|
14
8
|
config_dir_frame = caller.detect do |line|
|
@@ -16,11 +10,11 @@ unless cache_dir
|
|
16
10
|
end
|
17
11
|
|
18
12
|
unless config_dir_frame
|
19
|
-
$stderr.puts
|
20
|
-
$stderr.puts
|
21
|
-
$stderr.puts
|
13
|
+
$stderr.puts("[bootsnap/setup] couldn't infer cache directory! Either:")
|
14
|
+
$stderr.puts("[bootsnap/setup] 1. require bootsnap/setup from your application's config directory; or")
|
15
|
+
$stderr.puts("[bootsnap/setup] 2. Define the environment variable BOOTSNAP_CACHE_DIR")
|
22
16
|
|
23
|
-
raise
|
17
|
+
raise("couldn't infer bootsnap cache directory")
|
24
18
|
end
|
25
19
|
|
26
20
|
path = config_dir_frame.split(/:\d+:/).first
|
@@ -36,6 +30,6 @@ Bootsnap.setup(
|
|
36
30
|
load_path_cache: true,
|
37
31
|
autoload_paths_cache: true, # assume rails. open to PRs to impl. detection
|
38
32
|
disable_trace: false,
|
39
|
-
compile_cache_iseq:
|
40
|
-
compile_cache_yaml:
|
33
|
+
compile_cache_iseq: true,
|
34
|
+
compile_cache_yaml: true,
|
41
35
|
)
|
data/lib/bootsnap/version.rb
CHANGED
data/shipit.rubygems.yml
ADDED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootsnap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Burke Libbey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,10 +110,13 @@ files:
|
|
110
110
|
- CONTRIBUTING.md
|
111
111
|
- Gemfile
|
112
112
|
- LICENSE.txt
|
113
|
+
- README.jp.md
|
113
114
|
- README.md
|
114
115
|
- Rakefile
|
116
|
+
- bin/ci
|
115
117
|
- bin/console
|
116
118
|
- bin/setup
|
119
|
+
- bin/test-minimal-support
|
117
120
|
- bin/testunit
|
118
121
|
- bootsnap.gemspec
|
119
122
|
- dev.yml
|
@@ -131,15 +134,22 @@ files:
|
|
131
134
|
- lib/bootsnap/load_path_cache/change_observer.rb
|
132
135
|
- lib/bootsnap/load_path_cache/core_ext/active_support.rb
|
133
136
|
- lib/bootsnap/load_path_cache/core_ext/kernel_require.rb
|
137
|
+
- lib/bootsnap/load_path_cache/core_ext/loaded_features.rb
|
138
|
+
- lib/bootsnap/load_path_cache/loaded_features_index.rb
|
134
139
|
- lib/bootsnap/load_path_cache/path.rb
|
135
140
|
- lib/bootsnap/load_path_cache/path_scanner.rb
|
141
|
+
- lib/bootsnap/load_path_cache/realpath_cache.rb
|
136
142
|
- lib/bootsnap/load_path_cache/store.rb
|
137
143
|
- lib/bootsnap/setup.rb
|
138
144
|
- lib/bootsnap/version.rb
|
145
|
+
- shipit.rubygems.yml
|
139
146
|
homepage: https://github.com/Shopify/bootsnap
|
140
147
|
licenses:
|
141
148
|
- MIT
|
142
|
-
metadata:
|
149
|
+
metadata:
|
150
|
+
bug_tracker_uri: https://github.com/Shopify/bootsnap/issues
|
151
|
+
changelog_uri: https://github.com/Shopify/bootsnap/blob/master/CHANGELOG.md
|
152
|
+
source_code_uri: https://github.com/Shopify/bootsnap
|
143
153
|
post_install_message:
|
144
154
|
rdoc_options: []
|
145
155
|
require_paths:
|
@@ -155,8 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
165
|
- !ruby/object:Gem::Version
|
156
166
|
version: '0'
|
157
167
|
requirements: []
|
158
|
-
|
159
|
-
rubygems_version: 2.6.14
|
168
|
+
rubygems_version: 3.0.2
|
160
169
|
signing_key:
|
161
170
|
specification_version: 4
|
162
171
|
summary: Boot large ruby/rails apps faster
|