eventmachine_httpserver 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{eventmachine_httpserver}
|
5
|
-
s.version = "0.2.
|
5
|
+
s.version = "0.2.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Francis Cianfrocca"]
|
@@ -13,18 +13,18 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.extensions = ["ext/extconf.rb"]
|
14
14
|
s.extra_rdoc_files = ["docs/COPYING", "docs/README", "docs/RELEASE_NOTES"]
|
15
15
|
s.files = ["README", "Rakefile", "docs/COPYING", "docs/README", "docs/RELEASE_NOTES", "eventmachine_httpserver.gemspec", "eventmachine_httpserver.gemspec.tmpl", "ext/extconf.rb", "ext/http.cpp", "ext/http.h", "ext/rubyhttp.cpp", "lib/evma_httpserver.rb", "lib/evma_httpserver/response.rb", "test/test_app.rb", "test/test_delegated.rb", "test/test_response.rb"]
|
16
|
-
s.homepage = %q{
|
16
|
+
s.homepage = %q{https://github.com/eventmachine/evma_httpserver}
|
17
17
|
s.rdoc_options = ["--title", "EventMachine_HttpServer", "--main", "docs/README", "--line-numbers"]
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
s.required_ruby_version = Gem::Requirement.new("> 0.0.0")
|
20
|
-
s.rubygems_version = %q{1.3.
|
20
|
+
s.rubygems_version = %q{1.3.7}
|
21
21
|
s.summary = %q{EventMachine HTTP Server}
|
22
22
|
|
23
23
|
if s.respond_to? :specification_version then
|
24
24
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
25
25
|
s.specification_version = 1
|
26
26
|
|
27
|
-
if Gem::Version.new(Gem::
|
27
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
28
28
|
else
|
29
29
|
end
|
30
30
|
else
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{eventmachine_httpserver}
|
3
|
-
s.version = "0.1
|
3
|
+
s.version = "0.2.1"
|
4
4
|
|
5
5
|
s.specification_version = 1 if s.respond_to? :specification_version=
|
6
6
|
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.extra_rdoc_files = `git ls-files docs`.split
|
15
15
|
s.files = `git ls-files | grep -v .gitignore`.split
|
16
16
|
s.has_rdoc = true
|
17
|
-
s.homepage = %q{
|
17
|
+
s.homepage = %q{https://github.com/eventmachine/evma_httpserver}
|
18
18
|
s.rdoc_options = ["--title", "EventMachine_HttpServer", "--main", "docs/README", "--line-numbers"]
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
s.required_ruby_version = Gem::Requirement.new("> 0.0.0")
|
@@ -62,9 +62,9 @@ module EventMachine
|
|
62
62
|
# sugarings for headers
|
63
63
|
def content_type *mime
|
64
64
|
if mime.length > 0
|
65
|
-
@headers
|
65
|
+
@headers["Content-type"] = mime.first.to_s
|
66
66
|
else
|
67
|
-
@headers
|
67
|
+
@headers["Content-type"]
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
@@ -74,12 +74,12 @@ module EventMachine
|
|
74
74
|
# added on a prior call. #set_cookie clears them out first.
|
75
75
|
def add_set_cookie *ck
|
76
76
|
if ck.length > 0
|
77
|
-
h = (@headers
|
77
|
+
h = (@headers["Set-cookie"] ||= [])
|
78
78
|
ck.each {|c| h << c}
|
79
79
|
end
|
80
80
|
end
|
81
81
|
def set_cookie *ck
|
82
|
-
h = (@headers
|
82
|
+
h = (@headers["Set-cookie"] ||= [])
|
83
83
|
if ck.length > 0
|
84
84
|
h.clear
|
85
85
|
add_set_cookie *ck
|
@@ -142,16 +142,16 @@ module EventMachine
|
|
142
142
|
#
|
143
143
|
def fixup_headers
|
144
144
|
if @content
|
145
|
-
@headers
|
145
|
+
@headers["Content-length"] = @content.to_s.length
|
146
146
|
elsif @chunks
|
147
|
-
@headers
|
147
|
+
@headers["Transfer-encoding"] = "chunked"
|
148
148
|
# Might be nice to ENSURE there is no content-length header,
|
149
149
|
# but how to detect all the possible permutations of upper/lower case?
|
150
150
|
elsif @multiparts
|
151
151
|
@multipart_boundary = self.class.concoct_multipart_boundary
|
152
|
-
@headers
|
152
|
+
@headers["Content-type"] = "multipart/x-mixed-replace; boundary=\"#{@multipart_boundary}\""
|
153
153
|
else
|
154
|
-
@headers
|
154
|
+
@headers["Content-length"] = 0
|
155
155
|
end
|
156
156
|
end
|
157
157
|
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eventmachine_httpserver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 21
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Francis Cianfrocca
|
@@ -40,7 +46,7 @@ files:
|
|
40
46
|
- test/test_delegated.rb
|
41
47
|
- test/test_response.rb
|
42
48
|
has_rdoc: true
|
43
|
-
homepage:
|
49
|
+
homepage: https://github.com/eventmachine/evma_httpserver
|
44
50
|
licenses: []
|
45
51
|
|
46
52
|
post_install_message:
|
@@ -53,21 +59,29 @@ rdoc_options:
|
|
53
59
|
require_paths:
|
54
60
|
- lib
|
55
61
|
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
56
63
|
requirements:
|
57
64
|
- - ">"
|
58
65
|
- !ruby/object:Gem::Version
|
66
|
+
hash: 31
|
67
|
+
segments:
|
68
|
+
- 0
|
69
|
+
- 0
|
70
|
+
- 0
|
59
71
|
version: 0.0.0
|
60
|
-
version:
|
61
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
62
74
|
requirements:
|
63
75
|
- - ">="
|
64
76
|
- !ruby/object:Gem::Version
|
77
|
+
hash: 3
|
78
|
+
segments:
|
79
|
+
- 0
|
65
80
|
version: "0"
|
66
|
-
version:
|
67
81
|
requirements: []
|
68
82
|
|
69
83
|
rubyforge_project:
|
70
|
-
rubygems_version: 1.3.
|
84
|
+
rubygems_version: 1.3.7
|
71
85
|
signing_key:
|
72
86
|
specification_version: 1
|
73
87
|
summary: EventMachine HTTP Server
|