Skip to content

Commit

Permalink
Rename AliasResolver -> SourceAliasResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
alpaca-tc committed Jun 6, 2024
1 parent b159833 commit 90346be
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/diver_down/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ class Web
WEB_DIR = File.expand_path('../../web', __dir__)

require 'diver_down/web/action'
require 'diver_down/web/alias_resolver'
require 'diver_down/web/definition_to_dot'
require 'diver_down/web/definition_enumerator'
require 'diver_down/web/bit_id'
require 'diver_down/web/metadata'
require 'diver_down/web/indented_string_io'
require 'diver_down/web/definition_store'
require 'diver_down/web/definition_loader'
require 'diver_down/web/source_alias_resolver'

# For development
autoload :DevServerMiddleware, 'diver_down/web/dev_server_middleware'
Expand Down
4 changes: 2 additions & 2 deletions lib/diver_down/web/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Action
def initialize(store:, metadata:, request:)
@store = store
@metadata = metadata
@alias_resolver = DiverDown::Web::AliasResolver.new(@metadata.source_alias)
@source_alias_resolver = DiverDown::Web::SourceAliasResolver.new(@metadata.source_alias)
@request = request
end

Expand Down Expand Up @@ -227,7 +227,7 @@ def combine_definitions(bit_id, compound, concentrate, only_module)

if definition
# Resolve source aliases
resolved_definition = @alias_resolver.resolve(definition)
resolved_definition = @source_alias_resolver.resolve(definition)

definition_to_dot = DiverDown::Web::DefinitionToDot.new(resolved_definition, @metadata, compound:, concentrate:, only_module:)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module DiverDown
class Web
class AliasResolver
class SourceAliasResolver
# @param metadata_alias [DiverDown::Web::Metadata::SourceAlias]
def initialize(metadata_alias)
@metadata_alias = metadata_alias
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

RSpec.describe DiverDown::Web::AliasResolver do
RSpec.describe DiverDown::Web::SourceAliasResolver do
describe 'InstanceMethods' do
describe '#resolve' do
include DefinitionHelper
Expand Down

0 comments on commit 90346be

Please sign in to comment.