mongrel2 0.13.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,10 @@
1
+ == v0.14.0 [2012-02-27] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ - Add an alias for #headers -> #header to Mongrel2::Request and
4
+ Mongrel2::HTTPResponse.
5
+ - Add an OPTIONS request factory method to the Mongrel2::RequestFactory
6
+
7
+
1
8
  == v0.13.0 [2012-02-24] Michael Granger <ged@FaerieMUD.org>
2
9
 
3
10
  - Fix the ZMQ socket identifier used by Connection.
@@ -135,7 +135,7 @@ and generate the API documentation.
135
135
 
136
136
  == License
137
137
 
138
- Copyright (c) 2011, Michael Granger
138
+ Copyright (c) 2011-2012, Michael Granger
139
139
  All rights reserved.
140
140
 
141
141
  Redistribution and use in source and binary forms, with or without
@@ -20,8 +20,8 @@
20
20
  </section>
21
21
 
22
22
  <footer>
23
- <p>Copyright © 2011 Michael Granger &lt;<a href="mailto:ged@FaerieMUD.org">ged@FaerieMUD.org</a>&gt;.</p>
24
- <p><tt>$Id: bootstrap.html,v 032124c021b5 2011/09/18 20:01:52 ged $</tt></p>
23
+ <p>Copyright © 2011-2012 Michael Granger &lt;<a href="mailto:ged@FaerieMUD.org">ged@FaerieMUD.org</a>&gt;.</p>
24
+ <p><tt>$Id: bootstrap.html,v e50e20d73e34 2012/02/27 17:27:33 ged $</tt></p>
25
25
  </footer>
26
26
  </body>
27
27
  </html>
@@ -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.13.0'
17
+ VERSION = '0.14.0'
18
18
 
19
19
  # Version-control revision constant
20
- REVISION = %q$Revision: 612156a7bc00 $
20
+ REVISION = %q$Revision: e50e20d73e34 $
21
21
 
22
22
 
23
23
  require 'mongrel2/logging'
@@ -49,6 +49,7 @@ class Mongrel2::HTTPResponse < Mongrel2::Response
49
49
 
50
50
  # The response headers (a Mongrel2::Table)
51
51
  attr_reader :headers
52
+ alias_method :header, :headers
52
53
 
53
54
  # The HTTP status code
54
55
  attr_accessor :status
@@ -134,6 +134,7 @@ class Mongrel2::Request
134
134
 
135
135
  # The Mongrel2::Table object that contains the request headers
136
136
  attr_reader :headers
137
+ alias_method :header, :headers
137
138
 
138
139
  # The request body data, if there is any, as a String
139
140
  attr_reader :body
@@ -93,6 +93,18 @@ module Mongrel2
93
93
  # :section: HTTP verb methods
94
94
  #
95
95
 
96
+ ### Create a new OPTIONS Mongrel2::Request with the specified +uri+ and +headers+.
97
+ def options( uri, headers={} )
98
+ raise "Request doesn't route through %p" % [ self.route ] unless
99
+ uri.start_with?( self.route )
100
+
101
+ headers = self.make_merged_headers( :OPTIONS, uri, headers )
102
+ rclass = Mongrel2::Request.subclass_for_method( :OPTIONS )
103
+
104
+ return rclass.new( self.sender_id, self.conn_id.to_s, uri.to_s, headers )
105
+ end
106
+
107
+
96
108
  ### Create a new GET Mongrel2::Request for the specified +uri+ and +headers+.
97
109
  def get( uri, headers={} )
98
110
  raise "Request doesn't route through %p" % [ self.route ] unless
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.13.0
4
+ version: 0.14.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -36,11 +36,11 @@ cert_chain:
36
36
  YUhDS0xaZFNLai9SSHVUT3QrZ2JsUmV4OEZBaDhOZUEKY21saFhlNDZwWk5K
37
37
  Z1dLYnhaYWg4NWpJang5NWhSOHZPSStOQU01aUg5a09xSzEzRHJ4YWNUS1Bo
38
38
  cWo1UGp3RgotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
39
- date: 2012-02-25 00:00:00.000000000 Z
39
+ date: 2012-02-27 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: nokogiri
43
- requirement: &70146044712400 !ruby/object:Gem::Requirement
43
+ requirement: &70116835606280 !ruby/object:Gem::Requirement
44
44
  none: false
