push
github
0 of 34 new or added lines in 3 files covered. (0.0%)
2103 existing lines in 58 files now uncovered.0 of 2267 relevant lines covered (0.0%)
0.0 hits per line
UNCOV
1
|
require 'unleash/bootstrap/provider/base'
|
× |
2 |
|
|
UNCOV
3
|
module Unleash |
× |
UNCOV
4
|
module Bootstrap |
× |
UNCOV
5
|
module Provider |
× |
UNCOV
6
|
class FromUrl < Base |
× |
7 |
# @param url [String]
|
|
8 |
# @param headers [Hash, nil] HTTP headers to use. If not set, the unleash client SDK ones will be used.
|
|
UNCOV
9
|
def self.read(url, headers = nil) |
× |
UNCOV
10
|
response = Unleash::Util::Http.get(URI.parse(url), nil, headers) |
× |
11 |
|
|
UNCOV
12
|
return nil if response.code != '200' |
× |
13 |
|
|
UNCOV
14
|
response.body |
× |
15 |
end
|
|
16 |
end
|
|
17 |
end
|
|
18 |
end
|
|
19 |
end
|