mongrel2 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
@@ -1,2 +1 @@
1
- #p�ۍ�ǯ-�~>it�@5��y
2
- jfpX;�uV8�i�5�YxCR���{K�W=�G'������F���B��"�5������b�~hP��S('�'�QX�H�C�-L�ž6��+���AR�*:K!�f�d�?�װ#ES].�ߺ;�u\zr�Zz�b��2�Pf����^5:&Y�#�0�c0����5�� 7Ĺ���I�A����;"o?�~�D��ڝ�9�����I3�V�����K�[��ۡ�
1
+ &?��V���}�X����"�Xh>�7��2��/�p���Y��ҪD��v��`/v�[%Y� �b��qHP30�+m���r��!B��y +ʣ�v(�����AQ�1��{����X 6�A]U����=`�Yc��؛���&R�!�&̴K�&�u��N��0А�k�.N,�΃k�LC[��4�R ��U�'`�v.t>�y3��A�v\�%[_V�PWm!I��LF�,Mh��X� e[�� ���b�,�C�����ީ�+b�2
data/ChangeLog CHANGED
@@ -1,8 +1,13 @@
1
1
  2011-09-21 Michael Granger <ged@FaerieMUD.org>
2
2
 
3
+ * lib/mongrel2/httpresponse.rb, lib/mongrel2/response.rb:
4
+ Added a cleaned-up Mongrel2::Response#inspect like
5
+ Mongrel2::Request.
6
+ [263a11ebf987] [tip]
7
+
3
8
  * .hgtags:
4
9
  Added tag v0.2.3 for changeset 49b62d1014e9
5
- [d7e2a0fea841] [tip]
10
+ [d7e2a0fea841]
6
11
 
7
12
  * .hgsigs:
8
13
  Added signature for changeset 458a04ad8273
@@ -69,7 +74,7 @@
69
74
 
70
75
  * .hgtags:
71
76
  Added tag v0.2.0 for changeset 9828c04f097a
72
- [8d578ccedea4] [github/master]
77
+ [8d578ccedea4]
73
78
 
74
79
  * .hgsigs:
75
80
  Added signature for changeset 5c631fa35bff
@@ -137,14 +142,18 @@
137
142
  * Automated merge with ssh://deveiate.org/Ruby-Mongrel2
138
143
  [2da76acfb8db]
139
144
 
140
- * History.rdoc:
141
- Updating History
142
- [3b013d4918c6]
143
-
144
145
  * Rakefile:
145
146
  Automated merge with ssh://deveiate.org/Ruby-Mongrel2
146
147
  [e3908fd8e744]
147
148
 
149
+ * Rakefile:
150
+ Remove ChangeLog task, since hoe-deveiate already does it
151
+ [5f4982a32949]
152
+
153
+ * History.rdoc:
154
+ Updating History
155
+ [3b013d4918c6]
156
+
148
157
  * .hgtags:
149
158
  Added tag v0.1.1 for changeset 42da048fe158
150
159
  [2489be2693d5]
@@ -161,10 +170,6 @@
161
170
  Updated rbzmq dependency
162
171
  [758fe465780e]
163
172
 
164
- * Rakefile:
165
- Remove ChangeLog task, since hoe-deveiate already does it
166
- [5f4982a32949]
167
-
168
173
  * .hgtags:
169
174
  Added tag v0.1.0 for changeset 55c8f01c01c6
170
175
  [39b509c68142]
@@ -206,11 +211,15 @@
206
211
  Merged with 3659a56af8fb
207
212
  [f2201728e874]
208
213
 
214
+ * .hgignore:
215
+ Ignoring packaging directory
216
+ [0613976b6735]
217
+
209
218
  2011-09-12 Michael Granger <ged@FaerieMUD.org>
210
219
 
211
220
  * README.rdoc:
212
221
  README fixes
213
- [3659a56af8fb]
222
+ [3659a56af8fb] [github/master]
214
223
 
215
224
  * Rakefile:
216
225
  Fixing gem name
@@ -274,12 +283,6 @@
274
283
  procedures.
275
284
  [19e0a72320dd]
276
285
 
