mongrel2 0.37.0 → 0.38.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf3cb27f3588dc682297c9455e76829fed679844
4
- data.tar.gz: 1084020e70eeef4256b48081e6e084ef5d7686f7
3
+ metadata.gz: e5bdea37b7c56e0c93406a5653f43c7f567c5037
4
+ data.tar.gz: ed56dd644330b5f948426f9255e9210647299735
5
5
  SHA512:
6
- metadata.gz: 87a4b4eea76ea916e2483c376366be3199f9a211f1f2603e084cfc0ae0f2061bf673374f54deef90a731e1181b62b0ef3af90685936298c9965a986d57ba5f8b
7
- data.tar.gz: 0ff2f17129108899f374940aef82e9411f743d114c61a43458a53d2f56b3aba4c7bd4f27b63016d158c8835a8b1781f0b020646e86a15c0a28b31bb14cecec4a
6
+ metadata.gz: e47dfa343b471dd317ca448de04be667702d9d54321128478368487ea9b6e08d20bc8e02c4066237bdb32e6d6732c804bae4a0ec5e252bba23b4ff668e445ae8
7
+ data.tar.gz: 185e0c1e5d8d02a031365216baa1d5cdcfdfa5b48cea64f4f23aa56c460e0c724c8b9d4da6ab49399639f80666ac25200eb6cb3939efb2efb53f034fe0e9975c
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ == v0.38.0 [2013-09-18] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ - Update dependencies, add Gemfile.
4
+ - Update to Mongrel2 1.8.1 config schema.
5
+
6
+
1
7
  == v0.37.0 [2013-09-13] Michael Granger <ged@FaerieMUD.org>
2
8
 
3
9
  - Make explicitly-set 'nil' body also a bodiless response.
@@ -7,8 +7,7 @@ docs :: http://deveiate.org/code/mongrel2
7
7
 
8
8
  == Description
9
9
 
