flexirest 1.6.4 → 1.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/flexirest/base.rb +1 -0
- data/lib/flexirest/request.rb +5 -1
- data/lib/flexirest/version.rb +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: 88460364adba4f360035ba08d19969c3411f0080
|
4
|
+
data.tar.gz: 58277b7260c0a458511751f3d7b707b66fdde2b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e15be449e543d7c9e4452ad3e1b23774a22455155a34ae81917104da6bd3f6eed45efabfe817b814254f65bec21735e3a03b140052e4bce4fe7373fc6aed2357
|
7
|
+
data.tar.gz: 07b34166ddc8fc7b62eef8fe8af5f1bb48ec8988e4c9a4d4a60cd5a01acef7bff3dfdfe2e751cdbe4e749ef5b58b0e7cd304e845f9cd80c6ee57051c322cbfbe
|
data/CHANGELOG.md
CHANGED
data/lib/flexirest/base.rb
CHANGED
@@ -81,6 +81,7 @@ module Flexirest
|
|
81
81
|
def self.prepare_direct_request(request, method = :get, options={})
|
82
82
|
unless request.is_a? Flexirest::Request
|
83
83
|
options[:plain] ||= false
|
84
|
+
options[:direct] ||= true
|
84
85
|
request = Flexirest::Request.new({ url: request, method: method, options: options }, self)
|
85
86
|
end
|
86
87
|
request
|
data/lib/flexirest/request.rb
CHANGED
@@ -454,7 +454,11 @@ module Flexirest
|
|
454
454
|
base_url.gsub!(%r{//(.)}, "//#{username}:#{password}@\\1") if username && !base_url[%r{//[^/]*:[^/]*@}]
|
455
455
|
connection = Flexirest::ConnectionManager.get_connection(base_url)
|
456
456
|
end
|
457
|
-
|
457
|
+
if @method[:options][:direct]
|
458
|
+
Flexirest::Logger.info " \033[1;4;32m#{Flexirest.name}\033[0m #{@instrumentation_name} - Requesting #{@url}"
|
459
|
+
else
|
460
|
+
Flexirest::Logger.info " \033[1;4;32m#{Flexirest.name}\033[0m #{@instrumentation_name} - Requesting #{connection.base_url}#{@url}"
|
461
|
+
end
|
458
462
|
|
459
463
|
if verbose?
|
460
464
|
Flexirest::Logger.debug "Flexirest Verbose Log:"
|
data/lib/flexirest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flexirest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|