pact-support 1.11.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/pact/consumer_contract/consumer_contract.rb +11 -0
- data/lib/pact/consumer_contract/interaction.rb +4 -1
- data/lib/pact/consumer_contract/interaction_v2_parser.rb +9 -1
- data/lib/pact/consumer_contract/interaction_v3_parser.rb +10 -1
- data/lib/pact/support/version.rb +1 -1
- metadata +4 -227
- data/.github/ISSUE_TEMPLATE.md +0 -33
- data/.gitignore +0 -32
- data/.rspec +0 -3
- data/.travis.yml +0 -29
- data/Appraisals +0 -7
- data/Gemfile +0 -4
- data/RELEASING.md +0 -5
- data/Rakefile +0 -4
- data/gemfiles/default.gemfile +0 -5
- data/gemfiles/ruby_under_22.gemfile +0 -8
- data/pact-support.gemspec +0 -39
- data/script/release.sh +0 -9
- data/script/update-pact-specification-v2 +0 -9
- data/spec/fixtures/interaction-with-matching-rules.json +0 -27
- data/spec/fixtures/multipart-form-diff.txt +0 -9
- data/spec/fixtures/not-a-pact.json +0 -3
- data/spec/fixtures/pact-http-v2.json +0 -36
- data/spec/fixtures/pact-http-v3.json +0 -36
- data/spec/integration/matching_rules_extract_and_merge_spec.rb +0 -127
- data/spec/lib/pact/array_like_spec.rb +0 -37
- data/spec/lib/pact/configuration_spec.rb +0 -61
- data/spec/lib/pact/consumer/request_spec.rb +0 -25
- data/spec/lib/pact/consumer_contract/active_support_support_spec.rb +0 -58
- data/spec/lib/pact/consumer_contract/consumer_contract_spec.rb +0 -142
- data/spec/lib/pact/consumer_contract/file_name_spec.rb +0 -24
- data/spec/lib/pact/consumer_contract/headers_spec.rb +0 -107
- data/spec/lib/pact/consumer_contract/http_consumer_contract_parser_spec.rb +0 -25
- data/spec/lib/pact/consumer_contract/interaction_parser_spec.rb +0 -62
- data/spec/lib/pact/consumer_contract/interaction_spec.rb +0 -121
- data/spec/lib/pact/consumer_contract/interaction_v2_parser_spec.rb +0 -54
- data/spec/lib/pact/consumer_contract/interaction_v3_parser_spec.rb +0 -48
- data/spec/lib/pact/consumer_contract/pact_file_spec.rb +0 -204
- data/spec/lib/pact/consumer_contract/query_hash_spec.rb +0 -154
- data/spec/lib/pact/consumer_contract/query_string_spec.rb +0 -131
- data/spec/lib/pact/consumer_contract/request_spec.rb +0 -486
- data/spec/lib/pact/consumer_contract/response_spec.rb +0 -82
- data/spec/lib/pact/helpers_spec.rb +0 -143
- data/spec/lib/pact/matchers/differ_spec.rb +0 -215
- data/spec/lib/pact/matchers/difference_spec.rb +0 -22
- data/spec/lib/pact/matchers/embedded_diff_formatter_spec.rb +0 -90
- data/spec/lib/pact/matchers/extract_diff_messages_spec.rb +0 -78
- data/spec/lib/pact/matchers/index_not_found_spec.rb +0 -21
- data/spec/lib/pact/matchers/list_diff_formatter_spec.rb +0 -121
- data/spec/lib/pact/matchers/matchers_array_like_spec.rb +0 -222
- data/spec/lib/pact/matchers/matchers_messages_hash_and_array_spec.rb +0 -146
- data/spec/lib/pact/matchers/matchers_messages_mismatched_value_spec.rb +0 -72
- data/spec/lib/pact/matchers/matchers_messages_regexp_spec.rb +0 -103
- data/spec/lib/pact/matchers/matchers_spec.rb +0 -561
- data/spec/lib/pact/matchers/multipart_form_diff_formatter_spec.rb +0 -36
- data/spec/lib/pact/matchers/no_diff_at_index_spec.rb +0 -15
- data/spec/lib/pact/matchers/regexp_difference_spec.rb +0 -20
- data/spec/lib/pact/matchers/type_difference_spec.rb +0 -36
- data/spec/lib/pact/matchers/unexpected_index_spec.rb +0 -20
- data/spec/lib/pact/matchers/unexpected_key_spec.rb +0 -20
- data/spec/lib/pact/matchers/unix_diff_formatter_spec.rb +0 -235
- data/spec/lib/pact/matching_rules/extract_spec.rb +0 -216
- data/spec/lib/pact/matching_rules/merge_spec.rb +0 -436
- data/spec/lib/pact/matching_rules/v3/extract_spec.rb +0 -238
- data/spec/lib/pact/matching_rules/v3/merge_spec.rb +0 -485
- data/spec/lib/pact/matching_rules_spec.rb +0 -82
- data/spec/lib/pact/reification_spec.rb +0 -172
- data/spec/lib/pact/shared/dsl_spec.rb +0 -100
- data/spec/lib/pact/shared/form_differ_spec.rb +0 -71
- data/spec/lib/pact/shared/json_differ_spec.rb +0 -36
- data/spec/lib/pact/shared/key_not_found_spec.rb +0 -20
- data/spec/lib/pact/shared/multipart_form_differ_spec.rb +0 -49
- data/spec/lib/pact/shared/request_spec.rb +0 -235
- data/spec/lib/pact/shared/text_differ_spec.rb +0 -54
- data/spec/lib/pact/something_like_spec.rb +0 -23
- data/spec/lib/pact/support_spec.rb +0 -9
- data/spec/lib/pact/symbolize_keys_spec.rb +0 -15
- data/spec/lib/pact/term_spec.rb +0 -89
- data/spec/pact_specification/compliance-2.0.rb +0 -66
- data/spec/spec_helper.rb +0 -18
- data/spec/support/a_consumer-a_producer.json +0 -32
- data/spec/support/a_consumer-a_provider.json +0 -32
- data/spec/support/active_support_if_configured.rb +0 -6
- data/spec/support/case-insensitive-response-header-matching.json +0 -21
- data/spec/support/consumer_contract_template.json +0 -24
- data/spec/support/dsl_spec_support.rb +0 -7
- data/spec/support/factories.rb +0 -87
- data/spec/support/generated_index.md +0 -4
- data/spec/support/generated_markdown.md +0 -55
- data/spec/support/interaction_view_model.json +0 -63
- data/spec/support/interaction_view_model_with_terms.json +0 -50
- data/spec/support/markdown_pact.json +0 -48
- data/spec/support/missing_provider_states_output.txt +0 -25
- data/spec/support/options.json +0 -21
- data/spec/support/ruby_version_helpers.rb +0 -23
- data/spec/support/shared_examples_for_request.rb +0 -132
- data/spec/support/spec_support.rb +0 -29
- data/spec/support/stubbing.json +0 -22
- data/spec/support/term.json +0 -48
- data/spec/support/test_app_fail.json +0 -61
- data/spec/support/test_app_pass.json +0 -38
- data/spec/support/test_app_with_right_content_type_differ.json +0 -23
- data/tasks/release.rake +0 -5
- data/tasks/spec.rake +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ac267683e54f4813f2e059fc7f83e074442577b
|
4
|
+
data.tar.gz: 7a0a7895073e1e8459d10da113e997dfb06739d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae754accf93935cae7f5006caa27b16db8a9426afdbf4ccdbdeac123dafd2cfd3576072400da17a059a4e1dcd7ba6fea29e6aa2dd795e810ff4cc2487cf5292b
|
7
|
+
data.tar.gz: 2afd9abf271aa26b3910b8cd1b4ae76687ae0a3d0b2ff4d7ca5f2534d94cce1d6c03f82b02b8318e74494615bac04ec1ee8fd39b8786ad0e209369e9692f23fd
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
<a name="v1.12.0"></a>
|
2
|
+
### v1.12.0 (2019-09-26)
|
3
|
+
|
4
|
+
|
5
|
+
#### Features
|
6
|
+
|
7
|
+
* parse interaction _id from Pact Broker ([8d66a84](/../../commit/8d66a84))
|
8
|
+
* support marking an interaction as writable/not writable (#75) ([e1fc347](/../../commit/e1fc347))
|
9
|
+
* modernise gemspec ([c941d02](/../../commit/c941d02))
|
10
|
+
|
11
|
+
|
12
|
+
#### Bug Fixes
|
13
|
+
|
14
|
+
* add CHANGELOG to gem distribution ([35c9c48](/../../commit/35c9c48))
|
15
|
+
|
16
|
+
|
1
17
|
<a name="v1.11.0"></a>
|
2
18
|
### v1.11.0 (2019-06-18)
|
3
19
|
|
@@ -82,5 +82,16 @@ module Pact
|
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
85
|
+
def writable_interactions
|
86
|
+
interactions.reject do |interaction|
|
87
|
+
# For the sake of backwards compatibility, only reject interactions where
|
88
|
+
# write_to_pact is explicitly set to false
|
89
|
+
interaction.respond_to?(:metadata) &&
|
90
|
+
!interaction.metadata.nil? &&
|
91
|
+
interaction.metadata.key?(:write_to_pact) &&
|
92
|
+
interaction.metadata[:write_to_pact] == false
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
85
96
|
end
|
86
97
|
end
|
@@ -5,7 +5,7 @@ module Pact
|
|
5
5
|
class Interaction
|
6
6
|
include ActiveSupportSupport
|
7
7
|
|
8
|
-
attr_accessor :description, :request, :response, :provider_state, :provider_states
|
8
|
+
attr_accessor :description, :request, :response, :provider_state, :provider_states, :metadata, :_id
|
9
9
|
|
10
10
|
def initialize attributes = {}
|
11
11
|
@description = attributes[:description]
|
@@ -13,6 +13,8 @@ module Pact
|
|
13
13
|
@response = attributes[:response]
|
14
14
|
@provider_state = attributes[:provider_state] || attributes[:providerState]
|
15
15
|
@provider_states = attributes[:provider_states]
|
16
|
+
@metadata = attributes[:metadata]
|
17
|
+
@_id = attributes[:_id]
|
16
18
|
end
|
17
19
|
|
18
20
|
def self.from_hash hash, options = {}
|
@@ -30,6 +32,7 @@ module Pact
|
|
30
32
|
|
31
33
|
h[:request] = request.to_hash
|
32
34
|
h[:response] = response.to_hash
|
35
|
+
h[:metadata] = metadata
|
33
36
|
h
|
34
37
|
end
|
35
38
|
|
@@ -14,7 +14,11 @@ module Pact
|
|
14
14
|
request = parse_request(hash['request'], options)
|
15
15
|
response = parse_response(hash['response'], options)
|
16
16
|
provider_states = parse_provider_states(hash['providerState'] || hash['provider_state'])
|
17
|
-
|
17
|
+
metadata = parse_metadata(hash['metadata'])
|
18
|
+
Interaction.new(symbolize_keys(hash).merge(request: request,
|
19
|
+
response: response,
|
20
|
+
provider_states: provider_states,
|
21
|
+
metadata: metadata))
|
18
22
|
end
|
19
23
|
|
20
24
|
def self.parse_request request_hash, options
|
@@ -30,5 +34,9 @@ module Pact
|
|
30
34
|
def self.parse_provider_states provider_state_name
|
31
35
|
provider_state_name ? [Pact::ProviderState.new(provider_state_name)] : []
|
32
36
|
end
|
37
|
+
|
38
|
+
def self.parse_metadata metadata_hash
|
39
|
+
symbolize_keys(metadata_hash)
|
40
|
+
end
|
33
41
|
end
|
34
42
|
end
|
@@ -19,7 +19,12 @@ module Pact
|
|
19
19
|
if provider_states && provider_states.size > 1
|
20
20
|
Pact.configuration.error_stream.puts("WARN: Currently only 1 provider state is supported. Ignoring ")
|
21
21
|
end
|
22
|
-
|
22
|
+
metadata = parse_metadata(hash['metadata'])
|
23
|
+
Interaction.new(symbolize_keys(hash).merge(request: request,
|
24
|
+
response: response,
|
25
|
+
provider_states: provider_states,
|
26
|
+
provider_state: provider_state,
|
27
|
+
metadata: metadata))
|
23
28
|
end
|
24
29
|
|
25
30
|
def self.parse_request request_hash, options
|
@@ -69,5 +74,9 @@ module Pact
|
|
69
74
|
Pact::ProviderState.new(provider_state_hash['name'], provider_state_hash['params'])
|
70
75
|
end
|
71
76
|
end
|
77
|
+
|
78
|
+
def self.parse_metadata metadata_hash
|
79
|
+
symbolize_keys(metadata_hash)
|
80
|
+
end
|
72
81
|
end
|
73
82
|
end
|
data/lib/pact/support/version.rb
CHANGED
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.
|
4
|
+
version: 1.12.0
|
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: 2019-
|
15
|
+
date: 2019-09-29 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: randexp
|
@@ -42,20 +42,6 @@ dependencies:
|
|
42
42
|
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: '2.14'
|
45
|
-
- !ruby/object:Gem::Dependency
|
46
|
-
name: json
|
47
|
-
requirement: !ruby/object:Gem::Requirement
|
48
|
-
requirements:
|
49
|
-
- - ">="
|
50
|
-
- !ruby/object:Gem::Version
|
51
|
-
version: '0'
|
52
|
-
type: :runtime
|
53
|
-
prerelease: false
|
54
|
-
version_requirements: !ruby/object:Gem::Requirement
|
55
|
-
requirements:
|
56
|
-
- - ">="
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
version: '0'
|
59
45
|
- !ruby/object:Gem::Dependency
|
60
46
|
name: term-ansicolor
|
61
47
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,34 +56,6 @@ dependencies:
|
|
70
56
|
- - "~>"
|
71
57
|
- !ruby/object:Gem::Version
|
72
58
|
version: '1.0'
|
73
|
-
- !ruby/object:Gem::Dependency
|
74
|
-
name: find_a_port
|
75
|
-
requirement: !ruby/object:Gem::Requirement
|
76
|
-
requirements:
|
77
|
-
- - "~>"
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: 1.0.1
|
80
|
-
type: :runtime
|
81
|
-
prerelease: false
|
82
|
-
version_requirements: !ruby/object:Gem::Requirement
|
83
|
-
requirements:
|
84
|
-
- - "~>"
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: 1.0.1
|
87
|
-
- !ruby/object:Gem::Dependency
|
88
|
-
name: thor
|
89
|
-
requirement: !ruby/object:Gem::Requirement
|
90
|
-
requirements:
|
91
|
-
- - ">="
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: '0'
|
94
|
-
type: :runtime
|
95
|
-
prerelease: false
|
96
|
-
version_requirements: !ruby/object:Gem::Requirement
|
97
|
-
requirements:
|
98
|
-
- - ">="
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
version: '0'
|
101
59
|
- !ruby/object:Gem::Dependency
|
102
60
|
name: awesome_print
|
103
61
|
requirement: !ruby/object:Gem::Requirement
|
@@ -249,19 +207,9 @@ executables: []
|
|
249
207
|
extensions: []
|
250
208
|
extra_rdoc_files: []
|
251
209
|
files:
|
252
|
-
- ".github/ISSUE_TEMPLATE.md"
|
253
|
-
- ".gitignore"
|
254
|
-
- ".rspec"
|
255
|
-
- ".travis.yml"
|
256
|
-
- Appraisals
|
257
210
|
- CHANGELOG.md
|
258
|
-
- Gemfile
|
259
211
|
- LICENSE.txt
|
260
212
|
- README.md
|
261
|
-
- RELEASING.md
|
262
|
-
- Rakefile
|
263
|
-
- gemfiles/default.gemfile
|
264
|
-
- gemfiles/ruby_under_22.gemfile
|
265
213
|
- lib/pact/array_like.rb
|
266
214
|
- lib/pact/configuration.rb
|
267
215
|
- lib/pact/consumer/request.rb
|
@@ -331,95 +279,7 @@ files:
|
|
331
279
|
- lib/pact/symbolize_keys.rb
|
332
280
|
- lib/pact/term.rb
|
333
281
|
- lib/tasks/pact.rake
|
334
|
-
|
335
|
-
- script/release.sh
|
336
|
-
- script/update-pact-specification-v2
|
337
|
-
- spec/fixtures/interaction-with-matching-rules.json
|
338
|
-
- spec/fixtures/multipart-form-diff.txt
|
339
|
-
- spec/fixtures/not-a-pact.json
|
340
|
-
- spec/fixtures/pact-http-v2.json
|
341
|
-
- spec/fixtures/pact-http-v3.json
|
342
|
-
- spec/integration/matching_rules_extract_and_merge_spec.rb
|
343
|
-
- spec/lib/pact/array_like_spec.rb
|
344
|
-
- spec/lib/pact/configuration_spec.rb
|
345
|
-
- spec/lib/pact/consumer/request_spec.rb
|
346
|
-
- spec/lib/pact/consumer_contract/active_support_support_spec.rb
|
347
|
-
- spec/lib/pact/consumer_contract/consumer_contract_spec.rb
|
348
|
-
- spec/lib/pact/consumer_contract/file_name_spec.rb
|
349
|
-
- spec/lib/pact/consumer_contract/headers_spec.rb
|
350
|
-
- spec/lib/pact/consumer_contract/http_consumer_contract_parser_spec.rb
|
351
|
-
- spec/lib/pact/consumer_contract/interaction_parser_spec.rb
|
352
|
-
- spec/lib/pact/consumer_contract/interaction_spec.rb
|
353
|
-
- spec/lib/pact/consumer_contract/interaction_v2_parser_spec.rb
|
354
|
-
- spec/lib/pact/consumer_contract/interaction_v3_parser_spec.rb
|
355
|
-
- spec/lib/pact/consumer_contract/pact_file_spec.rb
|
356
|
-
- spec/lib/pact/consumer_contract/query_hash_spec.rb
|
357
|
-
- spec/lib/pact/consumer_contract/query_string_spec.rb
|
358
|
-
- spec/lib/pact/consumer_contract/request_spec.rb
|
359
|
-
- spec/lib/pact/consumer_contract/response_spec.rb
|
360
|
-
- spec/lib/pact/helpers_spec.rb
|
361
|
-
- spec/lib/pact/matchers/differ_spec.rb
|
362
|
-
- spec/lib/pact/matchers/difference_spec.rb
|
363
|
-
- spec/lib/pact/matchers/embedded_diff_formatter_spec.rb
|
364
|
-
- spec/lib/pact/matchers/extract_diff_messages_spec.rb
|
365
|
-
- spec/lib/pact/matchers/index_not_found_spec.rb
|
366
|
-
- spec/lib/pact/matchers/list_diff_formatter_spec.rb
|
367
|
-
- spec/lib/pact/matchers/matchers_array_like_spec.rb
|
368
|
-
- spec/lib/pact/matchers/matchers_messages_hash_and_array_spec.rb
|
369
|
-
- spec/lib/pact/matchers/matchers_messages_mismatched_value_spec.rb
|
370
|
-
- spec/lib/pact/matchers/matchers_messages_regexp_spec.rb
|
371
|
-
- spec/lib/pact/matchers/matchers_spec.rb
|
372
|
-
- spec/lib/pact/matchers/multipart_form_diff_formatter_spec.rb
|
373
|
-
- spec/lib/pact/matchers/no_diff_at_index_spec.rb
|
374
|
-
- spec/lib/pact/matchers/regexp_difference_spec.rb
|
375
|
-
- spec/lib/pact/matchers/type_difference_spec.rb
|
376
|
-
- spec/lib/pact/matchers/unexpected_index_spec.rb
|
377
|
-
- spec/lib/pact/matchers/unexpected_key_spec.rb
|
378
|
-
- spec/lib/pact/matchers/unix_diff_formatter_spec.rb
|
379
|
-
- spec/lib/pact/matching_rules/extract_spec.rb
|
380
|
-
- spec/lib/pact/matching_rules/merge_spec.rb
|
381
|
-
- spec/lib/pact/matching_rules/v3/extract_spec.rb
|
382
|
-
- spec/lib/pact/matching_rules/v3/merge_spec.rb
|
383
|
-
- spec/lib/pact/matching_rules_spec.rb
|
384
|
-
- spec/lib/pact/reification_spec.rb
|
385
|
-
- spec/lib/pact/shared/dsl_spec.rb
|
386
|
-
- spec/lib/pact/shared/form_differ_spec.rb
|
387
|
-
- spec/lib/pact/shared/json_differ_spec.rb
|
388
|
-
- spec/lib/pact/shared/key_not_found_spec.rb
|
389
|
-
- spec/lib/pact/shared/multipart_form_differ_spec.rb
|
390
|
-
- spec/lib/pact/shared/request_spec.rb
|
391
|
-
- spec/lib/pact/shared/text_differ_spec.rb
|
392
|
-
- spec/lib/pact/something_like_spec.rb
|
393
|
-
- spec/lib/pact/support_spec.rb
|
394
|
-
- spec/lib/pact/symbolize_keys_spec.rb
|
395
|
-
- spec/lib/pact/term_spec.rb
|
396
|
-
- spec/pact_specification/compliance-2.0.rb
|
397
|
-
- spec/spec_helper.rb
|
398
|
-
- spec/support/a_consumer-a_producer.json
|
399
|
-
- spec/support/a_consumer-a_provider.json
|
400
|
-
- spec/support/active_support_if_configured.rb
|
401
|
-
- spec/support/case-insensitive-response-header-matching.json
|
402
|
-
- spec/support/consumer_contract_template.json
|
403
|
-
- spec/support/dsl_spec_support.rb
|
404
|
-
- spec/support/factories.rb
|
405
|
-
- spec/support/generated_index.md
|
406
|
-
- spec/support/generated_markdown.md
|
407
|
-
- spec/support/interaction_view_model.json
|
408
|
-
- spec/support/interaction_view_model_with_terms.json
|
409
|
-
- spec/support/markdown_pact.json
|
410
|
-
- spec/support/missing_provider_states_output.txt
|
411
|
-
- spec/support/options.json
|
412
|
-
- spec/support/ruby_version_helpers.rb
|
413
|
-
- spec/support/shared_examples_for_request.rb
|
414
|
-
- spec/support/spec_support.rb
|
415
|
-
- spec/support/stubbing.json
|
416
|
-
- spec/support/term.json
|
417
|
-
- spec/support/test_app_fail.json
|
418
|
-
- spec/support/test_app_pass.json
|
419
|
-
- spec/support/test_app_with_right_content_type_differ.json
|
420
|
-
- tasks/release.rake
|
421
|
-
- tasks/spec.rake
|
422
|
-
homepage: https://github.com/bethesque/pact-support
|
282
|
+
homepage: https://github.com/pact-foundation/pact-support
|
423
283
|
licenses:
|
424
284
|
- MIT
|
425
285
|
metadata: {}
|
@@ -443,87 +303,4 @@ rubygems_version: 2.6.11
|
|
443
303
|
signing_key:
|
444
304
|
specification_version: 4
|
445
305
|
summary: Shared code for Pact gems
|
446
|
-
test_files:
|
447
|
-
- spec/fixtures/interaction-with-matching-rules.json
|
448
|
-
- spec/fixtures/multipart-form-diff.txt
|
449
|
-
- spec/fixtures/not-a-pact.json
|
450
|
-
- spec/fixtures/pact-http-v2.json
|
451
|
-
- spec/fixtures/pact-http-v3.json
|
452
|
-
- spec/integration/matching_rules_extract_and_merge_spec.rb
|
453
|
-
- spec/lib/pact/array_like_spec.rb
|
454
|
-
- spec/lib/pact/configuration_spec.rb
|
455
|
-
- spec/lib/pact/consumer/request_spec.rb
|
456
|
-
- spec/lib/pact/consumer_contract/active_support_support_spec.rb
|
457
|
-
- spec/lib/pact/consumer_contract/consumer_contract_spec.rb
|
458
|
-
- spec/lib/pact/consumer_contract/file_name_spec.rb
|
459
|
-
- spec/lib/pact/consumer_contract/headers_spec.rb
|
460
|
-
- spec/lib/pact/consumer_contract/http_consumer_contract_parser_spec.rb
|
461
|
-
- spec/lib/pact/consumer_contract/interaction_parser_spec.rb
|
462
|
-
- spec/lib/pact/consumer_contract/interaction_spec.rb
|
463
|
-
- spec/lib/pact/consumer_contract/interaction_v2_parser_spec.rb
|
464
|
-
- spec/lib/pact/consumer_contract/interaction_v3_parser_spec.rb
|
465
|
-
- spec/lib/pact/consumer_contract/pact_file_spec.rb
|
466
|
-
- spec/lib/pact/consumer_contract/query_hash_spec.rb
|
467
|
-
- spec/lib/pact/consumer_contract/query_string_spec.rb
|
468
|
-
- spec/lib/pact/consumer_contract/request_spec.rb
|
469
|
-
- spec/lib/pact/consumer_contract/response_spec.rb
|
470
|
-
- spec/lib/pact/helpers_spec.rb
|
471
|
-
- spec/lib/pact/matchers/differ_spec.rb
|
472
|
-
- spec/lib/pact/matchers/difference_spec.rb
|
473
|
-
- spec/lib/pact/matchers/embedded_diff_formatter_spec.rb
|
474
|
-
- spec/lib/pact/matchers/extract_diff_messages_spec.rb
|
475
|
-
- spec/lib/pact/matchers/index_not_found_spec.rb
|
476
|
-
- spec/lib/pact/matchers/list_diff_formatter_spec.rb
|
477
|
-
- spec/lib/pact/matchers/matchers_array_like_spec.rb
|
478
|
-
- spec/lib/pact/matchers/matchers_messages_hash_and_array_spec.rb
|
479
|
-
- spec/lib/pact/matchers/matchers_messages_mismatched_value_spec.rb
|
480
|
-
- spec/lib/pact/matchers/matchers_messages_regexp_spec.rb
|
481
|
-
- spec/lib/pact/matchers/matchers_spec.rb
|
482
|
-
- spec/lib/pact/matchers/multipart_form_diff_formatter_spec.rb
|
483
|
-
- spec/lib/pact/matchers/no_diff_at_index_spec.rb
|
484
|
-
- spec/lib/pact/matchers/regexp_difference_spec.rb
|
485
|
-
- spec/lib/pact/matchers/type_difference_spec.rb
|
486
|
-
- spec/lib/pact/matchers/unexpected_index_spec.rb
|
487
|
-
- spec/lib/pact/matchers/unexpected_key_spec.rb
|
488
|
-
- spec/lib/pact/matchers/unix_diff_formatter_spec.rb
|
489
|
-
- spec/lib/pact/matching_rules/extract_spec.rb
|
490
|
-
- spec/lib/pact/matching_rules/merge_spec.rb
|
491
|
-
- spec/lib/pact/matching_rules/v3/extract_spec.rb
|
492
|
-
- spec/lib/pact/matching_rules/v3/merge_spec.rb
|
493
|
-
- spec/lib/pact/matching_rules_spec.rb
|
494
|
-
- spec/lib/pact/reification_spec.rb
|
495
|
-
- spec/lib/pact/shared/dsl_spec.rb
|
496
|
-
- spec/lib/pact/shared/form_differ_spec.rb
|
497
|
-
- spec/lib/pact/shared/json_differ_spec.rb
|
498
|
-
- spec/lib/pact/shared/key_not_found_spec.rb
|
499
|
-
- spec/lib/pact/shared/multipart_form_differ_spec.rb
|
500
|
-
- spec/lib/pact/shared/request_spec.rb
|
501
|
-
- spec/lib/pact/shared/text_differ_spec.rb
|
502
|
-
- spec/lib/pact/something_like_spec.rb
|
503
|
-
- spec/lib/pact/support_spec.rb
|
504
|
-
- spec/lib/pact/symbolize_keys_spec.rb
|
505
|
-
- spec/lib/pact/term_spec.rb
|
506
|
-
- spec/pact_specification/compliance-2.0.rb
|
507
|
-
- spec/spec_helper.rb
|
508
|
-
- spec/support/a_consumer-a_producer.json
|
509
|
-
- spec/support/a_consumer-a_provider.json
|
510
|
-
- spec/support/active_support_if_configured.rb
|
511
|
-
- spec/support/case-insensitive-response-header-matching.json
|
512
|
-
- spec/support/consumer_contract_template.json
|
513
|
-
- spec/support/dsl_spec_support.rb
|
514
|
-
- spec/support/factories.rb
|
515
|
-
- spec/support/generated_index.md
|
516
|
-
- spec/support/generated_markdown.md
|
517
|
-
- spec/support/interaction_view_model.json
|
518
|
-
- spec/support/interaction_view_model_with_terms.json
|
519
|
-
- spec/support/markdown_pact.json
|
520
|
-
- spec/support/missing_provider_states_output.txt
|
521
|
-
- spec/support/options.json
|
522
|
-
- spec/support/ruby_version_helpers.rb
|
523
|
-
- spec/support/shared_examples_for_request.rb
|
524
|
-
- spec/support/spec_support.rb
|
525
|
-
- spec/support/stubbing.json
|
526
|
-
- spec/support/term.json
|
527
|
-
- spec/support/test_app_fail.json
|
528
|
-
- spec/support/test_app_pass.json
|
529
|
-
- spec/support/test_app_with_right_content_type_differ.json
|
306
|
+
test_files: []
|
data/.github/ISSUE_TEMPLATE.md
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# Pre issue-raising checklist
|
2
|
-
|
3
|
-
I have already (please mark the applicable with an `x`):
|
4
|
-
|
5
|
-
* [ ] Upgraded to the latest version of the relevant libraries
|
6
|
-
* [ ] Checked to see if the issue has already been raised
|
7
|
-
* [ ] Created an executable example that demonstrates the issue using either:
|
8
|
-
* a Dockerfile
|
9
|
-
* a fork of https://github.com/pact-foundation/pact-ruby-standalone-e2e-example
|
10
|
-
* a Git repository with a Travis or Appveyor (or similar) build
|
11
|
-
* a gist with all the relevant code and full instructions on how to run it
|
12
|
-
|
13
|
-
## Software versions
|
14
|
-
|
15
|
-
* **pact-support:** eg pact-js 1.2.3
|
16
|
-
* **pact-ruby-standalone** (if relevant): eg 2.3.1-1
|
17
|
-
* **OS**: e.g. Mac OSX 10.11.5
|
18
|
-
|
19
|
-
## Expected behaviour
|
20
|
-
|
21
|
-
Please complete...
|
22
|
-
|
23
|
-
## Actual behaviour
|
24
|
-
|
25
|
-
Please complete...
|
26
|
-
|
27
|
-
## Steps to reproduce
|
28
|
-
|
29
|
-
Your bug will be fixed in our free time, so help us to help you, and make it as easy as possible for us to reproduce the issue. Issues that take longer to reproduce are less likely to be fixed quickly. Please provide a Dockerfile or git repository + build, with instructions on how to reproduce the issue.
|
30
|
-
|
31
|
-
## Relevent log files
|
32
|
-
|
33
|
-
Please ensure you set logging to `DEBUG` and attach any relevant log files here (or link from a gist).
|
data/.gitignore
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
.bundle
|
4
|
-
.config
|
5
|
-
.yardoc
|
6
|
-
InstalledFiles
|
7
|
-
_yardoc
|
8
|
-
coverage
|
9
|
-
lib/bundler/man
|
10
|
-
pkg
|
11
|
-
rdoc
|
12
|
-
spec/reports
|
13
|
-
test/tmp
|
14
|
-
test/version_tmp
|
15
|
-
tmp
|
16
|
-
*.swp
|
17
|
-
.bin
|
18
|
-
tags
|
19
|
-
.rbenv-version
|
20
|
-
spec/pacts
|
21
|
-
.rvmrc
|
22
|
-
*.iml
|
23
|
-
.rakeTasks
|
24
|
-
*~
|
25
|
-
.ruby-gemset
|
26
|
-
.ruby-version
|
27
|
-
log
|
28
|
-
.idea
|
29
|
-
reports
|
30
|
-
Gemfile.lock
|
31
|
-
gemfiles/*.lock
|
32
|
-
spec/examples.txt
|