pact-mock_service 0.8.0 → 0.8.1

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: ab3f999ac97b085e40e24b9e8f649acfd91cfba1
4
- data.tar.gz: 3b3fca9643f62634713372a82e2600bc3fb335bf
3
+ metadata.gz: 5608731e44a840bffd2027c74f46063358559524
4
+ data.tar.gz: 010ace178b9dbf2a13ae9958980052aa5d9fe311
5
5
  SHA512:
6
- metadata.gz: e520bf93094dbcfcb2543e34698d7fdd37fc7345e6153e89a0229e610bce1f1dc8ea8387508002681f6bbbae81c6f72ee7a8c1176e66c5b67b0084ee17547506
7
- data.tar.gz: dc0a6d179bbf1299d209ce03dae12564f3b2cc12dfbbde39b95e8216a6429ca32c0abd9751f11fe784f304f1b934a8d00f7108f8861a8adc51bb4fbf37d422bf
6
+ metadata.gz: f0907e1d76e88a74d3826c1eba4615675a12bd7e1f5ae4e8e1ce2c083cda257d0fd9f3cb33e1ee137174ad8ba1bf62363a040a887afbb20f01ab9668a8708aff
7
+ data.tar.gz: 32ad9969e394768166b7aa66f7b4b447c4e35dea5c12666309a691597aff027d67d2314e2d4e7e9659cee00b01654ea4b4c091ccff8db25fbfd130799731a27f
data/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@ Do this to generate your change history
2
2
 
3
3
  git log --pretty=format:' * %h - %s (%an, %ad)' vX.Y.Z..HEAD
4
4
 
5
+
6
+ ### 0.8.1 (25 February 2016)
7
+ * ffa37f8 - Merge pull request #40 from taiki45/add-option-not-to-write-pact-file (Beth Skurrie, Thu Feb 25 09:33:30 2016 +1100)
8
+ * 1cb2fa8 - Add option not to write pact file (Taiki Ono, Tue Feb 23 18:18:28 2016 +0900)
9
+ * 34b2b84 - Update README.md (Beth Skurrie, Tue Jan 19 14:17:21 2016 +1100)
10
+ * f8c92e4 - Update README.md (Beth Skurrie, Tue Jan 19 13:44:22 2016 +1100)
11
+ * 2012733 - Merge pull request #36 from Trunkplatform/cors_patch (Sergei Matheson, Wed Jan 13 14:16:29 2016 +1100)
12
+ * 8847938 - Added spec for PATCH method in the CORS allow methods (Sergei Matheson, Wed Jan 13 14:14:33 2016 +1100)
13
+ * 567714d - allowing PATCH method in the CORS handler (Evgeny Dudin, Tue Jan 12 12:20:52 2016 +1100)
14
+ * 56c7a51 - Update README.md (Beth Skurrie, Tue Jan 12 10:28:56 2016 +1100)
15
+ * 29380ed - Merge pull request #36 from davesmith00000/improved-usage-readme (Beth Skurrie, Tue Jan 12 10:22:04 2016 +1100)
16
+ * ef2da6c - Added a README example of using the pack-mock-server as a stub. (Dave Smith, Tue Jan 5 11:56:45 2016 +0000)
17
+
5
18
  ### 0.8.0 (30 November 2015)
6
19
 
7
20
  * 96dc58b - Adds DELETE session endpoint (George Papas & Matt Fielding, Fri Nov 27 16:45:13 2015 +1100)
data/README.md CHANGED
@@ -13,6 +13,8 @@ As the Pact mock service can be used as a standalone executable and administered
13
13
 
14
14
  ## Usage
15
15
 
16
+ For some examples of the HTTP requests that occur under the hood when using either the Ruby client or the Javascript client, see this [gist](https://gist.github.com/bethesque/9d81f21d6f77650811f4).
17
+
16
18
  ### With Ruby on Mac OSX and Linux
17
19
 
18
20
  $ gem install pact-mock_service
@@ -36,7 +38,7 @@ See the [releases][releases] page for the latest standalone executables.
36
38
 
37
39
  ### Windows, without Ruby
38
40
 
39
- I had a package somewhere lying around, but I lost it, and I don't have a Windows machine. If you are interested in using the mock server on Windows, please check out the instructions for building one [here][windows], and then let me know so I can upload it to the releases page. Thanks!
41
+ See the [releases][releases] page for the latest standalone executables.
40
42
 
41
43
  ## Contributing
42
44
 
@@ -48,3 +50,4 @@ See [CONTRIBUTING.md](/CONTRIBUTING.md)
48
50
  [pact-dev]: https://groups.google.com/forum/#!forum/pact-dev
49
51
  [windows]: https://github.com/bethesque/pact-mock_service/wiki/Building-a-Windows-standalone-executable
50
52
  [install-windows]: https://github.com/bethesque/pact-mock_service/wiki/Installing-the-pact-mock_service-gem-on-Windows
53
+ [why-generated]: https://github.com/realestate-com-au/pact/wiki/FAQ#why-are-the-pacts-generated-and-not-static
@@ -34,7 +34,7 @@ module Pact
34
34
  end
35
35
 
36
36
  def write
37
- update_pactfile
37
+ update_pactfile unless pactfile_write_mode == :none
38
38
  pact_json
39
39
  end
40
40
 
@@ -22,7 +22,7 @@ module Pact
22
22
  cors_headers = {
23
23
  'Access-Control-Allow-Origin' => env.fetch('HTTP_ORIGIN','*'),
24
24
  'Access-Control-Allow-Headers' => headers_from(env)["Access-Control-Request-Headers"],
25
- 'Access-Control-Allow-Methods' => 'DELETE, POST, GET, HEAD, PUT, TRACE, CONNECT'
25
+ 'Access-Control-Allow-Methods' => 'DELETE, POST, GET, HEAD, PUT, TRACE, CONNECT, PATCH'
26
26
  }
27
27
  logger.info "Received OPTIONS request for mock service administration endpoint #{env['HTTP_ACCESS_CONTROL_REQUEST_METHOD']} #{env['PATH_INFO']}. Returning CORS headers: #{cors_headers.to_json}."
28
28
  [200, cors_headers, []]
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module MockService
3
- VERSION = "0.8.0"
3
+ VERSION = "0.8.1"
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.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Fraser
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-11-30 00:00:00.000000000 Z
15
+ date: 2016-02-25 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rack
@@ -331,7 +331,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
331
331
  version: '0'
332
332
  requirements: []
333
333
  rubyforge_project:
334
- rubygems_version: 2.4.5
334
+ rubygems_version: 2.2.2
335
335
  signing_key:
336
336
  specification_version: 4
337
337
  summary: Provides a mock service for use with Pact