mongrel2 0.50.0 → 0.50.1

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
- SHA1:
3
- metadata.gz: 7578443cf1e0162babc6ea4010691f6c3ab10984
4
- data.tar.gz: 6e7268702b1f8c3e2838c122a4e744f2330ebf06
2
+ SHA256:
3
+ metadata.gz: 6071b1726945f18797218f69ab048db0e4cbb88de43a09f00c38c461608a4b2f
4
+ data.tar.gz: c6a9fc214e766fa997d69bf1f3faa488d06bb810bd4428c91da5e9192b16d871
5
5
  SHA512:
6
- metadata.gz: f9be1e69de5c7d0cea4b2b623fdd1e9d4ad22b3325bf959f38ae394494e6b5413194fc98b915e3de613438d22b7c30514a0f5bd2a59366db391efa57bb85e4cf
7
- data.tar.gz: 3cc4b31fe1627d3745f7255b7ecc7245c72c370c3175cf697d6958f2d00ebd98f8976247fe22fe8e92114d7483be9ca79248854fbb44013b6f7835711c499bb2
6
+ metadata.gz: 971c653a1dd6ab401fea6edd2f3f137dd63894318a1bf0856189759d6909d7a178fdc16e96dd5faa96b2e89d3d9bfe32fa1c7e4d6a4faa4d6a9124ceed45a246
7
+ data.tar.gz: 5ddcbdb9d2ca8bcc6fb311cac9abacc959e05c3092bf85473ce110a9456705b0a7d5db792a53b5d12bc19ea400677b11a26f27ef0f027885bdb0ad2625bbb9bf
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,3 +1,19 @@
1
+ 2017-05-31 Mahlon E. Smith <mahlon@martini.nu>
2
+
3
+ * lib/mongrel2/handler.rb, spec/mongrel2/handler_spec.rb:
4
+ Randomize the inproc selfpipe socket name.
5
+ [6beef2396fd4] [github/master, tip]
6
+
7
+ 2017-05-31 Mahlon E. Smith <mahlon@laika.com>
8
+
9
+ * .hgtags:
10
+ Added tag v0.50.0 for changeset 2c9ad9220038
11
+ [eb616ad5c4f7]
12
+
13
+ * .hgsigs:
14
+ Added signature for changeset 80a7c403b50b
15
+ [2c9ad9220038] [v0.50.0]
16
+
1
17
  2017-05-03 Michael Granger <ged@FaerieMUD.org>
2
18
 
3
19
  * lib/mongrel2/handler.rb, spec/mongrel2/handler_spec.rb:
@@ -5,7 +21,7 @@
5
21
 
6
22
  This makes it easier to test instances of handlers, as it eliminates
7
23
  the socket binding/connection.
8
- [80a7c403b50b] [tip]
24
+ [80a7c403b50b]
9
25
 
10
26
  2017-04-24 Michael Granger <ged@FaerieMUD.org>
11
27
 
@@ -39,6 +55,22 @@
39
55
  Merged with d51c321fbd83
40
56
  [4cc7ff9f8f34]
41
57
 
58
+ 2017-01-16 Mahlon E. Smith <mahlon@laika.com>
59
+
60
+ * .hgtags:
61
+ Added tag v0.48.0 for changeset cd462070f981
62
+ [d51c321fbd83]
63
+
64
+ * .hgsigs:
65
+ Added signature for changeset 50bb8c488bc4
66
+ [cd462070f981] [v0.48.0]
67
+
68
+ 2017-01-16 Mahlon E. Smith <mahlon@martini.nu>
69
+
70
+ * .gems, History.rdoc, Rakefile, lib/mongrel2.rb:
71
+ Bump Configurability dependency.
72
+ [50bb8c488bc4]
73
+
42
74
  2017-02-08 Michael Granger <ged@FaerieMUD.org>
43
75
 
44
76
  * .gems, .hoerc, Manifest.txt, README.rdoc, Rakefile,
@@ -57,22 +89,6 @@
57
89
  Convert to CZTop for zmq
58
90
  [87368e83086b]
59
91
 
60
- 2017-01-16 Mahlon E. Smith <mahlon@laika.com>
61
-
62
- * .hgtags:
63
- Added tag v0.48.0 for changeset cd462070f981
64
- [d51c321fbd83]
65
-
66
- * .hgsigs:
67
- Added signature for changeset 50bb8c488bc4
68
- [cd462070f981] [v0.48.0]
69
-
70
- 2017-01-16 Mahlon E. Smith <mahlon@martini.nu>
71
-
72
- * .gems, History.rdoc, Rakefile, lib/mongrel2.rb:
73
- Bump Configurability dependency.
74
- [50bb8c488bc4]
75
-
76
92
  2016-11-23 Mahlon E. Smith <mahlon@martini.nu>
77
93
 
78
94
  * .hgtags:
data/History.rdoc CHANGED
@@ -1,3 +1,11 @@
1
+ == v0.50.1 [2017-05-31] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ Bugfixes:
4
+
5
+ - Pin Sequel to 4.45 to avoid breaking changes.
6
+ - Randomize the inproc selfpipe socket name (mainly useful for testing).
7
+
8
+
1
9
  == v0.50.0 [2017-04-24] Michael Granger <ged@FaerieMUD.org>
2
10
 
3
11
  Bugfixes:
data/Rakefile CHANGED
@@ -28,7 +28,7 @@ hoespec = Hoe.spec 'mongrel2' do
28
28
  self.dependency 'cztop', '~> 0.11'
29
29
  self.dependency 'libxml-ruby', '~> 2.7'
30
30
  self.dependency 'loggability', '~> 0.12'
