Skip to content

Commit 0d5a746

Browse files
committed
bundle exec rbs prototype rb _gem/lib/go_gem/rake_task.rb > _gem/sig/go_gem/rake_task.rbs
1 parent dc3b301 commit 0d5a746

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

_gem/sig/go_gem/rake_task.rbs

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
module GoGem
2+
# Provides rake tasks for `go test` with CRuby
3+
class RakeTask < ::Rake::TaskLib
4+
@gem_name: untyped
5+
6+
@task_namespace: untyped
7+
8+
@go_bin_path: untyped
9+
10+
@go_test_args: untyped
11+
12+
DEFAULT_TASK_NAMESPACE: :go
13+
14+
DEFAULT_GO_BIN_PATH: "go"
15+
16+
DEFAULT_GO_TEST_ARGS: "-mod=readonly -count=1"
17+
18+
# @!attribute [r] gem_name
19+
# @return [String]
20+
attr_reader gem_name: untyped
21+
22+
# @!attribute task_namespace
23+
# @return [Symbol] task namespace (default: `:go`)
24+
attr_accessor task_namespace: untyped
25+
26+
# @!attribute go_bin_path
27+
# @return [String] path to go binary (default: `"go"`)
28+
attr_accessor go_bin_path: untyped
29+
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
33+
34+
# @param gem_name [String]
35+
# @yield configuration of {RakeTask}
36+
# @yieldparam config [RakeTask]
37+
def initialize: (untyped gem_name) ?{ (untyped) -> untyped } -> void
38+
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 }
43+
44+
private
45+
46+
# @yield
47+
def within_ext_dir: () { () -> untyped } -> untyped
48+
49+
# @return [String]
50+
def ext_dir: () -> untyped
51+
end
52+
end

0 commit comments

Comments
 (0)