redhat_access 2.2.5 → 2.2.6

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: b2135b206a29e07ff5d476c7fbe9ef281a3d0582665983250593deb35011d4b0
4
- data.tar.gz: d588a46901e9a3d2a878ca855641fcbb517b79eea1420ef463dabd411fb0cbf4
3
+ metadata.gz: d223aea9f7cb82e44fd236b67595f0e60ad88de9238c18112088bcef2b4a69a2
4
+ data.tar.gz: ff7e50df12bbafec681859ae8e994fe4aae7dab21e9bde22de36f1f33f486e4b
5
5
  SHA512:
6
- metadata.gz: 2d856825f0630674aef68091c1d57999fa3efff4fb3a6869c67bb91248ba909c8274f053e7203c3fc10e37b17260ce87bc6936120ab2fd1e3e6856f7af13f64b
7
- data.tar.gz: aa75b8c3eccc9c00fdea6e19b79abda94f2f2e32cef09963a2c388953c41c4a77d908e71015dc6aa72e3ed5ddf3a8e6810d2c0af5898901ccd001158de5dfdb7
6
+ metadata.gz: 2d0de6cef15f0def1e633389e6305b4b95c8e1889177efd8a9f3d06a0ee038ba05032709a039c2ed43c08aeb0d90a164c8a3b3d60316adad3c8f681c4e9afd1a
7
+ data.tar.gz: fc1b58b5bc34ef0041ef2a3b380023a6356252531c26fe61c2a8cdcde955cf950eb32013862d0ecc726b7b152d2b1b915c3df1831692144723dba30b0290a410
@@ -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.2.5"
2
+ VERSION = "2.2.6"
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.2.5
4
+ version: 2.2.6
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