Changesets can be listed by changeset number.
The Git repository is here.
Changeset 81
Now handles HTTP 3xx responses from CVSweb, turning them into
Rails redirections. Searches for modules work much better as
a result.
- Comitted by: adh
- Date: Tuesday August 08 23:05:57 2006 (over 18 years ago)
Affected files:
- rool/rails/rcvsweb/trunk/app/controllers/rcvsweb_controller.rb (diff)
- rool/rails/rcvsweb/trunk/doc/README_FOR_APP (diff)
rool/rails/rcvsweb/trunk/app/controllers/rcvsweb_controller.rb:
prev. | current | |
end # From needed.each | ||
# Add the CVSweb command to the command string and execute it. | ||
60 | # We have to put this in an instance variable rather than a | |
61 | # temporary variable as otherwise send_data doesn't work... | |
command += "#{CVSWEB_LOCATION}" | ||
@output = `#{command}` | ||
... | ... | |
headers[str.slice!(0..pos - 1).strip] = str[1..-1].strip if (pos > 1) | ||
end | ||
81 | # If we find a Status header with a 300-series code, check for a | |
82 | # Location header too. If found, redirect to that location. | |
83 | ||
84 | if (headers['status']) | |
85 | code = headers['status'].to_i | |
86 | ||
87 | if (code >= 300 and code < 400 and headers['location']) | |
88 | redirect_to headers['location'] | |
89 | return | |
90 | end | |
91 | end | |
92 | ||
# For a content type of 'text/html', render within a View. Otherwise | ||
# send the data directly without a surrounding template. | ||
rool/rails/rcvsweb/trunk/doc/README_FOR_APP:
prev. | current | |
1 | ||
1 | RCVSweb v0.0.3, 08-Aug-2006 | |
=========================== | ||
RCVSweb is a Ruby On Rails wrapper around the CVSweb utility. A single | ||
... | ... | |
http://www.freebsd.org/projects/cvsweb.html | ||
26 | ||
26 | -- Last updated 08-Aug-2006. |