m2r 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/example/rack_handler.rb +1 -1
- data/lib/handler.rb +1 -1
- data/m2r.gemspec +13 -6
- metadata +79 -90
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/example/rack_handler.rb
CHANGED
@@ -50,7 +50,7 @@ module Rack
|
|
50
50
|
"QUERY_STRING" => req.headers["QUERY"]
|
51
51
|
}
|
52
52
|
|
53
|
-
env["SERVER_NAME"], env["SERVER_PORT"] = req.headers["
|
53
|
+
env["SERVER_NAME"], env["SERVER_PORT"] = req.headers["host"].split(':', 2)
|
54
54
|
req.headers.each do |key, val|
|
55
55
|
unless key =~ /content_(type|length)/i
|
56
56
|
key = "HTTP_#{key.upcase}"
|
data/lib/handler.rb
CHANGED
@@ -16,7 +16,7 @@ module Mongrel2
|
|
16
16
|
|
17
17
|
# Override this to return a custom response
|
18
18
|
def process(request, *args)
|
19
|
-
puts "
|
19
|
+
puts "PROCESS REQUEST: #{request}"
|
20
20
|
#raise NoHandlerDefined, "define process_request in your subclass"
|
21
21
|
return request.inspect
|
22
22
|
end
|
data/m2r.gemspec
CHANGED
@@ -5,10 +5,13 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{m2r}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.
|
11
|
+
s.authors = ["Colin Curtin", "Pradeep Elankumaran"]
|
12
|
+
s.date = %q{2010-10-23}
|
13
|
+
s.description = %q{A Mongrel2 interface and handler library for JRuby, and hopefully other Ruby implementations in the future. Works with Rack, so it works with Rails! (Rails installation guide forthcoming.)}
|
14
|
+
s.email = %q{colin.t.curtin+m2r@gmail.com}
|
12
15
|
s.extra_rdoc_files = [
|
13
16
|
"LICENSE",
|
14
17
|
"README.md"
|
@@ -16,25 +19,29 @@ Gem::Specification.new do |s|
|
|
16
19
|
s.files = [
|
17
20
|
".document",
|
18
21
|
".gitignore",
|
22
|
+
"ISSUES",
|
19
23
|
"LICENSE",
|
20
24
|
"README.md",
|
21
25
|
"Rakefile",
|
22
26
|
"VERSION",
|
27
|
+
"benchmarks/jruby",
|
23
28
|
"example/http_0mq.rb",
|
24
29
|
"example/lobster.ru",
|
25
30
|
"example/rack_handler.rb",
|
26
31
|
"lib/connection.rb",
|
32
|
+
"lib/fiber_handler.rb",
|
33
|
+
"lib/handler.rb",
|
27
34
|
"lib/m2r.rb",
|
28
35
|
"lib/request.rb",
|
29
36
|
"m2r.gemspec",
|
30
37
|
"test/helper.rb",
|
31
38
|
"test/test_m2r.rb"
|
32
39
|
]
|
33
|
-
s.homepage = %q{http://github.com/
|
40
|
+
s.homepage = %q{http://github.com/perplexes/m2r}
|
34
41
|
s.rdoc_options = ["--charset=UTF-8"]
|
35
42
|
s.require_paths = ["lib"]
|
36
|
-
s.rubygems_version = %q{1.3.
|
37
|
-
s.summary = %q{Mongrel2 interface and
|
43
|
+
s.rubygems_version = %q{1.3.6}
|
44
|
+
s.summary = %q{Mongrel2 interface and handler library for JRuby}
|
38
45
|
s.test_files = [
|
39
46
|
"test/helper.rb",
|
40
47
|
"test/test_m2r.rb"
|
@@ -44,7 +51,7 @@ Gem::Specification.new do |s|
|
|
44
51
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
45
52
|
s.specification_version = 3
|
46
53
|
|
47
|
-
if Gem::Version.new(Gem::
|
54
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
48
55
|
s.add_runtime_dependency(%q<ffi>, [">= 0"])
|
49
56
|
s.add_runtime_dependency(%q<ffi-rzmq>, [">= 0"])
|
50
57
|
s.add_runtime_dependency(%q<json>, [">= 0"])
|
metadata
CHANGED
@@ -1,66 +1,59 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: m2r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 27
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
version: 0.0.
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
|
-
- Colin Curtin
|
14
|
-
- Pradeep Elankumaran
|
12
|
+
- Colin Curtin
|
13
|
+
- Pradeep Elankumaran
|
15
14
|
autorequire:
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-23 00:00:00 -07:00
|
20
19
|
default_executable:
|
21
20
|
dependencies:
|
22
|
-
- !ruby/object:Gem::Dependency
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
hash: 3
|
59
|
-
segments:
|
60
|
-
- 0
|
61
|
-
version: "0"
|
62
|
-
type: :runtime
|
63
|
-
version_requirements: *id003
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: ffi
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
version: "0"
|
31
|
+
type: :runtime
|
32
|
+
version_requirements: *id001
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: ffi-rzmq
|
35
|
+
prerelease: false
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
segments:
|
41
|
+
- 0
|
42
|
+
version: "0"
|
43
|
+
type: :runtime
|
44
|
+
version_requirements: *id002
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: json
|
47
|
+
prerelease: false
|
48
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
segments:
|
53
|
+
- 0
|
54
|
+
version: "0"
|
55
|
+
type: :runtime
|
56
|
+
version_requirements: *id003
|
64
57
|
description: A Mongrel2 interface and handler library for JRuby, and hopefully other Ruby implementations in the future. Works with Rack, so it works with Rails! (Rails installation guide forthcoming.)
|
65
58
|
email: colin.t.curtin+m2r@gmail.com
|
66
59
|
executables: []
|
@@ -68,62 +61,58 @@ executables: []
|
|
68
61
|
extensions: []
|
69
62
|
|
70
63
|
extra_rdoc_files:
|
71
|
-
- LICENSE
|
72
|
-
- README.md
|
64
|
+
- LICENSE
|
65
|
+
- README.md
|
73
66
|
files:
|
74
|
-
- .document
|
75
|
-
- .gitignore
|
76
|
-
- ISSUES
|
77
|
-
- LICENSE
|
78
|
-
- README.md
|
79
|
-
- Rakefile
|
80
|
-
- VERSION
|
81
|
-
- benchmarks/jruby
|
82
|
-
- example/http_0mq.rb
|
83
|
-
- example/lobster.ru
|
84
|
-
- example/rack_handler.rb
|
85
|
-
- lib/connection.rb
|
86
|
-
- lib/fiber_handler.rb
|
87
|
-
- lib/handler.rb
|
88
|
-
- lib/m2r.rb
|
89
|
-
- lib/request.rb
|
90
|
-
- m2r.gemspec
|
91
|
-
- test/helper.rb
|
92
|
-
- test/test_m2r.rb
|
67
|
+
- .document
|
68
|
+
- .gitignore
|
69
|
+
- ISSUES
|
70
|
+
- LICENSE
|
71
|
+
- README.md
|
72
|
+
- Rakefile
|
73
|
+
- VERSION
|
74
|
+
- benchmarks/jruby
|
75
|
+
- example/http_0mq.rb
|
76
|
+
- example/lobster.ru
|
77
|
+
- example/rack_handler.rb
|
78
|
+
- lib/connection.rb
|
79
|
+
- lib/fiber_handler.rb
|
80
|
+
- lib/handler.rb
|
81
|
+
- lib/m2r.rb
|
82
|
+
- lib/request.rb
|
83
|
+
- m2r.gemspec
|
84
|
+
- test/helper.rb
|
85
|
+
- test/test_m2r.rb
|
93
86
|
has_rdoc: true
|
94
87
|
homepage: http://github.com/perplexes/m2r
|
95
88
|
licenses: []
|
96
89
|
|
97
90
|
post_install_message:
|
98
91
|
rdoc_options:
|
99
|
-
- --charset=UTF-8
|
92
|
+
- --charset=UTF-8
|
100
93
|
require_paths:
|
101
|
-
- lib
|
94
|
+
- lib
|
102
95
|
required_ruby_version: !ruby/object:Gem::Requirement
|
103
|
-
none: false
|
104
96
|
requirements:
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
version: "0"
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
segments:
|
100
|
+
- 0
|
101
|
+
version: "0"
|
111
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
|
-
none: false
|
113
103
|
requirements:
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
version: "0"
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
segments:
|
107
|
+
- 0
|
108
|
+
version: "0"
|
120
109
|
requirements: []
|
121
110
|
|
122
111
|
rubyforge_project:
|
123
|
-
rubygems_version: 1.3.
|
112
|
+
rubygems_version: 1.3.6
|
124
113
|
signing_key:
|
125
114
|
specification_version: 3
|
126
115
|
summary: Mongrel2 interface and handler library for JRuby
|
127
116
|
test_files:
|
128
|
-
- test/helper.rb
|
129
|
-
- test/test_m2r.rb
|
117
|
+
- test/helper.rb
|
118
|
+
- test/test_m2r.rb
|