bootsnap 1.4.5 → 1.4.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +28 -0
  3. data/README.md +1 -1
  4. data/ext/bootsnap/bootsnap.c +91 -64
  5. data/ext/bootsnap/extconf.rb +1 -0
  6. data/lib/bootsnap.rb +2 -0
  7. data/lib/bootsnap/bundler.rb +1 -0
  8. data/lib/bootsnap/compile_cache.rb +3 -2
  9. data/lib/bootsnap/compile_cache/iseq.rb +6 -4
  10. data/lib/bootsnap/compile_cache/yaml.rb +67 -38
  11. data/lib/bootsnap/explicit_require.rb +1 -0
  12. data/lib/bootsnap/load_path_cache.rb +1 -1
  13. data/lib/bootsnap/load_path_cache/cache.rb +8 -8
  14. data/lib/bootsnap/load_path_cache/change_observer.rb +2 -1
  15. data/lib/bootsnap/load_path_cache/core_ext/active_support.rb +1 -0
  16. data/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb +18 -5
  17. data/lib/bootsnap/load_path_cache/core_ext/loaded_features.rb +1 -0
  18. data/lib/bootsnap/load_path_cache/loaded_features_index.rb +33 -10
  19. data/lib/bootsnap/load_path_cache/path.rb +3 -2
  20. data/lib/bootsnap/load_path_cache/path_scanner.rb +39 -26
  21. data/lib/bootsnap/load_path_cache/realpath_cache.rb +5 -5
  22. data/lib/bootsnap/load_path_cache/store.rb +6 -5
  23. data/lib/bootsnap/setup.rb +1 -0
  24. data/lib/bootsnap/version.rb +2 -1
  25. metadata +9 -26
  26. data/.github/CODEOWNERS +0 -2
  27. data/.github/probots.yml +0 -2
  28. data/.gitignore +0 -17
  29. data/.rubocop.yml +0 -20
  30. data/.travis.yml +0 -21
  31. data/CODE_OF_CONDUCT.md +0 -74
  32. data/CONTRIBUTING.md +0 -21
  33. data/Gemfile +0 -8
  34. data/README.jp.md +0 -231
  35. data/Rakefile +0 -12
  36. data/bin/ci +0 -10
  37. data/bin/console +0 -14
  38. data/bin/setup +0 -8
  39. data/bin/test-minimal-support +0 -7
  40. data/bin/testunit +0 -8
  41. data/bootsnap.gemspec +0 -45
  42. data/dev.yml +0 -10
  43. data/shipit.rubygems.yml +0 -0
data/Rakefile DELETED
@@ -1,12 +0,0 @@
1
- require('rake/extensiontask')
2
- require('bundler/gem_tasks')
3
-
4
- gemspec = Gem::Specification.load('bootsnap.gemspec')
5
- Rake::ExtensionTask.new do |ext|
6
- ext.name = 'bootsnap'
7
- ext.ext_dir = 'ext/bootsnap'
8
- ext.lib_dir = 'lib/bootsnap'
9
- ext.gem_spec = gemspec
10
- end
11
-
12
- task(default: :compile)
data/bin/ci DELETED
@@ -1,10 +0,0 @@
1
- #!/bin/bash
2
-
3
- set -euxo pipefail
4
-
5
- if [[ "${MINIMAL_SUPPORT-0}" -eq 1 ]]; then
6
- exec bin/test-minimal-support
7
- else
8
- rake
9
- exec bin/testunit
10
- fi
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require("bundler/setup")
4
- require("bootsnap")
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require("irb")
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
-
3
- set -euxo pipefail
4
-
5
- cd test/minimal_support
6
- bundle
7
- BOOTSNAP_CACHE_DIR=/tmp bundle exec ruby -w -I ../../lib bootsnap_setup.rb
@@ -1,8 +0,0 @@
1
- #!/bin/bash
2
-
3
- if [[ $# -eq 0 ]]; then
4
- exec ruby -I"test" -w -e 'Dir.glob("./test/**/*_test.rb").each { |f| require f }' -- "$@"
5
- else
6
- path=$1
7
- exec ruby -I"test" -w -e "require '${path#test/}'" -- "$@"
8
- fi
@@ -1,45 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require('bootsnap/version')
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "bootsnap"
8
- spec.version = Bootsnap::VERSION
9
- spec.authors = ["Burke Libbey"]
10
- spec.email = ["burke.libbey@shopify.com"]
11
-
12
- spec.license = "MIT"
13
-
14
- spec.summary = "Boot large ruby/rails apps faster"
15
- spec.description = spec.summary
16
- spec.homepage = "https://github.com/Shopify/bootsnap"
17
-
18
- spec.metadata = {
19
- 'bug_tracker_uri' => 'https://github.com/Shopify/bootsnap/issues',
20
- 'changelog_uri' => 'https://github.com/Shopify/bootsnap/blob/master/CHANGELOG.md',
21
- 'source_code_uri' => 'https://github.com/Shopify/bootsnap',
22
- }
23
-
24
- spec.files = %x(git ls-files -z).split("\x0").reject do |f|
25
- f.match(%r{^(test|spec|features)/})
26
- end
27
- spec.require_paths = %w(lib)
28
-
29
- spec.required_ruby_version = '>= 2.0.0'
30
-
31
- if RUBY_PLATFORM =~ /java/
32
- spec.platform = 'java'
33
- else
34
- spec.platform = Gem::Platform::RUBY
35
- spec.extensions = ['ext/bootsnap/extconf.rb']
36
- end
37
-
38
- spec.add_development_dependency("bundler")
39
- spec.add_development_dependency('rake', '~> 10.0')
40
- spec.add_development_dependency('rake-compiler', '~> 0')
41
- spec.add_development_dependency("minitest", "~> 5.0")
42
- spec.add_development_dependency("mocha", "~> 1.2")
43
-
44
- spec.add_runtime_dependency("msgpack", "~> 1.0")
45
- end
data/dev.yml DELETED
@@ -1,10 +0,0 @@
1
- env:
2
- BOOTSNAP_PEDANTIC: '1'
3
-
4
- up:
5
- - ruby: 2.6.0
6
- - bundler
7
- commands:
8
- build: rake compile
9
- test: 'rake compile && exec bin/testunit'
10
- style: 'exec rubocop -D'
File without changes