servo 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +13 -0
- data/VERSION +1 -0
- data/bin/servo +14 -0
- data/servo.gemspec +41 -0
- metadata +85 -0
data/Rakefile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require "jeweler"
|
2
|
+
Jeweler::Tasks.new do |gemspec|
|
3
|
+
gemspec.name = "servo"
|
4
|
+
gemspec.summary = "A command-line static file server"
|
5
|
+
gemspec.files = Dir['**/*']
|
6
|
+
gemspec.description = %{
|
7
|
+
Servo makes it dead simple to serve up a static filesystem using Rack::Directory.
|
8
|
+
}
|
9
|
+
gemspec.email = "flip@x451.com"
|
10
|
+
gemspec.homepage = "http://github.com/flipsasser/servo"
|
11
|
+
gemspec.authors = ["Flip Sasser"]
|
12
|
+
gemspec.add_dependency 'rack', '>= 1.2.1'
|
13
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
data/bin/servo
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'rubygems'
|
3
|
+
require 'rack'
|
4
|
+
|
5
|
+
dir = ARGV.first && File.expand_path(ARGV.first) || Dir.pwd
|
6
|
+
|
7
|
+
servo_app = Rack::Builder.new {
|
8
|
+
run Rack::Directory.new(dir)
|
9
|
+
}
|
10
|
+
|
11
|
+
server = Rack::Server.new
|
12
|
+
server.options[:config] = nil
|
13
|
+
server.instance_variable_set('@app', servo_app)
|
14
|
+
server.start
|
data/servo.gemspec
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{servo}
|
8
|
+
s.version = "0.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Flip Sasser"]
|
12
|
+
s.date = %q{2011-02-14}
|
13
|
+
s.description = %q{
|
14
|
+
Servo makes it dead simple to serve up a static filesystem using Rack::Directory.
|
15
|
+
}
|
16
|
+
s.email = %q{flip@x451.com}
|
17
|
+
s.files = [
|
18
|
+
"Rakefile",
|
19
|
+
"VERSION",
|
20
|
+
"bin/servo",
|
21
|
+
"servo.gemspec"
|
22
|
+
]
|
23
|
+
s.homepage = %q{http://github.com/flipsasser/servo}
|
24
|
+
s.require_paths = ["lib"]
|
25
|
+
s.rubygems_version = %q{1.3.7}
|
26
|
+
s.summary = %q{A command-line static file server}
|
27
|
+
|
28
|
+
if s.respond_to? :specification_version then
|
29
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
30
|
+
s.specification_version = 3
|
31
|
+
|
32
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
33
|
+
s.add_runtime_dependency(%q<rack>, [">= 1.2.1"])
|
34
|
+
else
|
35
|
+
s.add_dependency(%q<rack>, [">= 1.2.1"])
|
36
|
+
end
|
37
|
+
else
|
38
|
+
s.add_dependency(%q<rack>, [">= 1.2.1"])
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
metadata
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: servo
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Flip Sasser
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-02-14 00:00:00 -05:00
|
19
|
+
default_executable: servo
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: rack
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 29
|
30
|
+
segments:
|
31
|
+
- 1
|
32
|
+
- 2
|
33
|
+
- 1
|
34
|
+
version: 1.2.1
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
description: "\n Servo makes it dead simple to serve up a static filesystem using Rack::Directory.\n "
|
38
|
+
email: flip@x451.com
|
39
|
+
executables:
|
40
|
+
- servo
|
41
|
+
extensions: []
|
42
|
+
|
43
|
+
extra_rdoc_files: []
|
44
|
+
|
45
|
+
files:
|
46
|
+
- Rakefile
|
47
|
+
- VERSION
|
48
|
+
- bin/servo
|
49
|
+
- servo.gemspec
|
50
|
+
has_rdoc: true
|
51
|
+
homepage: http://github.com/flipsasser/servo
|
52
|
+
licenses: []
|
53
|
+
|
54
|
+
post_install_message:
|
55
|
+
rdoc_options: []
|
56
|
+
|
57
|
+
require_paths:
|
58
|
+
- lib
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
none: false
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
hash: 3
|
65
|
+
segments:
|
66
|
+
- 0
|
67
|
+
version: "0"
|
68
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 3
|
74
|
+
segments:
|
75
|
+
- 0
|
76
|
+
version: "0"
|
77
|
+
requirements: []
|
78
|
+
|
79
|
+
rubyforge_project:
|
80
|
+
rubygems_version: 1.3.7
|
81
|
+
signing_key:
|
82
|
+
specification_version: 3
|
83
|
+
summary: A command-line static file server
|
84
|
+
test_files: []
|
85
|
+
|