Skip to content

Commit 8996b7f

Browse files
committed
Remove needless files
1 parent 795bb09 commit 8996b7f

File tree

5 files changed

+4
-209
lines changed

5 files changed

+4
-209
lines changed

bin/iruby

Lines changed: 0 additions & 5 deletions
This file was deleted.

iruby.gemspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ Gem::Specification.new do |s|
1111
s.license = 'MIT'
1212

1313
s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
14-
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
14+
s.bindir = "exe"
15+
s.executables = %w[iruby]
1516
s.test_files = s.files.grep(%r{^test/})
1617
s.require_paths = %w[lib]
1718
s.extensions = %w[ext/Rakefile]

lib/iruby/command.rb

Lines changed: 0 additions & 190 deletions
This file was deleted.

test/helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
module IRubyTest
1414
class TestBase < Test::Unit::TestCase
1515
TEST_DIR = File.expand_path("..", __FILE__).freeze
16-
BIN_DIR = File.expand_path("../bin", TEST_DIR).freeze
16+
EXE_DIR = File.expand_path("../exe", TEST_DIR).freeze
1717
LIB_DIR = File.expand_path("../lib", TEST_DIR).freeze
1818

1919
RUBY = RbConfig.ruby.freeze
20-
IRUBY_PATH = File.join(BIN_DIR, "iruby").freeze
20+
IRUBY_PATH = File.join(EXE_DIR, "iruby").freeze
2121

2222
def iruby_command(*args)
2323
[RUBY, "-I#{LIB_DIR}", IRUBY_PATH, *args]

test/iruby/application/helper.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,6 @@
66
module IRubyTest
77
module ApplicationTests
88
class ApplicationTestBase < TestBase
9-
RUBY = RbConfig.ruby
10-
TEST_DIR = File.expand_path("../../..", __FILE__).freeze
11-
EXE_DIR = File.expand_path("../exe", TEST_DIR).freeze
12-
LIB_DIR = File.expand_path("../lib", TEST_DIR).freeze
13-
14-
IRUBY_PATH = File.join(EXE_DIR, "iruby").freeze
15-
16-
def iruby_command(*args)
17-
[RUBY, "-I#{LIB_DIR}", IRUBY_PATH, *args]
18-
end
19-
209
DEFAULT_KERNEL_NAME = IRuby::Application::DEFAULT_KERNEL_NAME
2110
DEFAULT_DISPLAY_NAME = IRuby::Application::DEFAULT_DISPLAY_NAME
2211

0 commit comments

Comments
 (0)