Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/ronin-rb/ronin-web-server

A custom Ruby web server based on Sinatra.
https://github.com/ronin-rb/ronin-web-server

Added Ronin::Web::Proxy::Base as a base class for Web Proxy apps.

475a0ce7c130dc65ee3ca663a7ae81972e266cb9 authored over 15 years ago by Postmodern <[email protected]>
Added YARD @example tags.

c56caeff1ee507a0076e9b12739bc4fb48e8dca3 authored over 15 years ago by Postmodern <[email protected]>
Keep comments within 80 columns.

d9021ea4c9a5d2068936d6c1c256528c94425cfc authored over 15 years ago by Postmodern <[email protected]>
Added a YARD @raise tag.

833a8cc216162cc81ac3b371b86cf4f3650cc62b authored over 15 years ago by Postmodern <[email protected]>
Removed -- and ++ RDoc syntax.

6ce7cbe4f727734082bcec84f97e6ec3e4c64729 authored over 15 years ago by Postmodern <[email protected]>
Fixed a typo.

* More like YOU LOSE THE SPELLING GAME.

4980ae9b4bbc5e291129f9832a968170b8ff0366 authored over 15 years ago by Postmodern <[email protected]>
Call Base.run!, not Base.start.

4b286480f41fa99060a83e3744c01a212509106e authored over 15 years ago by Postmodern <[email protected]>
Renamed Base.start to Base.run!.

* This will override Sinatra::Base.run!, but provide similiar behavior.

740235c73a3d636f7df49ae1e789adfd9702a464 authored over 15 years ago by Postmodern <[email protected]>
Set Sinatra's host and port values to DEFAULT_HOST and DEFAUL_PORT, respectively.

a5855fd6d71fe857fbd4719821ea0accbd81506b authored over 15 years ago by Postmodern <[email protected]>
Added Base.handlers which uses the existing Base::Server.server.

7cea3ece855432f21ebcf6724917c230a606379e authored over 15 years ago by Postmodern <[email protected]>
Copied in some code from Sinatra::Base.run!.

6cf90e9437e690ffd02322e1ed6ad2ecd2e7ce29 authored over 15 years ago by Postmodern <[email protected]>
Removed the old Rack based Web::Proxy.

f7451ebc3585fb089df719d609812e8c22f8507f authored over 15 years ago by Postmodern <[email protected]>
Added documentation for default_response.

214272ace39dd02b0f0e09e65ce0d11799234ef5 authored over 15 years ago by Postmodern <[email protected]>
Added documentation/example for the any method.

c6bb9506d713487e8f052373a5c15d4e00aad6b5 authored over 15 years ago by Postmodern <[email protected]>
Style.

1341ffa3be1cdbe5b1b80c3b0f400e13ce6ca5b9 authored over 15 years ago by Postmodern <[email protected]>
Added a simple example for Web.server.

f27bcae351beadb6b8f21fea96aa2a97bba82db1 authored over 15 years ago by Postmodern <[email protected]>
Don't expect the block given to proxy_page to return the page.

* The block should just modify the page internals.

22a2ae3b84ef27c40b668bb147ae3d5863ba77e1 authored over 15 years ago by Postmodern <[email protected]>
Added specs for proxy_page.

de28eed17bff89fef5049a69375fabb419fa6d9c authored over 15 years ago by Postmodern <[email protected]>
Refactored the proxy method to use Rack::Response objects.

184ecf88816ef637f3f7f3459756132083b71db0 authored over 15 years ago by Postmodern <[email protected]>
Pass only the response body to the block, if the arity is 1.

095848b7ba7d0fead75e1cb3771345c5b208a287 authored over 15 years ago by Postmodern <[email protected]>
Added specs for Web::Server::Helpers::Proxy.

e5b8356dbf79541d62e15c3cda1fe0060926f258 authored over 15 years ago by Postmodern <[email protected]>
Added specs for Web::Server::Hosts and the vhost based routing.

02daf493f461c6dd5f038894303c6297dcfb06ed authored over 15 years ago by Postmodern <[email protected]>
Renamed ServerHelpers to Helpers::Web::Server.

a1c02b3bacc530ac8347e8b0bee8646573591895 authored over 15 years ago by Postmodern <[email protected]>
Simplified ServerHelpers by removing self.included.

f829b5049c5dee3c84429051913443ad30893932 authored over 15 years ago by Postmodern <[email protected]>
Added a spec for requesting the index of a directory, when no index file exists.

