mrbgem.rake: avoid implicit receivers in `mrbgem.rake`.
MODIFY
mrbgems/mruby-io/mrbgem.rake
mrbgems/mruby-io/mrbgem.rake
@@ -5,7 +5,7 @@ MRuby::Gem::Specification.new('mruby-io') do |spec|
spec.cc.include_paths << "#{build.root}/src"
- if for_windows?
+ if spec.for_windows?
spec.linker.libraries << "ws2_32"
end
spec.add_test_dependency 'mruby-time', core: 'mruby-time'

MODIFY
mrbgems/mruby-socket/mrbgem.rake
mrbgems/mruby-socket/mrbgem.rake
@@ -7,7 +7,7 @@ MRuby::Gem::Specification.new('mruby-socket') do |spec|
#spec.cc.defines << "HAVE_SA_LEN=0"
# If Windows, use winsock
- if for_windows?
+ if spec.for_windows?
spec.linker.libraries << "wsock32"
spec.linker.libraries << "ws2_32"
end

mrbgem.rake: avoid implicit receivers in `mrbgem.rake`.