Skip to content

Commit bf6984a

Browse files
committed
Fix rake_task.rbs
1 parent 0d5a746 commit bf6984a

File tree

1 file changed

+15
-32
lines changed

1 file changed

+15
-32
lines changed

_gem/sig/go_gem/rake_task.rbs

Lines changed: 15 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,35 @@
11
module GoGem
2-
# Provides rake tasks for `go test` with CRuby
32
class RakeTask < ::Rake::TaskLib
4-
@gem_name: untyped
3+
@gem_name: String
54

6-
@task_namespace: untyped
5+
@task_namespace: Symbol
76

8-
@go_bin_path: untyped
7+
@go_bin_path: String
98

10-
@go_test_args: untyped
9+
@go_test_args: String
1110

12-
DEFAULT_TASK_NAMESPACE: :go
11+
DEFAULT_TASK_NAMESPACE: Symbol
1312

14-
DEFAULT_GO_BIN_PATH: "go"
13+
DEFAULT_GO_BIN_PATH: String
1514

16-
DEFAULT_GO_TEST_ARGS: "-mod=readonly -count=1"
15+
DEFAULT_GO_TEST_ARGS: String
1716

18-
# @!attribute [r] gem_name
19-
# @return [String]
20-
attr_reader gem_name: untyped
17+
attr_reader gem_name: String
2118

22-
# @!attribute task_namespace
23-
# @return [Symbol] task namespace (default: `:go`)
24-
attr_accessor task_namespace: untyped
19+
attr_accessor task_namespace: Symbol
2520

26-
# @!attribute go_bin_path
27-
# @return [String] path to go binary (default: `"go"`)
28-
attr_accessor go_bin_path: untyped
21+
attr_accessor go_bin_path: String
2922

30-
# @!attribute go_test_args
31-
# @return [String] argument passed to `go test` (default: `"-mod=readonly -count=1"`)
32-
attr_accessor go_test_args: untyped
23+
attr_accessor go_test_args: String
3324

34-
# @param gem_name [String]
35-
# @yield configuration of {RakeTask}
36-
# @yieldparam config [RakeTask]
37-
def initialize: (untyped gem_name) ?{ (untyped) -> untyped } -> void
25+
def initialize: (String gem_name) ?{ (RakeTask) -> void } -> void
3826

39-
# Generate environment variables for go build with CRuby
40-
#
41-
# @return [Hash<String, String>]
42-
def self.build_env_vars: () -> { "CGO_CFLAGS" => untyped, "CGO_LDFLAGS" => untyped, "LD_LIBRARY_PATH" => untyped }
27+
def self.build_env_vars: () -> { "CGO_CFLAGS" => String, "CGO_LDFLAGS" => String, "LD_LIBRARY_PATH" => String }
4328

4429
private
4530

46-
# @yield
47-
def within_ext_dir: () { () -> untyped } -> untyped
31+
def within_ext_dir: () { () -> void } -> void
4832

49-
# @return [String]
50-
def ext_dir: () -> untyped
33+
def ext_dir: () -> String
5134
end
5235
end

0 commit comments

Comments
 (0)