rhc 1.25.2 → 1.25.3

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.
Files changed (2) hide show
  1. data/lib/rhc/rest/httpclient.rb +4 -2
  2. metadata +11 -4
@@ -135,8 +135,10 @@ module RHC
135
135
  def challenge(uri, param_str = nil)
136
136
  return false if caller.any?{ |s| s =~ /webmock.*httpclient_adapter.*build_request_signature/ }
137
137
  uri = urify(uri)
138
- challenged = @challengeable[uri]
139
- @challengeable[uri] = true
138
+ # httpclient < 2.4.0 uses @challengeable, >= 2.4.0 uses @challenge
139
+ challenges = @challenge || @challengeable
140
+ challenged = challenges[uri]
141
+ challenges[uri] = true
140
142
  !challenged
141
143
  end
142
144
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 119
4
+ hash: 117
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 25
9
- - 2
10
- version: 1.25.2
9
+ - 3
10
+ version: 1.25.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Red Hat
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2014-05-29 00:00:00 Z
18
+ date: 2014-06-09 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: net-ssh
@@ -184,6 +184,13 @@ dependencies:
184
184
  - 8
185
185
  - 0
186
186
  version: 2.8.0
187
+ - - <
188
+ - !ruby/object:Gem::Version
189
+ hash: 197
190
+ segments:
191
+ - 2
192
+ - 99
193
+ version: "2.99"
187
194
  type: :development
188
195
  version_requirements: *id011
189
196
  - !ruby/object:Gem::Dependency