pact 1.45.0 → 1.46.0

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: 021b58b1630e4e9943572668e342498886c0373a728d88bb0acba4f2f05f8a73
4
- data.tar.gz: ca7709d98dd311e2ded9d210b0ff4c51ecd38f62f278728f511d689a638055e9
3
+ metadata.gz: cb066bd9c58b0085b3dcf8d2a1b2b6ead728548ae780b6611062f7492933c682
4
+ data.tar.gz: 2de9d7e4f33911be208fc92e8f8daaed79f5154b4f794b18da6352028444c07e
5
5
  SHA512:
6
- metadata.gz: 21df8b8dc7ad42d9128ebdd174001d2a013b8eedf815222a54279b78f2b48ea5bdd8fc1e39e5d9c38ce2e881f650b0bde027914a11ccb55cfa7558bca2de8dd2
7
- data.tar.gz: 15218777fc8b7560508c00eb50f297732d7cb8458411e777390ad4a9b0e68f21b12ba84630021e5110c144f8c2c05154f205f6d890d4b43dd3122a5f6033d63b
6
+ metadata.gz: 948b41aa6e5196b3392f7a9057bbe284e00688f25e5293f2e4310469076c0fbd3e3246cf91c8a3e6841754dd6e865c78b716f862185793b019655e5f9d8d0866
7
+ data.tar.gz: 0db721bf7f1746efd56a1e0f2d9fa92c3590a20161dd7bd06c802a820f35c6da3ff7dbe44597855642276853681c1dffebdd1d21c004aa55b6dd927d1be4acac
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ <a name="v1.46.0"></a>
2
+ ### v1.46.0 (2020-01-22)
3
+
4
+
5
+ #### Features
6
+
7
+ * expose full notice object in JSON output ([bdc2711](/../../commit/bdc2711))
8
+
9
+
10
+ #### Bug Fixes
11
+
12
+ * remove accidentally committed verbose: true ([498518c](/../../commit/498518c))
13
+
14
+
1
15
  <a name="v1.45.0"></a>
2
16
  ### v1.45.0 (2020-01-21)
3
17
 
@@ -73,7 +73,11 @@ module Pact
73
73
  end
74
74
 
75
75
  def extract_notices(pact)
76
- (pact["verificationProperties"]["notices"] || []).collect{ |notice| notice["text"] }.compact
76
+ (pact["verificationProperties"]["notices"] || []).collect{ |notice| symbolize_keys(notice) }.compact
77
+ end
78
+
79
+ def symbolize_keys(hash)
80
+ hash.each_with_object({}){ |(k,v), h| h[k.to_sym] = v }
77
81
  end
78
82
 
79
83
  def log_message
@@ -23,7 +23,7 @@ module Pact
23
23
  def hal_entity
24
24
  http_client_keys = [:username, :password, :token]
25
25
  http_client_options = uri.options.reject{ |k, _| !http_client_keys.include?(k) }
26
- http_client = Pact::Hal::HttpClient.new(http_client_options.merge(verbose: true))
26
+ http_client = Pact::Hal::HttpClient.new(http_client_options)
27
27
  Pact::Hal::Entity.new(uri, pact_hash, http_client)
28
28
  end
29
29
  end
@@ -24,7 +24,7 @@ module Pact
24
24
  def honour_pactfile pact_uri, pact_json, options
25
25
  Pact.configuration.output_stream.puts "INFO: Reading pact at #{pact_uri}"
26
26
  (pact_uri.metadata[:notices] || EMPTY_ARRAY).each do | notice |
27
- Pact.configuration.output_stream.puts("DEBUG: #{notice}")
27
+ Pact.configuration.output_stream.puts("DEBUG: #{notice[:text]}")
28
28
  end
29
29
  Pact.configuration.output_stream.puts "DEBUG: Filtering interactions by: #{options[:criteria]}" if options[:criteria] && options[:criteria].any?
