Skip to content

Commit

Permalink
pathname .freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
claytongentry committed Nov 9, 2024
1 parent 56a93d9 commit f591949
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/manifolds.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# frozen_string_literal: true

require "yaml"
require "pathname"
require "thor"
require "yaml"

Dir[File.join(__dir__, "manifolds", "**", "*.rb")].sort.each do |file|
require file
Expand Down
6 changes: 3 additions & 3 deletions lib/manifolds/project/vector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ module API
class Vector
attr_reader :name, :project, :config_template_path

DEFAULT_CONFIG_TEMPLATE_PATH = File.join(
Dir.pwd, "lib", "manifolds", "templates", "vector_template.yml"
)
DEFAULT_CONFIG_TEMPLATE_PATH = Pathname.pwd.join(
"lib", "manifolds", "templates", "vector_template.yml"
).freeze

def initialize(name, project:, config_template_path: DEFAULT_CONFIG_TEMPLATE_PATH)
self.name = name
Expand Down

0 comments on commit f591949

Please sign in to comment.