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 +4 -4
- data/lib/ruby/riddl/client.rb +6 -2
- data/riddl.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7fc641bb25cc1f2f00a87bf6203ff273dcedbb14
|
|
4
|
+
data.tar.gz: 3e0fcc9a191bd46166362aeaba7e5529070e8d10
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b8274a9f57457600c134e9886a16402b79a3cd36df5d92792e177b054fe74b3b199c6768001d6f4cd1edac41945fe8b69c0333ee2184515ebf45df9bd00d3d0f
|
|
7
|
+
data.tar.gz: 461a27018a49a70a701fef0389082c97cf70ea713e0f0d92136d4a9592f5eac358032e5927a6fe89aac57c2703de71868beeba56f0ac3e5e428c40492b352668
|
data/lib/ruby/riddl/client.rb
CHANGED
|
@@ -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::
|
|
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
|
|
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
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.
|
|
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-
|
|
13
|
+
date: 2018-03-07 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: typhoeus
|