30
30
  consumer_contract = Pact::ConsumerContract.from_json(pact_json)
data/lib/pact/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # Remember to bump pact-provider-proxy when this changes major version
2
2
  module Pact
3
- VERSION = "1.45.0"
3
+ VERSION = "1.46.0"
4
4
  end
data/pact.gemspec CHANGED
@@ -26,24 +26,22 @@ Gem::Specification.new do |gem|
26
26
  'documentation_uri' => 'https://github.com/pact-foundation/pact-ruby/blob/master/README.md'
27
27
  }
28
28
 
29
- gem.add_runtime_dependency 'rspec', '>= 2.14'
29
+ gem.add_runtime_dependency 'rspec', '~> 3.0'
30
30
  gem.add_runtime_dependency 'rack-test', '>= 0.6.3', '< 2.0.0'
31
- gem.add_runtime_dependency 'thor'
32
- gem.add_runtime_dependency 'webrick'
31
+ gem.add_runtime_dependency 'thor', '~> 0.20'
32
+ gem.add_runtime_dependency 'webrick', '~> 1.3'
33
33
  gem.add_runtime_dependency 'term-ansicolor', '~> 1.0'
34
34
 
35
35
  gem.add_runtime_dependency 'pact-support', '~> 1.9'
36
36
  gem.add_runtime_dependency 'pact-mock_service', '~> 3.0', '>= 3.3.1'
37
37
 
38
- gem.add_development_dependency 'rake', '~> 10.0.3'
38
+ gem.add_development_dependency 'rake', '~> 10.0'
39
39
  gem.add_development_dependency 'webmock', '~> 3.0'
40
- gem.add_development_dependency 'pry-byebug'
41
40
  gem.add_development_dependency 'fakefs', '0.5' # 0.6.0 blows up
42
41
  gem.add_development_dependency 'hashie', '~> 2.0'
43
- gem.add_development_dependency 'activesupport'
42
+ gem.add_development_dependency 'activesupport', '~> 5.2'
44
43
  gem.add_development_dependency 'faraday', '~> 0.13'
45
- gem.add_development_dependency 'appraisal', '~> 2.2'
46
44
  gem.add_development_dependency 'conventional-changelog', '~> 1.3'
47
45
  gem.add_development_dependency 'bump', '~> 0.5'
48
- gem.add_development_dependency 'pact-message'
46
+ gem.add_development_dependency 'pact-message', '~> 0.6'
49
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.45.0
4
+ version: 1.46.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Fraser
@@ -12,22 +12,22 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2020-01-21 00:00:00.000000000 Z
15
+ date: 2020-01-22 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rspec
19
19
  requirement: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - ">="
21
+ - - "~>"
22
22
  - !ruby/object:Gem::Version
23
- version: '2.14'
23
+ version: '3.0'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - ">="
28
+ - - "~>"
29
29
  - !ruby/object:Gem::Version
30
- version: '2.14'
30
+ version: '3.0'
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: rack-test
33
33
  requirement: !ruby/object:Gem::Requirement
@@ -52,30 +52,30 @@ dependencies:
52
52
  name: thor
53
53
  requirement: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - ">="
55
+ - - "~>"
56
56
  - !ruby/object:Gem::Version
57
- version: '0'
57
+ version: '0.20'
58
58
  type: :runtime
59
59
  prerelease: false
60
60
  version_requirements: !ruby/object:Gem::Requirement
61
61
  requirements:
62
- - - ">="
62
+ - - "~>"
63
63
  - !ruby/object:Gem::Version
64
- version: '0'
64
+ version: '0.20'
65
65
  - !ruby/object:Gem::Dependency
66
66
  name: webrick
67
67
  requirement: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - ">="
69
+ - - "~>"
70
70
  - !ruby/object:Gem::Version
71
- version: '0'
71
+ version: '1.3'
72
72
  type: :runtime
73
73
  prerelease: false
74
74
  version_requirements: !ruby/object:Gem::Requirement
