mongrel2 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,8 +1,57 @@
1
+ 2011-09-21 Michael Granger <ged@FaerieMUD.org>
2
+
3
+ * .hgtags:
4
+ Added tag v0.2.3 for changeset 49b62d1014e9
5
+ [d7e2a0fea841] [tip]
6
+
7
+ * .hgsigs:
8
+ Added signature for changeset 458a04ad8273
9
+ [49b62d1014e9] [v0.2.3]
10
+
11
+ * History.rdoc:
12
+ Update the History.
13
+ [458a04ad8273]
14
+
15
+ * lib/mongrel2.rb:
16
+ Bump the patch version for release.
17
+ [44497043893b]
18
+
19
+ * lib/mongrel2/httpresponse.rb, lib/mongrel2/testing.rb,
20
+ spec/mongrel2/httpresponse_spec.rb:
21
+ Change the default response to a 204 No Content to distinguish it
22
+ from an intentionally-empty response from a handler.
23
+ [77ddc151eace]
24
+
1
25
  2011-09-19 Michael Granger <ged@FaerieMUD.org>
2
26
 
27
+ * .hgtags:
28
+ Added tag v0.2.2 for changeset 9b1ac5f6eae4
29
+ [b117bea3d729]
30
+
31
+ * .hgsigs:
32
+ Added signature for changeset 302857f8866a
33
+ [9b1ac5f6eae4] [v0.2.2]
34
+
35
+ * History.rdoc:
36
+ Update the History file.
37
+ [302857f8866a]
38
+
39
+ * Rakefile:
40
+ Mercurial plugin config added to the Rakefile.
41
+ [03186e9ce7bc]
42
+
43
+ * lib/mongrel2.rb:
44
+ Bump the patch version.
45
+ [f1abf26d45ea]
46
+
47
+ * Manifest.txt, Rakefile:
48
+ Packaging fix: updated manifest, fix the Rakefile to prevent pushing
49
+ a partial gem in the future.
50
+ [6764306233ca]
51
+
3
52
  * .hgtags:
4
53
  Added tag v0.2.1 for changeset d1d66d73becd
5
- [6ba4c0f4f07e] [tip]
54
+ [6ba4c0f4f07e]
6
55
 
7
56
  * .hgsigs:
8
57
  Added signature for changeset 95ea49073e6c
@@ -20,7 +69,7 @@
20
69
 
21
70
  * .hgtags:
22
71
  Added tag v0.2.0 for changeset 9828c04f097a
23
- [8d578ccedea4]
72
+ [8d578ccedea4] [github/master]
24
73
 
25
74
  * .hgsigs:
26
75
  Added signature for changeset 5c631fa35bff
@@ -88,18 +137,14 @@
88
137
  * Automated merge with ssh://deveiate.org/Ruby-Mongrel2
89
138
  [2da76acfb8db]
90
139
 
91
- * Rakefile:
92
- Automated merge with ssh://deveiate.org/Ruby-Mongrel2
93
- [e3908fd8e744]
94
-
95
- * Rakefile:
96
- Remove ChangeLog task, since hoe-deveiate already does it
97
- [5f4982a32949]
98
-
99
140
  * History.rdoc:
100
141
  Updating History
101
142
  [3b013d4918c6]
102
143
 
144
+ * Rakefile:
145
+ Automated merge with ssh://deveiate.org/Ruby-Mongrel2
146
+ [e3908fd8e744]
147
+
103
148
  * .hgtags:
104
149
  Added tag v0.1.1 for changeset 42da048fe158
105
150
  [2489be2693d5]
@@ -116,6 +161,10 @@
116
161
  Updated rbzmq dependency
117
162
  [758fe465780e]
118
163
 
164
+ * Rakefile:
165
+ Remove ChangeLog task, since hoe-deveiate already does it
166
+ [5f4982a32949]
167
+
119
168
  * .hgtags:
120
169
  Added tag v0.1.0 for changeset 55c8f01c01c6
121
170
  [39b509c68142]
@@ -157,15 +206,11 @@
157
206
  Merged with 3659a56af8fb
158
207
  [f2201728e874]
159
208
 
160
- * .hgignore:
161
- Ignoring packaging directory
162
- [0613976b6735]
163
-
164
209
  2011-09-12 Michael Granger <ged@FaerieMUD.org>
165
210
 
166
211
  * README.rdoc:
167
212
  README fixes
168
- [3659a56af8fb] [github/master]
213
+ [3659a56af8fb]
169
214
 
170
215
  * Rakefile:
171
216
  Fixing gem name
@@ -229,6 +274,12 @@
229
274
  procedures.
230
275
  [19e0a72320dd]
231
276
 
277
+ 2011-09-13 Michael Granger <ged@FaerieMUD.org>
278
+
279
+ * .hgignore:
280
+ Ignoring packaging directory
281
+ [0613976b6735]
282
+
232
283
  2011-09-10 Michael Granger <ged@FaerieMUD.org>
233
284
 
234
285
  * bin/m2sh.rb:
@@ -269,18 +320,6 @@
269
320
  * Merged with 6ea60b67e106
270
321
  [6d5341f30cc4]
271
322
 
272
- * Manifest.txt:
273
- Updating the manifest for the first release
274
- [916a79570cdc]
275
-
276
- * examples/helloworld-handler.rb, lib/mongrel2/handler.rb:
277
- More Handler API docs.
278
- [47427db9b4fb]
279
-
280
- * lib/mongrel2/handler.rb:
281
- Adding some Mongrel2::Handler API docs.
282
- [da95bfdf83da]
283
-
284
323
  * lib/mongrel2/config/host.rb:
