0.0
No commit activity in last 3 years
No release in over 3 years
A kind of Rack-Rscript web server which facilitates static files, basic authentication, and private pages.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.1, >= 1.1.7
~> 0.6, >= 0.6.4
 Project Readme

�Using the DandelionS0 gem

# file: ds0.ru

require 'dandelion_s0'

use Rack::Auth::Basic, "Restricted Area" do |user, password|
  user == 'super' && password == 'secretsauce' 
end

h = {
  pkg_src: 'http://a0.jamesrobertson.eu/qbx/r/dandelion_a2'
}

run DandelionS0.new(h)

The above example was saved as a file called ds0.ru which was executed from the command using the command rackup ds0.ru -o 0.0.0.0. It was then access from a web page using the address http://clara.home:9292/do/r/hello which prompted for a user name and password. Once the authentication was completed the web page containing the current time was displayed.

basicauthentication rack rackrscript dandelion authentication