75
75
  requirements:
76
- - - ">="
76
+ - - "~>"
77
77
  - !ruby/object:Gem::Version
78
- version: '0'
78
+ version: '1.3'
79
79
  - !ruby/object:Gem::Dependency
80
80
  name: term-ansicolor
81
81
  requirement: !ruby/object:Gem::Requirement
@@ -130,14 +130,14 @@ dependencies:
130
130
  requirements:
131
131
  - - "~>"
132
132
  - !ruby/object:Gem::Version
133
- version: 10.0.3
133
+ version: '10.0'
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - "~>"
139
139
  - !ruby/object:Gem::Version
140
- version: 10.0.3
140
+ version: '10.0'
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: webmock
143
143
  requirement: !ruby/object:Gem::Requirement
@@ -152,20 +152,6 @@ dependencies:
152
152
  - - "~>"
153
153
  - !ruby/object:Gem::Version
154
154
  version: '3.0'
155
- - !ruby/object:Gem::Dependency
156
- name: pry-byebug
157
- requirement: !ruby/object:Gem::Requirement
158
- requirements:
159
- - - ">="
160
- - !ruby/object:Gem::Version
161
- version: '0'
162
- type: :development
163
- prerelease: false
164
- version_requirements: !ruby/object:Gem::Requirement
165
- requirements:
166
- - - ">="
167
- - !ruby/object:Gem::Version
168
- version: '0'
169
155
  - !ruby/object:Gem::Dependency
170
156
  name: fakefs
171
157
  requirement: !ruby/object:Gem::Requirement
@@ -198,16 +184,16 @@ dependencies:
198
184
  name: activesupport
199
185
  requirement: !ruby/object:Gem::Requirement
200
186
  requirements:
201
- - - ">="
187
+ - - "~>"
202
188
  - !ruby/object:Gem::Version
203
- version: '0'
189
+ version: '5.2'
204
190
  type: :development
205
191
  prerelease: false
206
192
  version_requirements: !ruby/object:Gem::Requirement
207
193
  requirements:
208
- - - ">="
194
+ - - "~>"
209
195
  - !ruby/object:Gem::Version
210
- version: '0'
196
+ version: '5.2'
211
197
  - !ruby/object:Gem::Dependency
212
198
  name: faraday
213
199
  requirement: !ruby/object:Gem::Requirement
@@ -222,20 +208,6 @@ dependencies:
222
208
  - - "~>"
223
209
  - !ruby/object:Gem::Version
224
210
  version: '0.13'
225
- - !ruby/object:Gem::Dependency
226
- name: appraisal
227
- requirement: !ruby/object:Gem::Requirement
228
- requirements:
229
- - - "~>"
230
- - !ruby/object:Gem::Version
231
- version: '2.2'
232
- type: :development
233
- prerelease: false
234
- version_requirements: !ruby/object:Gem::Requirement
235
- requirements:
236
- - - "~>"
237
- - !ruby/object:Gem::Version
238
- version: '2.2'
239
211
  - !ruby/object:Gem::Dependency
240
212
  name: conventional-changelog
241
213
  requirement: !ruby/object:Gem::Requirement
@@ -268,16 +240,16 @@ dependencies:
268
240
  name: pact-message
269
241
  requirement: !ruby/object:Gem::Requirement
270
242
  requirements:
271
- - - ">="
243
+ - - "~>"
272
244
  - !ruby/object:Gem::Version
273
- version: '0'
245
+ version: '0.6'
274
246
  type: :development
275
247
  prerelease: false
276
248
  version_requirements: !ruby/object:Gem::Requirement
277
249
  requirements:
278
- - - ">="
250
+ - - "~>"
279
251
  - !ruby/object:Gem::Version
280
- version: '0'
252
+ version: '0.6'
281
253
  description: Enables consumer driven contract testing, providing a mock service and
282
254
  DSL for the consumer project, and interaction playback and verification for the
283
255
  service provider project.