pact-message 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/pact/message/cli.rb +6 -0
- data/lib/pact/message/version.rb +1 -1
- data/script/release.sh +5 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4623b490060cc82d7c1349fd6119c7eb9db846be
|
4
|
+
data.tar.gz: 0b65825c719cb6112732fbef9ae4a7d970ff09b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2410094b111d55139aa5d7680df0c17be09b2ac4977f155a202b57c96119d45656cfd558593817c577c3e4931f522316b8a65862843ed7da7dcf97869aff252d
|
7
|
+
data.tar.gz: d8c0cf553285955e4746b64e8703893e6870e09e094e8189f74fa95214dfe80b618fe94dde211e83ba74875768eb27981c43f7bf02d5aa19dfab7dd6c2f675fe
|
data/CHANGELOG.md
CHANGED
data/lib/pact/message/cli.rb
CHANGED
@@ -17,6 +17,12 @@ module Pact
|
|
17
17
|
message = Pact::Message.from_hash(JSON.parse(message), { pact_specification_version: pact_specification_version })
|
18
18
|
Pact::Message::Consumer::UpdatePact.call(message, options.pact_dir, options.consumer, options.provider, options.pact_specification_version)
|
19
19
|
end
|
20
|
+
|
21
|
+
desc 'reify', "Take a JSON document with embedded pact matchers and return a concrete example"
|
22
|
+
def reify(json)
|
23
|
+
require 'pact/support'
|
24
|
+
puts Pact::Reification.from_term(JSON.load(json)).to_json
|
25
|
+
end
|
20
26
|
end
|
21
27
|
end
|
22
28
|
end
|
data/lib/pact/message/version.rb
CHANGED
data/script/release.sh
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
#!/bin/bash
|
2
2
|
set -e
|
3
3
|
|
4
|
-
|
5
|
-
git
|
6
|
-
|
4
|
+
# avoid accidentally double incrementing when previous run fails
|
5
|
+
git reset HEAD CHANGELOG.md lib/pact/message/version.rb
|
6
|
+
git checkout -- lib/pact/message/version.rb
|
7
|
+
git checkout -- CHANGELOG.md
|
7
8
|
bundle exec bump ${1:-minor} --no-commit
|
8
9
|
bundle exec rake generate_changelog
|
9
10
|
git add CHANGELOG.md lib/pact/message/version.rb
|
10
11
|
git commit -m "chore(release): version $(ruby -r ./lib/pact/message/version.rb -e "puts Pact::Message::VERSION")"
|
11
|
-
bundle exec rake tag_for_release
|
12
|
+
# bundle exec rake tag_for_release # TODO move release to travis
|
12
13
|
bundle exec rake release
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pact-message
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Beth Skurrie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03
|
11
|
+
date: 2018-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pact-support
|