Skip to content

Commit dd9d236

Browse files
arthurschreibercarlosmn
authored andcommitted
Rename on_windows to windows?
1 parent 10de7b6 commit dd9d236

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/rugged/extconf.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def sys(cmd)
1515
ret
1616
end
1717

18-
def on_windows
18+
def windows?
1919
RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
2020
end
2121

@@ -59,7 +59,7 @@ def on_windows
5959
abort "ERROR: CMake is required to build Rugged."
6060
end
6161

62-
if !on_windows && !find_executable('pkg-config')
62+
if !windows? && !find_executable('pkg-config')
6363
abort "ERROR: pkg-config is required to build Rugged."
6464
end
6565

@@ -73,7 +73,7 @@ def on_windows
7373
# "normal" libraries (and libgit2 builds) get all these when they build but we're doing it
7474
# statically so we put the libraries in by hand. It's important that we put the libraries themselves
7575
# in $LIBS or the final linking stage won't pick them up
76-
if on_windows
76+
if windows?
7777
$LDFLAGS << " " + "-L#{Dir.pwd}/deps/winhttp"
7878
$LIBS << " -lwinhttp -lcrypt32 -lrpcrt4 -lole32"
7979
else

0 commit comments

Comments
 (0)