pakyow-core 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -1
- data/lib/pakyow/behavior/restarting.rb +1 -1
- data/lib/pakyow/connection.rb +10 -1
- data/lib/pakyow/generators/project.rb +1 -1
- data/lib/pakyow/rack/compatibility.rb +2 -2
- data/lib/pakyow/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b00fc9e5d065ecf1c56d799b4e2366df25800e502c892e1241b1aaf1f3e3ec34
|
4
|
+
data.tar.gz: bd7bf064847b1e143e441ffd52afc86474b8bf60025ad9428974a6b57fc3fd10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fbaa821503c8af2c13b871d110bef8c8aade85133a4fda9a4c87b0b5b7d9598e058cdc52a4b55b7b2662e17e5faf2a7a1fef8a0d52af23d18984ae8e2157a2c
|
7
|
+
data.tar.gz: 12453b609148b0a71063e01234abc7dfe7ff036728fd431d5c9d2374d1ecf2fb45a58e9d450afc5d3766fa9262b224096bb90e78a425ebe4a7b0594286c656f7
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,20 @@
|
|
1
|
-
# v1.0.
|
1
|
+
# v1.0.4
|
2
|
+
|
3
|
+
* `fix` **Typecast header values to strings.**
|
4
|
+
- Resolves an incompatibility with `protocol-http`.
|
5
|
+
|
6
|
+
*Related links:*
|
7
|
+
- [Pull Request #400][pr-400]
|
8
|
+
|
9
|
+
* `fix` **Bundler deprecation warnings (prefer `with_original_env`).**
|
10
|
+
|
11
|
+
*Related links:*
|
12
|
+
- [Commit a4bf384][a4bf384]
|
13
|
+
|
14
|
+
[pr-400]: https://github.com/pakyow/pakyow/pull/400
|
15
|
+
[a4bf384]: https://github.com/pakyow/pakyow/commit/a4bf384a4e8ee648a5b8780043b743f024331c64
|
16
|
+
|
17
|
+
# v1.0.3
|
2
18
|
|
3
19
|
* `fix` **Resolve several issues with respawns, restarts.**
|
4
20
|
|
data/lib/pakyow/connection.rb
CHANGED
@@ -82,7 +82,7 @@ module Pakyow
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def set_header(key, value)
|
85
|
-
@headers[normalize_header(key)] = value
|
85
|
+
@headers[normalize_header(key)] = normalize_header_value(value)
|
86
86
|
end
|
87
87
|
|
88
88
|
def set_headers(headers)
|
@@ -370,6 +370,15 @@ module Pakyow
|
|
370
370
|
key.to_s.downcase.gsub("_", "-")
|
371
371
|
end
|
372
372
|
|
373
|
+
def normalize_header_value(value)
|
374
|
+
case value
|
375
|
+
when Array
|
376
|
+
value.map(&:to_s)
|
377
|
+
else
|
378
|
+
value.to_s
|
379
|
+
end
|
380
|
+
end
|
381
|
+
|
373
382
|
DELETE_COOKIE = {
|
374
383
|
value: nil, path: nil, domain: nil, max_age: 0, expires: Time.at(0)
|
375
384
|
}.freeze
|
@@ -21,7 +21,7 @@ module Pakyow
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def request_header(key)
|
24
|
-
|
24
|
+
normalize_header_key_value(key, @request.get_header(normalize_header(key)))
|
25
25
|
end
|
26
26
|
|
27
27
|
def request_header?(key)
|
@@ -56,7 +56,7 @@ module Pakyow
|
|
56
56
|
key.to_s.upcase.gsub("-", "_")
|
57
57
|
end
|
58
58
|
|
59
|
-
def
|
59
|
+
def normalize_header_key_value(key, value)
|
60
60
|
if value && policy = Protocol::HTTP::Headers::MERGE_POLICY[key.to_s.downcase.gsub("_", "-")]
|
61
61
|
policy.new(value.to_s)
|
62
62
|
else
|
data/lib/pakyow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pakyow-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Powell
|
8
8
|
autorequire:
|
9
9
|
bindir: commands
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pakyow-support
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.
|
19
|
+
version: 1.0.4
|
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.0.
|
26
|
+
version: 1.0.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: async
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|