okcomputer 1.7.1 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MmUyZWZjYmIwYmMxYzYwMzg5ODVmZTU4NzFjNzBjNTY4ZGRmMWQyYQ==
5
- data.tar.gz: !binary |-
6
- M2ZmNjZmZTE2NTFjM2I1MTEwY2IxNTUxN2ExYzg2ZjY3OGI2MjE3Yg==
2
+ SHA1:
3
+ metadata.gz: d4e908ffeb6f9ee8702b205d5dc852cd4581ed38
4
+ data.tar.gz: 55a249da9a68bbff47d426a4d68d34671335b53a
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YTBjMDFiMmI3OGU1MjhmNDhhZWM2ODVmMjJkYmRhNzA4ZTE3MzNkZTliNDIy
10
- Y2ZmYTY1OTYxZmEwZGNmYzI3MjA2OTZlMDI5NDAzMjU3NzUzYzg4NWY5NTY2
11
- ZDhmMzk2OTA5MmVlOTBhN2RlZjM3YzQ1MmNiNWVhMzQ2NWMwNjU=
12
- data.tar.gz: !binary |-
13
- MjNhMGVlM2M4ODYyOWY0ODczMmU3NDQ1OGYxN2MwNzdmOTA5NzAzNDQ1MjY0
14
- Y2U1ZmJkMzRlMmQ0YzAzOTBhZDk3ZjRjNTU5MDg1NDhhYzU2NWVlODUxNmMz
15
- NTNjZTMyYWU1YWFhMTZjZjQwMjQ5OWE5M2MxOGNmYWM0ZTdlNzQ=
6
+ metadata.gz: 48db7fb1180e66ce41e12efbdf6f7ce3eeee2f7371a986b26a8fc8c06b94577364816a8b19737b326ab3e6102a6f5c4f0fbf629dc9f126f58f595a3f26062c53
7
+ data.tar.gz: 3179619d894d772d4100e4975e1bdec392915edcb795b7739e9c479bd778f9485c1cb758018cb474b60185006222ebb688efe9933fc78dd37648faa98f5c193a
@@ -35,10 +35,13 @@ module OkComputer
35
35
  # Otherwise raises a HttpCheck::ConnectionFailed error.
36
36
  def perform_request
37
37
  timeout(request_timeout) do
38
- url.read(
39
- read_timeout: request_timeout,
40
- http_basic_authentication: basic_auth_options
41
- )
38
+ options = { read_timeout: request_timeout }
39
+
40
+ if basic_auth_options.any?
41
+ options[:http_basic_authentication] = basic_auth_options
42
+ end
43
+
44
+ url.read(options)
42
45
  end
43
46
  rescue => e
44
47
  raise ConnectionFailed, e
@@ -1,3 +1,3 @@
1
1
  module OkComputer
2
- VERSION = '1.7.1'
2
+ VERSION = '1.7.2'
3
3
  end
metadata CHANGED
@@ -1,61 +1,61 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: okcomputer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Byrne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-29 00:00:00.000000000 Z
11
+ date: 2016-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec-rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: coveralls
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: ! "\n Inspired by the simplicity of Fitter Happier, but frustrated
56
- by its lack of\n flexibility, we built OK Computer. Create and register your
57
- own custom\n health checks, or choose from the built-in library of checks to
58
- ensure your\n app is working as intended.\n "
55
+ description: "\n Inspired by the simplicity of Fitter Happier, but frustrated by
56
+ its lack of\n flexibility, we built OK Computer. Create and register your own
57
+ custom\n health checks, or choose from the built-in library of checks to ensure
58
+ your\n app is working as intended.\n "
59
59
  email:
60
60
  - patrick.byrne@tstmedia.com
61
61
  executables: []
@@ -103,17 +103,17 @@ require_paths:
103
103
  - lib
104
104
  required_ruby_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - ! '>='
106
+ - - ">="
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - ! '>='
111
+ - - ">="
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project:
116
- rubygems_version: 2.4.8
116
+ rubygems_version: 2.5.1
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: A simple, extensible health-check monitor