Sha256: 1213392fbc17c25fb52493580728f4a86d15d2b24d702fde59c43b014c9a5ad8

Contents?: true

Size: 796 Bytes

Versions: 1

Compression:

Stored size: 796 Bytes

Contents

= Autoreload

* home: http://rubyworks.github.com/autoreload
* work: http://github.com/rubyworks/autoreload


== DESCRIPTION

Autoreload automatically reloads library files when they have been
updated. It is especailly useful when testing stateless services
such as web applications.


== HOW TO USE

Say we have a library <tt>foo.rb</tt> in our load path:

  def foo
    1
  end

We can then run the following script, <tt>example.rb</tt>:

  require 'autoreload'
  require 'foo'

  autoreload('foo.rb', :interval=>2, :verbose=>true)

  loop {
    puts foo
    sleep 2
  }

With that running we can change <tt>foo.rb</tt> and the change will take 
effect in <tt>example.rb</tt> within two seconds of being made.


== COPYRIGHT

Copyright (c) 2007 Kouichirou Eto

Copyright (c) 2010 Thomas Sawyer

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
autoreload-0.2.0 README.rdoc