67667a1f20dca14e30155a6c3ff2f1818648c4ea authored over 15 years ago by Postmodern <[email protected]>
Organize the code.

6c4e05f321350f59cdca83ec912f8c0796cc089d authored over 15 years ago by Postmodern <[email protected]>
Test for directory traversal when serving the contents of directories.

1b4f6d1457c85465883f1222e76e37f237465f9a authored over 15 years ago by Postmodern <[email protected]>
Forgot commit the custom content_type code.

0a6e17680cd169e03eae2c5f356e33c68a92b7b5 authored over 15 years ago by Postmodern <[email protected]>
Added specs for missing files and custom content_types.

69da2678e14e957cbedad453edf6b23423e29051 authored over 15 years ago by Postmodern <[email protected]>
Adjust spec wording.

0b40434056246d9f0f0fa15d916806b366801482 authored over 15 years ago by Postmodern <[email protected]>
Pass the index file to the block as well as return it.

44afc309dd439b93d910e6bcc4e9d3df49e32442 authored over 15 years ago by Postmodern <[email protected]>
Fixed typo in spec.

1c82977cfc96f3d8967c751c2d0e603b5ab4a178 authored over 15 years ago by Postmodern <[email protected]>
Fixed a typo where Base.indices was being inproperly initialized.

b81b0125437db36df7bf45460695cb898c3c942c authored over 15 years ago by Postmodern <[email protected]>
Fixed typo.

5fae1a20352725a6191ac3074483b0ff9467e6a4 authored over 15 years ago by Postmodern <[email protected]>
Call pass if the path does not exist.

* Let other filters/routes try to complete the request.
* If no route/filter can satisfy the req...

100c575241091bb93428efe895361c5b5f54fa9e authored over 15 years ago by Postmodern <[email protected]>
Added specs for Web::Server::Files.

5d19c935b203d1d6ddea403ce0fe4056ee9cfc01 authored over 15 years ago by Postmodern <[email protected]>
Try to keep code within 80 columns.

3e000444a624fd45a0b0f09c6076b258042db384 authored over 15 years ago by Postmodern <[email protected]>
Added self.app=, which sets @app and sets the :environment to :test.

dc31ddaae24d5f54546b46edea8731c01e5ad429 authored over 15 years ago by Postmodern <[email protected]>
Added specs for Web::Server::Base.

9f4f2ffa9866817957408f5a872303b639b3f722 authored over 15 years ago by Postmodern <[email protected]>
Fixed a bug where Base.indices weren't being set to DEFAULT_INDICES.

1de963a404de198c504e427e84044c39803f5922 authored over 15 years ago by Postmodern <[email protected]>
Halt using the response and body from the proxied request..

9ee10369ff5a37ef34e5b3413431aa40a63682c9 authored over 15 years ago by Postmodern <[email protected]>
Halt using the response from the block passed to for_host.

80d5eb1a632b99111e435c438db3ab65bc039e49 authored over 15 years ago by Postmodern <[email protected]>
Convert name_or_pattern to a String, if it isn't a Regexp.

01171340bcaf95b16aab1f809d93170eca92fd70 authored over 15 years ago by Postmodern <[email protected]>
If the name_or_pattern is a String, do a simple comparison against request.host.

* Added a more complex example.

a262c81b9f6c39bb5a7f4701e52702e8925f2fb3 authored over 15 years ago by Postmodern <[email protected]>
Added documentation to the for_host method.

54721baa294e12dd0b1072ab92e89f6e5ca1101a authored over 15 years ago by Postmodern <[email protected]>
Properly pass requests to other servers.

* Pass request.env.
* Halt using the response from the server.

57b88f20f0ad5547bd5af6de89d5b8a884bf4380 authored over 15 years ago by Postmodern <[email protected]>
Use class_def to properly define the default_response method.

86eb5c1ee510f59bd2fe1785e41863e4019b5b13 authored over 15 years ago by Postmodern <[email protected]>
Fixed multiple bugs in the map method.

* Fix bug in the matching of the PATH_INFO to the mapped path.
* Pass request.env to the mapped ...

9895b375e91f4ffd5908ccd6e5e561c93ec157d1 authored over 15 years ago by Postmodern <[email protected]>
Forgot to remove the mapped directory from the path_info before passing the request to the server.

9a5850cd0f0c4420916a5df95fbb193673dc33f5 authored over 15 years ago by Postmodern <[email protected]>
Single method modules should be merged into Base.

