riddl 0.99.262 → 0.99.263

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c23aff2535a68c37461299466b047b36621237a
4
- data.tar.gz: 2c44810fbce701fdf67bc7e8ed034a6d15313ea1
3
+ metadata.gz: 7fc641bb25cc1f2f00a87bf6203ff273dcedbb14
4
+ data.tar.gz: 3e0fcc9a191bd46166362aeaba7e5529070e8d10
5
5
  SHA512:
6
- metadata.gz: 520853f31cb9f74104e085b8ce4ec042ea15c3b55d91ac81d2496968939af35fbb308b5972759c98d41a8be142459c659ea1d5d0c8170657f57d7affd751b457
7
- data.tar.gz: dabfc4308e362bb9921b9e000a807f1b5f21ec3b2d69afd62887fcd77d422e4db528eb38de218b3de3f91a44e4037cfc03936e763d62f2bacb803e09ffccef80
6
+ metadata.gz: b8274a9f57457600c134e9886a16402b79a3cd36df5d92792e177b054fe74b3b199c6768001d6f4cd1edac41945fe8b69c0333ee2184515ebf45df9bd00d3d0f
7
+ data.tar.gz: 461a27018a49a70a701fef0389082c97cf70ea713e0f0d92136d4a9592f5eac358032e5927a6fe89aac57c2703de71868beeba56f0ac3e5e428c40492b352668
@@ -336,7 +336,7 @@ unless Module.constants.include?('CLIENT_INCLUDED')
336
336
  qs = qparams.join('&')
337
337
  if url.class == URI::HTTP || url.class == URI::HTTPS
338
338
  #{{{
339
- return Riddl::Client::HTTPRequest.new(riddl_method,url.path,parameters,headers,qs).simulate if simulate
339
+ return Riddl::Client::SimulateRequest.new(riddl_method,url.path,parameters,headers,qs).simulate if simulate
340
340
 
341
341
  path = (url.path.strip == '' ? '/' : url.path)
342
342
  path += "?#{qs}" unless qs == ''
@@ -398,7 +398,7 @@ unless Module.constants.include?('CLIENT_INCLUDED')
398
398
 
399
399
  end #}}}
400
400
 
401
- class HTTPRequest #{{{
401
+ class SimulateRequest < Net::HTTPGenericRequest #{{{
402
402
  def initialize(method, path, parameters, headers, qs)
403
403
  path = (path.strip == '' ? '/' : path)
404
404
  path += "?#{qs}" unless qs == ''
@@ -408,6 +408,10 @@ unless Module.constants.include?('CLIENT_INCLUDED')
408
408
  self.body_stream = tmp
409
409
  end
410
410
 
411
+ def supply_default_content_type
412
+ ### none, Protocols::HTTP::Generator handles this
413
+ end
414
+
411
415
  def simulate
412
416
  sock = StringIO.new('')
413
417
  sock.define_singleton_method(:io) do
data/riddl.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "riddl"
3
- s.version = "0.99.262"
3
+ s.version = "0.99.263"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "restful interface description and declaration language: tools and client/server libs"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riddl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.99.262
4
+ version: 0.99.263
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen 'eTM' Mangler
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: tools
12
12
  cert_chain: []
13
- date: 2018-03-02 00:00:00.000000000 Z
13
+ date: 2018-03-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: typhoeus