gearhead 0.4.0 → 0.4.1

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: 514fd5af0293e62efdbb83d18eda79c72412f06ab60ab96adcb19d48bdc3fd82
4
- data.tar.gz: 4350999d8e8194ca68726b5893a5c32d8d7de43aeb14fba93b3e7f14a2806666
3
+ metadata.gz: '08c4f4e12eac1466b8530e800eed63ddd66d1deba843e71c72a8f5aa41e659e8'
4
+ data.tar.gz: 672efdd013c30086d023fbdf4aaefd7fff20b982ff4a6ca5d9e83547771bb070
5
5
  SHA512:
6
- metadata.gz: c6587358c938a6c2538adff9f53b88055cf7cfa79b128d0c4268712a3ddff4953f35b0b163437c543585054dd97a3cdffd09185ed92c96dc1d4b83ee873b7dcc
7
- data.tar.gz: ecf7fc77d8c0b6d23e2a26e602666ebdffa22bfceeebc9570691ea2b1414eaa96ff58986036b5fb0a09210106554b30b4f7c26693751cf2d12dc5acc584a449c
6
+ metadata.gz: b4a8e2a4cd7cb4aac4df0e1ae1bc04da699a28dd358f0557551b23bcd31f7211ac17301d06e6e6f1d7c061bd8e6deed31ca2c03b576c8605fdf55697932e9eee
7
+ data.tar.gz: e14d58df8a37dfe87cfef44a4710e943e0915595ba82430c4ec01fa42b4767c4be99a5257950cdbbfc06dd6e77d1c9c385e62358c8a09f5416473eeb426ac9b9
@@ -4,7 +4,11 @@ module Gearhead
4
4
  Dir.glob(Rails.root.join("app/gears/**/*.rb")).each do |gear|
5
5
  load gear
6
6
  end
7
- Rails.autoloaders.main.ignore(Rails.root.join('app/gears'))
7
+
8
+ # classic is Rails.autoloaders.main.nil? but let's be specific
9
+ if Rails.autoloaders.main.is_a?(Zeitwerk::Loader)
10
+ Rails.autoloaders.main.ignore(Rails.root.join('app/gears'))
11
+ end
8
12
  end
9
13
 
10
14
  paths["app/controllers"] = "lib"
@@ -1,3 +1,3 @@
1
1
  module Gearhead
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gearhead
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh