rspec_contracts 0.1.0 → 0.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6576fa2cf41a382ea4b30ec4214c2ead84d6c17e2906fbcfb956dd86c21437cf
|
4
|
+
data.tar.gz: 5b5c0b1f48ea60ceaa207375152c19ca42d729780e939e2dff5245c201654424
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c734f0ab1fbfaecc7a51c67c8ec5c1eba147b9477908a8c9196a33ebc0ffcc030f357981379e569675b365700a0f6130427bf4cec9164282289730cd09bb38ca
|
7
|
+
data.tar.gz: c8cc4756d8cc3a7475cb0346eb42bd897ddeea6e448d87961c8ff1529bd3234448354cf9b7eee4bbd01366a89e29ea2394d97b3d60f9de09663bb0d60d5c531d
|
@@ -12,7 +12,7 @@ class RspecContracts::RequestValidator
|
|
12
12
|
headers: request.headers.to_h.select { |k, _| k.starts_with?("HTTP_") }.transform_keys { |k| k.remove("HTTP_").downcase }
|
13
13
|
}
|
14
14
|
RspecContracts.config.logger.error "Contract validation warning: #{e.message}"
|
15
|
-
RspecContracts.config.logger.error "Request was: #{formatted_for_logging
|
15
|
+
RspecContracts.config.logger.error "Request was: #{formatted_for_logging}"
|
16
16
|
end
|
17
17
|
|
18
18
|
def opts
|
@@ -6,7 +6,7 @@ class RspecContracts::ResponseValidator
|
|
6
6
|
raise RspecContracts::Error::ResponseValidation.new(e.message) if RspecContracts.config.response_validation_mode == :raise
|
7
7
|
|
8
8
|
RspecContracts.config.logger.error "Contract validation warning: #{e.message}"
|
9
|
-
RspecContracts.config.logger.error "Response was: #{resp
|
9
|
+
RspecContracts.config.logger.error "Response was: #{resp}"
|
10
10
|
end
|
11
11
|
|
12
12
|
def opts
|
metadata
CHANGED
@@ -1,35 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_contracts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Allen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 5.2.4
|
20
17
|
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: 5.2
|
19
|
+
version: '5.2'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 6.1.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 5.2.4
|
30
27
|
- - ">="
|
31
28
|
- !ruby/object:Gem::Version
|
32
|
-
version: 5.2
|
29
|
+
version: '5.2'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 6.1.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rspec-rails
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|