mongrel2 0.46.0 → 0.47.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: 49700ba2e7f76c60b009989939796b167fa306a4
4
- data.tar.gz: 831cea720fb5b58e5e451a297b5754422c5acd40
3
+ metadata.gz: 9b9d1390dca7899d59ef2a7da223f34a5a6799dd
4
+ data.tar.gz: 4b1e0ab98efe6e897e6be64d31fb6a442c66802d
5
5
  SHA512:
6
- metadata.gz: cc2b3e24804bc1560fa49e85ac2ef464aeccd0c7fc3075e81bb290da92a5459402bc9754fa5bb5bfb8769da5054fa98f29ccc91af9c83fde1b43eaa63a17be8d
7
- data.tar.gz: 3491dfd9764efb5256ec50631452661d8058ecfe7e340201d88b73fdfb48a84fc28e1e7e301fea7b629d7c94f0d86c9422ccc072d6e898d62d0c8e7135bfdaa5
6
+ metadata.gz: 9734f2c23ec8f7d1dc288ff3e742a846ca10d028920f39924c793b2712f5bfa85082d2e42ce1dc0575c67b8ac9417aecbda8679fc9019a75d2afc526ae72e900
7
+ data.tar.gz: 1b509e6db95ad4698ba53c1148797c477930968f5a2af1bfd4c3aaf13541065087368d7d52592d3ef3459264415805683b5ffe42d8bd3a1109be77fbf50c73ea
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,8 +1,63 @@
1
+ 2016-11-23 Mahlon E. Smith <mahlon@martini.nu>
2
+
3
+ * History.rdoc, lib/mongrel2.rb:
4
+ Bump version, update History.
5
+ [c4ae80fe8067] [tip]
6
+
7
+ * lib/mongrel2/handler.rb, spec/mongrel2/handler_spec.rb:
8
+ Rather than waiting for GC to free up a descriptor, close spooled
9
+ request bodies outright at the end of the request lifecycle.
10
+ [d1160e5fdd52]
11
+
12
+ 2016-11-13 Michael Granger <ged@FaerieMUD.org>
13
+
14
+ * .hgtags:
15
+ Added tag v0.46.0 for changeset e7c165fb6bb2
16
+ [7f3c8162e5ef]
17
+
18
+ * .hgsigs:
19
+ Added signature for changeset a28294965462
20
+ [e7c165fb6bb2] [v0.46.0]
21
+
22
+ * History.rdoc, lib/mongrel2.rb:
23
+ Bump minor version, update history.
24
+ [a28294965462]
25
+
26
+ 2016-11-05 Michael Granger <ged@FaerieMUD.org>
27
+
28
+ * lib/mongrel2/constants.rb, lib/mongrel2/httprequest.rb,
29
+ lib/mongrel2/request.rb, lib/mongrel2/testing.rb, spec/helpers.rb,
30
+ spec/mongrel2/config/directory_spec.rb,
31
+ spec/mongrel2/config/dsl_spec.rb,
32
+ spec/mongrel2/config/handler_spec.rb,
33
+ spec/mongrel2/config/log_spec.rb,
34
+ spec/mongrel2/config/route_spec.rb,
35
+ spec/mongrel2/config/server_spec.rb, spec/mongrel2/handler_spec.rb,
36
+ spec/mongrel2/request_spec.rb:
37
+ Pull up config setup/teardown into the spec helper
38
+ [2990ebe57fc8]
39
+
40
+ * lib/mongrel2/config.rb:
41
+ Cache config mimetype table
42
+ [fc0ee5d5ceef]
43
+
1
44
  2016-11-03 Michael Granger <ged@FaerieMUD.org>
2
45
 
46
+ * .hgtags:
47
+ Added tag v0.45.1 for changeset a5d755b0cb1f
48
+ [5ab93929b6d8]
49
+
50
+ * .hgsigs:
51
+ Added signature for changeset 3bf29899020f
52
+ [a5d755b0cb1f] [v0.45.1]
53
+
54
+ * History.rdoc, lib/mongrel2.rb:
55
+ Bump the minor version, update history
56
+ [3bf29899020f]
57
+
3
58
  * lib/mongrel2/config.rb, spec/mongrel2/config_spec.rb:
4
59
  Fix an order-dependency in the specs
5
- [01254dbe61b2] [tip]
60
+ [01254dbe61b2]
6
61
 
7
62
  * Rakefile, mongrel2.gemspec:
8
63
  Fix the license name in the gemspec.
@@ -18,7 +73,7 @@
18
73
 
19
74
  * History.rdoc, lib/mongrel2.rb:
20
75
  Bump minor version, update history
21
- [0ef122fb3bb8] [github/master]
76
+ [0ef122fb3bb8]
22
77
 
23
78
  * lib/mongrel2/httprequest.rb, mongrel2.gemspec,
24
79
  spec/mongrel2/httprequest_spec.rb:
data/History.rdoc CHANGED
@@ -1,3 +1,10 @@
1
+ == v0.47.0 [2016-11-23] Mahlon E. Smith <mahlon@martini.nu>
2
+
3
+ Enhancements:
4
+
5
+ - Close spooled request bodies at the end of the request lifecycle.
6
+
7
+
1
8
  == v0.46.0 [2016-11-05] Michael Granger <ged@FaerieMUD.org>
2
9
 
3
10
  Enhancements:
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Ruby-Mongrel2 Websocket Demo
3
- * $Id$
3
+ * $Id: websock-test.js,v fea3cd02d23c 2012/03/07 16:07:50 ged $
4
4
  *
5
5
  * Author:
6
6
  * - Michael Granger <ged@FaerieMUD.org>
@@ -71,7 +71,7 @@
71
71
  </section>
72
72
 
73
73
  <footer>
74
- <p><tt>$Id$</tt></p>
74
+ <p><tt>$Id: request-dumper.tmpl,v dae4f2b16ef7 2012/06/20 17:48:00 ged $</tt></p>
75
75
  </footer>
76
76
 
77
77
  </body>
data/lib/mongrel2.rb CHANGED
@@ -25,10 +25,10 @@ module Mongrel2
25
25
  abort "\n\n>>> Mongrel2 requires Ruby 2.2 or later. <<<\n\n" if RUBY_VERSION < '2.2.0'
26
26
 
27
27
  # Library version constant
28
- VERSION = '0.46.0'
28
+ VERSION = '0.47.0'
29
29
 
30
30
  # Version-control revision constant
31
- REVISION = %q$Revision: a28294965462 $
31
+ REVISION = %q$Revision: c4ae80fe8067 $
32
32
 
33
33
 
34
34
  require 'mongrel2/constants'
@@ -260,6 +260,7 @@ class Mongrel2::Handler
260
260
  # Remove any temporarily spooled Mongrel2 files.
261
261
  begin
262
262
  if req && req.body && req.body.respond_to?( :path ) && req.body.path
263
+ req.body.close unless req.body.closed?
263
264
  File.unlink( req.body.path )
264
265
  end
265
266
  rescue Errno::ENOENT => err
@@ -306,6 +306,8 @@ describe Mongrel2::Handler, :db do
306
306
  expect( @request_sock ).to receive( :recv ).and_return( req )
307
307
 
308
308
  res = OneShotHandler.new( TEST_UUID, TEST_SEND_SPEC, TEST_RECV_SPEC ).run
309
+ request, response = res.transactions.first
310
+ expect( request.body ).to be_closed
309
311
  expect( spoolfile ).to_not exist
310
312
  end
311
313
  end
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.46.0
4
+ version: 0.47.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -10,32 +10,27 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA+MQwwCgYDVQQDDANnZWQx
14
- GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
15
- HhcNMTYwODIwMTgxNzQyWhcNMTcwODIwMTgxNzQyWjA+MQwwCgYDVQQDDANnZWQx
16
- GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
17
- ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC/JWGRHO+USzR97vXjkFgt
18
- 83qeNf2KHkcvrRTSnR64i6um/ziin0I0oX23H7VYrDJC9A/uoUa5nGRJS5Zw/+wW
19
- ENcvWVZS4iUzi4dsYJGY6yEOsXh2CcF46+QevV8iE+UmbkU75V7Dy1JCaUOyizEt
20
- TH5UHsOtUU7k9TYARt/TgYZKuaoAMZZd5qyVqhF1vV+7/Qzmp89NGflXf2xYP26a
21
- 4MAX2qqKX/FKXqmFO+AGsbwYTEds1mksBF3fGsFgsQWxftG8GfZQ9+Cyu2+l1eOw
22
- cZ+lPcg834G9DrqW2zhqUoLr1MTly4pqxYGb7XoDhoR7dd1kFE2a067+DzWC/ADt
23
- +QkcqWUm5oh1fN0eqr7NsZlVJDulFgdiiYPQiIN7UNsii4Wc9aZqBoG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X3SOeYg4FRkblUIA==
37
32
  -----END CERTIFICATE-----
38
- date: 2016-11-14 00:00:00.000000000 Z
33
+ date: 2016-11-24 00:00:00.000000000 Z
39
34
  dependencies:
40
35
  - !ruby/object:Gem::Dependency
41
36
  name: sequel
metadata.gz.sig CHANGED
Binary file