waitress-core 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +4 -0
- data/lib/waitress/kernel.rb +7 -0
- data/lib/waitress/version.rb +1 -1
- data/lib/waitress/vhost.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8a87d8f5bf20f6b0452be008a74dbfa1328dac1
|
4
|
+
data.tar.gz: 58f8146e2c4c63f68de3f5a41ef3cb5913bbf0fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3630c12f3e0f0a4fb866619bdd0c354b63a1ca0b0a1b7008d791c20bcba4269489f17aae2feaecd309eb691a90b19acae41188b6e874d57c11bb62339341764
|
7
|
+
data.tar.gz: b2540cb3f16aa45004b8b95ad73d368d71effacf62a387857ca8b999c529d97ce3b62af0c9e27ea80b3ce47550bc69c2a70538b8fb37f4ed2b10e0bb3df1e011
|
data/Rakefile
CHANGED
data/lib/waitress/kernel.rb
CHANGED
@@ -71,6 +71,13 @@ module ::Kernel
|
|
71
71
|
Waitress::Chef.include_absfile filename
|
72
72
|
end
|
73
73
|
|
74
|
+
# The configuration for the VHost. As described in the +Waitress::VHost+ class,
|
75
|
+
# this data is set in the config.rb file and is then read out later by the
|
76
|
+
# server. Use this to configure constants such as Social Media links, and other details
|
77
|
+
def config
|
78
|
+
$VHOST.config
|
79
|
+
end
|
80
|
+
|
74
81
|
# Returns a Hash of the GET query of the request. This may be an empty array
|
75
82
|
# if querystring was present
|
76
83
|
def get
|
data/lib/waitress/version.rb
CHANGED
data/lib/waitress/vhost.rb
CHANGED
@@ -29,9 +29,19 @@ module Waitress
|
|
29
29
|
@on_request = []
|
30
30
|
@after_request = []
|
31
31
|
|
32
|
+
@config_data = {}
|
33
|
+
|
32
34
|
enable_waitress_resources
|
33
35
|
end
|
34
36
|
|
37
|
+
# The config data of the VHost. This config data is set by the configuration
|
38
|
+
# file and can be read by the server when serving requests. This is so users
|
39
|
+
# can set data in their config.rb file and read it out on their requests. Use
|
40
|
+
# this to set constants such as Social Media IDs and other details
|
41
|
+
def config
|
42
|
+
@config_data
|
43
|
+
end
|
44
|
+
|
35
45
|
# Register a listener that will be triggered once a request has been received
|
36
46
|
# by this VHost, but before it has been passed to a listener or served. Use this
|
37
47
|
# to modify a request before it is handled.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: waitress-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jaci Brunning
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|