mongrel2 0.20.2 → 0.20.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +86 -2
- data/History.rdoc +8 -0
- data/README.rdoc +26 -22
- data/Rakefile +1 -0
- data/lib/mongrel2/config.rb +8 -3
- data/lib/mongrel2/testing.rb +1 -1
- data/lib/mongrel2.rb +2 -2
- data.tar.gz.sig +0 -0
- metadata +35 -33
- metadata.gz.sig +1 -1
data/ChangeLog
CHANGED
@@ -1,8 +1,92 @@
|
|
1
|
+
2012-04-11 Michael Granger <ged@FaerieMUD.org>
|
2
|
+
|
3
|
+
* lib/mongrel2/config.rb:
|
4
|
+
Assume paths passed to configure( :configdb ) should use SQLite.
|
5
|
+
|
6
|
+
This makes it possible to configure with a path again, and the
|
7
|
+
Config class will choose the right adapter for you.
|
8
|
+
[47450781e385] [tip]
|
9
|
+
|
10
|
+
* README.rdoc:
|
11
|
+
Move the "other implementations" section to the bottom of the
|
12
|
+
README.
|
13
|
+
[bab5ef6854d2]
|
14
|
+
|
15
|
+
2012-04-10 Michael Granger <ged@FaerieMUD.org>
|
16
|
+
|
17
|
+
* README.rdoc, Rakefile:
|
18
|
+
Set docs to fivefish
|
19
|
+
[551a2111a045] [github/master]
|
20
|
+
|
21
|
+
* .hgtags:
|
22
|
+
Added tag v0.20.2 for changeset 2101ab88fa3c
|
23
|
+
[29667a22cb1c]
|
24
|
+
|
25
|
+
* .hgsigs:
|
26
|
+
Added signature for changeset 7417a035001a
|
27
|
+
[2101ab88fa3c] [v0.20.2]
|
28
|
+
|
29
|
+
* History.rdoc, lib/mongrel2.rb:
|
30
|
+
Bump the patch version and update history.
|
31
|
+
[7417a035001a]
|
32
|
+
|
33
|
+
* bin/m2sh.rb, lib/mongrel2.rb, lib/mongrel2/config.rb,
|
34
|
+
spec/mongrel2/config_spec.rb:
|
35
|
+
Fix Mongrel2::Config.dbname.
|
36
|
+
[c2ca8db8b888]
|
37
|
+
|
38
|
+
2012-04-06 Michael Granger <ged@FaerieMUD.org>
|
39
|
+
|
40
|
+
* .hgtags:
|
41
|
+
Added tag v0.20.1 for changeset fdb45f9db05e
|
42
|
+
[b04446f11762]
|
43
|
+
|
44
|
+
* .hgsigs:
|
45
|
+
Added signature for changeset 55a458211cb9
|
46
|
+
[fdb45f9db05e] [v0.20.1]
|
47
|
+
|
48
|
+
* History.rdoc, lib/mongrel2.rb:
|
49
|
+
Bump patch version, update history.
|
50
|
+
[55a458211cb9]
|
51
|
+
|
52
|
+
* .rvm.gems, Rakefile, spec/mongrel2/config_spec.rb:
|
53
|
+
Update rvm environment, fix dependencies and a spec.
|
54
|
+
[032791d245cd]
|
55
|
+
|
56
|
+
* .hgtags:
|
57
|
+
Added tag v0.20.0 for changeset 08e5e34841fb
|
58
|
+
[1dfa4f30a839]
|
59
|
+
|
60
|
+
* .hgsigs:
|
61
|
+
Added signature for changeset 3cd69c7b76c6
|
62
|
+
[08e5e34841fb] [v0.20.0]
|
63
|
+
|
64
|
+
* History.rdoc, lib/mongrel2.rb:
|
65
|
+
Bump the minor version, update history.
|
66
|
+
[3cd69c7b76c6]
|
67
|
+
|
68
|
+
* lib/mongrel2/config.rb, spec/lib/helpers.rb,
|
69
|
+
spec/mongrel2/config/route_spec.rb, spec/mongrel2/config_spec.rb:
|
70
|
+
Fix the config DB for Sequel 3.34.
|
71
|
+
|
72
|
+
Note: This fix includes several API changes
|
73
|
+
|
74
|
+
- Mongrel2::Config.adapter_method is now .sqlite_adapter, and just
|
75
|
+
returns the name of the appropriate adapter instead of a Method
|
76
|
+
object that returns a Sequel::Database.
|
77
|
+
- Mongrel2::Config.pathname is now .dbname, and returns either a URI
|
78
|
+
or a String, depending on how the database handle was created.
|
79
|
+
|
80
|
+
These changes also will make it easier to use alternative
|
81
|
+
configuration databases, e.g., when I get the PostgreSQL config
|
82
|
+
module working, it'll be easier to point the config model at it.
|
83
|
+
[ca190c8046c2]
|
84
|
+
|
1
85
|
2012-03-28 Michael Granger <ged@FaerieMUD.org>
|
2
86
|
|
3
87
|
* .hgtags:
|
4
88
|
Added tag v0.19.0 for changeset ddf2ba151fdc
|
5
|
-
[fc05d13761c5]
|
89
|
+
[fc05d13761c5]
|
6
90
|
|
7
91
|
* .hgsigs:
|
8
92
|
Added signature for changeset a0a3115eb782
|
@@ -18,7 +102,7 @@
|
|
18
102
|
If there's a body, and the status hasn't yet been set, assume that
|
19
103
|
it's supposed to be 200 OK. If the body is nil or empty and the
|
20
104
|
status hasn't been set, assume it's a 204 No content.
|
21
|
-
[f1c2834b6d59]
|
105
|
+
[f1c2834b6d59]
|
22
106
|
|
23
107
|
* .hgtags:
|
24
108
|
Added tag v0.18.0 for changeset 4624c640343e
|
data/History.rdoc
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
== v0.20.3 [2012-04-12] Michael Granger <ged@FaerieMUD.org>
|
2
|
+
|
3
|
+
- Fix a require in mongrel2/testing.
|
4
|
+
- Assume paths passed to configure( :configdb ) should use SQLite.
|
5
|
+
- Move the "other implementations" section to the bottom of the README.
|
6
|
+
- Set API docs to use fivefish if available
|
7
|
+
|
8
|
+
|
1
9
|
== v0.20.2 [2012-04-10] Michael Granger <ged@FaerieMUD.org>
|
2
10
|
|
3
11
|
- Fix Mongrel2::Config.dbname.
|
data/README.rdoc
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
= Ruby-Mongrel2
|
2
2
|
|
3
|
-
|
3
|
+
home :: http://deveiate.org/projects/Ruby-Mongrel2/
|
4
|
+
code :: http://repo.deveiate.org/Ruby-Mongrel2
|
5
|
+
github :: https://github.com/ged/ruby-mongrel2
|
6
|
+
docs :: http://deveiate.org/code/mongrel2
|
7
|
+
|
4
8
|
|
5
9
|
== Description
|
6
10
|
|
@@ -13,27 +17,6 @@ databases in pure Ruby, a Control port interface object, and handler classes
|
|
13
17
|
for creating applications or higher-level frameworks.
|
14
18
|
|
15
19
|
|
16
|
-
=== Other Implementations
|
17
|
-
|
18
|
-
There are two other Mongrel2 Ruby libraries, +m2r+ and the +mongrel2-rack+
|
19
|
-
library. This implementation differs from them in several ways:
|
20
|
-
|
21
|
-
* It uses the C extension for 0MQ (zmq) instead of the FFI one. If you
|
22
|
-
strongly prefer the FFI library, both of the other Mongrel2 libraries use
|
23
|
-
it, so you'll want to stick to one of them.
|
24
|
-
|
25
|
-
* It doesn't come with a Rack handler, or Rails examples, or anything too
|
26
|
-
fancy. I intend to build my own webby framework bits around Mongrel2, and
|
27
|
-
I thought maybe someone else might want to as well. If you don't, well
|
28
|
-
again, there are two other libraries for you.
|
29
|
-
|
30
|
-
* It includes configuration stuff. I want to make tools that use the Mongrel2
|
31
|
-
config database, so I wrote config classes. Sequel::Model made it
|
32
|
-
stupid-easy. There's also a DSL for generating a config database, too,
|
33
|
-
mostly because I found it an interesting exercise, and I like the way it
|
34
|
-
looks.
|
35
|
-
|
36
|
-
|
37
20
|
== Installation
|
38
21
|
|
39
22
|
gem install mongrel2
|
@@ -138,6 +121,27 @@ This task will install any missing dependencies, run the tests/specs,
|
|
138
121
|
and generate the API documentation.
|
139
122
|
|
140
123
|
|
124
|
+
== Other Implementations
|
125
|
+
|
126
|
+
There are two other Mongrel2 Ruby libraries, +m2r+ and the +mongrel2-rack+
|
127
|
+
library. This implementation differs from them in several ways:
|
128
|
+
|
129
|
+
* It uses the C extension for 0MQ (zmq) instead of the FFI one. If you
|
130
|
+
strongly prefer the FFI library, both of the other Mongrel2 libraries use
|
131
|
+
it, so you'll want to stick to one of them.
|
132
|
+
|
133
|
+
* It doesn't come with a Rack handler, or Rails examples, or anything too
|
134
|
+
fancy. I intend to build my own webby framework bits around Mongrel2, and
|
135
|
+
I thought maybe someone else might want to as well. If you don't, well
|
136
|
+
again, there are two other libraries for you.
|
137
|
+
|
138
|
+
* It includes configuration stuff. I want to make tools that use the Mongrel2
|
139
|
+
config database, so I wrote config classes. Sequel::Model made it
|
140
|
+
stupid-easy. There's also a DSL for generating a config database, too,
|
141
|
+
mostly because I found it an interesting exercise, and I like the way it
|
142
|
+
looks.
|
143
|
+
|
144
|
+
|
141
145
|
== License
|
142
146
|
|
143
147
|
Copyright (c) 2011-2012, Michael Granger
|
data/Rakefile
CHANGED
@@ -39,6 +39,7 @@ hoespec = Hoe.spec 'mongrel2' do
|
|
39
39
|
self.dependency 'hoe-deveiate', '~> 0.1', :developer
|
40
40
|
|
41
41
|
self.spec_extras[:licenses] = ["BSD"]
|
42
|
+
self.spec_extras[:rdoc_options] = ['-f', 'fivefish', '-t', 'Mongrel2 Ruby Connector']
|
42
43
|
self.require_ruby_version( '>= 1.9.2' )
|
43
44
|
|
44
45
|
self.hg_sign_tags = true if self.respond_to?( :hg_sign_tags= )
|
data/lib/mongrel2/config.rb
CHANGED
@@ -106,11 +106,16 @@ module Mongrel2
|
|
106
106
|
### 'mongrel2' section of the config file if there is one. This method can also be used
|
107
107
|
### without Configurability by passing an object that can be merged with
|
108
108
|
### Mongrel2::Config::DEFAULTS.
|
109
|
-
def self::configure( config=
|
109
|
+
def self::configure( config=nil )
|
110
|
+
return unless config
|
111
|
+
|
110
112
|
config = DEFAULTS.merge( config )
|
111
113
|
|
112
|
-
if config[ :configdb ]
|
113
|
-
|
114
|
+
if dbspec = config[ :configdb ]
|
115
|
+
# Assume it's a path to a sqlite database if it doesn't have a schema
|
116
|
+
dbspec = "%s://%s" % [ self.sqlite_adapter, dbspec ] unless
|
117
|
+
dbspec.include?( ':' )
|
118
|
+
self.db = Sequel.connect( dbspec )
|
114
119
|
end
|
115
120
|
end
|
116
121
|
|
data/lib/mongrel2/testing.rb
CHANGED
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.20.
|
17
|
+
VERSION = '0.20.3'
|
18
18
|
|
19
19
|
# Version-control revision constant
|
20
|
-
REVISION = %q$Revision:
|
20
|
+
REVISION = %q$Revision: e27a161d2009 $
|
21
21
|
|
22
22
|
|
23
23
|
require 'mongrel2/logging'
|
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.20.
|
4
|
+
version: 0.20.3
|
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-04-
|
39
|
+
date: 2012-04-12 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: nokogiri
|
43
|
-
requirement: &
|
43
|
+
requirement: &70167100219280 !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: *
|
51
|
+
version_requirements: *70167100219280
|
52
52
|
- !ruby/object:Gem::Dependency
|
53
53
|
name: sequel
|
54
|
-
requirement: &
|
54
|
+
requirement: &70167100229780 !ruby/object:Gem::Requirement
|
55
55
|
none: false
|
56
56
|
requirements:
|
57
57
|
- - ~>
|
@@ -59,10 +59,10 @@ dependencies:
|
|
59
59
|
version: '3.34'
|
60
60
|
type: :runtime
|
61
61
|
prerelease: false
|
62
|
-
version_requirements: *
|
62
|
+
version_requirements: *70167100229780
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
64
|
name: amalgalite
|
65
|
-
requirement: &
|
65
|
+
requirement: &70167100223880 !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: *
|
73
|
+
version_requirements: *70167100223880
|
74
74
|
- !ruby/object:Gem::Dependency
|
75
75
|
name: tnetstring
|
76
|
-
requirement: &
|
76
|
+
requirement: &70167100236860 !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: *
|
84
|
+
version_requirements: *70167100236860
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: yajl-ruby
|
87
|
-
requirement: &
|
87
|
+
requirement: &70167100234300 !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: *
|
95
|
+
version_requirements: *70167100234300
|
96
96
|
- !ruby/object:Gem::Dependency
|
97
97
|
name: trollop
|
98
|
-
requirement: &
|
98
|
+
requirement: &70167100232580 !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: *
|
106
|
+
version_requirements: *70167100232580
|
107
107
|
- !ruby/object:Gem::Dependency
|
108
108
|
name: sysexits
|
109
|
-
requirement: &
|
109
|
+
requirement: &70167100247420 !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: *
|
117
|
+
version_requirements: *70167100247420
|
118
118
|
- !ruby/object:Gem::Dependency
|
119
119
|
name: zmq
|
120
|
-
requirement: &
|
120
|
+
requirement: &70167100245260 !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: *
|
128
|
+
version_requirements: *70167100245260
|
129
129
|
- !ruby/object:Gem::Dependency
|
130
130
|
name: hoe-mercurial
|
131
|
-
requirement: &
|
131
|
+
requirement: &70167100243760 !ruby/object:Gem::Requirement
|
132
132
|
none: false
|
133
133
|
requirements:
|
134
134
|
- - ~>
|
@@ -136,10 +136,10 @@ dependencies:
|
|
136
136
|
version: 1.4.0
|
137
137
|
type: :development
|
138
138
|
prerelease: false
|
139
|
-
version_requirements: *
|
139
|
+
version_requirements: *70167100243760
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
141
|
name: hoe-highline
|
142
|
-
requirement: &
|
142
|
+
requirement: &70167100241960 !ruby/object:Gem::Requirement
|
143
143
|
none: false
|
144
144
|
requirements:
|
145
145
|
- - ~>
|
@@ -147,10 +147,10 @@ dependencies:
|
|
147
147
|
version: 0.1.0
|
148
148
|
type: :development
|
149
149
|
prerelease: false
|
150
|
-
version_requirements: *
|
150
|
+
version_requirements: *70167100241960
|
151
151
|
- !ruby/object:Gem::Dependency
|
152
152
|
name: rdoc
|
153
|
-
requirement: &
|
153
|
+
requirement: &70167100240180 !ruby/object:Gem::Requirement
|
154
154
|
none: false
|
155
155
|
requirements:
|
156
156
|
- - ~>
|
@@ -158,10 +158,10 @@ dependencies:
|
|
158
158
|
version: '3.10'
|
159
159
|
type: :development
|
160
160
|
prerelease: false
|
161
|
-
version_requirements: *
|
161
|
+
version_requirements: *70167100240180
|
162
162
|
- !ruby/object:Gem::Dependency
|
163
163
|
name: configurability
|
164
|
-
requirement: &
|
164
|
+
requirement: &70167100255100 !ruby/object:Gem::Requirement
|
165
165
|
none: false
|
166
166
|
requirements:
|
167
167
|
- - ~>
|
@@ -169,10 +169,10 @@ dependencies:
|
|
169
169
|
version: '1.0'
|
170
170
|
type: :development
|
171
171
|
prerelease: false
|
172
|
-
version_requirements: *
|
172
|
+
version_requirements: *70167100255100
|
173
173
|
- !ruby/object:Gem::Dependency
|
174
174
|
name: simplecov
|
175
|
-
requirement: &
|
175
|
+
requirement: &70167100253620 !ruby/object:Gem::Requirement
|
176
176
|
none: false
|
177
177
|
requirements:
|
178
178
|
- - ~>
|
@@ -180,10 +180,10 @@ dependencies:
|
|
180
180
|
version: '0.6'
|
181
181
|
type: :development
|
182
182
|
prerelease: false
|
183
|
-
version_requirements: *
|
183
|
+
version_requirements: *70167100253620
|
184
184
|
- !ruby/object:Gem::Dependency
|
185
185
|
name: hoe-deveiate
|
186
|
-
requirement: &
|
186
|
+
requirement: &70167100251720 !ruby/object:Gem::Requirement
|
187
187
|
none: false
|
188
188
|
requirements:
|
189
189
|
- - ~>
|
@@ -191,10 +191,10 @@ dependencies:
|
|
191
191
|
version: '0.1'
|
192
192
|
type: :development
|
193
193
|
prerelease: false
|
194
|
-
version_requirements: *
|
194
|
+
version_requirements: *70167100251720
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: hoe
|
197
|
-
requirement: &
|
197
|
+
requirement: &70167100250340 !ruby/object:Gem::Requirement
|
198
198
|
none: false
|
199
199
|
requirements:
|
200
200
|
- - ~>
|
@@ -202,7 +202,7 @@ dependencies:
|
|
202
202
|
version: '3.0'
|
203
203
|
type: :development
|
204
204
|
prerelease: false
|
205
|
-
version_requirements: *
|
205
|
+
version_requirements: *70167100250340
|
206
206
|
description: ! 'Ruby-Mongrel2 is a complete Ruby (1.9-only) connector for
|
207
207
|
|
208
208
|
Mongrel2[http://mongrel2.org/].
|
@@ -312,8 +312,10 @@ licenses:
|
|
312
312
|
- BSD
|
313
313
|
post_install_message:
|
314
314
|
rdoc_options:
|
315
|
+
- -f
|
316
|
+
- fivefish
|
315
317
|
- -t
|
316
|
-
- Ruby
|
318
|
+
- Mongrel2 Ruby Connector
|
317
319
|
require_paths:
|
318
320
|
- lib
|
319
321
|
required_ruby_version: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
�bV�wO����p7����!�,��֔�̾g��?7�0�I/R�]k�j�P�5���U�|a.L�������w|���%�|����&�������%Rk��_��"����9.�2���E�F�A�}@@�m�=D%�]x0�eш4�m\�,Ԙ�H�kbD��e�=�\8��BÍH)�h|H }������j����0��y%%�[3tP�ĉNeM6Q>���#z0=�z<��
|