45
45
  requirements:
46
46
  - - ~>
@@ -48,10 +48,10 @@ dependencies:
48
48
  version: '1.5'
49
49
  type: :runtime
50
50
  prerelease: false
51
- version_requirements: *70146044712400
51
+ version_requirements: *70116835606280
52
52
  - !ruby/object:Gem::Dependency
53
53
  name: sequel
54
- requirement: &70146044711880 !ruby/object:Gem::Requirement
54
+ requirement: &70116835605800 !ruby/object:Gem::Requirement
55
55
  none: false
56
56
  requirements:
57
57
  - - ~>
@@ -59,10 +59,10 @@ dependencies:
59
59
  version: '3.31'
60
60
  type: :runtime
61
61
  prerelease: false
62
- version_requirements: *70146044711880
62
+ version_requirements: *70116835605800
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: amalgalite
65
- requirement: &70146044711420 !ruby/object:Gem::Requirement
65
+ requirement: &70116835605280 !ruby/object:Gem::Requirement
66
66
  none: false
67
67
  requirements:
68
68
  - - ~>
@@ -70,10 +70,10 @@ dependencies:
70
70
  version: '1.1'
71
71
  type: :runtime
72
72
  prerelease: false
73
- version_requirements: *70146044711420
73
+ version_requirements: *70116835605280
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: tnetstring
76
- requirement: &70146044710880 !ruby/object:Gem::Requirement
76
+ requirement: &70116835583500 !ruby/object:Gem::Requirement
77
77
  none: false
78
78
  requirements:
79
79
  - - ~>
@@ -81,10 +81,10 @@ dependencies:
81
81
  version: '0.3'
82
82
  type: :runtime
83
83
  prerelease: false
84
- version_requirements: *70146044710880
84
+ version_requirements: *70116835583500
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: yajl-ruby
87
- requirement: &70146044710460 !ruby/object:Gem::Requirement
87
+ requirement: &70116835583020 !ruby/object:Gem::Requirement
88
88
  none: false
89
89
  requirements:
90
90
  - - ~>
@@ -92,10 +92,10 @@ dependencies:
92
92
  version: '1.0'
93
93
  type: :runtime
94
94
  prerelease: false
95
- version_requirements: *70146044710460
95
+ version_requirements: *70116835583020
96
96
  - !ruby/object:Gem::Dependency
97
97
  name: trollop
98
- requirement: &70146044709900 !ruby/object:Gem::Requirement
98
+ requirement: &70116835582500 !ruby/object:Gem::Requirement
99
99
  none: false
100
100
  requirements:
101
101
  - - ~>
@@ -103,10 +103,10 @@ dependencies:
103
103
  version: '1.16'
104
104
  type: :runtime
105
105
  prerelease: false
106
- version_requirements: *70146044709900
106
+ version_requirements: *70116835582500
107
107
  - !ruby/object:Gem::Dependency
108
108
  name: sysexits
109
- requirement: &70146044709400 !ruby/object:Gem::Requirement
109
+ requirement: &70116835582000 !ruby/object:Gem::Requirement
110
110
  none: false
111
111
  requirements:
112
112
  - - ~>
@@ -114,10 +114,10 @@ dependencies:
114
114
  version: '1.0'
115
115
  type: :runtime
116
116
  prerelease: false
117
- version_requirements: *70146044709400
117
+ version_requirements: *70116835582000
118
118
  - !ruby/object:Gem::Dependency
119
119
  name: zmq
120
- requirement: &70146044708880 !ruby/object:Gem::Requirement
120
+ requirement: &70116835581540 !ruby/object:Gem::Requirement
121
121
  none: false
122
122
  requirements:
123
123
  - - ~>
@@ -125,10 +125,10 @@ dependencies:
125
125
  version: 2.1.4
126
126
  type: :runtime
127
127
  prerelease: false
128
- version_requirements: *70146044708880
128
+ version_requirements: *70116835581540
129
129
  - !ruby/object:Gem::Dependency
130
130
  name: hoe-mercurial
131
- requirement: &70146044708360 !ruby/object:Gem::Requirement
131
+ requirement: &70116835580980 !ruby/object:Gem::Requirement
132
132
  none: false
