Skip to content

Commit 7825f6f

Browse files
committed
import
0 parents  commit 7825f6f

26 files changed

+680
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.bundle
2+
pkg
3+
tmp
4+
coverage

.rspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--color

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: ruby
2+
rvm:
3+
- 2.3.1

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gemspec

Gemfile.lock

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
PATH
2+
remote: .
3+
specs:
4+
rhino (0.0.1)
5+
rack
6+
slop
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
coveralls (0.8.15)
12+
json (>= 1.8, < 3)
13+
simplecov (~> 0.12.0)
14+
term-ansicolor (~> 1.3)
15+
thor (~> 0.19.1)
16+
tins (>= 1.6.0, < 2)
17+
diff-lcs (1.2.5)
18+
docile (1.1.5)
19+
json (2.0.2)
20+
rack (2.0.1)
21+
rake (11.3.0)
22+
rspec (3.5.0)
23+
rspec-core (~> 3.5.0)
24+
rspec-expectations (~> 3.5.0)
25+
rspec-mocks (~> 3.5.0)
26+
rspec-core (3.5.3)
27+
rspec-support (~> 3.5.0)
28+
rspec-expectations (3.5.0)
29+
diff-lcs (>= 1.2.0, < 2.0)
30+
rspec-support (~> 3.5.0)
31+
rspec-mocks (3.5.0)
32+
diff-lcs (>= 1.2.0, < 2.0)
33+
rspec-support (~> 3.5.0)
34+
rspec-support (3.5.0)
35+
simplecov (0.12.0)
36+
docile (~> 1.1.0)
37+
json (>= 1.8, < 3)
38+
simplecov-html (~> 0.10.0)
39+
simplecov-html (0.10.0)
40+
slop (4.4.1)
41+
term-ansicolor (1.3.2)
42+
tins (~> 1.0)
43+
thor (0.19.1)
44+
tins (1.12.0)
45+
46+
PLATFORMS
47+
ruby
48+
49+
DEPENDENCIES
50+
bundler
51+
coveralls
52+
rhino!
53+
rake
54+
rspec
55+
56+
BUNDLED WITH
57+
1.13.1

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2015 - 2016 Kevin Sylvestre
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.rdoc

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
= Rhino
2+
3+
Rhino is a simple Ruby server that can run rack apps. It is written as a fun experiment.
4+
5+
== Installation
6+
7+
gem install rhino
8+
9+
== Usage
10+
11+
rhino
12+
13+
== Advanced
14+
15+
rhino [options] [./config.ru]
16+
-h, --help help
17+
-v, --version version
18+
-b, --bind bind (default: 0.0.0.0)
19+
-p, --port port (default: 5000)
20+
--backlog backlog (default: 64)
21+
--reuseaddr reuseaddr (default: true)
22+
23+
== Status
24+
25+
{<img src="https://img.shields.io/travis/ksylvest/rhino.svg" />}[https://travis-ci.org/ksylvest/rhino]
26+
{<img src="https://img.shields.io/gemnasium/ksylvest/rhino.svg" />}[https://gemnasium.com/ksylvest/rhino]
27+
{<img src="https://img.shields.io/coveralls/ksylvest/rhino.svg" />}[https://coveralls.io/r/ksylvest/rhino]
28+
{<img src="https://img.shields.io/codeclimate/github/ksylvest/rhino.svg" />}[https://codeclimate.com/github/ksylvest/rhino]
29+
30+
== Copyright
31+
32+
Copyright (c) 2015 - 2016 Kevin Sylvestre. See LICENSE for details.

Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
require "bundler/gem_tasks"
2+
require "rspec/core/rake_task"
3+
4+
RSpec::Core::RakeTask.new(:spec)
5+
6+
task default: :spec

bin/rhino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env ruby
2+
3+
require 'rhino'
4+
5+
cli = Rhino::CLI.new
6+
cli.parse

lib/rhino.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require "rack"
2+
3+
require "rhino/cli"
4+
require "rhino/config"
5+
require "rhino/http"
6+
require "rhino/launcher"
7+
require "rhino/logger"
8+
require "rhino/server"
9+
require "rhino/version"
10+
11+
module Rhino
12+
def self.config
13+
@@config ||= Rhino::Config.new
14+
end
15+
16+
def self.logger
17+
@@logger ||= Rhino::Logger.new
18+
end
19+
end

0 commit comments

Comments
 (0)