pact_broker-client 1.13.0 → 1.13.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a240cb5444a544a20e73c613823dbb906a91f72
4
- data.tar.gz: 017c87cc9083555bbeedd798ff3da5a006af2136
3
+ metadata.gz: 04be89acaef17f512ad8aab983fe3dfb4d6e9413
4
+ data.tar.gz: 38e3dafaa69d47aa311725647178120a1e25e5f1
5
5
  SHA512:
6
- metadata.gz: de778e9c51875c42ef42c82847cbd2dd1684d275229de7feaec5c478e21ae3c6f4caa10f690e9ce054b3c067c33d48d544a30346bb0d581b89087e0509415427
7
- data.tar.gz: 978a327dc7114bf433b81b0e95ce9a3ac0ef6c08399f133a52af36c52eee90dd211438c0a916957344b62f85b7caca5c461f8df7b28de6ece4e8b49c3535738c
6
+ metadata.gz: 863e8363bc8ae586f3975f400ce73a8fed77ea952ce450de96c04d5246a43c7b9b7a93a3c58c2a796cb43da9e7fae06a22f5fa951320c8be057931b0c0e7e361
7
+ data.tar.gz: 7ab61062adeebc8306a9b169fb9c04cddfb777e1979cafc25409647eba8448f11b8f45c7cd6a3accc40d87ec69cc525b2635f5f62bae5f43b66dc713311beed0
data/README.md CHANGED
@@ -1,9 +1,19 @@
1
1
  # Pact Broker Client
2
2
 
3
- A client for the Pact Broker. Publishes pacts to, and retrieves pacts from, the pact broker. The functionality is available via a CLI, or via Ruby configuration code.
3
+ A client for the Pact Broker. Publishes pacts to, and retrieves pacts from, the pact broker. The functionality is available via a CLI, or via Ruby Rake tasks.
4
4
 
5
5
  [![Build Status](https://travis-ci.org/pact-foundation/pact_broker-client.svg?branch=master)](https://travis-ci.org/pact-foundation/pact_broker-client)
6
6
 
7
+ ## Installation
8
+
9
+ ### CLI
10
+
11
+ Download the latest [pact-ruby-standalone][pact-ruby-standalone] package. You do not need Ruby to run the CLI, as the Ruby runtime is packaged with the executable using Travelling Ruby.
12
+
13
+ ### Ruby
14
+
15
+ Add `gem 'pact_broker-client'` to your Gemfile and run `bundle install`, or install the gem directly by running `gem install pact_broker-client`.
16
+
7
17
  ## Usage - CLI
8
18
 
9
19
  ### publish
@@ -120,7 +130,7 @@ PactBroker::Client::PublicationTask.new do | task |
120
130
  task.consumer_version = MyConsumer::VERSION
121
131
  task.pattern = 'custom/path/to/pacts/*.json' # optional, default value is 'spec/pacts/*.json'
122
132
  task.pact_broker_base_url = "http://pact-broker"
123
- task.tag_with_git_branch = true|false # STRONGLY RECOMMENDED as it will greatly assist with your pact workflow. Optional, will merge result with other specified task.tags
133
+ task.tag_with_git_branch = true|false # Optional but STRONGLY RECOMMENDED as it will greatly assist with your pact workflow. Result will be merged with other specified task.tags
124
134
  task.tags = ["dev"] # optional
125
135
  task.pact_broker_basic_auth = { username: 'basic_auth_user', password: 'basic_auth_pass'} # optional
126
136
  task.write_method = :merge # optional, this will merge the published pact into an existing pact rather than overwriting it if one exists. Not recommended, as it makes a mulch of the workflow on the broker.
@@ -133,22 +143,5 @@ end
133
143
  bundle exec rake pact:publish
134
144
  ```
135
145
 
136
- ### Provider
137
-
138
- ```ruby
139
- # In spec/service_consumers/pact_helper.rb
140
-
141
- require 'pact/provider/rspec'
142
-
143
- Pact.service_provider "My Provider" do
144
-
145
- honours_pact_with "My Consumer" do
146
- pact_uri URI.encode("http://pact-broker.my.org/pact/provider/My Provider/consumer/My Consumer/latest")
147
- end
148
-
149
- end
150
- ```
151
-
152
-
153
-
154
146
  [wiki-tags]: https://github.com/pact-foundation/pact_broker/wiki/Using-tags
147
+ [pact-ruby-standalone]: https://github.com/pact-foundation/pact-ruby-standalone/releases
@@ -1,5 +1,5 @@
1
1
  module PactBroker
2
2
  module Client
3
- VERSION = '1.13.0'
3
+ VERSION = '1.13.1'
4
4
  end
5
5
  end
@@ -25,6 +25,7 @@ Gem::Specification.new do |gem|
25
25
  gem.add_runtime_dependency 'json'
26
26
  gem.add_runtime_dependency 'term-ansicolor'
27
27
  gem.add_runtime_dependency 'table_print', '~> 1.5'
28
+ gem.add_runtime_dependency 'thor', '~> 0.20'
28
29
 
29
30
  gem.add_development_dependency 'fakefs', '~> 0.4'
30
31
  gem.add_development_dependency 'webmock', '~> 3.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact_broker-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.0
4
+ version: 1.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beth Skurrie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-09 00:00:00.000000000 Z
11
+ date: 2017-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.5'
69
+ - !ruby/object:Gem::Dependency
70
+ name: thor
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.20'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.20'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: fakefs
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -247,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
261
  version: '0'
248
262
  requirements: []
249
263
  rubyforge_project:
250
- rubygems_version: 2.6.11
264
+ rubygems_version: 2.4.5.2
251
265
  signing_key:
252
266
  specification_version: 4
253
267
  summary: See description