mongrel2 0.39.0 → 0.40.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: 9a891b9b342ed29169b81e8d5db135f3cd4d9e1b
4
- data.tar.gz: 9467b6614c8df8892d0a6c027dfec33be3824843
3
+ metadata.gz: cb56e425208f200087682a31c176f7dd70cb0728
4
+ data.tar.gz: 6a50e163b3e0e4ce66bdee6a4adb7612e65ae920
5
5
  SHA512:
6
- metadata.gz: 52c633d2fba86266d991f5f7d6cabd735b303406b6f3c96ae734f47a2dfc77e3b45a435a35de6a7abecea03ece007e2ae64e9040c9eff34b58bb60bbb27340a7
7
- data.tar.gz: 943c432e477cccb2cde8feac08dd7f8574ee39961830f7f9f465d9b20c83f473e1b2b310854cb3ad7133da5ac1e2e139f12acc111c3a33a9d6a1a112e0eb1f9a
6
+ metadata.gz: 5cb87b9487590c9f54aacdb5696b3873b18be485bde271cfc690103d47c4f80f70d55d7294e40ae12e6e2057a4f0335a7be7691d2227561d1cd5d90d564d01e5
7
+ data.tar.gz: 3e81e6cbf784b5e49307bde6286fafdbbec5938addc6b94612e8110900189c0b4c09dc7455eaa8f5dad552ffea8e6df3fc4d3a5b1098ad1f0281c6fe5fd84f53
checksums.yaml.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,8 +1,140 @@
1
+ 2013-10-31 Michael Granger <ged@FaerieMUD.org>
2
+
3
+ * .rvm.gems, Gemfile, Rakefile, lib/mongrel2.rb,
4
+ lib/mongrel2/connection.rb, lib/mongrel2/control.rb,
5
+ spec/mongrel2/connection_spec.rb, spec/mongrel2/control_spec.rb,
6
+ spec/mongrel2/handler_spec.rb:
7
+ Revert d55e67969b87: move back to the zmq library
8
+ [a463a301914c] [tip]
9
+
10
+ 2013-10-11 Michael Granger <ged@FaerieMUD.org>
11
+
12
+ * data/mongrel2/config.sql:
13
+ Drop the xrequest table when creating the config DB.
14
+
15
+ Thanks to mahlon@martini.nu for spotting this!
16
+ [ba164dea6bb6]
17
+
18
+ 2013-09-25 Michael Granger <ged@FaerieMUD.org>
19
+
20
+ * .hgtags:
21
+ Added tag v0.39.0 for changeset 0dff8f45e583
22
+ [2c791af90d0d]
23
+
24
+ * .hgsigs:
25
+ Added signature for changeset 36202f7a03c9
26
+ [0dff8f45e583] [v0.39.0]
27
+
28
+ * History.rdoc, lib/mongrel2.rb:
29
+ Bump minor version and update history.
30
+ [36202f7a03c9]
31
+
32
+ * .rvm.gems, Rakefile:
33
+ Update deps to sequel 4.2.x
34
+ [012c74e1d21a]
35
+
36
+ 2013-09-20 Michael Granger <ged@FaerieMUD.org>
37
+
38
+ * lib/mongrel2/connection.rb, spec/mongrel2/connection_spec.rb,
39
+ spec/mongrel2/handler_spec.rb:
40
+ In ZMQ 3, PUB sockets can't have ZMQ_IDENTITY
41
+ [09cf99e4baaa]
42
+
43
+ * lib/mongrel2/handler.rb:
44
+ Don't try to close the context if it doesn't need it
45
+ [a2f00dc38fdb]
46
+
47
+ * Gemfile, Rakefile, lib/mongrel2.rb:
48
+ Move dependencies over to rbczmq.
49
+ [14bad384503a]
50
+
51
+ * Manifest.txt, spec/constants.rb, spec/helpers.rb,
52
+ spec/lib/constants.rb, spec/lib/helpers.rb, spec/lib/matchers.rb,
53
+ spec/matchers.rb, spec/mongrel2/config/directory_spec.rb,
54
+ spec/mongrel2/config/dsl_spec.rb,
55
+ spec/mongrel2/config/filter_spec.rb,
56
+ spec/mongrel2/config/handler_spec.rb,
57
+ spec/mongrel2/config/host_spec.rb, spec/mongrel2/config/log_spec.rb,
58
+ spec/mongrel2/config/proxy_spec.rb,
59
+ spec/mongrel2/config/route_spec.rb,
60
+ spec/mongrel2/config/server_spec.rb,
61
+ spec/mongrel2/config/setting_spec.rb,
62
+ spec/mongrel2/config/statistic_spec.rb,
63
+ spec/mongrel2/config/xrequest_spec.rb, spec/mongrel2/config_spec.rb,
64
+ spec/mongrel2/connection_spec.rb, spec/mongrel2/constants_spec.rb,
65
+ spec/mongrel2/control_spec.rb, spec/mongrel2/handler_spec.rb,
66
+ spec/mongrel2/httprequest_spec.rb,
67
+ spec/mongrel2/httpresponse_spec.rb, spec/mongrel2/request_spec.rb,
68
+ spec/mongrel2/response_spec.rb, spec/mongrel2/table_spec.rb,
69
+ spec/mongrel2/websocket_spec.rb, spec/mongrel2_spec.rb:
70
+ Convert specs to new RSpec 'expect' syntax.
71
+ [070611cc1b20]
72
+
73
+ * .rvm.gems, lib/mongrel2/connection.rb, lib/mongrel2/control.rb,
74
+ spec/mongrel2/connection_spec.rb, spec/mongrel2/control_spec.rb,
75
+ spec/mongrel2/handler_spec.rb:
76
+ Replace stagnant zmq library with rbczmq.
77
+ [d55e67969b87]
78
+
79
+ 2013-09-18 Michael Granger <ged@FaerieMUD.org>
80
+
81
+ * Manifest.txt, data/mongrel2/config.sql, lib/mongrel2/config.rb,
82
+ lib/mongrel2/config/server.rb, lib/mongrel2/config/xrequest.rb,
83
+ spec/mongrel2/config/dsl_spec.rb,
84
+ spec/mongrel2/config/xrequest_spec.rb:
85
+ Add support for 1.8.1's "X-Requests"
86
+ [ce2c1f560e76]
87
+
88
+ * .hgtags:
89
+ Added tag v0.38.0 for changeset 94a931fa3c89
90
+ [2e7bb3f05151]
91
+
92
+ * .hgsigs:
93
+ Added signature for changeset 0ea16429b0cf
94
+ [94a931fa3c89] [v0.38.0]
95
+
96
+ * History.rdoc, README.rdoc, lib/mongrel2.rb:
97
+ Bump minor version, update README and History.
98
+ [0ea16429b0cf]
99
+
100
+ * .hgignore, .rvm.gems, Gemfile, Rakefile:
101
+ Update dependencies, add Gemfile.
102
+ [a116fb6d0301]
103
+
104
+ * data/mongrel2/config.sql, data/mongrel2/mimetypes.sql,
105
+ lib/mongrel2/config/server.rb, spec/mongrel2/config/dsl_spec.rb:
106
+ Update to Mongrel2 1.8.1 config schema.
107
+ [df7f08063108]
108
+
109
+ 2013-09-13 Michael Granger <ged@FaerieMUD.org>
110
+
111
+ * .hgtags:
112
+ Added tag v0.37.0 for changeset 9691a05249a8
113
+ [6f18f139b1e6]
114
+
115
+ * .hgsigs:
116
+ Added signature for changeset cf053ff6b34f
117
+ [9691a05249a8] [v0.37.0]
118
+
119
+ * History.rdoc, lib/mongrel2.rb:
120
+ Bump minor version, update history.
121
+ [cf053ff6b34f]
122
+
123
+ * lib/mongrel2/config.rb, lib/mongrel2/config/host.rb,
124
+ lib/mongrel2/config/route.rb, lib/mongrel2/connection.rb,
125
+ lib/mongrel2/control.rb, lib/mongrel2/httpresponse.rb,
126
+ lib/mongrel2/jsonrequest.rb, lib/mongrel2/request.rb,
127
+ spec/lib/constants.rb, spec/lib/helpers.rb,
128
+ spec/mongrel2/config/dsl_spec.rb,
129
+ spec/mongrel2/httpresponse_spec.rb, spec/mongrel2/websocket_spec.rb:
130
+ Make explicitly-set 'nil' body also a bodiless response.
131
+ [21c8b5722a51]
132
+
1
133
  2013-08-09 Michael Granger <ged@FaerieMUD.org>
