Sha256: fa3111b1970f6cf42a0d1eabdc32f1792c7d0da64973a480f61e09f80c862513

Contents?: true

Size: 632 Bytes

Versions: 8

Compression:

Stored size: 632 Bytes

Contents

# set -x
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 "require 'semver'; puts SemVer.parse(ARGF.read[/\d+\.\d\.\d+/]).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://127.0.0.1:9292/pacts/provider/Bar/consumer/Foo/version/${next_version}
rm tmp.json
echo ""

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pact_broker-2.4.0 script/publish-new.sh
pact_broker-2.3.0 script/publish-new.sh
pact_broker-2.2.0 script/publish-new.sh
pact_broker-2.1.1 script/publish-new.sh
pact_broker-2.1.0 script/publish-new.sh
pact_broker-2.0.5 script/publish-new.sh
pact_broker-2.0.4 script/publish-new.sh
pact_broker-2.0.3 script/publish-new.sh