spectre-core 1.8.3 → 1.8.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/exe/spectre +11 -4
  3. data/lib/spectre.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4917b9c51ecccb083b1032af33b98c2efd2a0905890d8c33d2a739f2f85e7391
4
- data.tar.gz: a8800ce11d35f41dd78c4f63e3fb9f0192bd64c9ab02e436a99ac2641e13ba62
3
+ metadata.gz: 7998a15470727e16f944045357a1e089ea6a120bc5c10f8a9986dbb98bf52c54
4
+ data.tar.gz: 4c2ad03dfad8712359cf715f86f2eabc81e485c1f57619b8c257930d39d48140
5
5
  SHA512:
6
- metadata.gz: d60156f1003d5cfd86d6ecb570f785979a24a192f4ca3800916eebb5ceaecdff78125ab893c61aef41a67992fedca580a6d2ff95026504358569a1abede4bdba
7
- data.tar.gz: df1057c2157e65a5bcc59c84594a1ef2cc5dfc9a9db0c16a96738f952adc68d747c25801573d16cdaa0a57fe005102436ed26b6ec3b4dbce75fdbf23a0fea516
6
+ metadata.gz: ef2767b0d3dd65ff86a0925fbe08bd2b93c408f6e808c03f52389ca5eae9b0b324db92e04ce8f26dcef3c84a077b85a4789ea687a774fd49340998016afff3db
7
+ data.tar.gz: 61f62091ebbef3ed05b3cdd0aa4ae2a172b31a42dbc97f32eca0736b8ab1928b7d4a04262f793035653c95484aa26ec0cecacdd8a122a750df43fc0ff8e1db7c
data/exe/spectre CHANGED
@@ -303,12 +303,19 @@ if action == 'run'
303
303
  .select { |mod| !cfg['exclude'].include? mod }
304
304
  .each do |mod|
305
305
  begin
306
- if !File.exists? mod
307
- require_relative File.join('../lib', mod)
308
- else
306
+ spectre_lib_mod = File.join('../lib', mod)
307
+
308
+ if File.exists? mod
309
309
  require_relative mod
310
+
311
+ elsif File.exists? spectre_lib_mod
312
+ require_relative spectre_lib_mod
313
+
314
+ else
315
+ require mod
310
316
  end
311
- rescue => e
317
+
318
+ rescue LoadError => e
312
319
  puts "Unable to load module #{mod}. Check if the module exists or remove it from your spectre config:\n#{e.message}"
313
320
  exit 1
314
321
  end
data/lib/spectre.rb CHANGED
@@ -2,7 +2,7 @@ module Spectre
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 8
5
- TINY = 3
5
+ TINY = 4
6
6
  end
7
7
 
8
8
  VERSION = [Version::MAJOR, Version::MINOR, Version::TINY].compact * '.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spectre-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.3
4
+ version: 1.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Neubauer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-19 00:00:00.000000000 Z
11
+ date: 2021-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ectoplasm