Sha256: 821ea7ec54fdbe6b100ac57ef67df6db2d92a76a2d1e5620d5f88d55b3d77269

Contents?: true

Size: 649 Bytes

Versions: 48

Compression:

Stored size: 649 Bytes

Contents

set -e
BODY=$(ruby -e "require 'json'; j = JSON.parse(File.read('script/foo-bar.json')); j['interactions'][0]['providerState'] = 'it is ' + Time.now.to_s; puts j.to_json")
latest_url=$(curl http://localhost:9292/pacts/provider/Bar/consumer/Foo/latest | jq -r ._links.self.href)
next_version=$(echo ${latest_url} | ruby -e "version = ARGF.read[/\d+\.\d+\.\d+/]; require 'semver'; puts SemVer.parse(version).tap{ | v| v.minor = v.minor + 1}.format('%M.%m.%p')")
echo ${BODY} > tmp.json
curl -v -XPUT \-H "Content-Type: application/json" -d@tmp.json \
  http://localhost:9292/pacts/provider/Bar/consumer/Foo/version/${next_version}
rm tmp.json
echo ""

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
pact_broker-2.31.0 script/publish-new.sh
pact_broker-2.30.0 script/publish-new.sh
pact_broker-2.29.0 script/publish-new.sh
pact_broker-2.27.6 script/publish-new.sh
pact_broker-2.27.5 script/publish-new.sh
pact_broker-2.27.4 script/publish-new.sh
pact_broker-2.27.3 script/publish-new.sh
pact_broker-2.27.2 script/publish-new.sh
pact_broker-2.27.0 script/publish-new.sh
pact_broker-2.26.1 script/publish-new.sh
pact_broker-2.26.0 script/publish-new.sh
pact_broker-2.25.0 script/publish-new.sh
pact_broker-2.24.0 script/publish-new.sh
pact_broker-2.23.4 script/publish-new.sh
pact_broker-2.23.3 script/publish-new.sh
pact_broker-2.23.2 script/publish-new.sh
pact_broker-2.23.1 script/publish-new.sh
pact_broker-2.23.0 script/publish-new.sh
pact_broker-2.22.0 script/publish-new.sh
pact_broker-2.21.0 script/publish-new.sh