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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4c1c5f27fb6ffae904ba62198bb53ce289f6c1f31336dd822fca00b126d95c8
4
- data.tar.gz: de38ff2a793f66cebad1a1170c02e6b3978e07b38c8d973ac661efeb049e93ec
3
+ metadata.gz: b00fc9e5d065ecf1c56d799b4e2366df25800e502c892e1241b1aaf1f3e3ec34
4
+ data.tar.gz: bd7bf064847b1e143e441ffd52afc86474b8bf60025ad9428974a6b57fc3fd10
5
5
  SHA512:
6
- metadata.gz: 6961b873b166f4d74ce23d7b9b86cd66f958e78b8371a3359c7044fdaa5b835a398356714663858ce897726cbd427104e6663bbf12a09b163dff815fc47316ef
7
- data.tar.gz: 645210420f9bb6a5cc63ba794893d697642842f9de561fe5e00d9b93ee1831230bdcf860024630574e728992b40f40512ae2bc619648c9012480002f5a6d45f7
6
+ metadata.gz: 0fbaa821503c8af2c13b871d110bef8c8aade85133a4fda9a4c87b0b5b7d9598e058cdc52a4b55b7b2662e17e5faf2a7a1fef8a0d52af23d18984ae8e2157a2c
7
+ data.tar.gz: 12453b609148b0a71063e01234abc7dfe7ff036728fd431d5c9d2374d1ecf2fb45a58e9d450afc5d3766fa9262b224096bb90e78a425ebe4a7b0594286c656f7
@@ -1,4 +1,20 @@
1
- # v1.0.3 (unreleased)
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
 
@@ -20,7 +20,7 @@ module Pakyow
20
20
  # Automatically bundle.
21
21
  #
22
22
  watch File.join(config.root, "Gemfile") do
23
- Bundler.with_clean_env do
23
+ Bundler.with_original_env do
24
24
  Support::CLI::Runner.new(message: "Bundling").run("bundle install")
25
25
  end
26
26
  end
@@ -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
@@ -11,7 +11,7 @@ module Pakyow
11
11
  module Generators
12
12
  class Project < Generator
13
13
  after "generate" do
14
- Bundler.with_clean_env do
14
+ Bundler.with_original_env do
15
15
  run "bundle install --binstubs", message: "Bundling dependencies"
16
16
  end
17
17
  end
@@ -21,7 +21,7 @@ module Pakyow
21
21
  end
22
22
 
23
23
  def request_header(key)
24
- normalize_header_value(key, @request.get_header(normalize_header(key)))
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 normalize_header_value(key, value)
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
@@ -3,5 +3,5 @@
3
3
  module Pakyow
4
4
  # Pakyow's current version.
5
5
  #
6
- VERSION = "1.0.3"
6
+ VERSION = "1.0.4"
7
7
  end
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.3
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: 2019-12-15 00:00:00.000000000 Z
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.3
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.3
26
+ version: 1.0.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: async
29
29
  requirement: !ruby/object:Gem::Requirement