lib/tapioca/compilers/requires_compiler.rb in tapioca-0.4.27 vs lib/tapioca/compilers/requires_compiler.rb in tapioca-0.5.0
- old
+ new
@@ -1,9 +1,9 @@
# typed: strict
# frozen_string_literal: true
-require 'spoom'
+require "spoom"
module Tapioca
module Compilers
class RequiresCompiler
extend T::Sig
@@ -85,10 +85,10 @@
end
sig { params(files: T::Enumerable[String], name: String).returns(T::Boolean) }
def name_in_project?(files, name)
files.any? do |file|
- File.basename(file, '.rb') == name
+ File.basename(file, ".rb") == name
end
end
end
end
end