redhat_access 2.2.8 → 2.2.9

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
  SHA256:
3
- metadata.gz: 06eace60e082178a03ecb70b5e9e074b59de66baf85ff9cdbbd5704ee72c6e26
4
- data.tar.gz: 947a47fbdc1da0bfcf31a3ff0e6aaffbb88e08912c72be9ab9f94fc70ca68036
3
+ metadata.gz: 763ecb0aee7ff050cb54b292349af94c946bbd41fc15ae51b7e171e8afc53f7e
4
+ data.tar.gz: 4b90e6187c78d7ba070c4e0246e1e756aee83962317ddf1af6f5678380755e63
5
5
  SHA512:
6
- metadata.gz: 512e7a807786b57d014dab005e5a31881f0eb3002aa29ceda6036b9fef68391698374d390a3cb33758825fd4f9916651b982714ed942a2311d3181b4af28ee4c
7
- data.tar.gz: 9b93f4a0e89392eb16aa15ef7f5f20df33bace669b62f79c3ce665c5573bddb2d38f9f09ac1b8139e4d59a85e48d9315a0967e3bb4c5564fcf86566654da6a17
6
+ metadata.gz: 8a56a0a729bec186c354eae196f6b79eb214f62b5a9771ccf4a9a0e3e38c8821cc04977ed01988bb1a5c6fb826e0014babc67109f585b22b3dcc72e96576139d
7
+ data.tar.gz: 31f28733074e6014228011af824b7e4d4c0645e977cf4deacd6426bc901750441f770b5083ea22aa158a58c3ef6db8eb4c492f1a5405bc513fad63f6c2c76e9d
@@ -1,6 +1,8 @@
1
1
  module RedhatAccess
2
2
  module Telemetry
3
3
  module LookUps
4
+ include Katello::Util::HttpProxy
5
+
4
6
  class RecordNotFound < StandardError
5
7
  end
6
8
 
@@ -192,18 +194,9 @@ module RedhatAccess
192
194
  end
193
195
 
194
196
  def get_portal_http_proxy
195
- proxy = nil
196
- if SETTINGS[:katello][:cdn_proxy] && SETTINGS[:katello][:cdn_proxy][:host]
197
- proxy_config = SETTINGS[:katello][:cdn_proxy]
198
- uri = URI('')
199
- uri.scheme = URI.parse(proxy_config[:host]).scheme
200
- uri.host = URI.parse(proxy_config[:host]).host
201
- uri.port = proxy_config[:port] if proxy_config[:port]
202
- uri.user = ERB::Util.url_encode(proxy_config[:user]) if proxy_config[:user]
203
- uri.password = ERB::Util.url_encode(proxy_config[:password]) if proxy_config[:password]
204
- proxy = uri.to_s
205
- end
206
- proxy
197
+ # switching to Katello::Util::HttpProxy's proxy_uri, which has a workaround for rest-client's poor handling
198
+ # of special characters in proxy passwords (see https://github.com/Katello/katello/commit/bea53437509f68ceeff0eabfde88f69810876307)
199
+ proxy_uri
207
200
  end
208
201
 
209
202
  def get_http_user_agent
@@ -2,6 +2,7 @@ require 'redhat_access_lib'
2
2
  require 'base64'
3
3
  module RedhatAccess::Strata
4
4
  class Client
5
+ include Katello::Util::HttpProxy
5
6
  attr_reader :api
6
7
  def initialize(token)
7
8
  username = ""
@@ -22,18 +23,9 @@ module RedhatAccess::Strata
22
23
  end
23
24
 
24
25
  def get_portal_http_proxy
25
- proxy = nil
26
- if Katello.config.cdn_proxy && Katello.config.cdn_proxy.host
27
- proxy_config = Katello.config.cdn_proxy
28
- uri = URI('')
29
- uri.scheme = URI.parse(proxy_config.host).scheme
30
- uri.host = URI.parse(proxy_config.host).host
31
- uri.port = proxy_config.port
32
- uri.user = proxy_config.user
33
- uri.password = proxy_config.password
34
- proxy = uri.to_s
35
- end
36
- return proxy
26
+ # switching to Katello::Util::HttpProxy's proxy_uri, which has a workaround for rest-client's poor handling
27
+ # of special characters in proxy passwords (see https://github.com/Katello/katello/commit/bea53437509f68ceeff0eabfde88f69810876307)
28
+ proxy_uri
37
29
  end
38
30
  end
39
31
  end
@@ -1,3 +1,3 @@
1
1
  module RedhatAccess
2
- VERSION = "2.2.8"
2
+ VERSION = "2.2.9"
3
3
  end
@@ -13,6 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.license = 'GPLv3'
14
14
  s.summary = "Plugin to add Redhat Access to Foreman"
15
15
  s.description = "This plugin adds Red Hat Access knowledge base search, case management and diagnostics to Foreman"
16
+ s.metadata = {"changelog_uri" => "https://github.com/redhataccess/foreman-plugin/blob/master/redhat-access/releases.md"}
16
17
 
17
18
  s.files = Dir["{app,config,db,lib,vendor,public,script,ca,locale}/**/*"] + ["LICENSE.txt", "Rakefile", "README.rdoc", "redhat_access.gemspec", "Gemfile"]
18
19
  s.test_files = Dir["test/**/*"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redhat_access
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.8
4
+ version: 2.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lindani Phiri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-06 00:00:00.000000000 Z
11
+ date: 2019-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redhat_access_lib
@@ -320,7 +320,8 @@ files:
320
320
  homepage: https://github.com/redhataccess/foreman-plugin
321
321
  licenses:
322
322
  - GPLv3
323
- metadata: {}
323
+ metadata:
324
+ changelog_uri: https://github.com/redhataccess/foreman-plugin/blob/master/redhat-access/releases.md
324
325
  post_install_message:
325
326
  rdoc_options: []
326
327
  require_paths: