Skip to content

pengfei888/sinatra-mozilla

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

281 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sinatra based Moziila implementation

For an example application using OmniAuth and the FileBackend see dullahan.

Setup

We use NGINX and Phusion Passenger for deployment but you are free to choose any other Rack compatible webserver.

Warning!

If you serve files statically with nginx, apache, etc... don't make their location the document root. If you need them to be served statically instead use another server instance w/o sinatra-webdav or enable X-Sendfile.

Requirements

Ruby 1.9.2

Development

We choose the litmus testing suite for the time being. It runs on Linux, Solaris, FreeBSD, CygWin, and many other Unix systems.

You need a working build system (autoconf, make, ...).

To run the litmus test suite:

1. $ cd test
2. $ passenger start -d
3. $ ./litmus_test.rb

This extracts litmus, configures, compiles and runs it.

TODO

.. see SUGGESTIONS.md.

Contact

Florian Aßmann

About

helpers do def number_to_human_size(bytes) units = ['B', 'KB', 'MB', 'GB'] return "0 B" if bytes == 0 exp = (Math.log(bytes) / Math.log(1024)).to_i exp = 3 if exp > 3 "%.1f %s" % [bytes.to_f / (1024 ** exp), units[exp]] end end

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Ruby 100.0%