lib/rack/unreloader/reloader.rb
def commit(name)
        entry = {:features => monitored_features - @old_entries[name][:features] - [name], :constants=>constants_loaded_by(name)}

        @files[name] = entry
        @old_entries.delete(name)
        @monitor_files[name][0] = modified_at(name)

        defs, not_defs = entry[:constants].partition{|c| constant_defined?(c)}
        unless not_defs.empty?
          log "Constants not defined after loading #{name}: #{not_defs.join(' ')}"
        end
        unless defs.empty?
          log("New classes in #{name}: #{defs.join(' ')}") 
        end
        unless entry[:features].empty?
          log("New features in #{name}: #{entry[:features].to_a.join(' ')}") 
        end
      end
# Commit the changed state after requiring the the file, recording the new
# classes and features added by the file.
Commit the changed state after requiring the the file, recording the new
classes and features added by the file.
Commit the changed state after requiring the the file recording the new classes and features added by the file .
def commit(name)
        entry = {:features => monitored_features - @old_entries[name][:features] - [name], :constants=>constants_loaded_by(name)}
        @files[name] = entry
        @old_entries.delete(name)
        @monitor_files[name][0] = modified_at(name)
        defs, not_defs = entry[:constants].partition{|c| constant_defined?(c)}
        unless not_defs.empty?
          log "Constants not defined after loading #{name}: #{not_defs.join(' ')}"
        end
        unless defs.empty?
          log("New classes in #{name}: #{defs.join(' ')}") 
        end
        unless entry[:features].empty?
          log("New features in #{name}: #{entry[:features].to_a.join(' ')}") 
        end
      end
def commit ( name ) entry = { :features => monitored_features - @old_entries [ name ] [ :features ] - [ name ] , :constants => constants_loaded_by ( name ) } @files [ name ] = entry @old_entries . delete ( name ) @monitor_files [ name ] [ 0 ] = modified_at ( name ) defs , not_defs = entry [ :constants ] . partition { | c | constant_defined? ( c ) } unless not_defs . empty? log "Constants not defined after loading #{name}: #{not_defs.join(' ')}" end unless defs . empty? log ( "New classes in #{name}: #{defs.join(' ')}" ) end unless entry [ :features ] . empty? log ( "New features in #{name}: #{entry[:features].to_a.join(' ')}" ) end end
Commit the changed state after requiring the the file, recording the new
classes and features added by the file.
Commit the changed state after requiring the the file recording the new classes and features added by the file .
name