pact-support 1.14.1 → 1.14.2

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: 9b677a19e1ff31dc6603b612bb0e43df4f5a3f6d7922c8ea1fe6515898915f6c
4
- data.tar.gz: f81ebbdc2ec57af625f095492ae60b1bf471cce4e0543d48349e0f031e6a5282
3
+ metadata.gz: a8e36b3c66900b3202d78a5aca13982c1b27c097132c4c9564751fcca8990250
4
+ data.tar.gz: 05f9d2dac19eecaf582039de6acec5d14722c1986477619fbedb520eaeae9c7f
5
5
  SHA512:
6
- metadata.gz: 2911a8d750ee6aa10285a7350dea230de47071f497c581aa4eb10302affcc8ab4e8b5771d7896d083ed46b8010737b39ecdbbfdaf0a408fef21f3fb6f4c03c92
7
- data.tar.gz: 2d6c453ee8b51686b669e39e1fb138655a99ec6020313b72cd03e35eebbcbbcf80deabb1046808804db52c03ae565e9e6250adadb069b9e656d2fba1dd2dc3aa
6
+ metadata.gz: ee6227d0985aee3b0059f609de3bc793eecf1060aa25acfdf6c11c41b4d711400ac8e3a0e55719e9653071c80db273e3951ff0bcb83a4af3a1678ba2eae041c6
7
+ data.tar.gz: 9d46ef680fb7db12cecf440df63dbc9c840a754f1f94093786b442e9b652461d7d679138986ea0a6fba950ceb37837224052d1f7bc8744d0bad20a0d9ab0d38c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ <a name="v1.14.2"></a>
2
+ ### v1.14.2 (2020-03-25)
3
+
4
+
5
+ #### Bug Fixes
6
+
7
+ * don't blow up when there is a term inside an each like ([a565a56](/../../commit/a565a56))
8
+
9
+
1
10
  <a name="v1.14.1"></a>
2
11
  ### v1.14.1 (2020-02-27)
3
12
 
@@ -120,7 +120,11 @@ module Pact
120
120
  def array_like_diff array_like, actual, options
121
121
  if actual.is_a? Array
122
122
  expected_size = [array_like.min, actual.size].max
123
- expected_array = expected_size.times.collect{ Pact::Term.unpack_regexps(array_like.contents) }
123
+ # I know changing this is going to break something, but I don't know what it is, as there's no
124
+ # test that fails when I make this change. I know the unpack regexps was there for a reason however.
125
+ # Guess we'll have to change it and see!
126
+ # expected_array = expected_size.times.collect{ Pact::Term.unpack_regexps(array_like.contents) }
127
+ expected_array = expected_size.times.collect{ array_like.contents }
124
128
  actual_array_diff expected_array, actual, options.merge(:type => true)
125
129
  else
126
130
  Difference.new array_like.generate, actual, type_difference_message(array_like.generate, actual)
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module Support
3
- VERSION = "1.14.1"
3
+ VERSION = "1.14.2"
4
4
  end
5
5
  end
data/lib/pact/term.rb CHANGED
@@ -80,6 +80,5 @@ module Pact
80
80
  destination[key] = unpack_regexps source[key]
81
81
  end
82
82
  end
83
-
84
83
  end
85
84
  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.14.1
4
+ version: 1.14.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: 2020-02-27 00:00:00.000000000 Z
15
+ date: 2020-03-25 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: randexp