31
- self.dependency 'sequel', '~> 4.45'
31
+ self.dependency 'sequel', '= 4.45'
32
32
  self.dependency 'sqlite3', '~> 1.3'
33
33
  self.dependency 'sysexits', '~> 1.1'
34
34
  self.dependency 'tnetstring', '~> 0.3'
data/lib/mongrel2.rb CHANGED
@@ -22,10 +22,10 @@ module Mongrel2
22
22
  abort "\n\n>>> Mongrel2 requires Ruby 2.2 or later. <<<\n\n" if RUBY_VERSION < '2.2.0'
23
23
 
24
24
  # Library version constant
25
- VERSION = '0.50.0'
25
+ VERSION = '0.50.1'
26
26
 
27
27
  # Version-control revision constant
28
- REVISION = %q$Revision: 53828961c096 $
28
+ REVISION = %q$Revision: d7b71efe6141 $
29
29
 
30
30
 
31
31
  require 'mongrel2/constants'
@@ -161,9 +161,10 @@ class Mongrel2::Handler
161
161
  def run
162
162
  self.log.info "Starting up %p" % [ self ]
163
163
 
164
+ rand_id = "%d-%s" % [ Process.pid, SecureRandom.hex(8) ]
164
165
  @self_pipe = {
165
- reader: CZTop::Socket::PAIR.new( '@inproc://signal-handler' ),
166
- writer: CZTop::Socket::PAIR.new( '>inproc://signal-handler' )
166
+ reader: CZTop::Socket::PAIR.new( "@inproc://signal-handler-#{rand_id}" ),
167
+ writer: CZTop::Socket::PAIR.new( ">inproc://signal-handler-#{rand_id}" )
167
168
  }
168
169
 
169
170
  @poller = CZTop::Poller.new( @conn.request_sock, @self_pipe[:reader] )
@@ -48,9 +48,9 @@ describe Mongrel2::Handler, :db do
48
48
 
49
49
  allow( CZTop::Socket::PULL ).to receive( :new ).and_return( @request_sock )
50
50
  allow( CZTop::Socket::PUB ).to receive( :new ).and_return( @response_sock )
51
- allow( CZTop::Socket::PAIR ).to receive( :new ).with( '@inproc://signal-handler' ).
51
+ allow( CZTop::Socket::PAIR ).to receive( :new ).with( %r|@inproc://signal-handler-\d+-\w{8}| ).
52
52
  and_return( @selfpipe_reader )
53
- allow( CZTop::Socket::PAIR ).to receive( :new ).with( '>inproc://signal-handler' ).
53
+ allow( CZTop::Socket::PAIR ).to receive( :new ).with( %r|>inproc://signal-handler-\d+-\w{8}| ).
54
54
  and_return( @selfpipe_writer )
55
55
  allow( CZTop::Poller ).to receive( :new ).and_return( @poller )
56
56
 
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.50.0
4
+ version: 0.50.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -10,25 +10,30 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQ8wDQYDVQQDDAZtYWhs
14
- b24xFzAVBgoJkiaJk/IsZAEZFgdtYXJ0aW5pMRIwEAYKCZImiZPyLGQBGRYCbnUw
15
- HhcNMTYxMTE2MTkxMTMwWhcNMTcxMTE2MTkxMTMwWjA+MQ8wDQYDVQQDDAZtYWhs
16
- b24xFzAVBgoJkiaJk/IsZAEZFgdtYXJ0aW5pMRIwEAYKCZImiZPyLGQBGRYCbnUw
17
- ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDpXGN0YbMVpYv4EoiCxpQw
18
- sxKdyhlkvpvENUkpEhb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+ inYLQagqAF6goWTXgAJCdPd6SNeeSNqA6vlY7CV1Jh5kfNJJ6xu/CVij1GzCLu/5
32
+ DMOr26DBv+qLJRRC/2h34uX71q5QgeOyxvMg+7V3u/Q06DXyQ2VgeeqiwDFFpEH0
33
+ PFkdPO6ZqbTRcLfNH7mFgCBJjsfSjJrn0sPBlYyOXgCoByfZnZyrIMH/UY+lgQqS
34
+ 6Von1VDsfQm0eJh5zYZD64ZF86phSR7mUX3mXItwH04HrZwkWpvgd871DZVR3i1n
35
+ w8aNA5re5+Rt/Vvjxj5AcEnZnZiz5x959NaddQocX32Z1unHw44pzRNUur1GInfW
36
+ p4vpx2kUSFSAGjtCbDGTNV2AH8w9OU4xEmNz8c5lyoA=
32
37
  -----END CERTIFICATE-----
33
38
  date: 2017-05-31 00:00:00.000000000 Z
34
39
  dependencies:
@@ -78,14 +83,14 @@ dependencies:
78
83
  name: sequel
79
84
  requirement: !ruby/object:Gem::Requirement
80
85
  requirements:
81
- - - "~>"
86
+ - - '='
82
87
  - !ruby/object:Gem::Version
83
88
  version: '4.45'
84
89
  type: :runtime
85
90
  prerelease: false
86
91
  version_requirements: !ruby/object:Gem::Requirement
87
92
  requirements:
88
- - - "~>"
93
+ - - '='
89
94
  - !ruby/object:Gem::Version
90
95
  version: '4.45'
91
96
  - !ruby/object:Gem::Dependency
@@ -393,7 +398,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
393
398
  version: '0'
394
399
  requirements: []
395
400
  rubyforge_project:
396
- rubygems_version: 2.5.2
401
+ rubygems_version: 2.6.12
397
402
  signing_key:
398
403
  specification_version: 4
399
404
  summary: Ruby-Mongrel2 is a complete Ruby connector for Mongrel2[http://mongrel2.org/]
metadata.gz.sig CHANGED
Binary file