277
- 2011-09-13 Michael Granger <ged@FaerieMUD.org>
278
-
279
- * .hgignore:
280
- Ignoring packaging directory
281
- [0613976b6735]
282
-
283
286
  2011-09-10 Michael Granger <ged@FaerieMUD.org>
284
287
 
285
288
  * bin/m2sh.rb:
@@ -320,6 +323,18 @@
320
323
  * Merged with 6ea60b67e106
321
324
  [6d5341f30cc4]
322
325
 
326
+ * Manifest.txt:
327
+ Updating the manifest for the first release
328
+ [916a79570cdc]
329
+
330
+ * examples/helloworld-handler.rb, lib/mongrel2/handler.rb:
331
+ More Handler API docs.
332
+ [47427db9b4fb]
333
+
334
+ * lib/mongrel2/handler.rb:
335
+ Adding some Mongrel2::Handler API docs.
336
+ [da95bfdf83da]
337
+
323
338
  * lib/mongrel2/config/host.rb:
324
339
  Adding a many_to_one association for the server belonging to a
325
340
  Mongrel2::Config::Host
@@ -339,18 +354,6 @@
339
354
  Adding a proftools dump of the requestdumper app
340
355
  [00cbc1b89a61]
341
356
 
342
- * Manifest.txt:
343
- Updating the manifest for the first release
344
- [916a79570cdc]
345
-
346
- * examples/helloworld-handler.rb, lib/mongrel2/handler.rb:
347
- More Handler API docs.
348
- [47427db9b4fb]
349
-
350
- * lib/mongrel2/handler.rb:
351
- Adding some Mongrel2::Handler API docs.
352
- [da95bfdf83da]
353
-
354
357
  2011-09-08 Michael Granger <ged@FaerieMUD.org>
355
358
 
356
359
  * README.rdoc, lib/mongrel2.rb, lib/mongrel2/config.rb,
@@ -1,3 +1,10 @@
1
+ == v0.2.4 [2011-09-21] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ - Added a cleaned-up Mongrel2::Response#inspect like
4
+ Mongrel2::Request.
5
+ - Correct body size in inspected request/response output.
6
+
7
+
1
8
  == v0.2.3 [2011-09-21] Michael Granger <ged@FaerieMUD.org>
2
9
 
3
10
  - Change the default response status from '200 OK' to '204 No Content'
@@ -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.2.3'
17
+ VERSION = '0.2.4'
18
18
 
19
19
  # Version-control revision constant
20
- REVISION = %q$Revision: 44497043893b $
20
+ REVISION = %q$Revision: d6797487c359 $
21
21
 
22
22
 
23
23
  require 'mongrel2/logging'
@@ -57,7 +57,7 @@ class Mongrel2::HTTPRequest < Mongrel2::Request
57
57
  self.headers[:method],
58
58
  self.headers.uri,
59
59
  self.headers.version,
60
- self.body.length,
60
+ (self.body.length / 1024.0),
61
61
  ]
62
62
  end
63
63
 
@@ -185,6 +185,20 @@ class Mongrel2::HTTPResponse < Mongrel2::Response
185
185
  end
186
186
  alias_method :pipelining_enabled?, :keepalive?
187
187
 
188
+
189
+ #########
190
+ protected
191
+ #########
192
+
193
+ ### Return the details to include in the contents of the #inspected object.
194
+ def inspect_details
195
+ return %Q{%s -- %d headers, %0.2fK body} % [
196
+ self.status_line,
197
+ self.headers.length,
198
+ (self.get_content_length / 1024.0),
199
+ ]
200
+ end
201
+
188
202
  end # class Mongrel2::Response
189
203
 
190
204
  # vim: set nosta noet ts=4 sw=4:
@@ -178,10 +178,10 @@ class Mongrel2::Request
178
178
  ### method allows other request types to provide their own details while keeping
179
179
  ### the form somewhat consistent.
180
180
  def inspect_details
