pact-support 1.20.0 → 1.20.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/README.md +2 -1
- data/lib/pact/configuration.rb +4 -1
- data/lib/pact/support/version.rb +1 -1
- data/lib/pact/term.rb +1 -1
- metadata +31 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f09baafff639ab44ab0f956cf99de01d19e2a6bde94fd02b34a62209e2781e4
|
4
|
+
data.tar.gz: 50b9785ecdbf774c579755207f9cfa23327377ac355ac3abfe02cfbf9b828bf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce4bd3ca61bae08e204bae1e8d2f54b0dd5b2f22257029c9bf48766ae512e3f6ac014906302116298c148a034120e8b7701c5ad7badb975226f91d21ceb0ddb1
|
7
|
+
data.tar.gz: ffb5e753019de9d6090324c3ae5b8096ef4131e34cb8e1e39f1012e55ec493a0ca41a65462f78c4b62e71cec90f8641067d7e58e2df419a532ce8b96570ecce2
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
<a name="v1.20.2"></a>
|
2
|
+
### v1.20.2 (2024-10-23)
|
3
|
+
|
4
|
+
#### Bug Fixes
|
5
|
+
|
6
|
+
* **test**
|
7
|
+
* explicitly require ostruct as non stdlib in ruby 3.5.x ([e06a057](/../../commit/e06a057))
|
8
|
+
|
9
|
+
* use single quotes for pact term creation err msg ([d770791](/../../commit/d770791))
|
10
|
+
|
11
|
+
<a name="v1.20.1"></a>
|
12
|
+
### v1.20.1 (2024-08-08)
|
13
|
+
|
14
|
+
#### Bug Fixes
|
15
|
+
|
16
|
+
* enable color on non-tty if color_enabled ([0585424](/../../commit/0585424))
|
17
|
+
|
1
18
|
<a name="v1.20.0"></a>
|
2
19
|
### v1.20.0 (2023-10-19)
|
3
20
|
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# Pact Support
|
2
|
-
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/pact-support.svg)](http://badge.fury.io/rb/pact-support)
|
3
3
|
![Build status](https://github.com/pact-foundation/pact-support/workflows/Test/badge.svg)
|
4
|
+
[![Join the chat at https://pact-foundation.slack.com/](https://img.shields.io/badge/chat-on%20slack-blue.svg?logo=slack)](https://slack.pact.io)
|
4
5
|
|
5
6
|
Provides shared code for the Pact gems
|
data/lib/pact/configuration.rb
CHANGED
@@ -6,6 +6,7 @@ require 'pact/shared/json_differ'
|
|
6
6
|
require 'pact/shared/text_differ'
|
7
7
|
require 'pact/shared/form_differ'
|
8
8
|
require 'pact/shared/multipart_form_differ'
|
9
|
+
require 'rainbow'
|
9
10
|
|
10
11
|
|
11
12
|
module Pact
|
@@ -114,7 +115,9 @@ module Pact
|
|
114
115
|
|
115
116
|
def color_enabled
|
116
117
|
# Can't use ||= when the variable might be false, it will execute the expression if it's false
|
117
|
-
defined?(@color_enabled) ? @color_enabled : true
|
118
|
+
color_enabled = defined?(@color_enabled) ? @color_enabled : true
|
119
|
+
Rainbow.enabled = true if color_enabled
|
120
|
+
color_enabled
|
118
121
|
end
|
119
122
|
|
120
123
|
def color_enabled= color_enabled
|
data/lib/pact/support/version.rb
CHANGED
data/lib/pact/term.rb
CHANGED
@@ -29,7 +29,7 @@ module Pact
|
|
29
29
|
@matcher = attributes[:matcher]
|
30
30
|
raise Pact::Error.new("Please specify a matcher for the Term") unless @matcher != nil
|
31
31
|
raise Pact::Error.new("Please specify a value to generate for the Term") unless @generate != nil
|
32
|
-
raise Pact::Error.new("Value to generate
|
32
|
+
raise Pact::Error.new("Value to generate '#{@generate}' does not match regular expression #{@matcher.inspect}") unless @generate =~ @matcher
|
33
33
|
end
|
34
34
|
|
35
35
|
def to_hash
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pact-support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.20.
|
4
|
+
version: 1.20.2
|
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:
|
15
|
+
date: 2024-10-23 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rainbow
|
@@ -216,6 +216,34 @@ dependencies:
|
|
216
216
|
- - "~>"
|
217
217
|
- !ruby/object:Gem::Version
|
218
218
|
version: '0.5'
|
219
|
+
- !ruby/object:Gem::Dependency
|
220
|
+
name: base64
|
221
|
+
requirement: !ruby/object:Gem::Requirement
|
222
|
+
requirements:
|
223
|
+
- - "~>"
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
version: '0.2'
|
226
|
+
type: :development
|
227
|
+
prerelease: false
|
228
|
+
version_requirements: !ruby/object:Gem::Requirement
|
229
|
+
requirements:
|
230
|
+
- - "~>"
|
231
|
+
- !ruby/object:Gem::Version
|
232
|
+
version: '0.2'
|
233
|
+
- !ruby/object:Gem::Dependency
|
234
|
+
name: ostruct
|
235
|
+
requirement: !ruby/object:Gem::Requirement
|
236
|
+
requirements:
|
237
|
+
- - ">="
|
238
|
+
- !ruby/object:Gem::Version
|
239
|
+
version: '0'
|
240
|
+
type: :development
|
241
|
+
prerelease: false
|
242
|
+
version_requirements: !ruby/object:Gem::Requirement
|
243
|
+
requirements:
|
244
|
+
- - ">="
|
245
|
+
- !ruby/object:Gem::Version
|
246
|
+
version: '0'
|
219
247
|
description:
|
220
248
|
email:
|
221
249
|
- james.fraser@alumni.swinburne.edu
|
@@ -319,7 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
319
347
|
- !ruby/object:Gem::Version
|
320
348
|
version: '0'
|
321
349
|
requirements: []
|
322
|
-
rubygems_version: 3.
|
350
|
+
rubygems_version: 3.5.22
|
323
351
|
signing_key:
|
324
352
|
specification_version: 4
|
325
353
|
summary: Shared code for Pact gems
|