heartcheck-webservice 2.1.0 → 2.2.0

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: 2818537458277302c796d684383d3f10ef7729adc8f2214b9726e4e6b069d53b
4
- data.tar.gz: 5b2b082578d72ffb7899c65a2b5ef2f0b2a52cd18018e339c4e9802d723bc96d
3
+ metadata.gz: 63850c101aeb9de06b0052a6c8584e5f4654ff79f2733eb04ee74df064c18761
4
+ data.tar.gz: 2216c8ca467ce8b8c0839edd0a34c833d04a4b74a997b39b70776dd3cbc8633d
5
5
  SHA512:
6
- metadata.gz: 0ffc57758a2d46a7544a351538bd8684ed4f09ba45ddf9f044f9ea13f7c47ad9391fbbd9b7921a2e7d9b78fdb0d00a3bda7796cef32e3a0d0fccc94be39981df
7
- data.tar.gz: bbc16ba99d06fcfed67c482b5ae3ac93750aaaaa027b44de4a0bcf1c9278642b9e922cc7a976b90584a9695d073b9886501202183d14f3fc3f9a043b289e7fff
6
+ metadata.gz: 57e902d15708caeda19ec7d331010309411d3bd4f072f211627cff29fc7453aac25ddf6ab899fa17e890bed2dbe9b6fef06dab8de5c61c644ba32e7b3785ab46
7
+ data.tar.gz: fcf31add71c73df5126857c1aa8ef0891cc5a12c4769cea76dbfb5ed2cce691dbfe6c48ed08c47f0414c58a431e6466945f3ac8edef54cd1fbc668181a9866f8
@@ -88,7 +88,9 @@ module Heartcheck
88
88
  #
89
89
  # @return [Bollean]
90
90
  def valid_body?(response, service)
91
- service[:body_match] && response.body =~ service[:body_match]
91
+ return true unless service[:body_match]
92
+
93
+ response.body =~ service[:body_match]
92
94
  end
93
95
 
94
96
  # execute request
@@ -2,6 +2,6 @@
2
2
  module Heartcheck
3
3
  # gem version
4
4
  module Webservice
5
- VERSION = '2.1.0'
5
+ VERSION = '2.2.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heartcheck-webservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Locaweb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-29 00:00:00.000000000 Z
11
+ date: 2019-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: heartcheck
@@ -48,20 +48,20 @@ dependencies:
48
48
  name: rspec
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: 3.1.0
54
- - - ">="
54
+ - - "~>"
55
55
  - !ruby/object:Gem::Version
56
56
  version: 3.1.0
57
57
  type: :development
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - "~>"
61
+ - - ">="
62
62
  - !ruby/object:Gem::Version
63
63
  version: 3.1.0
64
- - - ">="
64
+ - - "~>"
65
65
  - !ruby/object:Gem::Version
66
66
  version: 3.1.0
67
67
  - !ruby/object:Gem::Dependency
@@ -82,20 +82,20 @@ dependencies:
82
82
  name: fakeweb
83
83
  requirement: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - "~>"
85
+ - - ">="
86
86
  - !ruby/object:Gem::Version
87
87
  version: 1.3.0
88
- - - ">="
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
90
  version: 1.3.0
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - "~>"
95
+ - - ">="
96
96
  - !ruby/object:Gem::Version
97
97
  version: 1.3.0
98
- - - ">="
98
+ - - "~>"
99
99
  - !ruby/object:Gem::Version
100
100
  version: 1.3.0
101
101
  - !ruby/object:Gem::Dependency
@@ -132,6 +132,20 @@ dependencies:
132
132
  - - ">="
133
133
  - !ruby/object:Gem::Version
134
134
  version: 3.2.2
135
+ - !ruby/object:Gem::Dependency
136
+ name: rake
137
+ requirement: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ type: :development
143
+ prerelease: false
144
+ version_requirements: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ version: '0'
135
149
  description: Plugin to check webservice connection in heartcheck.
136
150
  email:
137
151
  - desenvolvedores@locaweb.com.br
@@ -162,8 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
176
  - !ruby/object:Gem::Version
163
177
  version: '0'
164
178
  requirements: []
165
- rubyforge_project:
166
- rubygems_version: 2.7.7
179
+ rubygems_version: 3.0.3
167
180
  signing_key:
168
181
  specification_version: 4
169
182
  summary: A webservice checker.