350ae8278659c2656685826ab8730d14e9dbe2a9 authored over 15 years ago by Postmodern <[email protected]>
Forgot to add the Mapper module, for mapping paths to sub-apps.

38da3f193e4b9d02e711d8f8fcdb569cc63f6d2c authored over 15 years ago by Postmodern <[email protected]>
Merged the Public module into Base.

* The Base server should provide similar functionality to Sinatra::Base.
* Additional functional...

da256be3bed584171cc9039022ae9d3074d15604 authored over 15 years ago by Postmodern <[email protected]>
Remove the DIR constant.

820e4395cc65b0cf60c8f5bb64a58f0808e6699b authored over 15 years ago by Postmodern <[email protected]>
Break apart dense code.

7cfc1008d36a6581bfb2f3dabaa4ebb61cabdcfa authored over 15 years ago by Postmodern <[email protected]>
Break apart dense code.

237b7283a28443ac14e1dd899e2aec4397fa50e6 authored over 15 years ago by Postmodern <[email protected]>
If the path given to return_file is a directory, call index_of and find the index file.

7d7dcd17a297010dcc0ea2691389e4abf94b4ff0 authored over 15 years ago by Postmodern <[email protected]>
Pass the index-file to the block given to index_of.

efae325d11953fd12e4835233addff90b4efbb25 authored over 15 years ago by Postmodern <[email protected]>
Added Base.indices and Base.index.

638fd0445fc696a64abc94ce0377095630151e53 authored over 15 years ago by Postmodern <[email protected]>
Allow blocks to be passed to Web.server.

* class_eval the block within Server::App.

dae62f6f9240e355e40a38194d041144008fb6cd authored over 15 years ago by Postmodern <[email protected]>
Start the Ronin Web Server in the background, when Web.start is called for the first time.

a3233fecb4d41b5f392cf815e1f0bcd3c78aae89 authored over 15 years ago by Postmodern <[email protected]>
Remove needless requirements.

65c85eb1d3db86ddce576df2db52c65652cb3963 authored over 15 years ago by Postmodern <[email protected]>
Do not pass back the page from proxy_page, if it is not a Nokogiri Document.

926dfdbcab2bde33e875ace8b7d45c2debdde8c8 authored over 15 years ago by Postmodern <[email protected]>
Fix typo.

7362d26e712f368f2f84e8571cd9ad6652684b62 authored over 15 years ago by Postmodern <[email protected]>
Use DEFAULT_HOST and DEFAULT_PORT in Base.start.

d901dd2b7cf32398f048be96e57f7863fc4b1c5a authored over 15 years ago by Postmodern <[email protected]>
Fixed a typo that was preventing handler_class from returning the Rack Handler class.

a74ba9b2a28b0d5a1ef0aa1d24b38e37b368448c authored over 15 years ago by Postmodern <[email protected]>
Allow custom content_types to be passed to file and directory methods.

* Make sure paths are expanded a head of time.

0063581d522454bf7cb4a3b2ec136e73dd9c6cb4 authored over 15 years ago by Postmodern <[email protected]>
Add the ability to specify custom content_types with return_file.

7ab2e9512cf75a9ea868929a6a7197fe46a7448a authored over 15 years ago by Postmodern <[email protected]>
Make sure the 404 page doesn't give away we're using Sinatra.

ed9855b815aded58106d5bc6cb4293b83c6e702b authored over 15 years ago by Postmodern <[email protected]>
Fix typo.

bebb76d7362e33df5027886b0d027ff3182d1420 authored over 15 years ago by Postmodern <[email protected]>
Rewrote public_dir to define before blocks.

f96692cc6128955a3a957b9673fb64debb922c93 authored over 15 years ago by Postmodern <[email protected]>
Fix typo.

c862d302743a16f87ed28d015eb8bf1820ccf772 authored over 15 years ago by Postmodern <[email protected]>
Fixed typos in namespaces.

fc352b786697da46c21b7808c74fdac84fd45642 authored over 15 years ago by Postmodern <[email protected]>
Forgot to require 'rack/utils'.

11840a1ff0f56327ebfa63d01bc1e1631d986bdc authored over 15 years ago by Postmodern <[email protected]>
Rewrote Base.default to use define_method to define default_response.

4f9afd78fdc5ac24843484e9a42529e5765f6f78 authored over 15 years ago by Postmodern <[email protected]>
Fixed a bug in the file method.

