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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59c109cfab49994ec4c27fb6b65745b504f717d3
4
- data.tar.gz: 73a93865b5fb49e59a3e080a9a5679e674acf57f
3
+ metadata.gz: 88460364adba4f360035ba08d19969c3411f0080
4
+ data.tar.gz: 58277b7260c0a458511751f3d7b707b66fdde2b3
5
5
  SHA512:
6
- metadata.gz: 94809b3ca647b8b60bb155eff4f3defe4b824129a2ba0c3d1525fe2d357799a1ac1f5795e7820112119c36ca702d2b05959f574d14e46a321ac0eba5745049ca
7
- data.tar.gz: 776efc1bf75d74c44e197dfef3d8222bb911f57f97e205700b87a847b7191ecd4597b6dbedbffbfac4fec7d932df376b7bb59f5d2634b23175cbc0bf835f4e1b
6
+ metadata.gz: e15be449e543d7c9e4452ad3e1b23774a22455155a34ae81917104da6bd3f6eed45efabfe817b814254f65bec21735e3a03b140052e4bce4fe7373fc6aed2357
7
+ data.tar.gz: 07b34166ddc8fc7b62eef8fe8af5f1bb48ec8988e4c9a4d4a60cd5a01acef7bff3dfdfe2e751cdbe4e749ef5b58b0e7cd304e845f9cd80c6ee57051c322cbfbe
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.6.5
4
+
5
+ Bugfix:
6
+
7
+ - Plain requests were having the URL output to the log twice (thanks to Dan W for reporting this)
8
+
3
9
  ## 1.6.4
4
10
 
5
11
  Feature:
@@ -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
@@ -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
- Flexirest::Logger.info " \033[1;4;32m#{Flexirest.name}\033[0m #{@instrumentation_name} - Requesting #{connection.base_url}#{@url}"
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:"
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.6.4"
2
+ VERSION = "1.6.5"
3
3
  end
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
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-16 00:00:00.000000000 Z
11
+ date: 2018-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler