api_sim 4.0.0 → 4.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: 3ac439cdf5117d5e307c6fd4f3bc9720af5f60fc
4
- data.tar.gz: 6ab64d5c0d40d03a94af5590a76b1a9657379d26
3
+ metadata.gz: 7ff0a391691c542a6fc8287eae0509ae75a50dec
4
+ data.tar.gz: 98cb0bcd10294f4265472e9abeba25944dcb3504
5
5
  SHA512:
6
- metadata.gz: 01e1097d28d79c7c41ebd0944ed0fb53aa5e90fc4553a91d1e9838f343f403ba9d1de7c4614171382cb3db73e822c6bd4ad7511a485fd84a09feba3f83839aeb
7
- data.tar.gz: cd9378a7e9431b6aafa3003c1f0483493aede7adad063372db27605035e57455c6f49c19f8d88cfef6c95d8c5c26a3d7bd51fcdbc936e2d2e5d82c9a7bc13241
6
+ metadata.gz: fc0501e35b92c6d0fa3a6707e05a9f2b7ae1707f09ba36b5696924e596bbc878d0c38f08a5b998f8f26badd571e4cbee5f03442fba1fb3eb142a7ca17e15dc6c
7
+ data.tar.gz: 8caf39e0478c844028d9e185c5b1d0439ba784402288ae7532cd5e33b617b12ea4c50061a4c8d5ff66625b6ce2337208f84d250b23afb94e306b1dd0d0616fc9
@@ -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 'application/json' then
143
+ when %r{application/json} then
144
144
  JSON.parse(request.body.read)
145
- when 'text/xml' then
145
+ when %r{text/xml} then
146
146
  Nokogiri::XML(request.body.read)
147
- when 'application/x-www-form-urlencoded' then
147
+ when %r{application/x-www-form-urlencoded} then
148
148
  params
149
149
  else
150
150
  if request.path =~ /ui/
@@ -1,3 +1,3 @@
1
1
  module ApiSim
2
- VERSION = "4.0.0"
2
+ VERSION = "4.1.0"
3
3
  end
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.0.0
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-10-11 00:00:00.000000000 Z
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.1
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