181
- return "%s -- %d headers, %0.2fK body" % [
181
+ return "%s -- %d headers, %p body" % [
182
182
  self.path,
183
183
  self.headers.length,
184
- self.body.length,
184
+ self.body.class,
185
185
  ]
186
186
  end
187
187
 
@@ -68,6 +68,30 @@ class Mongrel2::Response
68
68
  return self.body
69
69
  end
70
70
 
71
+ ### Returns a string containing a human-readable representation of the Response,
72
+ ### suitable for debugging.
73
+ def inspect
74
+ return "#<%p:0x%016x %s (%s/%d)>" % [
75
+ self.class,
76
+ self.object_id * 2,
77
+ self.inspect_details,
78
+ self.sender_id,
79
+ self.conn_id
80
+ ]
81
+ end
82
+
83
+
84
+ #########
85
+ protected
86
+ #########
87
+
88
+ ### Return the details to include in the contents of the #inspected object. This
89
+ ### method allows other request types to provide their own details while keeping
90
+ ### the form somewhat consistent.
91
+ def inspect_details
92
+ return "%p body" % [ self.body.class ]
93
+ end
94
+
71
95
  end # class Mongrel2::Response
72
96
 
73
97
  # vim: set nosta noet ts=4 sw=4:
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.2.3
4
+ version: 0.2.4
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-09-21 00:00:00.000000000Z
51
+ date: 2011-09-22 00:00:00.000000000Z
52
52
  dependencies:
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: nokogiri
55
- requirement: &2165508160 !ruby/object:Gem::Requirement
55
+ requirement: &70275094474160 !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: *2165508160
63
+ version_requirements: *70275094474160
64
64
  - !ruby/object:Gem::Dependency
65
65
  name: sequel
66
- requirement: &2165507360 !ruby/object:Gem::Requirement
66
+ requirement: &70275094472460 !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: *2165507360
74
+ version_requirements: *70275094472460
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: amalgalite
77
- requirement: &2165506800 !ruby/object:Gem::Requirement
77
+ requirement: &70275094471640 !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: *2165506800
85
+ version_requirements: *70275094471640
86
86
  - !ruby/object:Gem::Dependency
87
87
  name: tnetstring
88
- requirement: &2165506120 !ruby/object:Gem::Requirement
88
+ requirement: &70275094470760 !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: *2165506120
96
+ version_requirements: *70275094470760
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: yajl-ruby
99
- requirement: &2165505000 !ruby/object:Gem::Requirement
99
+ requirement: &70275094467600 !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: *2165505000
107
+ version_requirements: *70275094467600
108
108
  - !ruby/object:Gem::Dependency
109
109
  name: zmq
110
- requirement: &2165504220 !ruby/object:Gem::Requirement
110
+ requirement: &70275094462620 !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: *2165504220
118
+ version_requirements: *70275094462620
119
119
  - !ruby/object:Gem::Dependency
120
120
  name: hoe-mercurial
121
- requirement: &2165481800 !ruby/object:Gem::Requirement
121
+ requirement: &70275094461620 !ruby/object:Gem::Requirement
122
122
  none: false
123
123
  requirements:
124
124
  - - ~>
@@ -126,10 +126,10 @@ dependencies:
126
126
  version: 1.3.0
127
127
  type: :development
128
128
  prerelease: false
129
- version_requirements: *2165481800
129
+ version_requirements: *70275094461620
130
130
  - !ruby/object:Gem::Dependency
131
131
  name: hoe-highline
132
- requirement: &2165480580 !ruby/object:Gem::Requirement
132
+ requirement: &70275094460460 !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: *2165480580
140
+ version_requirements: *70275094460460
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: configurability
143
- requirement: &2165479860 !ruby/object:Gem::Requirement
143
+ requirement: &70275094459180 !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: *2165479860
151
+ version_requirements: *70275094459180
152
152
  - !ruby/object:Gem::Dependency
153
153
  name: rspec
154
- requirement: &2165478860 !ruby/object:Gem::Requirement
154
+ requirement: &70275094457960 !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: *2165478860
162
+ version_requirements: *70275094457960
163
163
  - !ruby/object:Gem::Dependency
164
164
  name: hoe
165
- requirement: &2165478000 !ruby/object:Gem::Requirement
165
+ requirement: &70275094456560 !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: *2165478000
173
+ version_requirements: *70275094456560
174
174
  description: ! "A complete Ruby connector for Mongrel2[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
Binary file