77002c8a88118afeb5f39c8942b4ce12633b6136 authored over 15 years ago by Postmodern <[email protected]>
Rewrote the Hosts module to use before blocks.

0c9728e54b414053778f8e9a8f431458657aeddc authored over 15 years ago by Postmodern <[email protected]>
Rewrote Web::Server, as a Sinatra App.

ff13b07142e4231827c795ac4e7fa8a9dd736403 authored over 15 years ago by Postmodern <[email protected]>
Default @host and @port to Server.default_host and Server.default_port, respectively.

5f11270277dd2c6569957f7258afc89a56b00e43 authored over 15 years ago by Postmodern <[email protected]>
Added Web::Server#stop.

8e07cc1cd9382a91b79c73286fbbb7a23913dbed authored over 15 years ago by Postmodern <[email protected]>
Attempt to use Thin before using Mongrel.

4762d35a8b5aaa1359fa893c5f1f96eeb9fec51a authored over 15 years ago by Postmodern <[email protected]>
Refactored Web::Server#handler_class.

2765c59253d964052ea6271c36e2beef38d6e017 authored over 15 years ago by Postmodern <[email protected]>
Added Web::Server#handler_class.

7fc41226c2fb8717fb6ae91cc8d3aa2f8936ebbc authored over 15 years ago by Postmodern <[email protected]>
Use Rack::Handler.get to find the handler class.

9faf2179b3c252d2351fe602cf1778f2b5359404 authored over 15 years ago by Postmodern <[email protected]>
Re-raise gem dependency load-errors.

cf4989e82cd3fd272a58a6960c83c3872bd42cd0 authored over 15 years ago by Postmodern <[email protected]>
Added the ability to specify the Rack handler to run the server under.

* Improved the resolving of the Rack Handler.

33c19cd9292ee778f29dcd4fc91f71edc5c637ac authored over 15 years ago by Postmodern <[email protected]>
Added more Mutex synchronize blocks.

a85210685276f325b4889b9329b2861022828913 authored over 15 years ago by Postmodern <[email protected]>
Renamed virtual_host to vhost for brevity.

a89cf47f1ea015aa08b481e57d17099ba1185a00 authored over 15 years ago by Postmodern <[email protected]>
Added some mutexes.

886f8c200a6a52d52a4f82bc47e220eb5b749267 authored over 15 years ago by Postmodern <[email protected]>
Now that blocks are called instead of instance_evaled, a config Hash is pointless.

a655bc167a9a40b3111013b9f5e5904e85dd54c4 authored over 15 years ago by Postmodern <[email protected]>
No longer instance_eval the given block passed to Web::Server.new.

* This will allow for more configurable web-servers.

c98dd752a40652a946baf03919159d8b558f6530 authored over 15 years ago by Postmodern <[email protected]>
Renamed @path_patterns to @patterns.

5d8c928145177a3476ee12b7c1605438a824cbf3 authored over 15 years ago by Postmodern <[email protected]>
Allow Server#return_file to accept an optional content_type.

5c133c091f8fab54b9309b762ae94f0c6808c54d authored over 15 years ago by Postmodern <[email protected]>
Keep code within 80 columns.

de2f4860975800d4140e0daa46d7df31ec4a399b authored over 15 years ago by Postmodern <[email protected]>
Removed Server.run.

a4fa54f3dd00e38d3284ca50a594a97929b48376 authored over 15 years ago by Postmodern <[email protected]>
Use the Server namespace.

413e7869f45c6ca970a57f004a430ded4bfa5444 authored over 15 years ago by Postmodern <[email protected]>
Added documentation.

9a6f6aaad48c087886c8748df34a0ff34e11001b authored almost 16 years ago by Postmodern <[email protected]>
Removed Diagnostics.

3384546d5502b6f8fd605d0a6f0dfcd8215aef3a authored almost 16 years ago by Postmodern <[email protected]>
Reworked the Web::Proxy to use the new Web::Server.

fdd73c5fbc888200d7a83a075caa9b2660dde27c authored almost 16 years ago by Postmodern <[email protected]>
Also delete the 'Status' value from the options Hash.

899569cbe02a345b713a1ee149615ed7be0b0716 authored almost 16 years ago by Postmodern <[email protected]>
Pass the env Hash to virtual servers.

ba18f3a2e68dcd315a61a1fd6d30b58708f78406 authored almost 16 years ago by Postmodern <[email protected]>