lib/nanoc.rb in nanoc-4.8.16 vs lib/nanoc.rb in nanoc-4.8.17
- old
+ new
@@ -1,7 +1,16 @@
# frozen_string_literal: true
+# Load external dependencies
+require 'addressable'
+require 'ddplugin'
+require 'hamster'
+require 'ref'
+require 'slow_enumerator_tools'
+require 'ddmemoize'
+require 'ddtelemetry'
+
module Nanoc
# @return [String] A string containing information about this Nanoc version
# and its environment (Ruby engine and version, Rubygems version if any).
#
# @api private
@@ -14,18 +23,12 @@
#
# @api private
def self.on_windows?
RUBY_PLATFORM =~ /windows|bccwin|cygwin|djgpp|mingw|mswin|wince/i
end
-end
-# Load external dependencies
-require 'addressable'
-require 'ddplugin'
-require 'hamster'
-require 'ref'
-require 'slow_enumerator_tools'
-require 'ddtelemetry'
+ MEMOIZATION_TELEMETRY = DDTelemetry.new
+end
# Load general requirements
require 'cgi'
require 'digest'
require 'English'