Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #338 from takkii/develop
Browse files Browse the repository at this point in the history
Update.
  • Loading branch information
takkii authored May 8, 2024
2 parents aaadde7 + 4651972 commit b63ec14
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 31 deletions.
9 changes: 6 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ source 'https://rubygems.org'

# gemspec
gem 'bundler'
#gem 'ruby-debug-ide'
gem 'pry'
#gem 'pycall'
gem 'rake'
# gem 'rspec'
gem 'minitest'
gem 'simplecov'
gem 'bmi'

# dependent library
#gem 'ruby-debug-ide'
#gem 'pycall'
#gem 'rspec'
#gem 'solargraph'
#gem 'nokogiri'
#gem 'httparty'
Expand Down
2 changes: 1 addition & 1 deletion coverage/.resultset.json
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@
]
}
},
"timestamp": 1713261018
"timestamp": 1715145617
},
"RSpec": {
"coverage": {
Expand Down
5 changes: 0 additions & 5 deletions katakana_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@

# Katakana Runner
class KatakanaRunner
# default encoding utf-8, change encode here.
def self.encoding_style
Encoding.default_internal = 'UTF-8'
Encoding.default_external = 'UTF-8'
end

def self.run1
encoding_style
Expand Down
6 changes: 0 additions & 6 deletions mini_test_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
class MiniTestFile
attr_reader :mini_test, :mini_unit

# Default encoding utf8, Encoding change here.
def encoding_style
Encoding.default_internal = 'UTF-8'
Encoding.default_external = 'UTF-8'
end

def initialize
encoding_style
@mini_test = Mini(true, '/GitHub/zinbeijett/mini_test')
Expand Down
1 change: 1 addition & 0 deletions req/katakana.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@

require 'open3'
require 'tanraku'
require 'bmi'

# --------------------------------------
1 change: 1 addition & 0 deletions req/minitest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
require 'minitest/unit'
require 'minitest/runner'
require 'tanraku'
require 'bmi'
# --------------------------------------
1 change: 1 addition & 0 deletions req/romaji.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@

require 'open3'
require 'tanraku'
require 'bmi'

# --------------------------------------
27 changes: 11 additions & 16 deletions romaji_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,77 +4,72 @@

# Romaji Runner
class RomajiRunner
# default encoding utf-8, change encode here.
def self.encodig_style
Encoding.default_internal = 'UTF-8'
Encoding.default_external = 'UTF-8'
end

def self.run1
encodig_style
encoding_style
stdout_rb, _stderr_rb, _status_rb = Open3.capture3("ruby #{File.dirname(__FILE__)}/shell/romaji_runner_1.rb")

puts stdout_rb
end

def self.run2
encodig_style
encoding_style
stdout_rb, _stderr_rb, _status_rb = Open3.capture3("ruby #{File.dirname(__FILE__)}/shell/romaji_runner_2.rb")

puts stdout_rb
end

def self.run3
encodig_style
encoding_style
stdout_rb, _stderr_rb, _status_rb = Open3.capture3("ruby #{File.dirname(__FILE__)}/shell/romaji_runner_3.rb")

puts stdout_rb
end

def self.run4
encodig_style
encoding_style
stdout_rb, _stderr_rb, _status_rb = Open3.capture3("ruby #{File.dirname(__FILE__)}/shell/romaji_runner_4.rb")

puts stdout_rb
end

def self.run5
encodig_style
encoding_style
stdout_rb, _stderr_rb, _status_rb = Open3.capture3("ruby #{File.dirname(__FILE__)}/shell/romaji_runner_5.rb")

puts stdout_rb
end

def self.run6
encodig_style
encoding_style
stdout_rb, _stderr_rb, _status_rb = Open3.capture3("ruby #{File.dirname(__FILE__)}/shell/romaji_runner_6.rb")

puts stdout_rb
end

def self.run7
encodig_style
encoding_style
stdout_rb, _stderr_rb, _status_rb = Open3.capture3("ruby #{File.dirname(__FILE__)}/shell/romaji_runner_7.rb")

puts stdout_rb
end

def self.run8
encodig_style
encoding_style
stdout_rb, _stderr_rb, _status_rb = Open3.capture3("ruby #{File.dirname(__FILE__)}/shell/romaji_runner_8.rb")

puts stdout_rb
end

def self.run9
encodig_style
encoding_style
stdout_rb, _stderr_rb, _status_rb = Open3.capture3("ruby #{File.dirname(__FILE__)}/shell/romaji_runner_9.rb")

puts stdout_rb
end

def self.run10
encodig_style
encoding_style
stdout_rb, _stderr_rb, _status_rb = Open3.capture3("ruby #{File.dirname(__FILE__)}/shell/romaji_runner_10.rb")

puts stdout_rb
Expand All @@ -101,7 +96,7 @@ def self.run10
threads.each { |thr| thr.join.value }
rescue StandardError => e
puts e.backtrace
encodig_style.tanraku_exit
encoding_style.tanraku_exit
rescue Interrupt
# [result] false ↔ [default] true
# puts Thread.current.report_on_exception
Expand Down

0 comments on commit b63ec14

Please sign in to comment.