Skip to content

Commit

Permalink
frozen string literal, rm unused
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed Oct 14, 2023
1 parent c2c5d6a commit ac837d9
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/katakata_irb.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'katakata_irb/version'
require 'katakata_irb/completor'
require 'katakata_irb/types'
Expand Down
2 changes: 2 additions & 0 deletions lib/katakata_irb/completor.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'type_simulator'
require 'rbs'
require 'rbs/cli'
Expand Down
2 changes: 2 additions & 0 deletions lib/katakata_irb/scope.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'set'
require_relative 'types'

Expand Down
3 changes: 2 additions & 1 deletion lib/katakata_irb/type_simulator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'ripper'
# frozen_string_literal: true

require 'set'
require_relative 'types'
require_relative 'scope'
Expand Down
2 changes: 2 additions & 0 deletions lib/katakata_irb/types.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module KatakataIrb; end
module KatakataIrb::Types
singleton_class.attr_reader :rbs_builder, :rbs_load_error
Expand Down
4 changes: 2 additions & 2 deletions test/test_katakata_irb.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# frozen_string_literal: true

require 'ripper'
require 'test_helper'

# Needed for ruby 3.0 test
Refinement = Object unless defined? Refinement
KatakataIrb::Types.preload_in_thread.join

class TestKatakataIrb < Minitest::Test
Expand Down

0 comments on commit ac837d9

Please sign in to comment.