133
133
  requirements:
134
134
  - - ~>
@@ -136,10 +136,10 @@ dependencies:
136
136
  version: 1.3.1
137
137
  type: :development
138
138
  prerelease: false
139
- version_requirements: *70146044708360
139
+ version_requirements: *70116835580980
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: hoe-highline
142
- requirement: &70146044707840 !ruby/object:Gem::Requirement
142
+ requirement: &70116835580460 !ruby/object:Gem::Requirement
143
143
  none: false
144
144
  requirements:
145
145
  - - ~>
@@ -147,10 +147,10 @@ dependencies:
147
147
  version: 0.0.1
148
148
  type: :development
149
149
  prerelease: false
150
- version_requirements: *70146044707840
150
+ version_requirements: *70116835580460
151
151
  - !ruby/object:Gem::Dependency
152
152
  name: configurability
153
- requirement: &70146044707080 !ruby/object:Gem::Requirement
153
+ requirement: &70116835579960 !ruby/object:Gem::Requirement
154
154
  none: false
155
155
  requirements:
156
156
  - - ~>
@@ -158,10 +158,10 @@ dependencies:
158
158
  version: '1.0'
159
159
  type: :development
160
160
  prerelease: false
161
- version_requirements: *70146044707080
161
+ version_requirements: *70116835579960
162
162
  - !ruby/object:Gem::Dependency
163
163
  name: rspec
164
- requirement: &70146044706060 !ruby/object:Gem::Requirement
164
+ requirement: &70116835579400 !ruby/object:Gem::Requirement
165
165
  none: false
166
166
  requirements:
167
167
  - - ~>
@@ -169,10 +169,10 @@ dependencies:
169
169
  version: '2.8'
170
170
  type: :development
171
171
  prerelease: false
172
- version_requirements: *70146044706060
172
+ version_requirements: *70116835579400
173
173
  - !ruby/object:Gem::Dependency
174
174
  name: rdoc
175
- requirement: &70146044773520 !ruby/object:Gem::Requirement
175
+ requirement: &70116835578860 !ruby/object:Gem::Requirement
176
176
  none: false
177
177
  requirements:
178
178
  - - ~>
@@ -180,10 +180,10 @@ dependencies:
180
180
  version: '3.10'
181
181
  type: :development
182
182
  prerelease: false
183
- version_requirements: *70146044773520
183
+ version_requirements: *70116835578860
184
184
  - !ruby/object:Gem::Dependency
185
185
  name: hoe
186
- requirement: &70146044773000 !ruby/object:Gem::Requirement
186
+ requirement: &70116835578300 !ruby/object:Gem::Requirement
187
187
  none: false
188
188
  requirements:
189
189
  - - ~>
@@ -191,7 +191,7 @@ dependencies:
191
191
  version: '2.13'
192
192
  type: :development
193
193
  prerelease: false
194
- version_requirements: *70146044773000
194
+ version_requirements: *70116835578300
195
195
  description: ! "Ruby-Mongrel2 is a complete Ruby (1.9-only) connector for \nMongrel2[http://mongrel2.org/].\n\nThis
196
196
  library includes configuration-database ORM classes, a Ruby\nimplementation of the
197
197
  'm2sh' tool, a configuration DSL for generating config\ndatabases in pure Ruby,
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- ��&DT d۩� ��z�ز�4�OBc����g �%v&�\���@�j��2�J���9A0+����]je���2w3�l�+A�W�SΆ����g�Ê����L ���"��5�#2�RJ�rv�J�1�׆��|ͧ� `�[i:�)h2@�� Ky����f��ڭ��o��_���?Ze��2mLV��pQ�A!P�@�+׿g`���^�kvd2��Re��;��ډ�����; S=!5���E�_�
1
+ d�.�Y볽2>�Ozq�Jߞ���4‘PN�`�0j#�*rknUn��GŚ�r���I��!Tշx��1�ۨ����'o_|Cj��_is��c?��7C-�l$(l�&uR��*��*u���ղ�2d7��' ��+�-n
2
+ ���B\�l�[ *E���sWyȧXl��IUZ:˄��D�w~�`�1dƎө�W��A+뮰z��tN�!��بM���15�ZJ�/��UK�����ێO�hA �=��@��