serve-this 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/serve-this.rb +3 -4
- data/lib/serve-this/version.rb +1 -1
- metadata +31 -3
data/lib/serve-this.rb
CHANGED
@@ -5,7 +5,7 @@ require 'serve-this/version'
|
|
5
5
|
module ServeThis
|
6
6
|
|
7
7
|
def self.from(root)
|
8
|
-
Rack::Builder.
|
8
|
+
Rack::Builder.app do
|
9
9
|
# ensure we use etags
|
10
10
|
use ::Rack::ConditionalGet
|
11
11
|
use ::Rack::ETag
|
@@ -13,9 +13,8 @@ module ServeThis
|
|
13
13
|
# we respond to HEAD requests
|
14
14
|
use ::Rack::Head
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
end.to_app
|
16
|
+
run ServeThis::App.new(root)
|
17
|
+
end
|
19
18
|
end
|
20
19
|
|
21
20
|
# this does the file serving
|
data/lib/serve-this/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serve-this
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 9
|
10
|
+
version: 0.0.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matthew Rudy Jacobs
|
@@ -34,6 +34,34 @@ dependencies:
|
|
34
34
|
version: 1.2.0
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: mocha
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 3
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
version: "0"
|
49
|
+
type: :development
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: rcov
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
version: "0"
|
63
|
+
type: :development
|
64
|
+
version_requirements: *id003
|
37
65
|
description:
|
38
66
|
email: MatthewRudyJacobs@gmail.com
|
39
67
|
executables:
|