mongrel2 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/Rakefile +19 -1
- data/lib/mongrel2.rb +11 -10
- metadata +26 -26
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
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.
|
33
|
+
self.dependency 'zmq', '~> 2.1.4'
|
34
34
|
|
35
35
|
self.dependency 'configurability', '~> 1.0', :developer
|
36
36
|
self.dependency 'rspec', '~> 2.4', :developer
|
@@ -46,10 +46,28 @@ ENV['VERSION'] ||= hoespec.spec.version.to_s
|
|
46
46
|
# Ensure the specs pass before checking in
|
47
47
|
task 'hg:precheckin' => :spec
|
48
48
|
|
49
|
+
### Make the ChangeLog update if the repo has changed since it was last built
|
50
|
+
file '.hg/branch'
|
51
|
+
file 'ChangeLog' => '.hg/branch' do |task|
|
52
|
+
$stderr.puts "Updating the changelog..."
|
53
|
+
abort "Can't create the ChangeLog without hoe-mercurial (gem install hoe-mercurial)" unless
|
54
|
+
defined?( MercurialHelpers )
|
55
|
+
|
56
|
+
content = MercurialHelpers.make_changelog()
|
57
|
+
File.open( task.name, 'w', 0644 ) do |fh|
|
58
|
+
fh.print( content )
|
59
|
+
end
|
60
|
+
end
|
49
61
|
|
50
62
|
# Rebuild the ChangeLog immediately before release
|
51
63
|
task :prerelease => 'ChangeLog'
|
52
64
|
|
65
|
+
if Rake::Task.task_defined?( '.gemtest' )
|
66
|
+
Rake::Task['.gemtest'].clear
|
67
|
+
task '.gemtest' do
|
68
|
+
$stderr.puts "Not including a .gemtest until I'm confident the test suite is idempotent."
|
69
|
+
end
|
70
|
+
end
|
53
71
|
|
54
72
|
desc "Build a coverage report"
|
55
73
|
task :coverage do
|
data/lib/mongrel2.rb
CHANGED
@@ -2,14 +2,6 @@
|
|
2
2
|
|
3
3
|
require 'zmq'
|
4
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
|
-
|
13
5
|
#
|
14
6
|
# A Mongrel2 connector and configuration library for Ruby.
|
15
7
|
#
|
@@ -22,10 +14,10 @@ module Mongrel2
|
|
22
14
|
abort "\n\n>>> Mongrel2 requires Ruby 1.9.2 or later. <<<\n\n" if RUBY_VERSION < '1.9.2'
|
23
15
|
|
24
16
|
# Library version constant
|
25
|
-
VERSION = '0.1.
|
17
|
+
VERSION = '0.1.1'
|
26
18
|
|
27
19
|
# Version-control revision constant
|
28
|
-
REVISION = %q$Revision:
|
20
|
+
REVISION = %q$Revision: 2f5183ca5446 $
|
29
21
|
|
30
22
|
|
31
23
|
require 'mongrel2/logging'
|
@@ -70,3 +62,12 @@ module Mongrel2
|
|
70
62
|
|
71
63
|
end # module Mongrel2
|
72
64
|
|
65
|
+
|
66
|
+
# Workaround for rbzmq <= 2.3.0
|
67
|
+
unless defined?( ZMQ::Error )
|
68
|
+
module ZMQ
|
69
|
+
Error = ::RuntimeError
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
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.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -52,7 +52,7 @@ date: 2011-09-14 00:00:00.000000000Z
|
|
52
52
|
dependencies:
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: nokogiri
|
55
|
-
requirement: &
|
55
|
+
requirement: &70222682787040 !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: *
|
63
|
+
version_requirements: *70222682787040
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
65
|
name: sequel
|
66
|
-
requirement: &
|
66
|
+
requirement: &70222682786320 !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: *
|
74
|
+
version_requirements: *70222682786320
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: amalgalite
|
77
|
-
requirement: &
|
77
|
+
requirement: &70222682785540 !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: *
|
85
|
+
version_requirements: *70222682785540
|
86
86
|
- !ruby/object:Gem::Dependency
|
87
87
|
name: tnetstring
|
88
|
-
requirement: &
|
88
|
+
requirement: &70222682784540 !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: *
|
96
|
+
version_requirements: *70222682784540
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: yajl-ruby
|
99
|
-
requirement: &
|
99
|
+
requirement: &70222682783760 !ruby/object:Gem::Requirement
|
100
100
|
none: false
|
101
101
|
requirements:
|
102
102
|
- - ~>
|
@@ -104,32 +104,32 @@ dependencies:
|
|
104
104
|
version: '0.8'
|
105
105
|
type: :runtime
|
106
106
|
prerelease: false
|
107
|
-
version_requirements: *
|
107
|
+
version_requirements: *70222682783760
|
108
108
|
- !ruby/object:Gem::Dependency
|
109
109
|
name: zmq
|
110
|
-
requirement: &
|
110
|
+
requirement: &70222682783100 !ruby/object:Gem::Requirement
|
111
111
|
none: false
|
112
112
|
requirements:
|
113
113
|
- - ~>
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version: 2.1.
|
115
|
+
version: 2.1.4
|
116
116
|
type: :runtime
|
117
117
|
prerelease: false
|
118
|
-
version_requirements: *
|
118
|
+
version_requirements: *70222682783100
|
119
119
|
- !ruby/object:Gem::Dependency
|
120
120
|
name: hoe-mercurial
|
121
|
-
requirement: &
|
121
|
+
requirement: &70222682782180 !ruby/object:Gem::Requirement
|
122
122
|
none: false
|
123
123
|
requirements:
|
124
124
|
- - ~>
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
version: 1.2.
|
126
|
+
version: 1.2.2
|
127
127
|
type: :development
|
128
128
|
prerelease: false
|
129
|
-
version_requirements: *
|
129
|
+
version_requirements: *70222682782180
|
130
130
|
- !ruby/object:Gem::Dependency
|
131
131
|
name: hoe-highline
|
132
|
-
requirement: &
|
132
|
+
requirement: &70222682781360 !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: *
|
140
|
+
version_requirements: *70222682781360
|
141
141
|
- !ruby/object:Gem::Dependency
|
142
142
|
name: configurability
|
143
|
-
requirement: &
|
143
|
+
requirement: &70222682757400 !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: *
|
151
|
+
version_requirements: *70222682757400
|
152
152
|
- !ruby/object:Gem::Dependency
|
153
153
|
name: rspec
|
154
|
-
requirement: &
|
154
|
+
requirement: &70222682756760 !ruby/object:Gem::Requirement
|
155
155
|
none: false
|
156
156
|
requirements:
|
157
157
|
- - ~>
|
@@ -159,18 +159,18 @@ dependencies:
|
|
159
159
|
version: '2.4'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
|
-
version_requirements: *
|
162
|
+
version_requirements: *70222682756760
|
163
163
|
- !ruby/object:Gem::Dependency
|
164
164
|
name: hoe
|
165
|
-
requirement: &
|
165
|
+
requirement: &70222682756080 !ruby/object:Gem::Requirement
|
166
166
|
none: false
|
167
167
|
requirements:
|
168
168
|
- - ~>
|
169
169
|
- !ruby/object:Gem::Version
|
170
|
-
version: '2.
|
170
|
+
version: '2.12'
|
171
171
|
type: :development
|
172
172
|
prerelease: false
|
173
|
-
version_requirements: *
|
173
|
+
version_requirements: *70222682756080
|
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,
|
metadata.gz.sig
CHANGED
Binary file
|