redhat_access 2.1.8 → 2.1.9

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: 398b7100ad9636ec70b3bdf748afb72499422b26bf5483067e7ddbdbd257466e
4
- data.tar.gz: 486419ba730f4d1507094210c3c1de446f697a4f7c1668468b5c6a68fca5af26
3
+ metadata.gz: 3340a5be7d13c6bbdf4193e66f62f824239e7748526bec3f502d21db1d3f7779
4
+ data.tar.gz: 65bb258ed50ec19dc481b9c58ca0a906c03aa12266d42f6530298e17ed416267
5
5
  SHA512:
6
- metadata.gz: a888ddf1090d7c082167e2c23698937202b35a11775e0a6c9cd4f0bb5f306d738ff3b123d90375d44c6c634edcd97c193c73ba917c3cf0782a696e5c1b986aa7
7
- data.tar.gz: ee35124597ca7f1a849273d830458d5a06b744f5e72a70aba8bbefb57dcf7185d8cbf7ed46f6b71645f64f53454a305e45a3d4ea7f1b7f2e6abd21f77ec9e554
6
+ metadata.gz: 4f1bb0048b6e82f24db3c49eee1c553be5a167ef72ada62cf570d00aae34f08d8d7042161f04f480b5e449ca003b7a0207b08bfa350975c504be50666f65779e
7
+ data.tar.gz: cd71cff00e2926154d8ac27b79dfd7078b654219bfcab86708c65b0a35222bbaab4853d35657352f77b0fafe5f81d0a75f927c2b34646e6c3d8d5cc9be946db2
@@ -108,9 +108,14 @@ module RedhatAccess
108
108
  original_payload = request.body.read
109
109
  end
110
110
  resource = params[:path] == nil ? "/" : params[:path]
111
+
111
112
  if params[:file]
112
113
  original_payload = get_file_data(params)
114
+ elsif request.format.json? && request.patch? && original_payload
115
+ # because rails behaves stupidly for http PATCH:
116
+ original_payload = original_payload.to_json unless original_payload.is_a? String
113
117
  end
118
+
114
119
  client = get_api_client
115
120
  res = client.call_tapi(original_method, URI.escape(resource), original_params, original_payload, nil, use_subsets)
116
121
  #401 erros means our proxy is not configured right.
@@ -1,3 +1,3 @@
1
1
  module RedhatAccess
2
- VERSION = "2.1.8"
2
+ VERSION = "2.1.9"
3
3
  end
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.1.8
4
+ version: 2.1.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-05-09 00:00:00.000000000 Z
11
+ date: 2019-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redhat_access_lib