Sha256: 63fa2d0c0b7b724b69834a4ada78f4e7f8cab19875a1d0b013ffc85bafc70e8a

Contents?: true

Size: 486 Bytes

Versions: 9

Compression:

Stored size: 486 Bytes

Contents

module Lookbook
  class FileWatcher
    class << self
      def new(...)
        file_watcher.new(...)
      end

      def evented?
        !(file_watcher <= ActiveSupport::FileUpdateChecker)
      end

      protected

      def file_watcher
        @_file_watcher ||= begin
          require_relative "support/evented_file_update_checker"

          EventedFileUpdateChecker
        rescue LoadError
          ActiveSupport::FileUpdateChecker
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lookbook-2.3.4 lib/lookbook/file_watcher.rb
lookbook-2.3.3 lib/lookbook/file_watcher.rb
lookbook-2.3.2 lib/lookbook/file_watcher.rb
lookbook-2.3.0 lib/lookbook/file_watcher.rb
lookbook-2.2.2 lib/lookbook/file_watcher.rb
lookbook-2.2.1 lib/lookbook/file_watcher.rb
lookbook-2.2.0 lib/lookbook/file_watcher.rb
lookbook-2.1.1 lib/lookbook/file_watcher.rb
lookbook-2.1.0 lib/lookbook/file_watcher.rb