optimus_prime 1.2.0 → 1.2.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: 70074643332d2f2a130569b35239fefac9062280
4
- data.tar.gz: b62db5a9db6fc8eb02ad217d8545350a86ba9f4f
3
+ metadata.gz: f5c90535932ecb7a0c0218ab5ec0755251ccb5be
4
+ data.tar.gz: 0e6b43e58531f1dc199ca1a092b4e16916658da5
5
5
  SHA512:
6
- metadata.gz: b2c5184afdfb721f2c54895c36435ba6d8bab90e216ae1aef9236edbc3f49c0704a9ae47135f19f476ea28d62569168762614019be2f3d2802a8515954843dc8
7
- data.tar.gz: 1416cefe5dce5c950357f73f6e61b9ec02a0f92a49f04762bb020bb61960e7790b193aa98e6a811d5ff512ad893a20104e231fb126a2b298ae7b40d7eed406b1
6
+ metadata.gz: b9adebe0ecfb7ed2b254d972b0d7bd406261741d8fe8ed92bdfe4f6dec131ad59f0d53a91176571d2bdea72668775b2a999a9ca5950f3c5c6a672f8f94831cc9
7
+ data.tar.gz: 992535dd55b886a0313100964c54d4599f227094b595af2019b8b4bb585bf3f19289e32f0e943ce452f9dd7e82d07a713d93a717e6743b2f560fecb6ca56d7ae
@@ -33,9 +33,8 @@ module OptimusPrime
33
33
  sleep(response[:sleep].to_i) if response[:sleep]
34
34
 
35
35
  if response[:persisted]
36
- new_body = params.tap { |p| p.delete("splat"); p.delete("captures") }
37
-
38
- @@responses[path][:body] = JSON.parse(response[:body]).merge!(new_body).to_json
36
+ new_body = request.body.read
37
+ @@responses[path][:body] = JSON.parse(response[:body]).merge!(JSON.parse(new_body)).to_json
39
38
  end
40
39
  201
41
40
  end
@@ -1,3 +1,3 @@
1
1
  module OptimusPrime
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optimus_prime
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
  - Antonio Nalesso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-12 00:00:00.000000000 Z
11
+ date: 2014-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler