pact-mock_service 0.3.0 → 0.4.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: fd03f421bbf55e3e676c14e1381c0b8276b65929
4
- data.tar.gz: b083148cc1cc3d7ca79a2a42dc4b55b3b3129bf8
3
+ metadata.gz: 7ee9a3828c35ae046fc6c49f2826958f3154fb43
4
+ data.tar.gz: 046d77f2c46f7c34145b220086021224a44812fe
5
5
  SHA512:
6
- metadata.gz: 5d19c285a1b6c2d97ff25407ede34967c06471ae80f965ddc3cc1ca24e08b313bfaafca9ac7c49f711879e549fee6109aa653430bd063944e4d65c026d163237
7
- data.tar.gz: ed483795cb21f664e482499f53b0fade46e774d978c051edbe906c9b4d5f464433523e6c22d17adcce9690c9a73a4fffde2cb5bba10d2cf4c84094e5050cab5e
6
+ metadata.gz: 9d3bf0d82244b66bc143dac04ef445833a08744941939af21b10bfb71079dc7daa4fef33099e46075d49b827869f273a2b7c6f992e788eda2197142103aa0aa5
7
+ data.tar.gz: bbef13e0ed2761c155a2c2f8b4344735a6fe08ca4057c96faf6a518598e0357e52ca00b64c35a8688e95b1dba5697121a3d8a971c901b281a9f82382244666f4
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@ Do this to generate your change history
2
2
 
3
3
  git log --pretty=format:' * %h - %s (%an, %ad)'
4
4
 
5
+ ### 0.4.0 (13 Feb 2015)
6
+
7
+ * 73ddd98 - Added option to AppManager to set the pact_specification_version (Beth Skurrie, Fri Feb 13 17:41:42 2015 +1100)
8
+ * e4a7405 - Make pactSpecificationVersion in pact file dynamic. (Beth Skurrie, Fri Feb 13 17:20:28 2015 +1100)
9
+ * ed9c550 - Create --pact-specification-version option to toggle between v1 and v2 serialization (Beth Skurrie, Fri Feb 13 16:56:30 2015 +1100)
10
+
5
11
  ### 0.3.0 (4 Feb 2015)
6
12
 
7
13
  * 60869be - Refactor - moving classes from Pact::Consumer module into Pact::MockService module. (Beth Skurrie, Wed Feb 4 19:28:54 2015 +1100)
@@ -6,17 +6,18 @@ module Pact
6
6
 
7
7
  include ActiveSupportSupport
8
8
 
9
- def initialize consumer_contract
9
+ def initialize consumer_contract, decorator_options = {}
10
10
  @consumer_contract = consumer_contract
11
+ @decorator_options = decorator_options
11
12
  end
12
13
 
13
14
  def as_json(options = {})
14
15
  fix_all_the_things(
15
16
  consumer: consumer_contract.consumer.as_json,
16
17
  provider: consumer_contract.provider.as_json,
17
- interactions: consumer_contract.interactions.collect{ |i| InteractionDecorator.new(i).as_json},
18
+ interactions: consumer_contract.interactions.collect{ |i| InteractionDecorator.new(i, @decorator_options).as_json},
18
19
  metadata: {
19
- pactSpecificationVersion: "1.0.0"
20
+ pactSpecificationVersion: pact_specification_version
20
21
  }
21
22
  )
22
23
  end
@@ -29,5 +30,9 @@ module Pact
29
30
 
30
31
  attr_reader :consumer_contract
31
32
 
33
+ def pact_specification_version
34
+ version = @decorator_options.fetch(:pact_specification_version)
35
+ "#{version[0]}.0.0" # Only care about the first digit
36
+ end
32
37
  end
33
38
  end
@@ -12,6 +12,8 @@ module Pact
12
12
 
13
13
  class ConsumerContractWriter
14
14
 
15
+ DEFAULT_PACT_SPECIFICATION_VERSION = '1.0.0'
16
+
15
17
  include Pact::FileName
16
18
  include Pact::PactFile
17
19
  include ActiveSupportSupport
@@ -21,6 +23,7 @@ module Pact
21
23
  @consumer_contract_details = consumer_contract_details
22
24
  @pactfile_write_mode = consumer_contract_details.fetch(:pactfile_write_mode, :overwrite).to_sym
23
25
  @interactions = consumer_contract_details.fetch(:interactions)
26
+ @pact_specification_version = (consumer_contract_details[:pact_specification_version] || DEFAULT_PACT_SPECIFICATION_VERSION).to_s
24
27
  end
25
28
 
26
29
  def consumer_contract
@@ -41,7 +44,7 @@ module Pact
41
44
 
42
45
  private
43
46
 
44
- attr_reader :consumer_contract_details, :pactfile_write_mode, :interactions, :logger
47
+ attr_reader :consumer_contract_details, :pactfile_write_mode, :interactions, :logger, :pact_specification_version
45
48
 
46
49
  def update_pactfile
47
50
  logger.info log_message
@@ -57,7 +60,7 @@ module Pact
57
60
  end
58
61
 
59
62
  def decorated_pact
60
- @decorated_pact ||= Pact::ConsumerContractDecorator.new(consumer_contract)
63
+ @decorated_pact ||= Pact::ConsumerContractDecorator.new(consumer_contract, pact_specification_version: pact_specification_version)
61
64
  end
62
65
 
63
66
  def interactions_for_new_consumer_contract
@@ -7,24 +7,21 @@ module Pact
7
7
 
8
8
  include ActiveSupportSupport
9
9
 
10
- def initialize interaction
10
+ def initialize interaction, decorator_options = {}
11
11
  @interaction = interaction
12
+ @decorator_options = decorator_options
12
13
  end
13
14
 
14
15
  def as_json options = {}
15
- fix_all_the_things to_hash
16
+ hash = { :description => interaction.description }
17
+ hash[:provider_state] = interaction.provider_state if interaction.provider_state
18
+ hash[:request] = decorate_request.as_json(options)
19
+ hash[:response] = decorate_response.as_json(options)
20
+ fix_all_the_things hash
16
21
  end
17
22
 
18
23
  def to_json(options = {})
19
- as_json.to_json(options)
20
- end
21
-
22
- def to_hash
23
- hash = { :description => interaction.description }
24
- hash[:provider_state] = interaction.provider_state if interaction.provider_state
25
- hash[:request] = decorate_request.as_json
26
- hash[:response] = decorate_response.as_json
27
- hash
24
+ as_json(options).to_json(options)
28
25
  end
29
26
 
30
27
  private
@@ -32,11 +29,11 @@ module Pact
32
29
  attr_reader :interaction
33
30
 
34
31
  def decorate_request
35
- RequestDecorator.new(interaction.request)
32
+ RequestDecorator.new(interaction.request, @decorator_options)
36
33
  end
37
34
 
38
35
  def decorate_response
39
- ResponseDecorator.new(interaction.response)
36
+ ResponseDecorator.new(interaction.response, @decorator_options)
40
37
  end
41
38
 
42
39
  end
@@ -3,8 +3,9 @@ require 'pact/reification'
3
3
  module Pact
4
4
  class RequestDecorator
5
5
 
6
- def initialize request
6
+ def initialize request, decorator_options = {}
7
7
  @request = request
8
+ @decorator_options = decorator_options
8
9
  end
9
10
 
10
11
  def to_json(options = {})
@@ -1,8 +1,12 @@
1
+ require 'pact/matching_rules'
2
+ require 'pact/term'
3
+
1
4
  module Pact
2
5
  class ResponseDecorator
3
6
 
4
- def initialize response
7
+ def initialize response, decorator_options = {}
5
8
  @response = response
9
+ @decorator_options = decorator_options
6
10
  end
7
11
 
8
12
  def to_json(options = {})
@@ -10,6 +14,14 @@ module Pact
10
14
  end
11
15
 
12
16
  def as_json options = {}
17
+ include_matching_rules? ? with_matching_rules(attributes_hash) : attributes_hash
18
+ end
19
+
20
+ private
21
+
22
+ attr_reader :response
23
+
24
+ def attributes_hash
13
25
  hash = {}
14
26
  hash[:status] = response.status if response.specified?(:status)
15
27
  hash[:headers] = response.headers if response.specified?(:headers)
@@ -17,9 +29,19 @@ module Pact
17
29
  hash
18
30
  end
19
31
 
20
- private
32
+ def include_matching_rules?
33
+ pact_specification_version && !pact_specification_version.start_with?('1')
34
+ end
21
35
 
22
- attr_reader :response
36
+ def with_matching_rules hash
37
+ matching_rules = Pact::MatchingRules.extract hash
38
+ example = Pact::Reification.from_term hash
39
+ return example if matching_rules.empty?
40
+ example.merge(responseMatchingRules: matching_rules)
41
+ end
23
42
 
