- Bump up server verification timeout; JRuby can be incredibly slow running Rails in development mode.
- Allow for POSTs, not just GETs, on the server.
- Fixed a bug caused by trying to call
Exception#cause
without checking if it exists; this doesn't exist in older Ruby versions.
- Fixed an issue that broke compatibility with older Ruby versions, since
Net::HTTP::Get.new
could not accept aURI
object back then.
- If exceptions have a
cause
, nest that inside the JSON returned on error. - Pass 'Accept: text/html' by default when fetching from a Rails server, unless specified otherwise.
- Significant internal refactor to how Gemfiles get modified that's much more reliable; changes
:additional_gemfile_lines
into:gemfile_modifier
, and from an array ofString
s to aProc
.
- Replicate the workaround for
mime-types
into not just the Rails bootstrap Gemfile, but the Rails gemfile, too.
- Add workaround for the fact that
mime-types
3.x depends onmime-types-data
, which is incompatible with Ruby 1.x.
- Add workarounds for newer versions of
rake
anduglifier
that cause problems with Ruby 1.8.7.
- Fix a small regular-expression issue preventing
oop_rails_server
from working on a Rails version that had four digits in it (such as the recently-released 4.2.5.1).
- More tweaks to the conditions under which we lock
rack-cache
to an earlier version.
- A significantly longer timeout (30 seconds, rather than 15) for starting up the Rails server; some versions of JRuby in some environments seem to require this.
- Much better error messages when the server fails to start up, or fails verification.
- Added a workaround for the fact that Rails 3.1.x requires
rack-cache
, but a new version (1.3.0) was just released that's incompatible with Ruby < 2.x. We now pinrack-cache
to< 1.3.0
when using Rails 3.1.x.
- Much better error output if the Rails server fails to start up, and willingness to keep trying if it returns an error 500 instead of 200 -- occasionally this can happen immediately after startup, on some platforms.
- Bump up the timeout we use for verifying that the server has started up properly. Travis CI with JRuby sometimes seems to take longer than this.
- Further tweaks to the regexp we use to detect "need remote access" error -- it seems as if JRuby sometimes emits this with a newline in the middle.
- Fix issue with Ruby 1.8.x caused by trying to reference RUBY_ENGINE, which isn't defined in 1.8.x.
- Tweak regexp we use to detect "need remote access" error on "bundle install --local", since it apparently changed with a recent release of Bundler.
- Much better error reporting if the server fails to start up.
- Add
OopRailsServer::RailsServer#setup!
, which configures everything properly but does not actually start the out-of-process Rails server yet. - Allow passing paths or full URIs into
OopRailsServer::RailsServer#get
, as well as passing a separate Hash of query values. - Move question of which templates to use out of
OopRailsServer::Helpers
and intoOopRailsServer::RailsServer
. - Save away the actual exact versions of Rails and Ruby being used, as well as the
RUBY_ENGINE
, and allow callers to access them easily.
- Further fixes for the
i18n
gem version0.7.0
.
- Fix to compensate for the
i18n
gem, which released a version0.7.0
that is incompatible with Ruby 1.8.7.
- Added
json
as a dependency, since, under Ruby 1.8.7, it is not necessarily installed otherwise. stderr
is now captured to the output file of the Rails server, as well asstdout
.
- Better error messages in certain circumstances.
- Expose a
#run_command_in_rails_root!
method to allow executing arbitrary Rails-related commands in the server's root.