bootsnap 0.2.14 → 0.2.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10da15bf6873c1b1011ad6c3f3ebbee62b4845ac
4
- data.tar.gz: 28868609b2f92bb2a70cbc984086fe9109382ae0
3
+ metadata.gz: b0de1ff4a8bdd4478f422a07fba3981778828604
4
+ data.tar.gz: d9b7d5cc09e58be7bc31382be47d72870c60bf7f
5
5
  SHA512:
6
- metadata.gz: ff98ecbb065c35fbe32d476eb3b9940fdd671dc97cb1c2e8db431b9d4c47d471818c7c88748c86a054971c56af0ec37353d1ee707fc49ba6c515112df9e7c7ee
7
- data.tar.gz: b11012203f9f4bc33bc3d2d99e212868570db9d5662051b58cd66fb4d0203e1566e78d10cfd23678b8340c50622404f427409c1be9f66875caef4959d2f6c9ca
6
+ metadata.gz: f153d3e9591eb2fb8d2efecb958cbe21f61d93040f891ef63809285418cf76b3883d5490b3aa60d656bd066f96d7489317b13833bdf465058f7a339547177f6c
7
+ data.tar.gz: be2f217b2481c5d3eb44226d9861d2890dc7901143ab056e0d1f2fbd5e4f152ef497fb1cd67481ae44c4723dc5b0c93a6f6f6faebd705f4ce321aa0e5949bd2f
@@ -0,0 +1,5 @@
1
+ os: osx
2
+ language: ruby
3
+ rvm: ruby-2.4.0
4
+ before_script: rake
5
+ script: bin/testunit
@@ -0,0 +1,4 @@
1
+ # 0.2.15
2
+
3
+ * Support more versions of ActiveSupport (`depend_on`'s signature varies; don't reiterate it)
4
+ * Fix bug in handling autoloaded modules that raise NoMethodError
data/README.md CHANGED
@@ -1,7 +1,10 @@
1
- # Bootsnap
1
+ # Bootsnap ![CI status](https://travis-ci.org/Shopify/bootsnap.svg?branch=master)
2
2
 
3
3
  **Beta-quality. See [the last section of this README](#trustworthiness).**
4
4
 
5
+ **`compile_cache_*` features are only supported on MacOS (extremely likely to error on Linux;
6
+ won't even compile on other platforms).**
7
+
5
8
  Bootsnap is a library that plugs into a number of Ruby and (optionally) `ActiveSupport` and `YAML`
6
9
  methods to optimize and cache expensive computations. See [the How Does This Work section](#how-does-this-work) for more information.
7
10
 
@@ -4,7 +4,10 @@ module Bootsnap
4
4
  module ActiveSupport
5
5
  def self.with_bootsnap_fallback(error)
6
6
  yield
7
- rescue error
7
+ rescue error => e
8
+ # NoMethodError is a NameError, but we only want to handle actual
9
+ # NameError instances.
10
+ raise unless e.class == error
8
11
  without_bootsnap_cache { yield }
9
12
  end
10
13
 
@@ -50,7 +53,9 @@ module Bootsnap
50
53
  CoreExt::ActiveSupport.with_bootsnap_fallback(NameError) { super }
51
54
  end
52
55
 
53
- def depend_on(file_name, message = "No such file to load -- %s.rb")
56
+ # Signature has changed a few times over the years; easiest to not
57
+ # reiterate it with version polymorphism here...
58
+ def depend_on(*)
54
59
  CoreExt::ActiveSupport.with_bootsnap_fallback(LoadError) { super }
55
60
  end
56
61
  end
@@ -1,3 +1,3 @@
1
1
  module Bootsnap
2
- VERSION = "0.2.14"
2
+ VERSION = "0.2.15"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootsnap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burke Libbey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-11 00:00:00.000000000 Z
11
+ date: 2017-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -118,6 +118,8 @@ extra_rdoc_files: []
118
118
  files:
119
119
  - ".gitignore"
120
120
  - ".rubocop.yml"
121
+ - ".travis.yml"
122
+ - CHANGELOG.md
121
123
  - CONTRIBUTING.md
122
124
  - Gemfile
123
125
  - LICENSE