Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
push:
pull_request:
workflow_dispatch:
# Monthly, to catch breakage from new Ruby or dependency releases
# when nothing has been pushed.
schedule:
- cron: '0 6 1 * *'

permissions:
contents: read

jobs:
test:
name: Ruby ${{ matrix.ruby }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['3.1', '3.2', '3.3', '3.4', '4.0']
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Tests
run: bundle exec rake test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ tmp
doc
web
*.gem
Gemfile.lock
68 changes: 0 additions & 68 deletions .index

This file was deleted.

14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

35 changes: 0 additions & 35 deletions Assembly

This file was deleted.

16 changes: 1 addition & 15 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,2 @@
source "https://rubygems.org"

group :development do
#gem 'detroit'
gem 'rake'
end

group :test do
gem 'minitest'
end

platforms :rbx do
gem 'psych' # yaml
gem 'rubysl', '~> 2.0'
gem 'minitest'
end
gemspec
192 changes: 107 additions & 85 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,85 +1,107 @@
# RELEASE HISTORY

## 1.2.0

Add `watch_gems` option to watch all required gems. The default
is now to only watch `.rb` files in the current working directory.

Changes:

* Add `:watch_gems` option.
* Watch current working directory only, as default.


## 1.1.0

This release is simply a maintenance release to bring the build
configuration up to date.

Changes:

* Modernize build configuration.
* Use interpolation on error message.


## 1.0.0 (2011-07-16)

This release overhauls the API. The #autoreload method now
takes a block. All libraries required within this block
will be autoreloaded. The old API will raise an error!!!
This was done to simplify the overaul design of the library
and consequently make it much more efficient, but also to
fix a rather nasty bug that prevented scripts required by
other scripts that were to be autoreloaded from autoreloading
as well.

The new design rely's solely on $LOADED_FEATURES, rather than
looking up files on the $LOAD_PATH itself. This has an important
consequence for Ruby 1.8 or older. Becuase older version of Ruby
do not put the expanded path in $LOADED_FEATURES, autoreloading
occurs regardless of whether the file has changed or not. On
Ruby 1.9+ however, where the full path is available, the file will
only be reloaded if it has changed, it does this by checking the
mtime of the file.

Changes:

* Overhaul API to use block form.
* Remove Lookup module (no longer needed).
* Fix require of require issue.


## 0.3.1 (2011-05-15)

This release simply fixes licensing issues. Autoreload is licensed
under the GPL v3.


## 0.3.0 (2010-10-14)

Changes:

* Fix issue with looking up Roller libraries.
* Switch testing framework to RSpec2.


## 0.2.0 (2010-05-10)

Changes:

* Completely reworked API.


## 0.1.0 (2010-05-01)

Changes:

* Same as original, but now a RubyWorks project.


## 0.0.1 (2007-07-01)

Changes:

* Initial release

# RELEASE HISTORY

## Unreleased (1.3.0)

A maintenance release, for Ruby 3.1 and up.

Changes:

* `Reloader#update` is public, to check for changes at once without
the thread.
* The interval can be a fraction of a second. Before, it was rounded
down, and an interval under one second made the thread spin.
* The list of watched files in verbose mode goes to standard error,
as the reload reports do.
* Drop the code for Ruby 1.8.
* Tests run on Spectrum.

Fixes:

* A change made in the same second as the last load was missed, as
times were compared in whole seconds.
* A file that failed to reload was tried again at every interval.


## 1.2.0

Add `watch_gems` option to watch all required gems. The default
is now to only watch `.rb` files in the current working directory.

Changes:

* Add `:watch_gems` option.
* Watch current working directory only, as default.


## 1.1.0

This release is simply a maintenance release to bring the build
configuration up to date.

Changes:

* Modernize build configuration.
* Use interpolation on error message.


## 1.0.0 (2011-07-16)

This release overhauls the API. The #autoreload method now
takes a block. All libraries required within this block
will be autoreloaded. The old API will raise an error!!!
This was done to simplify the overaul design of the library
and consequently make it much more efficient, but also to
fix a rather nasty bug that prevented scripts required by
other scripts that were to be autoreloaded from autoreloading
as well.

The new design rely's solely on $LOADED_FEATURES, rather than
looking up files on the $LOAD_PATH itself. This has an important
consequence for Ruby 1.8 or older. Becuase older version of Ruby
do not put the expanded path in $LOADED_FEATURES, autoreloading
occurs regardless of whether the file has changed or not. On
Ruby 1.9+ however, where the full path is available, the file will
only be reloaded if it has changed, it does this by checking the
mtime of the file.

Changes:

* Overhaul API to use block form.
* Remove Lookup module (no longer needed).
* Fix require of require issue.


## 0.3.1 (2011-05-15)

This release simply fixes licensing issues. Autoreload is licensed
under the GPL v3.


## 0.3.0 (2010-10-14)

Changes:

* Fix issue with looking up Roller libraries.
* Switch testing framework to RSpec2.


## 0.2.0 (2010-05-10)

Changes:

* Completely reworked API.


## 0.1.0 (2010-05-01)

Changes:

* Same as original, but now a RubyWorks project.


## 0.0.1 (2007-07-01)

Changes:

* Initial release

27 changes: 0 additions & 27 deletions Index.rb

This file was deleted.

Loading
Loading