285
324
  Adding a many_to_one association for the server belonging to a
286
325
  Mongrel2::Config::Host
@@ -300,6 +339,18 @@
300
339
  Adding a proftools dump of the requestdumper app
301
340
  [00cbc1b89a61]
302
341
 
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
+
303
354
  2011-09-08 Michael Granger <ged@FaerieMUD.org>
304
355
 
305
356
  * README.rdoc, lib/mongrel2.rb, lib/mongrel2/config.rb,
@@ -1,3 +1,8 @@
1
+ == v0.2.3 [2011-09-21] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ - Change the default response status from '200 OK' to '204 No Content'
4
+
5
+
1
6
  == v0.2.2 [2011-09-19] Michael Granger <ged@FaerieMUD.org>
2
7
 
3
8
  - Packaging fix
@@ -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.2'
17
+ VERSION = '0.2.3'
18
18
 
19
19
  # Version-control revision constant
20
- REVISION = %q$Revision: f1abf26d45ea $
20
+ REVISION = %q$Revision: 44497043893b $
21
21
 
22
22
 
23
23
  require 'mongrel2/logging'
@@ -16,7 +16,7 @@ class Mongrel2::HTTPResponse < Mongrel2::Response
16
16
  STATUS_LINE_FORMAT = "HTTP/1.1 %03d %s".freeze
17
17
 
18
18
  # The default status
19
- DEFAULT_HTTP_STATUS = 200
19
+ DEFAULT_HTTP_STATUS = 204
20
20
 
21
21
  # A network End-Of-Line
22
22
  EOL = "\r\n".freeze
@@ -2,7 +2,8 @@
2
2
 
3
3
  require 'uri'
4
4
  require 'pathname'
5
- require 'mongrel2' unless defined?( Mongrel2 )
5
+ require 'mongrel2'
6
+ require 'mongrel2/handler'
6
7
 
7
8
 
8
9
  # A collection of constants and functions for testing Mongrel2 applications,
@@ -46,8 +46,8 @@ describe Mongrel2::HTTPResponse do
46
46
  @response.headers.content_type.should == 'text/html'
47
47
  end
48
48
 
49
- it "is a status 200 response if not set otherwise" do
50
- @response.status_line.should == 'HTTP/1.1 200 OK'
49
+ it "is a No Content response if not set otherwise" do
50
+ @response.status_line.should == 'HTTP/1.1 204 No Content'
51
51
  end
52
52
 
53
53
  it "sets Date and Content-length headers automatically if they haven't been set" do
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.2
4
+ version: 0.2.3
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-19 00:00:00.000000000Z
51
+ date: 2011-09-21 00:00:00.000000000Z
52
52
  dependencies:
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: nokogiri
55
- requirement: &70299509927540 !ruby/object:Gem::Requirement
55
+ requirement: &2165508160 !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: *70299509927540
63
+ version_requirements: *2165508160
64
64
  - !ruby/object:Gem::Dependency
65
65
  name: sequel
66
- requirement: &70299509926700 !ruby/object:Gem::Requirement
66
+ requirement: &2165507360 !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: *70299509926700
74
+ version_requirements: *2165507360
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: amalgalite
77
- requirement: &70299509925840 !ruby/object:Gem::Requirement
77
+ requirement: &2165506800 !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: *70299509925840
85
+ version_requirements: *2165506800
86
86
  - !ruby/object:Gem::Dependency
87
87
  name: tnetstring
88
- requirement: &70299509924940 !ruby/object:Gem::Requirement
88
+ requirement: &2165506120 !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: *70299509924940
96
+ version_requirements: *2165506120
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: yajl-ruby
99
- requirement: &70299509911820 !ruby/object:Gem::Requirement
99
+ requirement: &2165505000 !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: *70299509911820
107
+ version_requirements: *2165505000
108
108
  - !ruby/object:Gem::Dependency
109
109
  name: zmq
110
- requirement: &70299509910920 !ruby/object:Gem::Requirement
110
+ requirement: &2165504220 !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: *70299509910920
118
+ version_requirements: *2165504220
119
119
  - !ruby/object:Gem::Dependency
120
120
  name: hoe-mercurial
121
- requirement: &70299509910140 !ruby/object:Gem::Requirement
121
+ requirement: &2165481800 !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: *70299509910140
129
+ version_requirements: *2165481800
130
130
  - !ruby/object:Gem::Dependency
131
131
  name: hoe-highline
132
- requirement: &70299509909240 !ruby/object:Gem::Requirement
132
+ requirement: &2165480580 !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: *70299509909240
140
+ version_requirements: *2165480580
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: configurability
143
- requirement: &70299509908380 !ruby/object:Gem::Requirement
143
+ requirement: &2165479860 !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: *70299509908380
151
+ version_requirements: *2165479860
152
152
  - !ruby/object:Gem::Dependency
153
153
  name: rspec
154
- requirement: &70299509907220 !ruby/object:Gem::Requirement
154
+ requirement: &2165478860 !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: *70299509907220
162
+ version_requirements: *2165478860
163
163
  - !ruby/object:Gem::Dependency
164
164
  name: hoe
165
- requirement: &70299509906380 !ruby/object:Gem::Requirement
165
+ requirement: &2165478000 !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: *70299509906380
173
+ version_requirements: *2165478000
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