pact 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pact (2.0.0)
4
+ pact (1.0.1)
5
5
  awesome_print (~> 1.1.0)
6
6
  find_a_port (~> 1.0.1)
7
7
  hashie (~> 2.0)
@@ -36,7 +36,7 @@ module Pact
36
36
  c.tmp_dir = File.expand_path('./tmp/pacts')
37
37
  c.log_dir = default_log_dir
38
38
  c.logger = default_logger c.log_path
39
- c.pactfile_write_mode = defined?(Rake) ? :overwrite : :update
39
+ c.pactfile_write_mode = :overwrite
40
40
  c
41
41
  end
42
42
 
@@ -70,7 +70,7 @@ module Pact
70
70
 
71
71
  def request_body request
72
72
  body = request.body
73
- if body
73
+ if !body.nil? #TODO - write test for this where this is a NullExpectation
74
74
  body = JSON.dump(Pact::Reification.from_term(body))
75
75
  else
76
76
  body = ""
data/lib/pact/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pact
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2013-09-11 00:00:00.000000000 Z
16
+ date: 2013-09-14 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: randexp