redhat_access_lib 1.1.4 → 1.1.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
- SHA1:
3
- metadata.gz: 5813630efeedc5d92866d1a9b4eda1ae47742951
4
- data.tar.gz: f9714f2100030395a740bec4fe924ee39ec7d5ab
2
+ SHA256:
3
+ metadata.gz: 30268958906855315e6b4c57f68ada7e6260d3fbd0e0c4e0e962316a1ae62006
4
+ data.tar.gz: 70bf52909e4232ecad6a108a38cfa0980038d229f4d78fde5bcd54d4530eef54
5
5
  SHA512:
6
- metadata.gz: 7770f2d5faf4ca26a722fb70c47f7b18df9f8de86d5e856649101c2dc551e816b604dfd36fc80ac3b5ffccc9294a34e79ffddb843ec39e000e6ea5afabb1a50b
7
- data.tar.gz: 11302c727d0eeae0496d33f8cd2c77c6cf66c71ec5517373512d7c292d6b47a19c11f766611855c88b772df284441e0d0ed619c0cd54d028d615fb97697a6566
6
+ metadata.gz: c224a9c2f09c3b54b4c424f298ad3fab0a43b508fa84ece5ba4e59e1dcc470e9dc69c0d3d13c06c1f0232302db8439c8b615e85146efb01226c3182373f402ef
7
+ data.tar.gz: 613c647664c3464fa9c64f8c0fd7c3e5b576b0eb1333676b7a35db35cb935958b7c03da608cdc7d23fcaaf3e026468709e1bd5fb71de577a644c2b7b501424ff
@@ -74,6 +74,7 @@ module RedHatSupportLib::TelemetryApi
74
74
  ldebug ("HTTP proxy is set to #{@http_proxy}")
75
75
  end
76
76
 
77
+ # not currently used by foreman-plugin...
77
78
  def post_upload(original_params,
78
79
  original_payload)
79
80
 
@@ -84,6 +85,7 @@ module RedHatSupportLib::TelemetryApi
84
85
  do_upload: true)
85
86
  end
86
87
 
88
+ # not currently used by foreman-plugin...
87
89
  def call_tapi_no_subset(original_method,
88
90
  resource,
89
91
  original_params,
@@ -100,9 +102,13 @@ module RedHatSupportLib::TelemetryApi
100
102
  original_payload,
101
103
  extra, use_subsets = true)
102
104
 
105
+ # merge all the params into one hash - this lets us add additional options
106
+ args = {params: original_params, method: original_method, payload: original_payload}
107
+ args.merge!(extra) if extra
108
+
103
109
  if (use_subsets && subset_resource = create_subset_route(resource))
104
110
  ldebug "Doing subset call to #{subset_resource} (was : #{resource})"
105
- response = do_subset_call("#{@api_url}/#{subset_resource}", params: original_params, method: original_method, payload: original_payload)
111
+ response = do_subset_call("#{@api_url}/#{subset_resource}", args)
106
112
  return {data: response, code: response.code}
107
113
  else
108
114
  if extra && extra[:do_upload]
@@ -110,7 +116,7 @@ module RedHatSupportLib::TelemetryApi
110
116
  else
111
117
  url = "#{@api_url}/#{resource}"
112
118
  end
113
- client = default_rest_client(url, params: original_params, method: original_method, payload: original_payload)
119
+ client = default_rest_client(url, args)
114
120
  response = client.execute
115
121
  return {data: response, code: response.code}
116
122
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'redhat_access_lib'
3
- s.version = '1.1.4'
3
+ s.version = '1.1.5'
4
4
  s.date = '2017-11-21'
5
5
  s.summary = "Rest Client for accessing Red Hat Support"
6
6
  s.description = "Rest Client for accessing Red Hat Support"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redhat_access_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lindani Phiri
@@ -85,8 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
- rubyforge_project:
89
- rubygems_version: 2.6.11
88
+ rubygems_version: 3.0.1
90
89
  signing_key:
91
90
  specification_version: 4
92
91
  summary: Rest Client for accessing Red Hat Support