api_sim 4.0.0 → 4.1.0
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 +4 -4
- data/lib/api_sim/built_app.rb +3 -3
- data/lib/api_sim/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7ff0a391691c542a6fc8287eae0509ae75a50dec
|
|
4
|
+
data.tar.gz: 98cb0bcd10294f4265472e9abeba25944dcb3504
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc0501e35b92c6d0fa3a6707e05a9f2b7ae1707f09ba36b5696924e596bbc878d0c38f08a5b998f8f26badd571e4cbee5f03442fba1fb3eb142a7ca17e15dc6c
|
|
7
|
+
data.tar.gz: 8caf39e0478c844028d9e185c5b1d0439ba784402288ae7532cd5e33b617b12ea4c50061a4c8d5ff66625b6ce2337208f84d250b23afb94e306b1dd0d0616fc9
|
data/lib/api_sim/built_app.rb
CHANGED
|
@@ -140,11 +140,11 @@ module ApiSim
|
|
|
140
140
|
return @response_body if @response_body
|
|
141
141
|
|
|
142
142
|
@response_body = case request.env['CONTENT_TYPE']
|
|
143
|
-
when
|
|
143
|
+
when %r{application/json} then
|
|
144
144
|
JSON.parse(request.body.read)
|
|
145
|
-
when
|
|
145
|
+
when %r{text/xml} then
|
|
146
146
|
Nokogiri::XML(request.body.read)
|
|
147
|
-
when
|
|
147
|
+
when %r{application/x-www-form-urlencoded} then
|
|
148
148
|
params
|
|
149
149
|
else
|
|
150
150
|
if request.path =~ /ui/
|
data/lib/api_sim/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: api_sim
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- TJ Taylor
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-12-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sinatra
|
|
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
189
189
|
version: '0'
|
|
190
190
|
requirements: []
|
|
191
191
|
rubyforge_project:
|
|
192
|
-
rubygems_version: 2.5.
|
|
192
|
+
rubygems_version: 2.5.2
|
|
193
193
|
signing_key:
|
|
194
194
|
specification_version: 4
|
|
195
195
|
summary: A DSL on top of sinatra for building application simulators
|