mongrel2 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/ChangeLog +59 -30
- data/History.rdoc +6 -0
- data/Rakefile +1 -1
- data/lib/mongrel2.rb +2 -2
- data/lib/mongrel2/httprequest.rb +8 -4
- data/lib/mongrel2/httpresponse.rb +10 -2
- data/lib/mongrel2/response.rb +1 -1
- metadata +24 -24
- metadata.gz.sig +1 -1
data.tar.gz.sig
CHANGED
Binary file
|
data/ChangeLog
CHANGED
@@ -1,8 +1,39 @@
|
|
1
|
+
2011-10-12 Michael Granger <ged@FaerieMUD.org>
|
2
|
+
|
3
|
+
* .hgtags:
|
4
|
+
Added tag v0.8.0 for changeset 27d84902263b
|
5
|
+
[51ad37ddc1cd] [tip]
|
6
|
+
|
7
|
+
* .hgsigs:
|
8
|
+
Added signature for changeset 986182bd469e
|
9
|
+
[27d84902263b] [v0.8.0]
|
10
|
+
|
11
|
+
* History.rdoc, lib/mongrel2.rb:
|
12
|
+
Bump minor version, update the History file.
|
13
|
+
[986182bd469e]
|
14
|
+
|
15
|
+
* Rakefile, lib/mongrel2/httpresponse.rb, lib/mongrel2/response.rb:
|
16
|
+
Split out the normalization of HTTP response headers into two
|
17
|
+
methods for overriding.
|
18
|
+
[16f4f041876d]
|
19
|
+
|
20
|
+
2011-10-11 Michael Granger <ged@FaerieMUD.org>
|
21
|
+
|
22
|
+
* lib/mongrel2/httprequest.rb:
|
23
|
+
Reorganized instance/class methods in httprequest.rb
|
24
|
+
[d0b82daf744e]
|
25
|
+
|
26
|
+
2011-10-10 Michael Granger <ged@FaerieMUD.org>
|
27
|
+
|
28
|
+
* .hgtags:
|
29
|
+
Adding semver tag to v0.0.1
|
30
|
+
[9f04d730e1a4]
|
31
|
+
|
1
32
|
2011-10-09 Michael Granger <ged@FaerieMUD.org>
|
2
33
|
|
3
34
|
* .hgtags:
|
4
35
|
Added tag v0.7.0 for changeset c20d38b9cd67
|
5
|
-
[db86ba6a709e]
|
36
|
+
[db86ba6a709e]
|
6
37
|
|
7
38
|
* .hgsigs:
|
8
39
|
Added signature for changeset 297e73f3ad7a
|
@@ -53,7 +84,7 @@
|
|
53
84
|
encoding headers: #content_type, #content_encoding
|
54
85
|
- Switched the specs to use Mongrel2::RequestFactory for making
|
55
86
|
request objects
|
56
|
-
[d0d1a93982fc]
|
87
|
+
[d0d1a93982fc]
|
57
88
|
|
58
89
|
2011-09-30 Michael Granger <ged@FaerieMUD.org>
|
59
90
|
|
@@ -78,7 +109,7 @@
|
|
78
109
|
|
79
110
|
* .hgtags:
|
80
111
|
Added tag v0.4.0 for changeset 25f2272fc9f8
|
81
|
-
[0b4e011b72b4]
|
112
|
+
[0b4e011b72b4] [github/master]
|
82
113
|
|
83
114
|
* .hgsigs:
|
84
115
|
Added signature for changeset 3fb74e2ce308
|
@@ -326,14 +357,18 @@
|
|
326
357
|
* Automated merge with ssh://deveiate.org/Ruby-Mongrel2
|
327
358
|
[2da76acfb8db]
|
328
359
|
|
329
|
-
* History.rdoc:
|
330
|
-
Updating History
|
331
|
-
[3b013d4918c6]
|
332
|
-
|
333
360
|
* Rakefile:
|
334
361
|
Automated merge with ssh://deveiate.org/Ruby-Mongrel2
|
335
362
|
[e3908fd8e744]
|
336
363
|
|
364
|
+
* Rakefile:
|
365
|
+
Remove ChangeLog task, since hoe-deveiate already does it
|
366
|
+
[5f4982a32949]
|
367
|
+
|
368
|
+
* History.rdoc:
|
369
|
+
Updating History
|
370
|
+
[3b013d4918c6]
|
371
|
+
|
337
372
|
* .hgtags:
|
338
373
|
Added tag v0.1.1 for changeset 42da048fe158
|
339
374
|
[2489be2693d5]
|
@@ -350,10 +385,6 @@
|
|
350
385
|
Updated rbzmq dependency
|
351
386
|
[758fe465780e]
|
352
387
|
|
353
|
-
* Rakefile:
|
354
|
-
Remove ChangeLog task, since hoe-deveiate already does it
|
355
|
-
[5f4982a32949]
|
356
|
-
|
357
388
|
* .hgtags:
|
358
389
|
Added tag v0.1.0 for changeset 55c8f01c01c6
|
359
390
|
[39b509c68142]
|
@@ -395,6 +426,10 @@
|
|
395
426
|
Merged with 3659a56af8fb
|
396
427
|
[f2201728e874]
|
397
428
|
|
429
|
+
* .hgignore:
|
430
|
+
Ignoring packaging directory
|
431
|
+
[0613976b6735]
|
432
|
+
|
398
433
|
2011-09-12 Michael Granger <ged@FaerieMUD.org>
|
399
434
|
|
400
435
|
* README.rdoc:
|
@@ -411,7 +446,7 @@
|
|
411
446
|
|
412
447
|
* .hgsigs:
|
413
448
|
Added signature for changeset 7ece186852cd
|
414
|
-
[0eb864f65172] [v0.0.1]
|
449
|
+
[0eb864f65172] [semver, v0.0.1]
|
415
450
|
|
416
451
|
* .hgignore, History.rdoc, Rakefile:
|
417
452
|
Fix release tasks, update the History.rdoc.
|
@@ -463,12 +498,6 @@
|
|
463
498
|
procedures.
|
464
499
|
[19e0a72320dd]
|
465
500
|
|
466
|
-
2011-09-13 Michael Granger <ged@FaerieMUD.org>
|
467
|
-
|
468
|
-
* .hgignore:
|
469
|
-
Ignoring packaging directory
|
470
|
-
[0613976b6735]
|
471
|
-
|
472
501
|
2011-09-10 Michael Granger <ged@FaerieMUD.org>
|
473
502
|
|
474
503
|
* bin/m2sh.rb:
|
@@ -509,6 +538,18 @@
|
|
509
538
|
* Merged with 6ea60b67e106
|
510
539
|
[6d5341f30cc4]
|
511
540
|
|
541
|
+
* Manifest.txt:
|
542
|
+
Updating the manifest for the first release
|
543
|
+
[916a79570cdc]
|
544
|
+
|
545
|
+
* examples/helloworld-handler.rb, lib/mongrel2/handler.rb:
|
546
|
+
More Handler API docs.
|
547
|
+
[47427db9b4fb]
|
548
|
+
|
549
|
+
* lib/mongrel2/handler.rb:
|
550
|
+
Adding some Mongrel2::Handler API docs.
|
551
|
+
[da95bfdf83da]
|
552
|
+
|
512
553
|
* lib/mongrel2/config/host.rb:
|
513
554
|
Adding a many_to_one association for the server belonging to a
|
514
555
|
Mongrel2::Config::Host
|
@@ -528,18 +569,6 @@
|
|
528
569
|
Adding a proftools dump of the requestdumper app
|
529
570
|
[00cbc1b89a61]
|
530
571
|
|
531
|
-
* Manifest.txt:
|
532
|
-
Updating the manifest for the first release
|
533
|
-
[916a79570cdc]
|
534
|
-
|
535
|
-
* examples/helloworld-handler.rb, lib/mongrel2/handler.rb:
|
536
|
-
More Handler API docs.
|
537
|
-
[47427db9b4fb]
|
538
|
-
|
539
|
-
* lib/mongrel2/handler.rb:
|
540
|
-
Adding some Mongrel2::Handler API docs.
|
541
|
-
[da95bfdf83da]
|
542
|
-
|
543
572
|
2011-09-08 Michael Granger <ged@FaerieMUD.org>
|
544
573
|
|
545
574
|
* README.rdoc, lib/mongrel2.rb, lib/mongrel2/config.rb,
|
data/History.rdoc
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
== v0.8.0 [2011-10-12] Michael Granger <ged@FaerieMUD.org>
|
2
|
+
|
3
|
+
- Split out the normalization of HTTP response headers into two
|
4
|
+
methods for overriding.
|
5
|
+
|
6
|
+
|
1
7
|
== v0.7.0 [2011-10-09] Michael Granger <ged@FaerieMUD.org>
|
2
8
|
|
3
9
|
- Add an optional #request attribute to Mongrel2::Response and make
|
data/Rakefile
CHANGED
@@ -47,7 +47,7 @@ end
|
|
47
47
|
ENV['VERSION'] ||= hoespec.spec.version.to_s
|
48
48
|
|
49
49
|
# Ensure the specs pass before checking in
|
50
|
-
task 'hg:precheckin' => :spec
|
50
|
+
task 'hg:precheckin' => [ :check_manifest, :check_history, :spec ]
|
51
51
|
|
52
52
|
|
53
53
|
# Rebuild the ChangeLog immediately before release
|
data/lib/mongrel2.rb
CHANGED
@@ -14,10 +14,10 @@ module Mongrel2
|
|
14
14
|
abort "\n\n>>> Mongrel2 requires Ruby 1.9.2 or later. <<<\n\n" if RUBY_VERSION < '1.9.2'
|
15
15
|
|
16
16
|
# Library version constant
|
17
|
-
VERSION = '0.
|
17
|
+
VERSION = '0.8.0'
|
18
18
|
|
19
19
|
# Version-control revision constant
|
20
|
-
REVISION = %q$Revision:
|
20
|
+
REVISION = %q$Revision: 986182bd469e $
|
21
21
|
|
22
22
|
|
23
23
|
require 'mongrel2/logging'
|
data/lib/mongrel2/httprequest.rb
CHANGED
@@ -16,16 +16,20 @@ class Mongrel2::HTTPRequest < Mongrel2::Request
|
|
16
16
|
register_request_type( self, *HANDLED_HTTP_METHODS )
|
17
17
|
|
18
18
|
|
19
|
-
# Allow the entity body of the request to be modified
|
20
|
-
attr_writer :body
|
21
|
-
|
22
|
-
|
23
19
|
### Override the type of response returned by this request type.
|
24
20
|
def self::response_class
|
25
21
|
return Mongrel2::HTTPResponse
|
26
22
|
end
|
27
23
|
|
28
24
|
|
25
|
+
#################################################################
|
26
|
+
### I N S T A N C E M E T H O D S
|
27
|
+
#################################################################
|
28
|
+
|
29
|
+
# Allow the entity body of the request to be modified
|
30
|
+
attr_writer :body
|
31
|
+
|
32
|
+
|
29
33
|
### Return +true+ if the request is an HTTP/1.1 request and its
|
30
34
|
### 'Connection' header indicates that the connection should stay
|
31
35
|
### open.
|
@@ -139,14 +139,22 @@ class Mongrel2::HTTPResponse < Mongrel2::Response
|
|
139
139
|
end
|
140
140
|
|
141
141
|
|
142
|
-
### Return the current response header as a valid HTTP string
|
142
|
+
### Return the current response header as a valid HTTP string after
|
143
|
+
### normalizing them.
|
143
144
|
def header_data
|
145
|
+
return self.normalized_headers.to_s
|
146
|
+
end
|
147
|
+
|
148
|
+
|
149
|
+
### Get a copy of the response headers table with any auto-generated or
|
150
|
+
### calulated headers set.
|
151
|
+
def normalized_headers
|
144
152
|
headers = self.headers.dup
|
145
153
|
|
146
154
|
headers[:date] ||= Time.now.httpdate
|
147
155
|
headers[:content_length] ||= self.get_content_length
|
148
156
|
|
149
|
-
return headers
|
157
|
+
return headers
|
150
158
|
end
|
151
159
|
|
152
160
|
|
data/lib/mongrel2/response.rb
CHANGED
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.
|
4
|
+
version: 0.8.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -48,11 +48,11 @@ cert_chain:
|
|
48
48
|
-----END CERTIFICATE-----
|
49
49
|
|
50
50
|
'
|
51
|
-
date: 2011-10-
|
51
|
+
date: 2011-10-12 00:00:00.000000000Z
|
52
52
|
dependencies:
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: nokogiri
|
55
|
-
requirement: &
|
55
|
+
requirement: &70231616719680 !ruby/object:Gem::Requirement
|
56
56
|
none: false
|
57
57
|
requirements:
|
58
58
|
- - ~>
|
@@ -60,10 +60,10 @@ dependencies:
|
|
60
60
|
version: '1.5'
|
61
61
|
type: :runtime
|
62
62
|
prerelease: false
|
63
|
-
version_requirements: *
|
63
|
+
version_requirements: *70231616719680
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
65
|
name: sequel
|
66
|
-
requirement: &
|
66
|
+
requirement: &70231616719240 !ruby/object:Gem::Requirement
|
67
67
|
none: false
|
68
68
|
requirements:
|
69
69
|
- - ~>
|
@@ -71,10 +71,10 @@ dependencies:
|
|
71
71
|
version: '3.26'
|
72
72
|
type: :runtime
|
73
73
|
prerelease: false
|
74
|
-
version_requirements: *
|
74
|
+
version_requirements: *70231616719240
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: amalgalite
|
77
|
-
requirement: &
|
77
|
+
requirement: &70231616718820 !ruby/object:Gem::Requirement
|
78
78
|
none: false
|
79
79
|
requirements:
|
80
80
|
- - ~>
|
@@ -82,10 +82,10 @@ dependencies:
|
|
82
82
|
version: '1.1'
|
83
83
|
type: :runtime
|
84
84
|
prerelease: false
|
85
|
-
version_requirements: *
|
85
|
+
version_requirements: *70231616718820
|
86
86
|
- !ruby/object:Gem::Dependency
|
87
87
|
name: tnetstring
|
88
|
-
requirement: &
|
88
|
+
requirement: &70231616718300 !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
91
91
|
- - ~>
|
@@ -93,10 +93,10 @@ dependencies:
|
|
93
93
|
version: '0.3'
|
94
94
|
type: :runtime
|
95
95
|
prerelease: false
|
96
|
-
version_requirements: *
|
96
|
+
version_requirements: *70231616718300
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: yajl-ruby
|
99
|
-
requirement: &
|
99
|
+
requirement: &70231616717720 !ruby/object:Gem::Requirement
|
100
100
|
none: false
|
101
101
|
requirements:
|
102
102
|
- - ~>
|
@@ -104,10 +104,10 @@ dependencies:
|
|
104
104
|
version: '0.8'
|
105
105
|
type: :runtime
|
106
106
|
prerelease: false
|
107
|
-
version_requirements: *
|
107
|
+
version_requirements: *70231616717720
|
108
108
|
- !ruby/object:Gem::Dependency
|
109
109
|
name: zmq
|
110
|
-
requirement: &
|
110
|
+
requirement: &70231616717260 !ruby/object:Gem::Requirement
|
111
111
|
none: false
|
112
112
|
requirements:
|
113
113
|
- - ~>
|
@@ -115,10 +115,10 @@ dependencies:
|
|
115
115
|
version: 2.1.4
|
116
116
|
type: :runtime
|
117
117
|
prerelease: false
|
118
|
-
version_requirements: *
|
118
|
+
version_requirements: *70231616717260
|
119
119
|
- !ruby/object:Gem::Dependency
|
120
120
|
name: hoe-mercurial
|
121
|
-
requirement: &
|
121
|
+
requirement: &70231616716720 !ruby/object:Gem::Requirement
|
122
122
|
none: false
|
123
123
|
requirements:
|
124
124
|
- - ~>
|
@@ -126,10 +126,10 @@ dependencies:
|
|
126
126
|
version: 1.3.1
|
127
127
|
type: :development
|
128
128
|
prerelease: false
|
129
|
-
version_requirements: *
|
129
|
+
version_requirements: *70231616716720
|
130
130
|
- !ruby/object:Gem::Dependency
|
131
131
|
name: hoe-highline
|
132
|
-
requirement: &
|
132
|
+
requirement: &70231616716140 !ruby/object:Gem::Requirement
|
133
133
|
none: false
|
134
134
|
requirements:
|
135
135
|
- - ~>
|
@@ -137,10 +137,10 @@ dependencies:
|
|
137
137
|
version: 0.0.1
|
138
138
|
type: :development
|
139
139
|
prerelease: false
|
140
|
-
version_requirements: *
|
140
|
+
version_requirements: *70231616716140
|
141
141
|
- !ruby/object:Gem::Dependency
|
142
142
|
name: configurability
|
143
|
-
requirement: &
|
143
|
+
requirement: &70231616715540 !ruby/object:Gem::Requirement
|
144
144
|
none: false
|
145
145
|
requirements:
|
146
146
|
- - ~>
|
@@ -148,10 +148,10 @@ dependencies:
|
|
148
148
|
version: '1.0'
|
149
149
|
type: :development
|
150
150
|
prerelease: false
|
151
|
-
version_requirements: *
|
151
|
+
version_requirements: *70231616715540
|
152
152
|
- !ruby/object:Gem::Dependency
|
153
153
|
name: rspec
|
154
|
-
requirement: &
|
154
|
+
requirement: &70231616715060 !ruby/object:Gem::Requirement
|
155
155
|
none: false
|
156
156
|
requirements:
|
157
157
|
- - ~>
|
@@ -159,10 +159,10 @@ dependencies:
|
|
159
159
|
version: '2.4'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
|
-
version_requirements: *
|
162
|
+
version_requirements: *70231616715060
|
163
163
|
- !ruby/object:Gem::Dependency
|
164
164
|
name: hoe
|
165
|
-
requirement: &
|
165
|
+
requirement: &70231616714540 !ruby/object:Gem::Requirement
|
166
166
|
none: false
|
167
167
|
requirements:
|
168
168
|
- - ~>
|
@@ -170,7 +170,7 @@ dependencies:
|
|
170
170
|
version: '2.12'
|
171
171
|
type: :development
|
172
172
|
prerelease: false
|
173
|
-
version_requirements: *
|
173
|
+
version_requirements: *70231616714540
|
174
174
|
description: ! "Ruby-Mongrel2 is a complete Ruby (1.9-only) connector for \nMongrel2[http://mongrel2.org/].\n\nThis
|
175
175
|
library includes configuration-database ORM classes, a Ruby\nimplementation of the
|
176
176
|
'm2sh' tool, a configuration DSL for generating config\ndatabases in pure Ruby,
|
metadata.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
=��>zM��G&+�!U��.
|