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 +4 -4
- data/lib/mocktopus/input_container.rb +5 -0
- data/mocktopus.gemspec +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97ef3e8765e3432ca04fb307fbb8c54de5c82850
|
4
|
+
data.tar.gz: c1369177363ebe09bc1a0d893322942a549c5158
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
6
|
-
s.date = '
|
7
|
-
s.required_ruby_version = '>=
|
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
|
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:
|
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:
|
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.
|
296
|
+
rubygems_version: 2.4.8
|
297
297
|
signing_key:
|
298
298
|
specification_version: 4
|
299
299
|
summary: A configurable mock Web API
|