lib/nanoc.rb in nanoc-4.11.2 vs lib/nanoc.rb in nanoc-4.11.3

- old
+ new

@@ -19,11 +19,11 @@ # @return [Boolean] True if the current platform is Windows, false otherwise. # # @api private def self.on_windows? - RUBY_PLATFORM =~ /windows|bccwin|cygwin|djgpp|mingw|mswin|wince/i + @_on_windows ||= TTY::Platform.new.windows? end # Similar to `nil` except that it can only be compared against using # `UNDEFINED.equal?(x)`. Used in places where `nil` already has meaning, and # thus cannot be used to mean the presence of nothing. @@ -51,9 +51,12 @@ require 'tempfile' require 'time' require 'timeout' require 'tomlrb' require 'tmpdir' +require 'tty-file' +require 'tty-platform' +require 'tty-which' require 'uri' require 'yaml' # Load extracted Nanoc dependencies require 'nanoc-core'