thin 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/lib/thin/logging.rb +5 -1
- data/lib/thin/request.rb +3 -3
- data/lib/thin/runner.rb +1 -5
- data/lib/thin/version.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b86053bf6306bf5e74447c600d9f21a4367bac0
|
4
|
+
data.tar.gz: 44c44115170e5a9c1631d0801325544c029ed33a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ef281669d02cb8f02435c98ad999237cbafeff621223636add422a3dd563d9b18a60ff189f94f658917c23b0ca50669c02e4d1da824458cfe5439ca21146ed0
|
7
|
+
data.tar.gz: 1d998ca3f97df8f31a41ad9fb1c92e4ee2ba3f2400c5e6052ba8318b3d777aa7d1dac02d71b29f079cb7b8b83b9d1efb232c5a96f11e022b790732b8aaa6c4e3
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
== 1.6.1 Death Proof
|
2
|
+
* Regression: Default logger to STDOUT when using outside of CLI.
|
3
|
+
* Regression: Downgrade Rack required version back to 1.0 to work w/ prior Rails versions.
|
4
|
+
|
1
5
|
== 1.6.0 Greek Yogurt
|
2
6
|
* Accept absolute URL in request line, eg.: 'GET http://site.com/he/lo HTTP/1.1'.
|
3
7
|
* HEAD request no longer return a body in the response.
|
data/lib/thin/logging.rb
CHANGED
@@ -18,7 +18,6 @@ module Thin
|
|
18
18
|
end
|
19
19
|
|
20
20
|
class << self
|
21
|
-
|
22
21
|
attr_reader :logger
|
23
22
|
attr_reader :trace_logger
|
24
23
|
|
@@ -117,6 +116,11 @@ module Thin
|
|
117
116
|
|
118
117
|
end # module methods
|
119
118
|
|
119
|
+
# Default logger to stdout.
|
120
|
+
self.logger = Logger.new(STDOUT)
|
121
|
+
self.logger.level = Logger::INFO
|
122
|
+
self.logger.formatter = Logging::SimpleFormatter.new
|
123
|
+
|
120
124
|
def silent
|
121
125
|
Logging.silent?
|
122
126
|
end
|
data/lib/thin/request.rb
CHANGED
@@ -72,7 +72,7 @@ module Thin
|
|
72
72
|
end
|
73
73
|
|
74
74
|
# Parse a chunk of data into the request environment
|
75
|
-
# Raises
|
75
|
+
# Raises an +InvalidRequest+ if invalid.
|
76
76
|
# Returns +true+ if the parsing is complete.
|
77
77
|
def parse(data)
|
78
78
|
if @parser.finished? # Header finished, can only be some more body
|
@@ -83,7 +83,7 @@ module Thin
|
|
83
83
|
|
84
84
|
@nparsed = @parser.execute(@env, @data, @nparsed)
|
85
85
|
|
86
|
-
#
|
86
|
+
# Transfer to a tempfile if body is very big
|
87
87
|
move_body_to_tempfile if @parser.finished? && content_length > MAX_BODY
|
88
88
|
end
|
89
89
|
|
@@ -107,7 +107,7 @@ module Thin
|
|
107
107
|
@env[CONTENT_LENGTH].to_i
|
108
108
|
end
|
109
109
|
|
110
|
-
# Returns +true+ if the client
|
110
|
+
# Returns +true+ if the client expects the connection to be persistent.
|
111
111
|
def persistent?
|
112
112
|
# Clients and servers SHOULD NOT assume that a persistent connection
|
113
113
|
# is maintained for HTTP versions less than 1.1 unless it is explicitly
|
data/lib/thin/runner.rb
CHANGED
@@ -181,11 +181,7 @@ module Thin
|
|
181
181
|
if @options[:quiet]
|
182
182
|
Logging.silent = true
|
183
183
|
else
|
184
|
-
|
185
|
-
logger.level = Logger::INFO
|
186
|
-
logger.level = Logger::DEBUG if @options[:debug]
|
187
|
-
logger.formatter = Logging::SimpleFormatter.new
|
188
|
-
Logging.logger = logger
|
184
|
+
Logging.level = Logger::DEBUG if @options[:debug]
|
189
185
|
end
|
190
186
|
|
191
187
|
if @options[:trace]
|
data/lib/thin/version.rb
CHANGED
@@ -6,11 +6,11 @@ module Thin
|
|
6
6
|
module VERSION #:nodoc:
|
7
7
|
MAJOR = 1
|
8
8
|
MINOR = 6
|
9
|
-
TINY =
|
9
|
+
TINY = 1
|
10
10
|
|
11
11
|
STRING = [MAJOR, MINOR, TINY].join('.')
|
12
12
|
|
13
|
-
CODENAME = "
|
13
|
+
CODENAME = "Death Proof".freeze
|
14
14
|
|
15
15
|
RACK = [1, 0].freeze # Rack protocol version
|
16
16
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marc-Andre Cournoyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: eventmachine
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|