Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Steepfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ target :lib do
signature "ruby/testdata/example/sig"
signature "_gem/sig"

check "ruby/testdata/example/lib" # Directory name
check "ruby/testdata/example/lib"
check "_gem/lib"

# check "Gemfile" # File name
# check "app/models/**/*.rb" # Glob
# ignore "lib/templates/*.rb"
Expand Down
2 changes: 1 addition & 1 deletion _gem/go_gem.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
ls.readlines("\x0", chomp: true).reject do |f|
(f == gemspec) ||
f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile])
f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile sig/non-gemify/])
end
end
spec.bindir = "exe"
Expand Down
2 changes: 1 addition & 1 deletion _gem/lib/go_gem/mkmf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def $objs.empty?; false; end

create_makefile(target, srcprefix)

case `#{CONFIG["CC"]} --version` # rubocop:disable Lint/LiteralAsCondition
case `#{RbConfig::CONFIG["CC"]} --version` # rubocop:disable Lint/LiteralAsCondition
when /Free Software Foundation/
ldflags = "-Wl,--unresolved-symbols=ignore-all"
when /clang/
Expand Down
4 changes: 4 additions & 0 deletions _gem/sig/go_gem.rbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module GoGem
VERSION: String

class Error < StandardError
end

# See the writing guide of rbs: https://github.com/ruby/rbs#guides
end
4 changes: 3 additions & 1 deletion _gem/sig/go_gem/mkmf.rbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module GoGem
module Mkmf
def create_go_makefile: (String, String? nil) -> void
$objs: Array[untyped]

def create_go_makefile: (String target, String? srcprefix) -> void
end
end
7 changes: 7 additions & 0 deletions _gem/sig/non-gemify/mkmf.rbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module Kernel
def include: (*untyped) -> void

def find_executable: (String bin, ?String path) -> String?

def create_makefile: (String target, String? srcprefix) -> void
end
Loading