mocktopus 0.0.8 → 0.1.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: f2532365cf3e491235fb602270c8ac9eb339d70a
4
- data.tar.gz: a24073c6b482e5fcb47bf1c53f69a2fa726ef38e
3
+ metadata.gz: 97ef3e8765e3432ca04fb307fbb8c54de5c82850
4
+ data.tar.gz: c1369177363ebe09bc1a0d893322942a549c5158
5
5
  SHA512:
6
- metadata.gz: cec03f272ea4051f79b5910f2a0010c25bc55d6ef3930c410bd660485f7d492645c3c826fa801db91d0df97e3b415204cc9bb9ac4b0839ec2902c55be2a9cf77
7
- data.tar.gz: 93b2ea72be18248aa50fe85a3a099b89f444852437c6748578e55fa2ef8d3e578255a7d358ad5a02949120c00c15c54f941f540997a00c5d0a829b2c52def073
6
+ metadata.gz: 62829c28735fa9fe5360a5335801848ae432f93eb4f10531ba2bf94692b5d5a7f89dfa7003ff6acea33067a1c781e42046fe43c7661b64f5bdc4eede77ae2b9e
7
+ data.tar.gz: 21b1db69ef9ac58914281c5e47e6ce1b36162c9e8d2a0ced03376f26dc4ee1ea32cfa05c9b1556b4b6f7799a26852e0790154808a067f32e9c15ac935ad8cf93
@@ -76,6 +76,11 @@ module Mocktopus
76
76
  match = true
77
77
  elsif (input_body.to_s.gsub(/\s+/, "").hash.eql?(match_body.to_s.gsub(/\s+/, "").hash))
78
78
  match = true
79
+ else
80
+ begin
81
+ match = JSON.parse(input_body.to_s).hash.eql?(JSON.parse(match_body.to_s).hash)
82
+ rescue
83
+ end
79
84
  end
80
85
  return match
81
86
  end
data/mocktopus.gemspec CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'mocktopus'
5
- s.version = '0.0.8'
6
- s.date = '2015-03-14'
7
- s.required_ruby_version = '>= 1.9.3'
5
+ s.version = '0.1.0'
6
+ s.date = '2016-07-13'
7
+ s.required_ruby_version = '>= 2.0.0'
8
8
 
9
9
  s.summary = 'A configurable mock Web API'
10
10
  s.description = 'The Mocktopus is a Sinatra/thin-based Web API that lets you mock your app dependencies'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mocktopus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rackspace
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-14 00:00:00.000000000 Z
11
+ date: 2016-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -285,7 +285,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
285
285
  requirements:
286
286
  - - ">="
287
287
  - !ruby/object:Gem::Version
288
- version: 1.9.3
288
+ version: 2.0.0
289
289
  required_rubygems_version: !ruby/object:Gem::Requirement
290
290
  requirements:
291
291
  - - ">="
@@ -293,7 +293,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
293
293
  version: '0'
294
294
  requirements: []
295
295
  rubyforge_project:
296
- rubygems_version: 2.2.2
296
+ rubygems_version: 2.4.8
297
297
  signing_key:
298
298
  specification_version: 4
299
299
  summary: A configurable mock Web API