mongrel2 0.0.1 → 0.0.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
@@ -9,7 +9,8 @@ A complete Ruby connector for Mongrel2[http://mongrel2.org/].
9
9
 
10
10
  This library includes configuration-database ORM classes, a Ruby
11
11
  implementation of the 'm2sh' tool, a configuration DSL for generating config
12
- databases in pure Ruby, a Control port interface object, handler classes for creating applications or higher-level frameworks.
12
+ databases in pure Ruby, a Control port interface object, and handler classes
13
+ for creating applications or higher-level frameworks.
13
14
 
14
15
  It differs from the original Mongrel2 Ruby library (m2r), and the
15
16
  mongrel2-rack library in several ways:
@@ -110,23 +111,17 @@ used to stop and restart the server, check its status, etc.
110
111
 
111
112
  === Other Classes
112
113
 
113
- There are a few other classes and modules, too:
114
+ There are a few other classes and modules work checking out, too:
114
115
 
115
- [Mongrel2::Constants]
116
- A collection of constants used throughout the rest of the library.
117
- [Mongrel2::Loggable]
118
- A mixin for adding logging methods to a class.
119
- [Mongrel2::Table]
120
- A case-insensitive hash-like object class that can store multiple values per
121
- key, and serialize itself into RFC822-style headers. Used for
122
- request[rdoc-ref:Mongrel2::Request#headers] and
123
- response[rdoc-ref:Mongrel2::Response#headers] headers.
116
+ * Mongrel2::Table
117
+ * Mongrel2::Constants
118
+ * Mongrel2::Loggable
124
119
 
125
120
 
126
121
  == Contributing
127
122
 
128
123
  You can check out the current development source with Mercurial via its
129
- {Bitbucket project}[https://bitbucket.org/ged/ruby-mongrel2]. Or if you
124
+ {Trac project}[http://deveiate.org/projects/Ruby-Mongrel2]. Or if you
130
125
  prefer Git, via {its Github mirror}[https://github.com/ged/ruby-mongrel2].
131
126
 
132
127
  After checking out the source, run:
data/Rakefile CHANGED
@@ -30,7 +30,7 @@ hoespec = Hoe.spec 'mongrel2' do
30
30
  self.dependency 'amalgalite', '~> 1.1'
31
31
  self.dependency 'tnetstring', '~> 0.3'
32
32
  self.dependency 'yajl-ruby', '~> 0.8'
33
- self.dependency 'zmq', '~> 2.1.3.1'
33
+ self.dependency 'zmq', '~> 2.1.3'
34
34
 
35
35
  self.dependency 'configurability', '~> 1.0', :developer
36
36
  self.dependency 'rspec', '~> 2.4', :developer
@@ -1,5 +1,15 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ require 'zmq'
4
+
5
+ # Workaround for rbzmq <= 2.3.0
6
+ unless defined?( ZMQ::Error )
7
+ module ZMQ
8
+ Error = ::RuntimeError
9
+ end
10
+ end
11
+
12
+
3
13
  #
4
14
  # A Mongrel2 connector and configuration library for Ruby.
5
15
  #
@@ -12,10 +22,10 @@ module Mongrel2
12
22
  abort "\n\n>>> Mongrel2 requires Ruby 1.9.2 or later. <<<\n\n" if RUBY_VERSION < '1.9.2'
13
23
 
14
24
  # Library version constant
15
- VERSION = '0.0.1'
25
+ VERSION = '0.0.2'
16
26
 
17
27
  # Version-control revision constant
18
- REVISION = %q$Revision: be362e9b6bc8 $
28
+ REVISION = %q$Revision: c39289ec700e $
19
29
 
20
30
 
21
31
  require 'mongrel2/logging'
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ require 'zmq'
4
+
3
5
  require 'mongrel2' unless defined?( Mongrel2 )
4
6
  require 'mongrel2/config'
5
7
 
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.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -52,7 +52,7 @@ date: 2011-09-13 00:00:00.000000000Z
52
52
  dependencies:
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: nokogiri
55
- requirement: &70288039557840 !ruby/object:Gem::Requirement
55
+ requirement: &70185768624780 !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: *70288039557840
63
+ version_requirements: *70185768624780
64
64
  - !ruby/object:Gem::Dependency
65
65
  name: sequel
66
- requirement: &70288039557240 !ruby/object:Gem::Requirement
66
+ requirement: &70185768624200 !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: *70288039557240
74
+ version_requirements: *70185768624200
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: amalgalite
77
- requirement: &70288039556620 !ruby/object:Gem::Requirement
77
+ requirement: &70185768623640 !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: *70288039556620
85
+ version_requirements: *70185768623640
86
86
  - !ruby/object:Gem::Dependency
87
87
  name: tnetstring
88
- requirement: &70288039556040 !ruby/object:Gem::Requirement
88
+ requirement: &70185768623060 !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: *70288039556040
96
+ version_requirements: *70185768623060
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: yajl-ruby
99
- requirement: &70288039555360 !ruby/object:Gem::Requirement
99
+ requirement: &70185768622520 !ruby/object:Gem::Requirement
100
100
  none: false
101
101
  requirements:
102
102
  - - ~>
@@ -104,21 +104,21 @@ dependencies:
104
104
  version: '0.8'
105
105
  type: :runtime
106
106
  prerelease: false
107
- version_requirements: *70288039555360
107
+ version_requirements: *70185768622520
108
108
  - !ruby/object:Gem::Dependency
109
109
  name: zmq
110
- requirement: &70288039554760 !ruby/object:Gem::Requirement
110
+ requirement: &70185768621940 !ruby/object:Gem::Requirement
111
111
  none: false
112
112
  requirements:
113
113
  - - ~>
114
114
  - !ruby/object:Gem::Version
115
- version: 2.1.3.1
115
+ version: 2.1.3
116
116
  type: :runtime
117
117
  prerelease: false
118
- version_requirements: *70288039554760
118
+ version_requirements: *70185768621940
119
119
  - !ruby/object:Gem::Dependency
120
120
  name: hoe-mercurial
121
- requirement: &70288039554060 !ruby/object:Gem::Requirement
121
+ requirement: &70185768621380 !ruby/object:Gem::Requirement
122
122
  none: false
123
123
  requirements:
124
124
  - - ~>
@@ -126,10 +126,10 @@ dependencies:
126
126
  version: 1.2.2
127
127
  type: :development
128
128
  prerelease: false
129
- version_requirements: *70288039554060
129
+ version_requirements: *70185768621380
130
130
  - !ruby/object:Gem::Dependency
131
131
  name: hoe-highline
132
- requirement: &70288039553380 !ruby/object:Gem::Requirement
132
+ requirement: &70185768620760 !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: *70288039553380
140
+ version_requirements: *70185768620760
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: configurability
143
- requirement: &70288039540900 !ruby/object:Gem::Requirement
143
+ requirement: &70185768620240 !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: *70288039540900
151
+ version_requirements: *70185768620240
152
152
  - !ruby/object:Gem::Dependency
153
153
  name: rspec
154
- requirement: &70288039540120 !ruby/object:Gem::Requirement
154
+ requirement: &70185768619780 !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: *70288039540120
162
+ version_requirements: *70185768619780
163
163
  - !ruby/object:Gem::Dependency
164
164
  name: hoe
165
- requirement: &70288039539340 !ruby/object:Gem::Requirement
165
+ requirement: &70185768619220 !ruby/object:Gem::Requirement
166
166
  none: false
167
167
  requirements:
168
168
  - - ~>
@@ -170,22 +170,22 @@ dependencies:
170
170
  version: '2.12'
171
171
  type: :development
172
172
  prerelease: false
173
- version_requirements: *70288039539340
173
+ version_requirements: *70185768619220
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,
177
- a Control port interface object, handler classes for creating applications or higher-level
178
- frameworks.\n\nIt differs from the original Mongrel2 Ruby library (m2r), and the\nmongrel2-rack
179
- library in several ways:\n\n* It uses the C extension for 0MQ (zmq) instead of the
180
- FFI one. If you\n strongly prefer the FFI library, both of the other Mongrel2 libraries
181
- use\n it, so you'll want to stick to one of them.\n\n* It doesn't come with a Rack
182
- handler, or Rails examples, or anything fancy. I\n intend to build my own webby
183
- framework bits around Mongrel2, and I thought\n maybe someone else might want to
184
- as well. If you don't, well again, there\n are two other libraries for you.\n\n*
185
- It includes configuration stuff. I want to make tools that use the Mongrel2\n config
186
- database, so I wrote config classes. Sequel::Model made it\n stupid-easy. There's
187
- also a DSL for generating a config database, too,\n mostly because I found it an
188
- interesting exercise, and I like the way it\n looks."
177
+ a Control port interface object, and handler classes \nfor creating applications
178
+ or higher-level frameworks.\n\nIt differs from the original Mongrel2 Ruby library
179
+ (m2r), and the\nmongrel2-rack library in several ways:\n\n* It uses the C extension
180
+ for 0MQ (zmq) instead of the FFI one. If you\n strongly prefer the FFI library,
181
+ both of the other Mongrel2 libraries use\n it, so you'll want to stick to one of
182
+ them.\n\n* It doesn't come with a Rack handler, or Rails examples, or anything fancy.
183
+ I\n intend to build my own webby framework bits around Mongrel2, and I thought\n
184
+ \ maybe someone else might want to as well. If you don't, well again, there\n are
185
+ two other libraries for you.\n\n* It includes configuration stuff. I want to make
186
+ tools that use the Mongrel2\n config database, so I wrote config classes. Sequel::Model
187
+ made it\n stupid-easy. There's also a DSL for generating a config database, too,\n
188
+ \ mostly because I found it an interesting exercise, and I like the way it\n looks."
189
189
  email:
190
190
  - ged@FaerieMUD.org
191
191
  executables:
metadata.gz.sig CHANGED
Binary file