mongrel2 0.42.0.pre.410 → 0.42.0
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -3
- data/History.rdoc +5 -0
- data/Manifest.txt +1 -0
- data/examples/sendfile.rb +39 -0
- data/lib/mongrel2.rb +1 -1
- data/lib/mongrel2/connection.rb +1 -1
- metadata +5 -4
- metadata.gz.sig +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67b350991e9a1fb755ab31a976e2ed25cf892834
|
4
|
+
data.tar.gz: 47b3e6e4899b4e0264f3e7e942403c1e76c0c088
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31834138627739c658fb0835498b32dafac43ff4eaa442f266193a875638accea82e0b97392aaa947d0bdd161e330ba44d8cc6ee3efb72444531e946266843a2
|
7
|
+
data.tar.gz: 3d526fb3b48882ca19667eef7bf9e4c8d27e904053b9e461cb847274616c0ccab0c3f46fb24e74cd0558f9719d656af43434a19f8a0fc0aa1e1ab5592440d022
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,3 +1 @@
|
|
1
|
-
|
2
|
-
@��
|
3
|
-
B�:X�Lb�ҙ�)�Vӥ��~,��Ϯó�D��D���5�B�+����d+3x���y�ӛ�k�J��|vN�KCO��o��������E�M2VX�uy'<���i�cw߁�y�M����vƸ���g����_�h-����}PӍh�ǩ��L��'f�t�;������?������v�8t���YT"6�������J�
|
1
|
+
��$���RZ��1���"�!�^`(j��~ƶ�X���K�Se��U��\��N�'�4Q&Q�� Q�[�@A�S;�{�e����>��n�9���1\� �>����K��3��Ƙ{x=5�R{"4�,������t�?�_E�kl�~�CIR�A�8���m� LFi��&����O`��`8W��z ���j۫77���`Kl^p�_��D��d�VC�~����6���ނHz�T��V�&v^q&�Ǯx
|
data/History.rdoc
CHANGED
data/Manifest.txt
CHANGED
@@ -0,0 +1,39 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'pathname'
|
4
|
+
require 'loggability'
|
5
|
+
require 'mongrel2/config'
|
6
|
+
require 'mongrel2/handler'
|
7
|
+
|
8
|
+
# A handler that sends itself in a 'sendfile' extended response.
|
9
|
+
class SendfileQuine < Mongrel2::Handler
|
10
|
+
|
11
|
+
### Get the fully-qualified path to the handler on startup
|
12
|
+
def initialize( * )
|
13
|
+
super
|
14
|
+
@path = Pathname( __FILE__ ).expand_path
|
15
|
+
@size = @path.size
|
16
|
+
end
|
17
|
+
|
18
|
+
|
19
|
+
### Handle a request
|
20
|
+
def handle( request )
|
21
|
+
response = request.response
|
22
|
+
|
23
|
+
response.headers.content_type = 'text/plain'
|
24
|
+
response.headers.content_length = @size
|
25
|
+
response.extend_reply_with( :sendfile )
|
26
|
+
response.extended_reply_data << @path.to_s
|
27
|
+
|
28
|
+
response
|
29
|
+
end
|
30
|
+
|
31
|
+
end # class RequestDumper
|
32
|
+
|
33
|
+
Loggability.level = :debug
|
34
|
+
|
35
|
+
# Point to the config database, which will cause the handler to use
|
36
|
+
# its ID to look up its own socket info.
|
37
|
+
Mongrel2::Config.configure( :configdb => 'examples.sqlite' )
|
38
|
+
SendfileQuine.run( 'sendfile-quine' )
|
39
|
+
|
data/lib/mongrel2.rb
CHANGED
data/lib/mongrel2/connection.rb
CHANGED
@@ -165,7 +165,7 @@ class Mongrel2::Connection
|
|
165
165
|
|
166
166
|
|
167
167
|
### Send the given +data+ to one or more connected clients identified by +client_ids+
|
168
|
-
### via the server specified by +sender_id+ as an extended reply of type
|
168
|
+
### via the server specified by +sender_id+ as an extended reply of type
|
169
169
|
### +response_type+. The +client_ids+ should be an Array of Integer IDs no longer
|
170
170
|
### than Mongrel2::MAX_IDENTS.
|
171
171
|
def broadcast_extended( sender_id, conn_ids, response_type, *data )
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongrel2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.42.0
|
4
|
+
version: 0.42.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
c7ZKPJcWBv0sm81+FCZXNACn2f9jfF8OQinxVs0O052KbGuEQaaiGIYeuuwQE2q6
|
31
31
|
ggcrPfcYeTwWlfZPu2LrBg==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2014-
|
33
|
+
date: 2014-08-27 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: sequel
|
@@ -329,6 +329,7 @@ files:
|
|
329
329
|
- examples/request-dumper.rb
|
330
330
|
- examples/request-dumper.tmpl
|
331
331
|
- examples/run
|
332
|
+
- examples/sendfile.rb
|
332
333
|
- examples/ws-echo.rb
|
333
334
|
- lib/mongrel2.rb
|
334
335
|
- lib/mongrel2/config.rb
|
@@ -406,9 +407,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
406
407
|
version: 1.9.2
|
407
408
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
408
409
|
requirements:
|
409
|
-
- - "
|
410
|
+
- - ">="
|
410
411
|
- !ruby/object:Gem::Version
|
411
|
-
version:
|
412
|
+
version: '0'
|
412
413
|
requirements: []
|
413
414
|
rubyforge_project:
|
414
415
|
rubygems_version: 2.2.2
|
metadata.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
��~v���<+�`f�� � 0�*Ɏ��� ���7�z�#K�(��<Ca&�9��'E�B$��U�Z�Yb$�?���Z͍�Y:o�A�
|
2
|
+
V6K�>CrT�:q�� �?���~���j�֎�u��&������8&EB��Y�<�)?[��;�R*5���b��� �ə��z�G�77^��X3�o�)Կe���C��!z��8ٝ�7� B頢��?�o�����Ĕ�@�u��Y���t{3�V������L��C
|