rspec-request_describer 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: 85237530e5fb7d087e3467c6973cec4c8834a710
4
- data.tar.gz: 38e3663ae4ae35165a3d1f05616ff9f5824f58f7
3
+ metadata.gz: 7860d4f2fb580876b71c84c3c4b84f844644af11
4
+ data.tar.gz: c9e1bf92c070cdaa7b4b76c30cb31459b11bc54f
5
5
  SHA512:
6
- metadata.gz: f7bbed2ea3fb8c475afa8ec99eda479749fed51b5952f20b498a7b3b9b6c5012d37eeaa086966af3db5093a7bef2623406fa436ce4aa14e91b40e32c256cae20
7
- data.tar.gz: af231bfe004dba6e8f545059020b03557b512177d8f04ecec74dbb6b92e54ffee884970dc182c3d4335b189a3431ab4fdd5386ef27d4ff61da133715cf28b7b3
6
+ metadata.gz: a64cf031ee613b3c12080fcda4b927c3f8ae9fd3f678aa54c53c106b2965c062198d5996a64aca08dc949b50ce1bbf58f578dd5c5dbfba4821df8dbda5dbb2c5
7
+ data.tar.gz: b0adab9b3884366e6024bacfbd3b6d2ea4a5d1671a7eb3963344294ecc734aa6c991217ab5db9cb6eec1dbc85d7ebd775275710320052392e9ca115d53873c5d
@@ -1,3 +1,7 @@
1
+ ## v0.2.2
2
+
3
+ - Fix bug: Ignore case-sensitivity of HTTP headers (Thx @k5trismegistus, #14)
4
+
1
5
  ## 0.2.1
2
6
 
3
7
  - Fix error from `#process`
@@ -3,9 +3,9 @@ require "rspec/request_describer/version"
3
3
  module RSpec
4
4
  module RequestDescriber
5
5
  RESERVED_HEADER_NAMES = %w(
6
- Content-Type
7
- Host
8
- HTTPS
6
+ content-type
7
+ host
8
+ https
9
9
  )
10
10
 
11
11
  SUPPORTED_METHODS = %w(
@@ -50,7 +50,7 @@ module RSpec
50
50
 
51
51
  let(:env) do
52
52
  headers.inject({}) do |result, (key, value)|
53
- key = "HTTP_" + key unless RESERVED_HEADER_NAMES.include?(key)
53
+ key = "HTTP_" + key unless RESERVED_HEADER_NAMES.include?(key.downcase)
54
54
  key = key.gsub("-", "_").upcase
55
55
  result.merge(key => value)
56
56
  end
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module RequestDescriber
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-request_describer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-27 00:00:00.000000000 Z
11
+ date: 2018-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.5.2
91
+ rubygems_version: 2.6.11
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: Force some rules to write self-documenting request spec.