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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e485798ab6743cfdc2d99c1bd54b66ca4e80e28
4
- data.tar.gz: 40801208dfbcdd0db7a93e528819b63884a54381
3
+ metadata.gz: 4623b490060cc82d7c1349fd6119c7eb9db846be
4
+ data.tar.gz: 0b65825c719cb6112732fbef9ae4a7d970ff09b0
5
5
  SHA512:
6
- metadata.gz: 4d459fe2831df7182485d1dd84c5bd44523ac33186016ce046f0c314464ede165091a548dca55cb06a891c43c5925531f76e8da187a742e65973536e4161f6f2
7
- data.tar.gz: 128fc9bd83257fffbca3a27cb5a23586362b53c217daee5539d0e9ab3e4392a9816592692e937caea47e0a06fbba11a5bb0e44fb506b0ee03a542ecb5d6ffce2
6
+ metadata.gz: 2410094b111d55139aa5d7680df0c17be09b2ac4977f155a202b57c96119d45656cfd558593817c577c3e4931f522316b8a65862843ed7da7dcf97869aff252d
7
+ data.tar.gz: d8c0cf553285955e4746b64e8703893e6870e09e094e8189f74fa95214dfe80b618fe94dde211e83ba74875768eb27981c43f7bf02d5aa19dfab7dd6c2f675fe
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ <a name="v0.3.0"></a>
2
+ ### v0.3.0 (2018-04-03)
3
+
4
+
5
+ #### Features
6
+
7
+ * add pact-message reify to cli ([782a09b](/../../commit/782a09b))
8
+
9
+
1
10
  <a name="v0.1.5"></a>
2
11
  ### v0.1.5 (2018-03-26)
3
12
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module Message
3
- VERSION = "0.2.1"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
data/script/release.sh CHANGED
@@ -1,12 +1,13 @@
1
1
  #!/bin/bash
2
2
  set -e
3
3
 
4
- git reset HEAD CHANGELOG.md lib/pact/message/version.rb # avoid accidentally double incrementing when previous run fails
5
- git checkout -- lib/pact/message/version.rb # avoid accidentally double incrementing when previous run fails
6
- # git checkout -- CHANGELOG.md # avoid accidentally double incrementing when previous run fails
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.2.1
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-25 00:00:00.000000000 Z
11
+ date: 2018-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pact-support