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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f2df476e9af2dc3f9b978c075e4e9692b0252ee
4
- data.tar.gz: db4607789c360eb881d5311f3b5fe7604dec348a
3
+ metadata.gz: e8a87d8f5bf20f6b0452be008a74dbfa1328dac1
4
+ data.tar.gz: 58f8146e2c4c63f68de3f5a41ef3cb5913bbf0fe
5
5
  SHA512:
6
- metadata.gz: cfb19a5cbc11798f5b3b0bd15e84623d364612fa0aa9cbd5489c53a0c2b473fc86d868913aa50383a9dcbd4c17ccbb38f946730bec582d2b2967d69d6878fe67
7
- data.tar.gz: de2bc24877d18daaff2c9bacc8215a58b6b14a58de4ff27aeaa3691fb28a7fa3694ea21989bd89f3600385600d3e7e1b66e3dded4d68d5760b885d182849b75e
6
+ metadata.gz: c3630c12f3e0f0a4fb866619bdd0c354b63a1ca0b0a1b7008d791c20bcba4269489f17aae2feaecd309eb691a90b19acae41188b6e874d57c11bb62339341764
7
+ data.tar.gz: b2540cb3f16aa45004b8b95ad73d368d71effacf62a387857ca8b999c529d97ce3b62af0c9e27ea80b3ce47550bc69c2a70538b8fb37f4ed2b10e0bb3df1e011
data/Rakefile CHANGED
@@ -11,3 +11,7 @@ Rake::TestTask.new do |t|
11
11
  t.test_files = FileList['test/unit.rb']
12
12
  t.verbose = true
13
13
  end
14
+
15
+ task :bench do
16
+ load "./bench/benchmark.rb"
17
+ end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Waitress
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -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.3
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-02 00:00:00.000000000 Z
11
+ date: 2015-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler