Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EmbeddedRuby.cs now supports application-specific AppBoot.rb, so move…
…d Sinatra stram hack into one. Extended File.file? and File.exist? now that Serfs can supply the information
- Loading branch information
Showing
10 changed files
with
25 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Sinatra hack | ||
# | ||
# Sinatra overrides Stream.each to limit blocks to | ||
# 8192 bytes. If we are reading from Serfs, this won't | ||
# affect our stream because it is not a _real_ stream. | ||
# Hence the following patch | ||
# | ||
class System::IO::UnmanagedMemoryStream | ||
def each | ||
rewind | ||
while buf = read(8192) | ||
yield buf | ||
end | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters