Skip to content

Commit

Permalink
Zeitwerk (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
luizkowalski authored Aug 10, 2023
1 parent cdbd5c1 commit c367529
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
1 change: 1 addition & 0 deletions concurrent_rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
spec.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]

spec.add_dependency "railties", ">= 6.0"
spec.add_dependency "zeitwerk", "~> 2.6"

spec.required_ruby_version = ">= 3.0"
spec.metadata = {
Expand Down
9 changes: 3 additions & 6 deletions lib/concurrent_rails.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# frozen_string_literal: true

require "concurrent_rails/future"
require "concurrent_rails/multi"
require "concurrent_rails/promises"
require "concurrent_rails/railtie"
require "concurrent_rails/testing"
require "concurrent_rails/version"
require "zeitwerk"
loader = Zeitwerk::Loader.for_gem
loader.setup
3 changes: 0 additions & 3 deletions lib/concurrent_rails/promises.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# frozen_string_literal: true

require "concurrent_rails/future_adapter"
require "concurrent_rails/delay_adapter"

module ConcurrentRails
class Promises
include Concurrent::Promises::FactoryMethods
Expand Down

0 comments on commit c367529

Please sign in to comment.