pact-support 1.20.0 → 1.20.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: aa78275d3a1427e18c502011cbda176ace86f52481454ae560a364e3dc32b94a
4
- data.tar.gz: 0d7b5b2ec8336e32c2b4d5b87940dab547497666e6e50b07e3924165a660ad2f
3
+ metadata.gz: 3b9c0d84b02abb11d0ca1f14ac23d4f90dc2c55874898c22bb279db2fbf2c143
4
+ data.tar.gz: a27dc43886c7643b30574c686e78cbbadc117e13cf37f8227bce6a4c661c7d07
5
5
  SHA512:
6
- metadata.gz: 00ca57b4165b257361813bbf850a2fe066e75126bf9a3726563acdf17c04ac3555187359b1fd5e887eeb1f7d7a569607370c51bf16239e7c63f0e60305c70756
7
- data.tar.gz: 70d6322bfd0c0eacf6230416677586032164686deee79f4c3d50a9101306423e09d79d6d1e48ac07528f0fc342b6c02d2ea3ed866a04acfe7d299cd7669bc6bc
6
+ metadata.gz: 8d5d1e2de94fb66036172adf61079b88a073b24280e780e48e3e667c943f17a68461ab3636e151392aeade397d53c18804ed65069cb84b1c8e03ce8c77ecedea
7
+ data.tar.gz: b420f3a91cd38c334e2e2c208a815f52bfd8c7cfc0c056e788cb25427e61c9cbc71c680f9d446b8af2815108c2f527d5ff1640516c0564e83776541b5ea3f5f3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ <a name="v1.20.1"></a>
2
+ ### v1.20.1 (2024-08-08)
3
+
4
+ #### Bug Fixes
5
+
6
+ * enable color on non-tty if color_enabled ([0585424](/../../commit/0585424))
7
+
1
8
  <a name="v1.20.0"></a>
2
9
  ### v1.20.0 (2023-10-19)
3
10
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module Support
3
- VERSION = "1.20.0"
3
+ VERSION = "1.20.1"
4
4
  end
5
5
  end
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.0
4
+ version: 1.20.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: 2023-10-18 00:00:00.000000000 Z
15
+ date: 2024-08-08 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rainbow
@@ -216,6 +216,20 @@ 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'
219
233
  description:
220
234
  email:
221
235
  - james.fraser@alumni.swinburne.edu
@@ -319,7 +333,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
319
333
  - !ruby/object:Gem::Version
320
334
  version: '0'
321
335
  requirements: []
322
- rubygems_version: 3.4.21
336
+ rubygems_version: 3.5.17
323
337
  signing_key:
324
338
  specification_version: 4
325
339
  summary: Shared code for Pact gems