Skip to content

Commit

Permalink
refactor: remove Zeitwerk autoloader
Browse files Browse the repository at this point in the history
  • Loading branch information
maxveldink committed Jan 27, 2024
1 parent b80a7bd commit 26e77bd
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 1,006 deletions.
2 changes: 0 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ PATH
specs:
sorbet-result (1.0.0)
sorbet-runtime (~> 0.5)
zeitwerk (~> 2.6)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -107,7 +106,6 @@ GEM
yard-sorbet (0.8.1)
sorbet-runtime (>= 0.5)
yard (>= 0.9)
zeitwerk (2.6.12)

PLATFORMS
arm64-darwin-22
Expand Down
5 changes: 0 additions & 5 deletions lib/sorbet-result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
# frozen_string_literal: true

require "sorbet-runtime"
require "zeitwerk"
require_relative "typed/result"

# Sorbet-aware namespace to super-charge your projects
module Typed; end

loader = Zeitwerk::Loader.new
loader.push_dir("#{__dir__}/typed", namespace: Typed)
loader.setup
1 change: 0 additions & 1 deletion sorbet-result.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

spec.add_runtime_dependency "sorbet-runtime", "~> 0.5"
spec.add_runtime_dependency "zeitwerk", "~> 2.6"
end
Loading

0 comments on commit 26e77bd

Please sign in to comment.