mongrel2 0.20.1 → 0.20.2

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,8 @@
1
+ == v0.20.2 [2012-04-10] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ - Fix Mongrel2::Config.dbname.
4
+
5
+
1
6
  == v0.20.1 [2012-03-28] Michael Granger <ged@FaerieMUD.org>
2
7
 
3
8
  - Fix dependencies and the spec that fails when you run against the
@@ -500,7 +500,7 @@ class Mongrel2::M2SHCommand
500
500
 
501
501
  # Run the command, waiting for it to finish if invoked from shell mode, or
502
502
  # execing it if not.
503
- cmd = [ mongrel2, Mongrel2::Config.pathname.to_s, server.uuid ]
503
+ cmd = [ mongrel2, Mongrel2::Config.dbname.to_s, server.uuid ]
504
504
  cmd.unshift( 'sudo' ) if self.options.sudo
505
505
 
506
506
  if @shellmode
@@ -4,20 +4,20 @@ require 'zmq'
4
4
 
5
5
  #
6
6
  # A Mongrel2 connector and configuration library for Ruby.
7
- #
7
+ #
8
8
  # == Author/s
9
- #
9
+ #
10
10
  # * Michael Granger <ged@FaerieMUD.org>
11
- #
11
+ #
12
12
  module Mongrel2
13
13
 
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.1'
17
+ VERSION = '0.20.2'
18
18
 
19
19
  # Version-control revision constant
20
- REVISION = %q$Revision: 55a458211cb9 $
20
+ REVISION = %q$Revision: 7417a035001a $
21
21
 
22
22
 
23
23
  require 'mongrel2/logging'
@@ -198,9 +198,8 @@ module Mongrel2
198
198
  ### Return the name of the current config database, or nil if the current
199
199
  ### database is an in-memory one.
200
200
  def self::dbname
201
- Mongrel2.log.warn "Returning dbname from: %p" % [ self.db.opts ]
202
- if self.db.opts[:dbname]
203
- return self.db.opts[:dbname]
201
+ if self.db.opts[:database]
202
+ return self.db.opts[:database]
204
203
  elsif self.db.uri
205
204
  return URI( self.db.uri )
206
205
  else
@@ -31,6 +31,7 @@ describe Mongrel2::Config do
31
31
 
32
32
  after( :all ) do
33
33
  reset_logging()
34
+ File.delete( 'config-spec.sqlite' ) if File.exist?( 'config.spec.sqlite' )
34
35
  end
35
36
 
36
37
 
@@ -97,8 +98,8 @@ describe Mongrel2::Config do
97
98
  end
98
99
 
99
100
  it "can return the path to the config DB as a Pathname if it's pointing at a file" do
100
- Mongrel2::Config.db =
101
- Sequel.connect( adapter: Mongrel2::Config.sqlite_adapter, dbname: 'config-spec.sqlite' )
101
+ Mongrel2::Config.db = Sequel.
102
+ connect( adapter: Mongrel2::Config.sqlite_adapter, database: 'config-spec.sqlite' )
102
103
  Mongrel2::Config.dbname.should == 'config-spec.sqlite'
103
104
  end
104
105
 
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.1
4
+ version: 0.20.2
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-06 00:00:00.000000000 Z
39
+ date: 2012-04-11 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: nokogiri
43
- requirement: &70237984767300 !ruby/object:Gem::Requirement
43
+ requirement: &70312588292440 !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: *70237984767300
51
+ version_requirements: *70312588292440
52
52
  - !ruby/object:Gem::Dependency
53
53
  name: sequel
54
- requirement: &70237984766360 !ruby/object:Gem::Requirement
54
+ requirement: &70312588291920 !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: *70237984766360
62
+ version_requirements: *70312588291920
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: amalgalite
65
- requirement: &70237984765540 !ruby/object:Gem::Requirement
65
+ requirement: &70312588291220 !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: *70237984765540
73
+ version_requirements: *70312588291220
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: tnetstring
76
- requirement: &70237984764780 !ruby/object:Gem::Requirement
76
+ requirement: &70312588290540 !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: *70237984764780
84
+ version_requirements: *70312588290540
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: yajl-ruby
87
- requirement: &70237984780340 !ruby/object:Gem::Requirement
87
+ requirement: &70312588289960 !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: *70237984780340
95
+ version_requirements: *70312588289960
96
96
  - !ruby/object:Gem::Dependency
97
97
  name: trollop
98
- requirement: &70237984779460 !ruby/object:Gem::Requirement
98
+ requirement: &70312588289420 !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: *70237984779460
106
+ version_requirements: *70312588289420
107
107
  - !ruby/object:Gem::Dependency
108
108
  name: sysexits
109
- requirement: &70237984778420 !ruby/object:Gem::Requirement
109
+ requirement: &70312588288860 !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: *70237984778420
117
+ version_requirements: *70312588288860
118
118
  - !ruby/object:Gem::Dependency
119
119
  name: zmq
120
- requirement: &70237984777480 !ruby/object:Gem::Requirement
120
+ requirement: &70312588288320 !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: *70237984777480
128
+ version_requirements: *70312588288320
129
129
  - !ruby/object:Gem::Dependency
130
130
  name: hoe-mercurial
131
- requirement: &70237984776400 !ruby/object:Gem::Requirement
131
+ requirement: &70312588287720 !ruby/object:Gem::Requirement
132
132
  none: false
133
133
  requirements:
134
134
  - - ~>
@@ -136,21 +136,21 @@ dependencies:
136
136
  version: 1.4.0
137
137
  type: :development
138
138
  prerelease: false
139
- version_requirements: *70237984776400
139
+ version_requirements: *70312588287720
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: hoe-highline
142
- requirement: &70237984775700 !ruby/object:Gem::Requirement
142
+ requirement: &70312588287120 !ruby/object:Gem::Requirement
143
143
  none: false
144
144
  requirements:
145
145
  - - ~>
146
146
  - !ruby/object:Gem::Version
147
- version: 0.0.1
147
+ version: 0.1.0
148
148
  type: :development
149
149
  prerelease: false
150
- version_requirements: *70237984775700
150
+ version_requirements: *70312588287120
151
151
  - !ruby/object:Gem::Dependency
152
152
  name: rdoc
153
- requirement: &70237984774680 !ruby/object:Gem::Requirement
153
+ requirement: &70312588302800 !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: *70237984774680
161
+ version_requirements: *70312588302800
162
162
  - !ruby/object:Gem::Dependency
163
163
  name: configurability
164
- requirement: &70237984773560 !ruby/object:Gem::Requirement
164
+ requirement: &70312588302000 !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: *70237984773560
172
+ version_requirements: *70312588302000
173
173
  - !ruby/object:Gem::Dependency
174
174
  name: simplecov
175
- requirement: &70237984772600 !ruby/object:Gem::Requirement
175
+ requirement: &70312588300680 !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: *70237984772600
183
+ version_requirements: *70312588300680
184
184
  - !ruby/object:Gem::Dependency
185
185
  name: hoe-deveiate
186
- requirement: &70237984787820 !ruby/object:Gem::Requirement
186
+ requirement: &70312588299900 !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: *70237984787820
194
+ version_requirements: *70312588299900
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: hoe
197
- requirement: &70237984786680 !ruby/object:Gem::Requirement
197
+ requirement: &70312588299400 !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: *70237984786680
205
+ version_requirements: *70312588299400
206
206
  description: ! 'Ruby-Mongrel2 is a complete Ruby (1.9-only) connector for
207
207
 
208
208
  Mongrel2[http://mongrel2.org/].
metadata.gz.sig CHANGED
Binary file