mongrel2 0.42.0.pre.410 → 0.42.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3766dd494bafe1cb6951b33558dd4ff1d1d16c8d
4
- data.tar.gz: 8294c6f3cf50394577f1e47c4a0bc16c38a7f19a
3
+ metadata.gz: 67b350991e9a1fb755ab31a976e2ed25cf892834
4
+ data.tar.gz: 47b3e6e4899b4e0264f3e7e942403c1e76c0c088
5
5
  SHA512:
6
- metadata.gz: 7516fc093d2c0c73c2d8f9e85c6b465372cba92896ea9de10b0cf127b35bf6b9c4c43cf344518b1bcded93278151794869c6b5a7731711fdad42663f4bdd1844
7
- data.tar.gz: 117b6e5335b6c9716c577c1f859141988c9823c27c20d274eb6648255ea37b11abf9f0095d2457273f5fba403986ff51e6b087cfd722259e38ee2752086cfdec
6
+ metadata.gz: 31834138627739c658fb0835498b32dafac43ff4eaa442f266193a875638accea82e0b97392aaa947d0bdd161e330ba44d8cc6ee3efb72444531e946266843a2
7
+ data.tar.gz: 3d526fb3b48882ca19667eef7bf9e4c8d27e904053b9e461cb847274616c0ccab0c3f46fb24e74cd0558f9719d656af43434a19f8a0fc0aa1e1ab5592440d022
Binary file
data.tar.gz.sig CHANGED
@@ -1,3 +1 @@
1
- P���t�U2V�V��/�$�~�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�?�_Ekl�~�CIR�A�8���m� LFi��&����O`��`8W��z ���j۫77���`Kl^p�_��D��d�VC�~����6���ނHz�T��V�&v^q&�Ǯx
@@ -1,3 +1,8 @@
1
+ == v0.42.0 [2014-08-27] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ Add support for sending extended replies.
4
+
5
+
1
6
  == v0.41.0 [2014-02-02] Michael Granger <ged@FaerieMUD.org>
2
7
 
3
8
  - Convert back to rbczmq for modern mongrel2s
@@ -24,6 +24,7 @@ examples/helloworld-handler.rb
24
24
  examples/request-dumper.rb
25
25
  examples/request-dumper.tmpl
26
26
  examples/run
27
+ examples/sendfile.rb
27
28
  examples/ws-echo.rb
28
29
  lib/mongrel2.rb
29
30
  lib/mongrel2/config.rb
@@ -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
+
@@ -28,7 +28,7 @@ module Mongrel2
28
28
  VERSION = '0.42.0'
29
29
 
30
30
  # Version-control revision constant
31
- REVISION = %q$Revision: 2915d3c8a0e3 $
31
+ REVISION = %q$Revision: b8be09d1fd14 $
32
32
 
33
33
 
34
34
  require 'mongrel2/constants'
@@ -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.pre.410
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-06-27 00:00:00.000000000 Z
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: 1.3.1
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
- �݆�0�k 6��s����eO>� +��ԍ�T%�-�IN��+[���Rvx�u�47� �{��sF��T�� Ҩ��\����_�չ��$f��r���R�?/^��UV٩�YLQ��j/^ߣ�[&`Q��g7D7��� ����W,R���&��bU8n�q�>B�OhW��x�E�ӿ:����I��-�QP�7���I��b�ݟ"G�:����r��JGY[)Ų�տ{�V�л~LC+F&":�ב��ul0�Jė
1
+ ��~v���<+�`f�� � 0�*Ɏ��� ��� 7z�#K(��<Ca&�9��'E�B$��UZ�Yb$ �?�•��Z͍�Y:oA
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