2
134
 
3
135
  * .rvm.gems:
4
136
  Update rvm gemset versions
5
- [b1ca9f2d0588] [tip]
137
+ [b1ca9f2d0588]
6
138
 
7
139
  2013-07-01 Michael Granger <ged@FaerieMUD.org>
8
140
 
@@ -84,7 +216,7 @@
84
216
  lib/mongrel2/config/handler.rb, lib/mongrel2/config/server.rb:
85
217
  Updated Config model dataset declarations for Sequel versions >
86
218
  3.42.
87
- [d1e574e548fb] [github/master]
219
+ [d1e574e548fb]
88
220
 
89
221
  2012-12-21 Michael Granger <ged@FaerieMUD.org>
90
222
 
@@ -580,7 +712,7 @@
580
712
  examples/config.rb, lib/mongrel2/config.rb,
581
713
  lib/mongrel2/httprequest.rb, spec/mongrel2/config_spec.rb:
582
714
  Change Config.settings to a Table, small fixups for async upload.
583
- [e2384875455d] [github/master@default]
715
+ [e2384875455d]
584
716
 
585
717
  * .tm_properties, data/mongrel2/bootstrap.html, examples/.env,
586
718
  examples/Procfile, examples/async-upload.rb, examples/config.rb,
data/History.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+ == v0.40.0 [2013-10-31] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ - Move back to the zmq library, as rbczmq was too unstable.
4
+ - Drop the xrequest table when creating the config DB.
5
+
6
+
1
7
  == v0.39.0 [2013-09-25] Michael Granger <ged@FaerieMUD.org>