43
+ def pact_specification_version
44
+ @decorator_options[:pact_specification_version]
45
+ end
24
46
  end
25
47
  end
@@ -17,8 +17,8 @@ module Pact
17
17
  class App
18
18
 
19
19
  def initialize options = {}
20
- @name = options.fetch(:name, "MockService")
21
20
  logger = Logger.from_options(options)
21
+ @name = options.fetch(:name, "MockService")
22
22
  @session = Session.new(options.merge(logger: logger))
23
23
  request_handlers = RequestHandlers.new(@name, logger, @session, options)
24
24
  @app = Rack::Builder.app do
@@ -22,12 +22,12 @@ module Pact
22
22
  @app_registrations = []
23
23
  end
24
24
 
25
- def register_mock_service_for name, url
25
+ def register_mock_service_for name, url, options = {}
26
26
  uri = URI(url)
27
27
  raise "Currently only http is supported" unless uri.scheme == 'http'
28
28
  raise "Currently only services on localhost are supported" unless uri.host == 'localhost'
29
29
 
30
- register(Pact::MockService.new(log_file: create_log_file(name), name: name, pact_dir: pact_dir), uri.port)
30
+ register(Pact::MockService.new(log_file: create_log_file(name), name: name, pact_dir: pact_dir, pact_specification_version: options[:pact_specification_version]), uri.port)
31
31
  end
32
32
 
33
33
  def register(app, port = FindAPort.available_port)
@@ -16,6 +16,7 @@ module Pact
16
16
  method_option :ssl, desc: "Use a self-signed SSL cert to run the service over HTTPS"
17
17
  method_option :cors, aliases: "-o", desc: "Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses"
18
18
  method_option :pact_dir, aliases: "-d", desc: "Directory to which the pacts will be written"
19
+ method_option :pact_specification_version, aliases: "-i", desc: "The pact specification version to use when writing the pact", default: '1'
19
20
  method_option :consumer, desc: "Consumer name"
20
21
  method_option :provider, desc: "Provider name"
21
22
 
@@ -28,6 +29,7 @@ module Pact
28
29
  method_option :port, aliases: "-p", desc: "Port on which to run the service"
29
30
  method_option :log_dir, aliases: "-l", desc: "File to which to log output"
30
31
  method_option :pact_dir, aliases: "-d", desc: "Directory to which the pacts will be written"
32
+ method_option :pact_specification_version, aliases: "-i", desc: "The pact specification version to use when writing the pact", default: '1'
31
33
  method_option :ssl, desc: "Use a self-signed SSL cert to run the service over HTTPS"
32
34
  method_option :cors, aliases: "-o", desc: "Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses"
33
35
 
@@ -42,6 +44,7 @@ module Pact
42
44
  method_option :ssl, desc: "Use a self-signed SSL cert to run the service over HTTPS"
43
45
  method_option :cors, aliases: "-o", desc: "Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses"
44
46
  method_option :pact_dir, aliases: "-d", desc: "Directory to which the pacts will be written"
47
+ method_option :pact_specification_version, aliases: "-i", desc: "The pact specification version to use when writing the pact", default: '1'
45
48
  method_option :consumer, desc: "Consumer name"
46
49
  method_option :provider, desc: "Provider name"
47
50
  method_option :pid_dir, desc: "PID dir", default: 'tmp/pids'
@@ -66,6 +69,7 @@ module Pact
66
69
  method_option :ssl, desc: "Use a self-signed SSL cert to run the service over HTTPS"
67
70
  method_option :cors, aliases: "-o", desc: "Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses"
68
71
  method_option :pact_dir, aliases: "-d", desc: "Directory to which the pacts will be written"
72
+ method_option :pact_specification_version, aliases: "-i", desc: "The pact specification version to use when writing the pact", default: '1'
69
73
  method_option :consumer, desc: "Consumer name"
70
74
  method_option :provider, desc: "Provider name"
71
75
  method_option :pid_dir, desc: "PID dir", default: 'tmp/pids'
@@ -82,6 +86,7 @@ module Pact
82
86
  method_option :ssl, desc: "Use a self-signed SSL cert to run the service over HTTPS"
83
87
  method_option :cors, aliases: "-o", desc: "Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses"
84
88
  method_option :pact_dir, aliases: "-d", desc: "Directory to which the pacts will be written", default: "."
