zeitwerk 2.1.1 → 2.1.2

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
  SHA256:
3
- metadata.gz: 346ac927810dc8ce5b206e4d90e3db572328fa500039ad4af19144bd2d193c0b
4
- data.tar.gz: ca4c317c9acfc26898260ae331da60a1bbd6d2c384556fb15d205487936feeb2
3
+ metadata.gz: afbe6dc64c3c97a4a2f2872d4e500374fc67ddae36a515d8791e3f8122a2447d
4
+ data.tar.gz: 470325ed5fe48da426cfb86fd35f20d9377fe9b41515aa4146e310a85843cce5
5
5
  SHA512:
6
- metadata.gz: f4e98230152289f2a52dae3fd4de94c25436325eade87cbd46bf78b60cc4f2480907a3ad19def25a15c6e8d07ed92b4e324244e17513c891648ac5fb31a0cb84
7
- data.tar.gz: ea6f69fe9463d847dfbf790ee6dbf22b5574b4bbb473f4acd998a58e905fc2aeb103ec5988f79fd8eaa0a7f641d6c10f428c06e53d526c2a0fe5456a2f5426a1
6
+ metadata.gz: caca8ed04aa94078f1e1af395c7e4afda10047a436694a5c5b9f4769a7829e7277d1243cd470618c8027f250ea288c82781ae64cd7d5d0771dac27b288a4350b
7
+ data.tar.gz: 507bbdb688e9b9412d908f784a902e807b90dd403df9939646c6d2d732367f9b8333b836354aa7b659425c1dc871c9bcf2f0fbe97a6522e444b968d2c5e12521
@@ -1,2 +1,7 @@
1
- class Zeitwerk::Error < StandardError
1
+ module Zeitwerk
2
+ class Error < StandardError
3
+ end
4
+
5
+ class ReloadingDisabledError < Error
6
+ end
2
7
  end
@@ -334,7 +334,7 @@ module Zeitwerk
334
334
  unload
335
335
  setup
336
336
  else
337
- raise Error, "can't reload, please call loader.enable_reloading before setup"
337
+ raise ReloadingDisabledError, "can't reload, please call loader.enable_reloading before setup"
338
338
  end
339
339
  end
340
340
 
@@ -363,8 +363,8 @@ module Zeitwerk
363
363
 
364
364
  shadowed_files.clear
365
365
 
366
- autoloaded_dirs.each do |dir|
367
- Registry.unregister_autoload(dir)
366
+ autoloaded_dirs.each do |autoloaded_dir|
367
+ Registry.unregister_autoload(autoloaded_dir)
368
368
  end
369
369
  autoloaded_dirs.clear
370
370
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zeitwerk
4
- VERSION = "2.1.1"
4
+ VERSION = "2.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zeitwerk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xavier Noria
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-10 00:00:00.000000000 Z
11
+ date: 2019-04-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  Zeitwerk implements constant autoloading with Ruby semantics. Each gem