pact-message 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +1 -1
- data/CHANGELOG.md +7 -0
- data/README.md +50 -1
- data/lib/pact/message/version.rb +1 -1
- data/pact-message.gemspec +1 -1
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f26e9b2d322f3bb375df2197aa2180f8de0b4d62e45decf77e4c4b3802505ffa
|
4
|
+
data.tar.gz: 130523097c7c65ddc0bf9d9dbf4464d7d17dfb7de97c7ef97471535be265e382
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 184da6d526714237d5ec94c7a27b5c8e8562a91023cd6ede596e6a7aa8adf34ba1249650a01f4f50bcdcbd78fa529799cfd04922a00a51f90f832477f7cd35ff
|
7
|
+
data.tar.gz: 8b24b7de4e4d24c41e4520d5ba0008d3ca719f7be4c17fa7c0d70d7bf4ea0fcb32e1910fcb37b543b4040d16e02f9ac672e478dfe06f6961bdbff86a67b7378f
|
data/.github/workflows/test.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -94,7 +94,56 @@ Provider states work the same way for Message Pact as they do for HTTP Pact. Ple
|
|
94
94
|
|
95
95
|
## Development
|
96
96
|
|
97
|
-
|
97
|
+
### Setup
|
98
|
+
|
99
|
+
After checking out the repo, run the following to install dependencies.
|
100
|
+
|
101
|
+
```bash
|
102
|
+
$ bundle exec bin/setup
|
103
|
+
|
104
|
+
bundle install
|
105
|
+
\+ bundle install
|
106
|
+
...
|
107
|
+
Bundle complete! 6 Gemfile dependencies, 29 gems now installed.
|
108
|
+
Use `bundle info [gemname]` to see where a bundled gem is installed.
|
109
|
+
|
110
|
+
Do any other automated setup that you need to do here
|
111
|
+
```
|
112
|
+
|
113
|
+
### Tests
|
114
|
+
|
115
|
+
Run the following command to run the tests.
|
116
|
+
|
117
|
+
```bash
|
118
|
+
$ bundle exec rake spec
|
119
|
+
|
120
|
+
the CLI
|
121
|
+
creates a pact file with the given message
|
122
|
+
creates a pact file with a message from the standard input
|
123
|
+
...
|
124
|
+
Finished in 0.50883 seconds (files took 0.15053 seconds to load)
|
125
|
+
26 examples, 0 failures, 2 pending
|
126
|
+
```
|
127
|
+
|
128
|
+
### Interactive Prompt
|
129
|
+
|
130
|
+
You can run the following command for an for an interactive prompt that will allow you to experiment.
|
131
|
+
|
132
|
+
```bash
|
133
|
+
$ bundle exec bin/console
|
134
|
+
2.6.6 :001 >
|
135
|
+
```
|
136
|
+
|
137
|
+
To execute commands on the CLI run the following command followed by command line arguments as you would with the published version.
|
138
|
+
|
139
|
+
```bash
|
140
|
+
$ bundle exec bin/pact-message
|
141
|
+
Commands:
|
142
|
+
pact-message help [COMMAND] # Describe available commands or one specific command
|
143
|
+
pact-message reify # Take a JSON document with embedded pact matchers and return...
|
144
|
+
pact-message update MESSAGE_JSON --consumer=CONSUMER --pact-dir=PACT_DIR --provider=PROVIDER # Update/create a pact. If MESSAGE_JSON is omitted or '-', it...
|
145
|
+
pact-message version # Show the pact-message gem version
|
146
|
+
```
|
98
147
|
|
99
148
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
100
149
|
|
data/lib/pact/message/version.rb
CHANGED
data/pact-message.gemspec
CHANGED
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
|
|
34
34
|
# and Pact::ConsumerContractWriter. Potentially we should extract
|
35
35
|
# or duplicate these classes to remove the pact-mock_service dependency.
|
36
36
|
spec.add_runtime_dependency "pact-mock_service", "~> 3.1"
|
37
|
-
spec.add_runtime_dependency "thor",
|
37
|
+
spec.add_runtime_dependency "thor", '>= 0.20', '< 2.0'
|
38
38
|
|
39
39
|
spec.add_development_dependency "rake", "~> 12.3", ">= 12.3.3"
|
40
40
|
spec.add_development_dependency "rspec", "~> 3.0"
|
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.11.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: 2021-
|
11
|
+
date: 2021-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pact-support
|
@@ -42,16 +42,22 @@ dependencies:
|
|
42
42
|
name: thor
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0.20'
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '2.0'
|
48
51
|
type: :runtime
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
|
-
- - "
|
55
|
+
- - ">="
|
53
56
|
- !ruby/object:Gem::Version
|
54
57
|
version: '0.20'
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '2.0'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: rake
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
212
|
- !ruby/object:Gem::Version
|
207
213
|
version: '0'
|
208
214
|
requirements: []
|
209
|
-
rubygems_version: 3.2.
|
215
|
+
rubygems_version: 3.2.15
|
210
216
|
signing_key:
|
211
217
|
specification_version: 4
|
212
218
|
summary: Consumer contract library for messages
|