Skip to content

Commit

Permalink
Use rbs gem
Browse files Browse the repository at this point in the history
  • Loading branch information
soutaro committed May 20, 2020
1 parent 7c5e8e3 commit ca42835
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 26 deletions.
13 changes: 0 additions & 13 deletions Rakefile
Expand Up @@ -8,19 +8,6 @@ Rake::TestTask.new(:test) do |t|
end

task :default => :test
task :build => :parser
task :test => :parser
task :install => [:reset, :parser]

task :parser do
Dir.chdir "vendor/ruby-signature" do
sh "bundle exec rake parser"
end
end

task :reset do
sh "git submodule update -f --init"
end

task :smoke do
sh "bundle", "exec", "bin/smoke_runner.rb", *Dir.glob("smoke/*")
Expand Down
2 changes: 0 additions & 2 deletions bin/setup
Expand Up @@ -5,5 +5,3 @@ set -vx

bundle install

# Do any other automated setup that you need to do here
bundle exec rake reset parser
1 change: 0 additions & 1 deletion bin/smoke_runner.rb
Expand Up @@ -2,7 +2,6 @@

require "pathname"

$LOAD_PATH << Pathname(__dir__) + '../vendor/ruby-signature/lib'
$LOAD_PATH << Pathname(__dir__) + "../lib"

require "steep"
Expand Down
3 changes: 0 additions & 3 deletions exe/rbs

This file was deleted.

1 change: 0 additions & 1 deletion exe/steep
Expand Up @@ -2,7 +2,6 @@

require 'pathname'

$LOAD_PATH << Pathname(__dir__) + "../vendor/ruby-signature/lib"
$LOAD_PATH << Pathname(__dir__) + "../lib"

require 'steep'
Expand Down
6 changes: 1 addition & 5 deletions steep.gemspec
Expand Up @@ -16,12 +16,7 @@ Gem::Specification.new do |spec|

spec.files = `git ls-files -z`.split("\x0").reject {|f|
f.match(%r{^(test|spec|features)/})
} + Dir.chdir("vendor/ruby-signature") {
`git ls-files -z`.split("\x0")
.reject {|f| f.match(%r{^(test|spec|features)/}) }
.map {|f| File.join("vendor/ruby-signature", f) }
}
spec.files << "vendor/ruby-signature/lib/rbs/parser.rb"

spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
Expand All @@ -43,4 +38,5 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency "listen", "~> 3.1"
spec.add_runtime_dependency "pry", "~> 0.12.2"
spec.add_runtime_dependency "language_server-protocol", "~> 3.14.0.2"
spec.add_runtime_dependency "rbs", "~> 0.2.0"
end
1 change: 0 additions & 1 deletion test/test_helper.rb
@@ -1,4 +1,3 @@
$LOAD_PATH.unshift File.expand_path('../../vendor/ruby-signature/lib', __FILE__)
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'steep'

Expand Down

0 comments on commit ca42835

Please sign in to comment.