pact 1.20.0 → 1.21.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 +19 -9
- data/lib/pact/doc/README.md +4 -4
- data/lib/pact/provider/configuration/service_provider_dsl.rb +2 -2
- data/lib/pact/provider/pact_spec_runner.rb +6 -3
- data/lib/pact/tasks/task_helper.rb +2 -2
- data/lib/pact/templates/help.erb +2 -2
- data/lib/pact/version.rb +1 -1
- data/pact.gemspec +2 -2
- metadata +5 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2aece3dcee5f119e9d84e091ed3509399cb4e1b2
|
|
4
|
+
data.tar.gz: ba4ea1bb76866f1a12457c5bbc276774d77220c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: da8af3dbfe258659facc5e384c5db79d43327796778bd85fadaf19894f19bffafada6b6fd2ccbdcbd6421a48ef6c970cea43208447c3ff00498f3f0537fb47b0
|
|
7
|
+
data.tar.gz: 0b2b5f1f931bd65bb8e443cb512bca8e8772c2fdbcc139c12b67ec8742c42ab4e46bc3094f121d8847399b880d1771faa29dba47ce3eded737ea0ced55c7d43c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
<a name="v1.21.0"></a>
|
|
2
|
+
### v1.21.0 (2018-03-19)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
#### Features
|
|
6
|
+
|
|
7
|
+
* update pact-support to ~>1.3 ([17cfbf8](/../../commit/17cfbf8))
|
|
8
|
+
* do not create reports/pacts/help.md when executing verify from a wrapper language ([ea6de47](/../../commit/ea6de47))
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
<a name="v1.20.0"></a>
|
|
2
12
|
### v1.20.0 (2017-12-10)
|
|
3
13
|
|
|
@@ -106,7 +116,7 @@
|
|
|
106
116
|
* b794881 - Read template file with script encoding (Taiki Ono, Wed Nov 2 20:18:50 2016 +0900)
|
|
107
117
|
|
|
108
118
|
### 1.9.4 (19 Aug 2016)
|
|
109
|
-
* 93a1c42 - Ensure consumer level teardown gets called when set up is not defined. https://github.com/
|
|
119
|
+
* 93a1c42 - Ensure consumer level teardown gets called when set up is not defined. https://github.com/pact-foundation/pact-ruby/issues/111 (Beth Skurrie, Fri Aug 19 08:56:20 2016 +1000)
|
|
110
120
|
|
|
111
121
|
### 1.9.3 (27 Jun 2016)
|
|
112
122
|
* edb2208 - Clarify that pact will only work with ruby >= 2.0 (Sergei Matheson, Mon Jun 27 10:53:08 2016 +1000)
|
|
@@ -143,7 +153,7 @@
|
|
|
143
153
|
|
|
144
154
|
### 1.8.1 (15 June 2015)
|
|
145
155
|
|
|
146
|
-
* 207a33d - Escape HTML characters in description when generating 'a' tag IDs. https://github.com/
|
|
156
|
+
* 207a33d - Escape HTML characters in description when generating 'a' tag IDs. https://github.com/pact-foundation/pact_broker/issues/28 (Beth, Mon Jun 15 17:39:02 2015 +1000)
|
|
147
157
|
* 2441e25 - hide the password in the pact uri to_s (lifei zhou, Mon May 4 19:21:40 2015 +1000)
|
|
148
158
|
* 60ba514 - added to_s method on PactUri for printing out the uri when running the test (lifei zhou, Sun May 3 17:20:28 2015 +1000)
|
|
149
159
|
|
|
@@ -230,12 +240,12 @@
|
|
|
230
240
|
|
|
231
241
|
### 1.3.1 (11 August 2014)
|
|
232
242
|
|
|
233
|
-
* 3432259 - Fixed 'pact:verify broken with rspec-core 3.0.3' https://github.com/
|
|
243
|
+
* 3432259 - Fixed 'pact:verify broken with rspec-core 3.0.3' https://github.com/pact-foundation/pact-ruby/issues/44 (bethesque, Mon Aug 11 10:14:42 2014 +1000)
|
|
234
244
|
* e2e8eff - Deleted documentation that has been moved to the wiki (bethesque, Thu Jul 24 15:20:07 2014 +1000)
|
|
235
|
-
* bcc3143 - Fixing bug 'Method case should not matter when matching requests' https://github.com/
|
|
245
|
+
* bcc3143 - Fixing bug 'Method case should not matter when matching requests' https://github.com/pact-foundation/pact-ruby/issues/41 (bethesque, Tue Jul 22 16:51:48 2014 +1000)
|
|
236
246
|
* d4bfab9 - Adding ability to configure DiffFormatter based on content-type (bethesque, Mon Jun 23 21:22:47 2014 +1000)
|
|
237
247
|
* eb330ea - Ensured content-type header works in a case insensitive way when looking up the right differ (bethesque, Mon Jun 23 17:23:04 2014 +1000)
|
|
238
|
-
* 2733e8e - Made header matching case insensitive for requests. Fixing issue https://github.com/
|
|
248
|
+
* 2733e8e - Made header matching case insensitive for requests. Fixing issue https://github.com/pact-foundation/pact-ruby/issues/20 (bethesque, Mon May 26 19:15:48 2014 +1000)
|
|
239
249
|
* 2b8355d - Added nicer error message for scenario when a service provider app has not been configured, and there is no config.ru (bethesque, Mon Jun 23 09:42:18 2014 +1000)
|
|
240
250
|
* 1e774bb - Defaulting to TextDiffer if response has no content-type (bethesque, Sat Jun 21 10:34:44 2014 +1000)
|
|
241
251
|
* 863b093 - Added support for documents without content types (bethesque, Sat Jun 21 10:32:08 2014 +1000)
|
|
@@ -278,10 +288,10 @@
|
|
|
278
288
|
|
|
279
289
|
### 1.1.0.rc4 (1 May 2014)
|
|
280
290
|
|
|
281
|
-
* 5e1b78d - Display / in logs when path is empty https://github.com/
|
|
282
|
-
* 01c5414 - Fixing doc generation bug where Pact::Terms were being displayed https://github.com/
|
|
283
|
-
* 292a14b - Cleaning doc dir before generating new docs as per https://github.com/
|
|
284
|
-
* 73c15dd - Changed default doc_dir to ./doc/pacts as per https://github.com/
|
|
291
|
+
* 5e1b78d - Display / in logs when path is empty https://github.com/pact-foundation/pact-ruby/issues/14 (bethesque, Thu May 1 22:09:29 2014 +1000)
|
|
292
|
+
* 01c5414 - Fixing doc generation bug where Pact::Terms were being displayed https://github.com/pact-foundation/pact-ruby/issues/13 (bethesque, Thu May 1 21:41:11 2014 +1000)
|
|
293
|
+
* 292a14b - Cleaning doc dir before generating new docs as per https://github.com/pact-foundation/pact-ruby/issues/11 (bethesque, Tue Apr 29 12:44:47 2014 +1000)
|
|
294
|
+
* 73c15dd - Changed default doc_dir to ./doc/pacts as per https://github.com/pact-foundation/pact-ruby/issues/12 (bethesque, Tue Apr 29 12:33:57 2014 +1000)
|
|
285
295
|
* 78ca78c - Fixed bug where log_dir was being ignored when set to a non default value (bethesque, Tue Apr 29 07:50:32 2014 +1000)
|
|
286
296
|
|
|
287
297
|
### 1.1.0.rc3 (28 April 2014)
|
data/lib/pact/doc/README.md
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
If you would like to generate HTML documentation, see how the [HTMLPactRenderer][html_pact_renderer] in the Pact Broker does it.
|
|
8
8
|
|
|
9
|
-
[consumer_contract_renderer]: https://github.com/
|
|
10
|
-
[index_renderer]: https://github.com/
|
|
11
|
-
[generator]: https://github.com/
|
|
12
|
-
[html_pact_renderer]: https://github.com/
|
|
9
|
+
[consumer_contract_renderer]: https://github.com/pact-foundation/pact-ruby/blob/master/lib/pact/doc/markdown/consumer_contract_renderer.rb
|
|
10
|
+
[index_renderer]: https://github.com/pact-foundation/pact-ruby/blob/master/lib/pact/doc/markdown/index_renderer.rb
|
|
11
|
+
[generator]: https://github.com/pact-foundation/pact-ruby/blob/master/lib/pact/doc/markdown/generator.rb
|
|
12
|
+
[html_pact_renderer]: https://github.com/pact-foundation/pact_broker/blob/master/lib/pact_broker/api/renderers/html_pact_renderer.rb
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ module Pact
|
|
|
17
17
|
|
|
18
18
|
CONFIG_RU_APP = lambda {
|
|
19
19
|
unless File.exist? Pact.configuration.config_ru_path
|
|
20
|
-
raise "Could not find config.ru file at #{Pact.configuration.config_ru_path} Please configure the service provider app or create a config.ru file in the root directory of the project. See https://github.com/
|
|
20
|
+
raise "Could not find config.ru file at #{Pact.configuration.config_ru_path} Please configure the service provider app or create a config.ru file in the root directory of the project. See https://github.com/pact-foundation/pact-ruby/wiki/Verifying-pacts for more information."
|
|
21
21
|
end
|
|
22
22
|
Rack::Builder.parse_file(Pact.configuration.config_ru_path).first
|
|
23
23
|
}
|
|
@@ -80,4 +80,4 @@ module Pact
|
|
|
80
80
|
end
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
|
-
end
|
|
83
|
+
end
|
|
@@ -90,11 +90,11 @@ module Pact
|
|
|
90
90
|
# For the Pact::Provider::RSpec::PactBrokerFormatter
|
|
91
91
|
Pact.provider_world.pact_sources = pact_sources
|
|
92
92
|
jsons = pact_jsons
|
|
93
|
+
executing_with_ruby = executing_with_ruby?
|
|
93
94
|
|
|
94
95
|
config.after(:suite) do | suite |
|
|
95
|
-
Pact::Provider::Help::Write.call(jsons)
|
|
96
|
+
Pact::Provider::Help::Write.call(jsons) if executing_with_ruby
|
|
96
97
|
end
|
|
97
|
-
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
def run_specs
|
|
@@ -152,12 +152,15 @@ module Pact
|
|
|
152
152
|
false
|
|
153
153
|
end
|
|
154
154
|
|
|
155
|
+
def executing_with_ruby?
|
|
156
|
+
ENV['PACT_EXECUTING_LANGUAGE'] == 'ruby'
|
|
157
|
+
end
|
|
158
|
+
|
|
155
159
|
class NoConfigurationOptions
|
|
156
160
|
def method_missing(method, *args, &block)
|
|
157
161
|
# Do nothing!
|
|
158
162
|
end
|
|
159
163
|
end
|
|
160
|
-
|
|
161
164
|
end
|
|
162
165
|
end
|
|
163
166
|
end
|
|
@@ -26,7 +26,7 @@ module Pact
|
|
|
26
26
|
command_parts << "SPEC_OPTS=#{Shellwords.escape(rspec_opts || '')}"
|
|
27
27
|
command_parts << FileUtils::RUBY
|
|
28
28
|
command_parts << "-S pact verify"
|
|
29
|
-
command_parts << "--pact-helper" << (pact_helper.end_with?(".rb") ? pact_helper : pact_helper + ".rb")
|
|
29
|
+
command_parts << "--pact-helper" << Shellwords.escape(pact_helper.end_with?(".rb") ? pact_helper : pact_helper + ".rb")
|
|
30
30
|
(command_parts << "--pact-uri" << pact_uri) if pact_uri
|
|
31
31
|
command_parts << "--pact-broker-username" << ENV['PACT_BROKER_USERNAME'] if ENV['PACT_BROKER_USERNAME']
|
|
32
32
|
command_parts << "--pact-broker-password" << ENV['PACT_BROKER_PASSWORD'] if ENV['PACT_BROKER_PASSWORD']
|
|
@@ -53,4 +53,4 @@ module Pact
|
|
|
53
53
|
ENV[name] = original_value
|
|
54
54
|
end
|
|
55
55
|
end
|
|
56
|
-
end
|
|
56
|
+
end
|
data/lib/pact/templates/help.erb
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
config.diff_formatter = :embedded
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
See https://github.com/
|
|
18
|
+
See https://github.com/pact-foundation/pact-ruby/blob/master/documentation/configuration.md#diff_formatter for examples and more information.
|
|
19
19
|
|
|
20
|
-
* Check out https://github.com/
|
|
20
|
+
* Check out https://github.com/pact-foundation/pact-ruby/wiki/Troubleshooting
|
|
21
21
|
|
|
22
22
|
* Ask a question on stackoverflow and tag it `pact-ruby`
|
data/lib/pact/version.rb
CHANGED
data/pact.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
|
|
|
10
10
|
gem.email = ["james.fraser@alumni.swinburne.edu", "sergei.matheson@gmail.com", "brent@fuglylogic.com", "uglyog@gmail.com", "bskurrie@dius.com.au"]
|
|
11
11
|
gem.description = %q{Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.}
|
|
12
12
|
gem.summary = %q{Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.}
|
|
13
|
-
gem.homepage = "https://github.com/
|
|
13
|
+
gem.homepage = "https://github.com/pact-foundation/pact-ruby"
|
|
14
14
|
|
|
15
15
|
gem.required_ruby_version = '>= 2.0'
|
|
16
16
|
|
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |gem|
|
|
|
28
28
|
gem.add_runtime_dependency 'webrick'
|
|
29
29
|
gem.add_runtime_dependency 'term-ansicolor', '~> 1.0'
|
|
30
30
|
|
|
31
|
-
gem.add_runtime_dependency 'pact-support', '~> 1.
|
|
31
|
+
gem.add_runtime_dependency 'pact-support', '~> 1.3'
|
|
32
32
|
gem.add_runtime_dependency 'pact-mock_service', '~> 2.0'
|
|
33
33
|
|
|
34
34
|
gem.add_development_dependency 'rake', '~> 10.0.3'
|
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.
|
|
4
|
+
version: 1.21.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:
|
|
15
|
+
date: 2018-03-18 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: randexp
|
|
@@ -124,20 +124,14 @@ dependencies:
|
|
|
124
124
|
requirements:
|
|
125
125
|
- - "~>"
|
|
126
126
|
- !ruby/object:Gem::Version
|
|
127
|
-
version: '1.
|
|
128
|
-
- - ">="
|
|
129
|
-
- !ruby/object:Gem::Version
|
|
130
|
-
version: 1.2.4
|
|
127
|
+
version: '1.3'
|
|
131
128
|
type: :runtime
|
|
132
129
|
prerelease: false
|
|
133
130
|
version_requirements: !ruby/object:Gem::Requirement
|
|
134
131
|
requirements:
|
|
135
132
|
- - "~>"
|
|
136
133
|
- !ruby/object:Gem::Version
|
|
137
|
-
version: '1.
|
|
138
|
-
- - ">="
|
|
139
|
-
- !ruby/object:Gem::Version
|
|
140
|
-
version: 1.2.4
|
|
134
|
+
version: '1.3'
|
|
141
135
|
- !ruby/object:Gem::Dependency
|
|
142
136
|
name: pact-mock_service
|
|
143
137
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -388,7 +382,7 @@ files:
|
|
|
388
382
|
- lib/pact/version.rb
|
|
389
383
|
- lib/tasks/pact.rake
|
|
390
384
|
- pact.gemspec
|
|
391
|
-
homepage: https://github.com/
|
|
385
|
+
homepage: https://github.com/pact-foundation/pact-ruby
|
|
392
386
|
licenses:
|
|
393
387
|
- MIT
|
|
394
388
|
metadata: {}
|