10
- Ruby-Mongrel2 is a complete Ruby (1.9-only) connector for
11
- Mongrel2[http://mongrel2.org/].
10
+ Ruby-Mongrel2 is a complete Ruby connector for Mongrel2[http://mongrel2.org/].
12
11
 
13
12
  This library includes configuration-database ORM classes, a Ruby
14
13
  implementation of the 'm2sh' tool, a configuration DSL for generating config
@@ -174,7 +173,7 @@ library. This implementation differs from them in several ways:
174
173
 
175
174
  == License
176
175
 
177
- Copyright (c) 2011-2012, Michael Granger
176
+ Copyright (c) 2011-2013, Michael Granger
178
177
  All rights reserved.
179
178
 
180
179
  Redistribution and use in source and binary forms, with or without
data/Rakefile CHANGED
@@ -15,6 +15,7 @@ end
15
15
  Hoe.plugin :mercurial
16
16
  Hoe.plugin :signing
17
17
  Hoe.plugin :deveiate
18
+ Hoe.plugin :bundler
18
19
 
19
20
  Hoe.plugins.delete :rubyforge
20
21
 
@@ -22,6 +23,7 @@ hoespec = Hoe.spec 'mongrel2' do
22
23
  self.readme_file = 'README.rdoc'
23
24
  self.history_file = 'History.rdoc'
24
25
  self.extra_rdoc_files = Rake::FileList[ '*.rdoc' ]
26
+ self.license 'BSD'
25
27
 
26
28
  self.developer 'Michael Granger', 'ged@FaerieMUD.org'
27
29
 
@@ -35,11 +37,12 @@ hoespec = Hoe.spec 'mongrel2' do
35
37
  self.dependency 'loggability','~> 0.5'
36
38
  self.dependency 'sqlite3', '~> 1.3'
37
39
 
40
+ self.dependency 'amalgalite', '~> 1.3', :developer
38
41
  self.dependency 'configurability', '~> 2.0', :developer
39
42
  self.dependency 'simplecov', '~> 0.7', :developer
40
- self.dependency 'hoe-deveiate', '~> 0.1', :developer
43
+ self.dependency 'hoe-deveiate', '~> 0.3', :developer
44
+ self.dependency 'hoe-bundler', '~> 1.2', :developer
41
45
 
42
- self.spec_extras[:licenses] = ["BSD"]
43
46
  self.spec_extras[:rdoc_options] = ['-f', 'fivefish', '-t', 'Mongrel2 Ruby Connector']
44
47
  self.require_ruby_version( '>= 1.9.2' )
45
48
 
@@ -1,3 +1,5 @@
1
+ begin transaction;
2
+
1
3
  DROP TABLE IF EXISTS server;
2
4
  DROP TABLE IF EXISTS host;
3
5
  DROP TABLE IF EXISTS handler;
@@ -15,11 +17,12 @@ CREATE TABLE server (id INTEGER PRIMARY KEY,
15
17
  error_log TEXT,
16
18
  chroot TEXT DEFAULT '/var/www',
17
19
  pid_file TEXT,
20
+ control_port TEXT DEFAULT "",
18
21
  default_host TEXT,
19
- name TEXT DEFAULT '',
22
+ name TEXT DEFAULT "",
20
23
  bind_addr TEXT DEFAULT "0.0.0.0",
21
24
  port INTEGER,
22
- use_ssl INTEGER default 0);
25
+ use_ssl INTEGER DEFAULT 0);
23
26
 
24
27
  CREATE TABLE host (id INTEGER PRIMARY KEY,
25
28
  server_id INTEGER,
@@ -52,8 +55,10 @@ CREATE TABLE route (id INTEGER PRIMARY KEY,
52
55
  target_id INTEGER,
53
56
  target_type TEXT);
54
57
 
58
+
55
59
  CREATE TABLE setting (id INTEGER PRIMARY KEY, key TEXT, value TEXT);
56
60
 
61
+
57
62
  CREATE TABLE statistic (id SERIAL,
58
63
  other_type TEXT,
59
64
  other_id INTEGER,
@@ -67,13 +72,13 @@ CREATE TABLE statistic (id SERIAL,
67
72
  sd REAL,
68
73
  primary key (other_type, other_id, name));
69
74
 
70
- CREATE TABLE mimetype (id INTEGER PRIMARY KEY, mimetype TEXT, extension TEXT);
71
-
72
- CREATE TABLE filter (id INTEGER PRIMARY KEY,
73
- server_id INTEGER,
74
- name TEXT,
75
+ CREATE TABLE filter (id INTEGER PRIMARY KEY,
76
+ server_id INTEGER,
77
+ name TEXT,
75
78
  settings TEXT);
76
79
 
80
+ CREATE TABLE mimetype (id INTEGER PRIMARY KEY, mimetype TEXT, extension TEXT);
81
+
77
82
  CREATE TABLE IF NOT EXISTS log(id INTEGER PRIMARY KEY,
78
83
  who TEXT,
79
84
  what TEXT,
@@ -82,3 +87,4 @@ CREATE TABLE IF NOT EXISTS log(id INTEGER PRIMARY KEY,
82
87
  how TEXT,
83
88
  why TEXT);
84
89
 
90
+ commit;
@@ -848,7 +848,6 @@ insert into mimetype (extension, mimetype) values ('.jpgv', 'video/jpeg');
848
848
  insert into mimetype (extension, mimetype) values ('.ftc', 'application/vnd.fluxtime.clip');
849
849
  insert into mimetype (extension, mimetype) values ('.pqa', 'application/vnd.palm');
850
850
  insert into mimetype (extension, mimetype) values ('.java', 'text/x-java');
851
- insert into mimetype (extension, mimetype) values ('.apk', 'application/vnd.android.package-archive');
852
851
  insert into mimetype (extension, mimetype) values ('.vms', 'chemical/x-vamas-iso14976');
853
852
  insert into mimetype (extension, mimetype) values ('.asx', 'video/x-ms-asf');
854
853
 
@@ -10,6 +10,7 @@ require 'zmq'
10
10
  # == Author/s
11
11
  #
12
12
  # * Michael Granger <ged@FaerieMUD.org>
13
+ # * Mahlon E. Smith <mahlon@martini.nu>
13
14
  #
14
15
  module Mongrel2
15
16
  extend Loggability
@@ -21,10 +22,10 @@ module Mongrel2
21
22
  abort "\n\n>>> Mongrel2 requires Ruby 1.9.2 or later. <<<\n\n" if RUBY_VERSION < '1.9.2'
22
23
 
23
24
  # Library version constant
24
- VERSION = '0.37.0'
25
+ VERSION = '0.38.0'
25
26
 
26
27
  # Version-control revision constant
27
- REVISION = %q$Revision: cf053ff6b34f $
28
+ REVISION = %q$Revision: 0ea16429b0cf $
28
29
 
29
30
 
30
31
  require 'mongrel2/constants'
@@ -12,18 +12,19 @@ require 'mongrel2/constants'
12
12
  class Mongrel2::Config::Server < Mongrel2::Config( :server )
13
13
  include Mongrel2::Constants
14
14
 
15
- ### As of Mongrel2/1.8.0:
15
+ ### As of Mongrel2/1.8.1:
16
16
  # CREATE TABLE server (id INTEGER PRIMARY KEY,
17
17
  # uuid TEXT,
18
18
  # access_log TEXT,
19
19
  # error_log TEXT,
20
20
  # chroot TEXT DEFAULT '/var/www',
21
21
  # pid_file TEXT,
22
+ # control_port TEXT DEFAULT "",
22
23
  # default_host TEXT,
23
- # name TEXT DEFAULT '',
24
+ # name TEXT DEFAULT "",
24
25
  # bind_addr TEXT DEFAULT "0.0.0.0",
25
26
  # port INTEGER,
26
- # use_ssl INTEGER default 0);
27
+ # use_ssl INTEGER DEFAULT 0);
27
28
 
28
29
  ##
29
30
  # Return the dataset for looking up a server by its UUID.
@@ -58,6 +58,7 @@ describe Mongrel2::Config::DSL do
58
58
  chroot '/service/mongrel2'
59
59
  access_log '/var/log/access'
60
60
  error_log '/var/log/errors'
61
+ control_port '/var/run/intranet.sock'
61
62
  end
62
63
 
63
64
  result.should be_a( Mongrel2::Config::Server )
@@ -66,6 +67,7 @@ describe Mongrel2::Config::DSL do
66
67
  result.chroot.should == '/service/mongrel2'
67
68
  result.access_log.should == '/var/log/access'
68
69
  result.error_log.should == '/var/log/errors'
70
+ result.control_port.should == '/var/run/intranet.sock'
69
71
  end
70
72
  end
71
73
 
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.37.0
4
+ version: 0.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -30,7 +30,7 @@ cert_chain:
30
30
  6mKCwjpegytE0oifXfF8k75A9105cBnNiMZOe1tXiqYc/exCgWvbggurzDOcRkZu
31
31
  /YSusaiDXHKU2O3Akc3htA==
32
32
  -----END CERTIFICATE-----
33
- date: 2013-09-13 00:00:00.000000000 Z
33
+ date: 2013-09-18 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: nokogiri
@@ -200,6 +200,20 @@ dependencies:
200
200
  - - ~>
201
201
  - !ruby/object:Gem::Version
202
202
  version: '4.0'
203
+ - !ruby/object:Gem::Dependency
204
+ name: amalgalite
205
+ requirement: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - ~>
208
+ - !ruby/object:Gem::Version
209
+ version: '1.3'
210
+ type: :development
211
+ prerelease: false
212
+ version_requirements: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - ~>
215
+ - !ruby/object:Gem::Version
216
+ version: '1.3'
203
217
  - !ruby/object:Gem::Dependency
204
218
  name: configurability
205
219
  requirement: !ruby/object:Gem::Requirement
@@ -234,14 +248,28 @@ dependencies:
234
248
  requirements:
235
249
  - - ~>
236
250
  - !ruby/object:Gem::Version
237
- version: '0.1'
251
+ version: '0.3'
252
+ type: :development
253
+ prerelease: false
254
+ version_requirements: !ruby/object:Gem::Requirement
255
+ requirements:
256
+ - - ~>
257
+ - !ruby/object:Gem::Version
258
+ version: '0.3'
259
+ - !ruby/object:Gem::Dependency
260
+ name: hoe-bundler
261
+ requirement: !ruby/object:Gem::Requirement
262
+ requirements:
263
+ - - ~>
264
+ - !ruby/object:Gem::Version
265
+ version: '1.2'
238
266
  type: :development
239
267
  prerelease: false
240
268
  version_requirements: !ruby/object:Gem::Requirement
241
269
  requirements:
242
270
  - - ~>
243
271
  - !ruby/object:Gem::Version
244
- version: '0.1'
272
+ version: '1.2'
245
273
  - !ruby/object:Gem::Dependency
246
274
  name: hoe
247
275
  requirement: !ruby/object:Gem::Requirement
@@ -257,8 +285,7 @@ dependencies:
257
285
  - !ruby/object:Gem::Version
258
286
  version: '3.7'
259
287
  description: |-
260
- Ruby-Mongrel2 is a complete Ruby (1.9-only) connector for
261
- Mongrel2[http://mongrel2.org/].
288
+ Ruby-Mongrel2 is a complete Ruby connector for Mongrel2[http://mongrel2.org/].
262
289
 
263
290
  This library includes configuration-database ORM classes, a Ruby
264
291
  implementation of the 'm2sh' tool, a configuration DSL for generating config
@@ -383,5 +410,5 @@ rubyforge_project: mongrel2
383
410
  rubygems_version: 2.0.5
384
411
  signing_key:
385
412
  specification_version: 4
386
- summary: Ruby-Mongrel2 is a complete Ruby (1.9-only) connector for Mongrel2[http://mongrel2.org/]
413
+ summary: Ruby-Mongrel2 is a complete Ruby connector for Mongrel2[http://mongrel2.org/]
387
414
  test_files: []
metadata.gz.sig CHANGED
Binary file