Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
Add zeitwerk
Browse files Browse the repository at this point in the history
  • Loading branch information
zhulik committed Feb 8, 2023
1 parent 25b877e commit dbf3f0e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
source "https://rubygems.org"

gem "async"

gem "nats-pure"

gem "zeitwerk"

group :development, :test do
gem "rake"

Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ GEM
webrick (1.7.0)
yard (0.9.28)
webrick (~> 1.7.0)
zeitwerk (2.6.6)

PLATFORMS
x86_64-linux
Expand All @@ -137,6 +138,7 @@ DEPENDENCIES
simplecov
solargraph
webmock
zeitwerk

BUNDLED WITH
2.4.1
7 changes: 7 additions & 0 deletions lib/nats_streamer.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# frozen_string_literal: true

require "zeitwerk"

loader = Zeitwerk::Loader.for_gem
loader.setup

require_relative "nats_streamer/version"

class NatsStreamer::Error < StandardError
# Your code goes here...
end

loader.eager_load

0 comments on commit dbf3f0e

Please sign in to comment.