riddl 0.100.4 → 0.100.5

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
  SHA256:
3
- metadata.gz: 558629e79867c98ac91f970d268f28cd54c9805c97921b5795441a4af0c0980b
4
- data.tar.gz: 3585b3064695445dcb8fade4081351e98749989ac80a7fbe55193244801151b4
3
+ metadata.gz: a24a1c966fa3a1e23fc990b18deabf5c33cd40c857f6000b9c52113be2a109d6
4
+ data.tar.gz: 348d53830081bcce624049802cb960fb0d73b5b46cc4be1cd3d11e291ec1fefe
5
5
  SHA512:
6
- metadata.gz: 9350e71b977e81f79ffbeb0238fc737280900130720c425cf81881a48efa2cf46dabdb50f5a91d38266a4530813f08217f041afe0f828cad412cfbaf12526901
7
- data.tar.gz: 68ae4132a69ed820a55fb96c92841909439fb27671ea8bcd8361255222ccf520f1b1d789b54ecde5f46310422ed16e614eb5dca5589868ae03022b950d6683ed
6
+ metadata.gz: 64e766b07324bcdf822a5cc9cf76cdb887f38e9c0c62eb85b76602217ef92279dae73538281288e783cfeabe2afa32f3764f0af69ae463eeac684b943b5da369
7
+ data.tar.gz: b8b498bf76e1697920f93fac9c1547d59cc219e526aa836e65fea5f0393e9036472a749304001a61b02f72191645636ece0f54f88cd6cf99c13dcc3be1c95419
@@ -43,7 +43,7 @@ unless Module.constants.include?('CLIENT_INCLUDED')
43
43
  \A
44
44
 
45
45
  # protocol identifier
46
- (?:(?:https?|[a-z]{4})://)
46
+ (?:(?!(?i:file://))[a-zA-Z_-]+://)
47
47
 
48
48
  # user:pass authentication
49
49
  (?:\S+(?::\S*)?@)?
@@ -393,6 +393,11 @@ unless Module.constants.include?('CLIENT_INCLUDED')
393
393
  else
394
394
  if @options[:custom_protocol]
395
395
  return @options[:custom_protocol].handle(url,riddl_method,parameters,headers,qs,simulate,ack)
396
+ else
397
+ path = (url.path.strip == '' ? '/' : url.path)
398
+ uri = url + (qs.empty? ? '' : "?#{qs}")
399
+ res = Typhoeus.get(uri)
400
+ return (res.return_code == :ok ? 200 : 500), [Riddl::Parameter::Simple.new('result',res.body)], {}
396
401
  end
397
402
  end
398
403
  raise URIError, "not a valid URI (http, https, ... are accepted)"
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "riddl"
3
- s.version = "0.100.4"
3
+ s.version = "0.100.5"
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.100.4
4
+ version: 0.100.5
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-11-13 00:00:00.000000000 Z
13
+ date: 2019-02-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: daemonite