89
+ method_option :pact_specification_version, aliases: "-i", desc: "The pact specification version to use when writing the pact", default: '1'
85
90
  method_option :pid_dir, desc: "PID dir", default: "tmp/pids"
86
91
 
87
92
  def control_start
@@ -104,6 +109,7 @@ module Pact
104
109
  method_option :ssl, desc: "Use a self-signed SSL cert to run the service over HTTPS"
105
110
  method_option :cors, aliases: "-o", desc: "Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses"
106
111
  method_option :pact_dir, aliases: "-d", desc: "Directory to which the pacts will be written", default: "."
112
+ method_option :pact_specification_version, aliases: "-i", desc: "The pact specification version to use when writing the pact", default: '1'
107
113
  method_option :pid_dir, desc: "PID dir", default: "tmp/pids"
108
114
 
109
115
  def control_restart
@@ -50,7 +50,8 @@ module Pact
50
50
  pact_dir: options[:pact_dir],
51
51
  consumer: options[:consumer],
52
52
  provider: options[:provider],
53
- cors_enabled: options[:cors]
53
+ cors_enabled: options[:cors],
54
+ pact_specification_version: options[:pact_specification_version]
54
55
  }
55
56
  service_options[:log_file] = open_log_file if options[:log]
56
57
  service_options
@@ -22,7 +22,8 @@ module Pact
22
22
  pact_dir: options[:pact_dir],
23
23
  consumer: {name: options[:consumer]},
24
24
  provider: {name: options[:provider]},
25
- interactions: verified_interactions
25
+ interactions: verified_interactions,
26
+ pact_specification_version: options[:pact_specification_version]
26
27
  }
27
28
  end
28
29
 
@@ -41,7 +41,8 @@ module Pact
41
41
  consumer: consumer,
42
42
  provider: provider,
43
43
  pact_dir: options[:pact_dir] || ".",
44
- cors_enabled: options[:cors_enabled]
44
+ cors_enabled: options[:cors_enabled],
45
+ pact_specification_version: options[:pact_specification_version]
45
46
  )
46
47
  end
47
48
 
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module MockService
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact-mock_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Fraser
@@ -12,230 +12,230 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-02-04 00:00:00.000000000 Z
15
+ date: 2015-02-13 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rack
19
19
  requirement: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - '>='
21
+ - - ">="
22
22
  - !ruby/object:Gem::Version
23
23
  version: '0'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - '>='
28
+ - - ">="
29
29
  - !ruby/object:Gem::Version
30
30
  version: '0'
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: rspec
33
33
  requirement: !ruby/object:Gem::Requirement
34
34
  requirements:
35
- - - '>='
35
+ - - ">="
36
36
  - !ruby/object:Gem::Version
37
37
  version: '2.14'
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  requirements:
42
- - - '>='
42
+ - - ">="
43
43
  - !ruby/object:Gem::Version
44
44
  version: '2.14'
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: find_a_port
47
47
  requirement: !ruby/object:Gem::Requirement
48
48
  requirements:
49
- - - ~>
49
+ - - "~>"
50
50
  - !ruby/object:Gem::Version
51
51
  version: 1.0.1
52
52
  type: :runtime
53
53
  prerelease: false
54
54
  version_requirements: !ruby/object:Gem::Requirement
55
55
  requirements:
56
- - - ~>
56
+ - - "~>"
57
57
  - !ruby/object:Gem::Version
58
58
  version: 1.0.1
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: rack-test
61
61
  requirement: !ruby/object:Gem::Requirement
62
62
  requirements:
63
- - - ~>
63
+ - - "~>"
64
64
  - !ruby/object:Gem::Version
65
65
  version: 0.6.2
66
66
  type: :runtime
67
67
  prerelease: false
68
68
  version_requirements: !ruby/object:Gem::Requirement
69
69
  requirements:
70
- - - ~>
70
+ - - "~>"
71
71
  - !ruby/object:Gem::Version
72
72
  version: 0.6.2
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: thor
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - '>='
77
+ - - ">="
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
80
  type: :runtime
81
81
  prerelease: false
82
82
  version_requirements: !ruby/object:Gem::Requirement
83
83
  requirements:
84
- - - '>='
84
+ - - ">="
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: json
89
89
  requirement: !ruby/object:Gem::Requirement
90
90
  requirements:
91
- - - '>='
91
+ - - ">="
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  type: :runtime
95
95
  prerelease: false
96
96
  version_requirements: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - '>='
