vanilli-ruby 1.2.0 → 1.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 850c08697fd20442edc6b872f01293106b1acd68
4
- data.tar.gz: 23bb8ea26132554175a221b74bd357f71a523441
3
+ metadata.gz: dea8b5366a2f95e40b08f7dd8c57b09b3cb276af
4
+ data.tar.gz: a6c3293aef243726642affa3b25f668564130613
5
5
  SHA512:
6
- metadata.gz: da337069dc06329fb6cb87ce276d883b7bada2c00a678006cad31921bda793f28cd3ce91fa9ef593fd6af447967678256f28e367dfa9279aec7d9ae90a506146
7
- data.tar.gz: bc398d3e781b0b5530cbe5942c5c396c0f42ffd3a3949d1822370349905c09e1cfc1b278e6f5eaa78b4d24caefcada526d6404bd5b836eee56603434cc1a16d3
6
+ metadata.gz: 9de9c3f23cd473733186ebc7042e1bdba1dbedfb01666a49a928d3d0cc67af5f989e6e27c972436dda26c55636884c4295cec08b721b3cdb78e8d35a73e37ec1
7
+ data.tar.gz: 554d746602f516142f053a3d851df368fbaf0ffed7025d46ab9c033824a474aa7e8ea363f7cf6e83d7c5f7b553a4b1a5cb6a614569098a7bd6857d26bcf10474
@@ -51,6 +51,7 @@ class VanilliClient
51
51
  def initialize(criteria:, priority:)
52
52
  @criteria = criteria
53
53
  @priority = priority
54
+ @response = {}
54
55
  end
55
56
 
56
57
  # Construct the response for the stub
@@ -58,10 +59,12 @@ class VanilliClient
58
59
  fail 'Status code is missing.' if status.nil?
59
60
  fail_body_with_no_contenttype(body, content_type)
60
61
 
61
- @response = stringify_non_json_content(strip_nils(status: status,
62
- contentType: content_type,
63
- body: body,
64
- headers: headers))
62
+ @response = stringify_non_json_content(
63
+ @response.merge!(
64
+ strip_nils(status: status, contentType: content_type, body: body, headers: headers)
65
+ )
66
+ )
67
+
65
68
  @times = times unless times == :any
66
69
 
67
70
  self
data/vanilli-ruby.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "vanilli-ruby"
7
- spec.version = "1.2.0"
7
+ spec.version = "1.2.1"
8
8
  spec.authors = ["Alistair Dutton"]
9
9
  spec.email = ["kelveden@gmail.com"]
10
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vanilli-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alistair Dutton
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-13 00:00:00.000000000 Z
11
+ date: 2015-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler