pact-mock_service 3.9.0 → 3.9.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: dab727d9bf1dde9bbc51116ac3781b0ce2fd3db9f91d55c9cf383ba6c950bcea
4
- data.tar.gz: 0e1e2bb0112e63f0d8416b9c13b22b105c0fb5e62268dbe1ea7bb55d44481568
3
+ metadata.gz: 27e87ccc6396fefe1efbf08fdec3565431f999d0baece2f465f3c60c93af5887
4
+ data.tar.gz: c6b4c99af70294e44082cec35e1b94e7626cf2a90f491804294120bcde2c6ae6
5
5
  SHA512:
6
- metadata.gz: 43676055550932c387a5bd4a3ed060ac42bd13fa8c0a57227fc647687ab2b03121e1846dfa0daf1f46bd7c5ca13b3ecfd4ad76d4990f9c43d558433f42cce423
7
- data.tar.gz: 6d811f0e0d1e9abfc4cc9e1383504b074b51a53aec2bd8991e72285b30c6ef45f835ea0c599c7de05e17081db3387856a07b1b2bca356f09422755ecb6289eb7
6
+ metadata.gz: 84a2589c7758219995e685dcb817b839540a502b38364795a81579245dc3b9f3baf3517e06705580c29a714493be009618c5c7ab2d356b389db0d20d46061f84
7
+ data.tar.gz: 2c0261cd92e97aadda278032f0098912f9d088e835dac58912fa96ad028613c01d1f423378d5b9cbde7c6d20b772e70ab93a997c5b5b7203974248f97f734d0e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ <a name="v3.9.1"></a>
2
+ ### v3.9.1 (2021-06-03)
3
+
4
+ #### Bug Fixes
5
+
6
+ * check for nil body rather than falsey body when determining how to render mocked response Fixes: https://github.com/pact-foundation/pact-mock_service/issues/99 ([d26e520](/../../commit/d26e520))
7
+
1
8
  <a name="v3.9.0"></a>
2
9
  ### v3.9.0 (2021-05-17)
3
10
 
@@ -182,7 +182,7 @@ module Pact
182
182
  end
183
183
 
184
184
  def self.render_body body
185
- return '' unless body
185
+ return '' if body.nil?
186
186
  body.kind_of?(String) ? body.force_encoding('utf-8') : body.to_json
187
187
  end
188
188
  end
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module MockService
3
- VERSION = "3.9.0"
3
+ VERSION = "3.9.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact-mock_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.9.0
4
+ version: 3.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Fraser
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2021-05-18 00:00:00.000000000 Z
15
+ date: 2021-06-03 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rack
@@ -411,7 +411,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
411
411
  - !ruby/object:Gem::Version
412
412
  version: '0'
413
413
  requirements: []
414
- rubygems_version: 3.2.17
414
+ rubygems_version: 3.2.19
415
415
  signing_key:
416
416
  specification_version: 4
417
417
  summary: Provides a mock service for use with Pact