rspec-default_http_header 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec/default_http_header/version.rb +1 -1
- data/lib/rspec/default_http_header.rb +4 -5
- data/rspec-default_http_header.gemspec +2 -2
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd6aaf0212697af0bb11e5bd603cbbb699c5c9ff387c4a8d794011e9efa8305a
|
4
|
+
data.tar.gz: da4f0cea6ec20f38783271daac0273100ef080a3ad6220740999e40b682e5acf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e1d45606bda9c4ef48c8b5623629d89cbbf93f0acda6989259f16368dbc8c17d345f1dc479099b64143ea065f0be798de77172052482c9d22a2cda25bac2cc6
|
7
|
+
data.tar.gz: eb50513a584793857429007e01f6a7b842b6f552350e22cb05fe82bae355badb9ce2402bbedd1d0279702a8eadfe8b7715c5e7b33fba5568ed5ab4471a30e533
|
@@ -11,15 +11,14 @@ module RSpec
|
|
11
11
|
|
12
12
|
HTTP_METHODS.each do |m|
|
13
13
|
if ActionPack::VERSION::MAJOR >= 5
|
14
|
-
define_method(m) do |path, *args|
|
15
|
-
|
16
|
-
|
17
|
-
default_headers.merge(args[0][:headers])
|
14
|
+
define_method(m) do |path, *args, **kwargs|
|
15
|
+
kwargs[:headers] = if kwargs.has_key?(:headers)
|
16
|
+
default_headers.merge(kwargs[:headers])
|
18
17
|
else
|
19
18
|
default_headers
|
20
19
|
end
|
21
20
|
|
22
|
-
super(path, *args)
|
21
|
+
super(path, *args, **kwargs)
|
23
22
|
end
|
24
23
|
else
|
25
24
|
define_method(m) do |path, parameters = nil, headers_or_env = {}|
|
@@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_dependency "rspec-rails", "> 3.0"
|
22
|
-
spec.add_development_dependency "bundler"
|
23
|
-
spec.add_development_dependency "rake"
|
22
|
+
spec.add_development_dependency "bundler"
|
23
|
+
spec.add_development_dependency "rake"
|
24
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-default_http_header
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenichi TAKAHASHI
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-rails
|
@@ -28,30 +28,30 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
description: ''
|
56
56
|
email:
|
57
57
|
- kenichi.taka@gmail.com
|
@@ -71,7 +71,7 @@ homepage: http://github.com/kenchan/rspec-default_http_header
|
|
71
71
|
licenses:
|
72
72
|
- MIT
|
73
73
|
metadata: {}
|
74
|
-
post_install_message:
|
74
|
+
post_install_message:
|
75
75
|
rdoc_options: []
|
76
76
|
require_paths:
|
77
77
|
- lib
|
@@ -86,8 +86,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
|
-
rubygems_version: 3.
|
90
|
-
signing_key:
|
89
|
+
rubygems_version: 3.2.22
|
90
|
+
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Set default http headers in request specs
|
93
93
|
test_files: []
|