98
+ - - ">="
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  - !ruby/object:Gem::Dependency
102
102
  name: webrick
103
103
  requirement: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - '>='
105
+ - - ">="
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  type: :runtime
109
109
  prerelease: false
110
110
  version_requirements: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - '>='
112
+ - - ">="
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: term-ansicolor
117
117
  requirement: !ruby/object:Gem::Requirement
118
118
  requirements:
119
- - - ~>
119
+ - - "~>"
120
120
  - !ruby/object:Gem::Version
121
121
  version: '1.0'
122
122
  type: :runtime
123
123
  prerelease: false
124
124
  version_requirements: !ruby/object:Gem::Requirement
125
125
  requirements:
126
- - - ~>
126
+ - - "~>"
127
127
  - !ruby/object:Gem::Version
128
128
  version: '1.0'
129
129
  - !ruby/object:Gem::Dependency
130
130
  name: pact-support
131
131
  requirement: !ruby/object:Gem::Requirement
132
132
  requirements:
133
- - - ~>
133
+ - - "~>"
134
134
  - !ruby/object:Gem::Version
135
- version: 0.2.1
135
+ version: 0.3.0
136
136
  type: :runtime
137
137
  prerelease: false
138
138
  version_requirements: !ruby/object:Gem::Requirement
139
139
  requirements:
140
- - - ~>
140
+ - - "~>"
141
141
  - !ruby/object:Gem::Version
142
- version: 0.2.1
142
+ version: 0.3.0
143
143
  - !ruby/object:Gem::Dependency
144
144
  name: rake
145
145
  requirement: !ruby/object:Gem::Requirement
146
146
  requirements:
147
- - - ~>
147
+ - - "~>"
148
148
  - !ruby/object:Gem::Version
149
149
  version: 10.0.3
150
150
  type: :development
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  requirements:
154
- - - ~>
154
+ - - "~>"
155
155
  - !ruby/object:Gem::Version
156
156
  version: 10.0.3
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: webmock
159
159
  requirement: !ruby/object:Gem::Requirement
160
160
  requirements:
161
- - - ~>
161
+ - - "~>"
162
162
  - !ruby/object:Gem::Version
163
163
  version: 1.18.0
164
164
  type: :development
165
165
  prerelease: false
166
166
  version_requirements: !ruby/object:Gem::Requirement
167
167
  requirements:
168
- - - ~>
168
+ - - "~>"
169
169
  - !ruby/object:Gem::Version
170
170
  version: 1.18.0
171
171
  - !ruby/object:Gem::Dependency
172
172
  name: pry
173
173
  requirement: !ruby/object:Gem::Requirement
174
174
  requirements:
175
- - - '>='
175
+ - - ">="
176
176
  - !ruby/object:Gem::Version
177
177
  version: '0'
178
178
  type: :development
179
179
  prerelease: false
180
180
  version_requirements: !ruby/object:Gem::Requirement
181
181
  requirements:
182
- - - '>='
182
+ - - ">="
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
185
  - !ruby/object:Gem::Dependency
186
186
  name: fakefs
187
187
  requirement: !ruby/object:Gem::Requirement
188
188
  requirements:
189
- - - ~>
189
+ - - "~>"
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0.4'
192
192
  type: :development
193
193
  prerelease: false
194
194
  version_requirements: !ruby/object:Gem::Requirement
195
195
  requirements:
196
- - - ~>
196
+ - - "~>"
197
197
  - !ruby/object:Gem::Version
198
198
  version: '0.4'
199
199
  - !ruby/object:Gem::Dependency
200
200
  name: hashie
201
201
  requirement: !ruby/object:Gem::Requirement
202
202
  requirements:
203
- - - ~>
203
+ - - "~>"
204
204
  - !ruby/object:Gem::Version
205
205
  version: '2.0'
206
206
  type: :development
207
207
  prerelease: false
208
208
  version_requirements: !ruby/object:Gem::Requirement
209
209
  requirements:
210
- - - ~>
210
+ - - "~>"
211
211
  - !ruby/object:Gem::Version
212
212
  version: '2.0'
213
213
  - !ruby/object:Gem::Dependency
214
214
  name: activesupport
215
215
  requirement: !ruby/object:Gem::Requirement
216
216
  requirements:
217
- - - '>='
217
+ - - ">="
218
218
  - !ruby/object:Gem::Version
219
219
  version: '0'
220
220
  type: :development
221
221
  prerelease: false
222
222
  version_requirements: !ruby/object:Gem::Requirement
