Skip to content

Commit

Permalink
Fix: require "pathname"
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokaro committed May 29, 2024
1 parent fe53b99 commit f132ffc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/ocran
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
# -*- ruby -*-
# encoding: UTF-8

require "pathname"
module Ocran
IGNORE_MODULE_NAMES = /\A(enumerator.so|rational.so|complex.so|fiber.so|thread.rb|ruby2_keywords.rb)\z/

Expand Down Expand Up @@ -524,7 +524,6 @@ EOF
end

def Ocran.build_exe
require "pathname"
require_relative "../lib/ocran/refine_pathname"
::Pathname.prepend(RefinePathname)
all_load_paths = $LOAD_PATH.map { |loadpath| Pathname.new(loadpath).expand_path }
Expand Down

0 comments on commit f132ffc

Please sign in to comment.