2
8
 
3
9
  - Replace stagnant zmq library with rbczmq.
data/Rakefile CHANGED
@@ -33,7 +33,7 @@ hoespec = Hoe.spec 'mongrel2' do
33
33
  self.dependency 'yajl-ruby', '~> 1.0'
34
34
  self.dependency 'trollop', '~> 2.0'
35
35
  self.dependency 'sysexits', '~> 1.1'
36
- self.dependency 'rbczmq', '~> 1.7'
36
+ self.dependency 'zmq', '~> 2.1'
37
37
  self.dependency 'loggability','~> 0.5'
38
38
  self.dependency 'sqlite3', '~> 1.3'
39
39
 
@@ -10,6 +10,7 @@ DROP TABLE IF EXISTS mimetype;
10
10
  DROP TABLE IF EXISTS setting;
11
11
  DROP TABLE IF EXISTS directory;
12
12
  DROP TABLE IF EXISTS filter;
13
+ DROP TABLE IF EXISTS xrequest;
13
14
 
14
15
  CREATE TABLE server (id INTEGER PRIMARY KEY,
15
16
  uuid TEXT,
@@ -70,13 +70,13 @@ class Mongrel2::Connection
70
70
  self.log.debug "0mq Context is: %p" % [ ctx ]
71
71
 
72
72
  self.log.info "Connecting PULL request socket (%s)" % [ self.sub_addr ]
73
- @request_sock = ctx.socket( :PULL )
74
- @request_sock.linger = 0
73
+ @request_sock = ctx.socket( ZMQ::PULL )
74
+ @request_sock.setsockopt( ZMQ::LINGER, 0 )
75
75
  @request_sock.connect( self.sub_addr )
76
76
 
77
77
  self.log.info "Connecting PUB response socket (%s)" % [ self.pub_addr ]
78
- @response_sock = ctx.socket( :PUB )
79
- @response_sock.linger = 0
78
+ @response_sock = ctx.socket( ZMQ::PUB )
79
+ @response_sock.setsockopt( ZMQ::LINGER, 0 )
80
80
  @response_sock.connect( self.pub_addr )
81
81
  end
82
82
 
@@ -28,8 +28,8 @@ class Mongrel2::Control
28
28
  def initialize( port=DEFAULT_PORT )
29
29
  check_port( port )
30
30
  @ctx = Mongrel2.zmq_context
31
- @socket = @ctx.socket( :REQ )
32
- @socket.linger = 0
31
+ @socket = @ctx.socket( ZMQ::REQ )
32
+ @socket.setsockopt( ZMQ::LINGER, 0 )
33
33
  @socket.connect( port.to_s )
34
34
  end
35
35
 
data/lib/mongrel2.rb CHANGED
@@ -1,8 +1,7 @@
1
1
  # -*- ruby -*-
2
2
  #encoding: utf-8
3
3
 
4
- # Ensure this is used instead of 'zmq' if it's also installed
5
- gem 'rbczmq'
4
+ gem 'zmq'
6
5
 
7
6
  require 'loggability'
8
7
  require 'zmq'
@@ -25,10 +24,10 @@ module Mongrel2
25
24
  abort "\n\n>>> Mongrel2 requires Ruby 1.9.2 or later. <<<\n\n" if RUBY_VERSION < '1.9.2'
26
25
 
27
26
  # Library version constant
28
- VERSION = '0.39.0'
27
+ VERSION = '0.40.0'
29
28
 
30
29
  # Version-control revision constant
31
- REVISION = %q$Revision: 36202f7a03c9 $
30
+ REVISION = %q$Revision: 1d6f5f4d6b60 $
32
31
 
33
32
 
34
33
  require 'mongrel2/constants'
@@ -43,12 +43,12 @@ describe Mongrel2::Connection do
43
43
  request_sock = double( "request socket" )
44
44
  response_sock = double( "response socket" )
45
45
 
46
- expect( @ctx ).to receive( :socket ).with( :PULL ).and_return( request_sock )
47
- expect( request_sock ).to receive( :linger= ).with( 0 )
46
+ expect( @ctx ).to receive( :socket ).with( ZMQ::PULL ).and_return( request_sock )
47
+ expect( request_sock ).to receive( :setsockopt ).with( ZMQ::LINGER, 0 )
48
48
  expect( request_sock ).to receive( :connect ).with( TEST_SEND_SPEC )
49
49
 
50
- expect( @ctx ).to receive( :socket ).with( :PUB ).and_return( response_sock )
51
- expect( response_sock ).to receive( :linger= ).with( 0 )
50
+ expect( @ctx ).to receive( :socket ).with( ZMQ::PUB ).and_return( response_sock )
51
+ expect( response_sock ).to receive( :setsockopt ).with( ZMQ::LINGER, 0 )
52
52
  expect( response_sock ).to_not receive( :identity= )
53
53
  expect( response_sock ).to receive( :connect ).with( TEST_RECV_SPEC )
54
54
 
@@ -63,11 +63,11 @@ describe Mongrel2::Connection do
63
63
  context "after a connection has been established" do
64
64
 
65
65
  before( :each ) do
66
- @request_sock = double( "request socket", :linger= => nil, :connect => nil )
67
- @response_sock = double( "response socket", :linger= => nil, :connect => nil )
66
+ @request_sock = double( "request socket", :setsockopt => nil, :connect => nil )
67
+ @response_sock = double( "response socket", :setsockopt => nil, :connect => nil )
68
68
 
69
- allow( @ctx ).to receive( :socket ).with( :PULL ).and_return( @request_sock )
70
- allow( @ctx ).to receive( :socket ).with( :PUB ).and_return( @response_sock )
69
+ allow( @ctx ).to receive( :socket ).with( ZMQ::PULL ).and_return( @request_sock )
70
+ allow( @ctx ).to receive( :socket ).with( ZMQ::PUB ).and_return( @response_sock )
71
71
 
72
72
  @conn.connect
73
73
  end
@@ -92,10 +92,10 @@ describe Mongrel2::Connection do
92
92
  end
93
93
 
94
94
  it "doesn't keep its request and response sockets when duped" do
95
- request_sock2 = double( "request socket", :linger= => nil, :connect => nil )
96
- response_sock2 = double( "response socket", :linger= => nil, :connect => nil )
97
- allow( @ctx ).to receive( :socket ).with( :PULL ).and_return( request_sock2 )
98
- allow( @ctx ).to receive( :socket ).with( :PUB ).and_return( response_sock2 )
95
+ request_sock2 = double( "request socket", :setsockopt => nil, :connect => nil )
96
+ response_sock2 = double( "response socket", :setsockopt => nil, :connect => nil )
97
+ allow( @ctx ).to receive( :socket ).with( ZMQ::PULL ).and_return( request_sock2 )
98
+ allow( @ctx ).to receive( :socket ).with( ZMQ::PUB ).and_return( response_sock2 )
99
99
 
100
100
  duplicate = @conn.dup
101
101
 
@@ -18,8 +18,8 @@ describe Mongrel2::Control do
18
18
 
19
19
  before( :each ) do
20
20
  @ctx = double( "ZMQ::Context" )
21
- @socket = double( "ZMQ REQ socket", :connect => nil, :linger= => nil )
22
- allow( @ctx ).to receive( :socket ).with( :REQ ).and_return( @socket )
21
+ @socket = double( "ZMQ REQ socket", :connect => nil, :setsockopt => nil )
22
+ allow( @ctx ).to receive( :socket ).with( ZMQ::REQ ).and_return( @socket )
23
23
 
24
24
  Mongrel2.instance_variable_set( :@zmq_ctx, @ctx )
25
25
 
@@ -47,11 +47,11 @@ describe Mongrel2::Handler do
47
47
  # Ensure 0MQ never actually gets called
48
48
  before( :each ) do
49
49
  @ctx = double( '0mq context', close: nil )
50
- @request_sock = double( "request socket", :linger= => nil, :connect => nil, :close => nil )
51
- @response_sock = double( "response socket", :linger= => nil, :connect => nil, :close => nil )
50
+ @request_sock = double( "request socket", :setsockopt => nil, :connect => nil, :close => nil )
51
+ @response_sock = double( "response socket", :setsockopt => nil, :connect => nil, :close => nil )
52
52
 
53
- allow( @ctx ).to receive( :socket ).with( :PULL ).and_return( @request_sock )
54
- allow( @ctx ).to receive( :socket ).with( :PUB ).and_return( @response_sock )
53
+ allow( @ctx ).to receive( :socket ).with( ZMQ::PULL ).and_return( @request_sock )
54
+ allow( @ctx ).to receive( :socket ).with( ZMQ::PUB ).and_return( @response_sock )
55
55
 
56
56
  allow( ZMQ ).to receive( :select ).and_return([ [@request_sock], [], [] ])
57
57
 
data.tar.gz.sig CHANGED
Binary file
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.39.0
4
+ version: 0.40.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -30,7 +30,7 @@ cert_chain:
30
30
  6mKCwjpegytE0oifXfF8k75A9105cBnNiMZOe1tXiqYc/exCgWvbggurzDOcRkZu
31
31
  /YSusaiDXHKU2O3Akc3htA==
32
32
  -----END CERTIFICATE-----
33
- date: 2013-09-25 00:00:00.000000000 Z
33
+ date: 2013-11-08 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: nokogiri
@@ -117,19 +117,19 @@ dependencies:
117
117
  - !ruby/object:Gem::Version
118
118
  version: '1.1'
119
119
  - !ruby/object:Gem::Dependency
120
- name: rbczmq
120
+ name: zmq
121
121
  requirement: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - ~>
124
124
  - !ruby/object:Gem::Version
125
- version: '1.7'
125
+ version: '2.1'
126
126
  type: :runtime
127
127
  prerelease: false
128
128
  version_requirements: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - ~>
131
131
  - !ruby/object:Gem::Version
132
- version: '1.7'
132
+ version: '2.1'
133
133
  - !ruby/object:Gem::Dependency
134
134
  name: loggability
135
135
  requirement: !ruby/object:Gem::Requirement
@@ -409,7 +409,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
409
409
  version: '0'
410
410
  requirements: []
411
411
  rubyforge_project: mongrel2
412
- rubygems_version: 2.1.4
412
+ rubygems_version: 2.1.10
413
413
  signing_key:
414
414
  specification_version: 4
415
415
  summary: Ruby-Mongrel2 is a complete Ruby connector for Mongrel2[http://mongrel2.org/]
metadata.gz.sig CHANGED
Binary file