223
223
  requirements:
224
- - - '>='
224
+ - - ">="
225
225
  - !ruby/object:Gem::Version
226
226
  version: '0'
227
227
  - !ruby/object:Gem::Dependency
228
228
  name: faraday
229
229
  requirement: !ruby/object:Gem::Requirement
230
230
  requirements:
231
- - - '>='
231
+ - - ">="
232
232
  - !ruby/object:Gem::Version
233
233
  version: '0'
234
234
  type: :development
235
235
  prerelease: false
236
236
  version_requirements: !ruby/object:Gem::Requirement
237
237
  requirements:
238
- - - '>='
238
+ - - ">="
239
239
  - !ruby/object:Gem::Version
240
240
  version: '0'
241
241
  description:
@@ -250,6 +250,10 @@ executables:
250
250
  extensions: []
251
251
  extra_rdoc_files: []
252
252
  files:
253
+ - CHANGELOG.md
254
+ - Gemfile
255
+ - LICENSE.txt
256
+ - README.md
253
257
  - bin/pact-mock-service
254
258
  - lib/pact/consumer/mock_service/cors_origin_header_middleware.rb
255
259
  - lib/pact/consumer/mock_service/error_handler.rb
@@ -261,10 +265,11 @@ files:
261
265
  - lib/pact/consumer_contract/interaction_decorator.rb
262
266
  - lib/pact/consumer_contract/request_decorator.rb
263
267
  - lib/pact/consumer_contract/response_decorator.rb
268
+ - lib/pact/mock_service.rb
264
269
  - lib/pact/mock_service/app.rb
265
270
  - lib/pact/mock_service/app_manager.rb
266
- - lib/pact/mock_service/cli/pidfile.rb
267
271
  - lib/pact/mock_service/cli.rb
272
+ - lib/pact/mock_service/cli/pidfile.rb
268
273
  - lib/pact/mock_service/client.rb
269
274
  - lib/pact/mock_service/control_server/app.rb
270
275
  - lib/pact/mock_service/control_server/delegator.rb
@@ -284,6 +289,7 @@ files:
284
289
  - lib/pact/mock_service/interactions/verified_interactions.rb
285
290
  - lib/pact/mock_service/logger.rb
286
291
  - lib/pact/mock_service/request_decorator.rb
292
+ - lib/pact/mock_service/request_handlers.rb
287
293
  - lib/pact/mock_service/request_handlers/base_administration_request_handler.rb
288
294
  - lib/pact/mock_service/request_handlers/base_request_handler.rb
289
295
  - lib/pact/mock_service/request_handlers/index_get.rb
@@ -296,7 +302,6 @@ files:
296
302
  - lib/pact/mock_service/request_handlers/options.rb
297
303
  - lib/pact/mock_service/request_handlers/pact_post.rb
298
304
  - lib/pact/mock_service/request_handlers/verification_get.rb
299
- - lib/pact/mock_service/request_handlers.rb
300
305
  - lib/pact/mock_service/response_decorator.rb
301
306
  - lib/pact/mock_service/run.rb
302
307
  - lib/pact/mock_service/server/restart.rb
@@ -305,11 +310,6 @@ files:
305
310
  - lib/pact/mock_service/session.rb
306
311
  - lib/pact/mock_service/spawn.rb
307
312
  - lib/pact/mock_service/version.rb
308
- - lib/pact/mock_service.rb
309
- - Gemfile
310
- - LICENSE.txt
311
- - README.md
312
- - CHANGELOG.md
313
313
  homepage: https://github.com/bethesque/pact-mock_service
314
314
  licenses:
315
315
  - MIT
@@ -320,17 +320,17 @@ require_paths:
320
320
  - lib
321
321
  required_ruby_version: !ruby/object:Gem::Requirement
322
322
  requirements:
323
- - - '>='
323
+ - - ">="
324
324
  - !ruby/object:Gem::Version
325
325
  version: '0'
326
326
  required_rubygems_version: !ruby/object:Gem::Requirement
327
327
  requirements:
328
- - - '>='
328
+ - - ">="
329
329
  - !ruby/object:Gem::Version
330
330
  version: '0'
331
331
  requirements: []
332
332
  rubyforge_project:
333
- rubygems_version: 2.0.14
333
+ rubygems_version: 2.2.2
334
334
  signing_key:
335
335
  specification_version: 4
336
336
  summary: Provides a mock service for use with Pact