servactory 2.9.0.rc4 → 2.9.0.rc5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3de853fe0877c3bd940e62460badeee994a2263ab2453b54ace7c25f6e888be
4
- data.tar.gz: df75e73cd6a4b6f38b1b5c8a0cca8b923a557362e3ce9a2b40c3830db9397417
3
+ metadata.gz: cc0f7f02e7f7a32fa1c9b84a4b2b45d87cdfc3ed7f0cb27fe2b15d93c570ae43
4
+ data.tar.gz: 2048fe4a17318921ea6704f4c6bc6e78f7c6ee85d423178db0a6fe5da4c3cc8b
5
5
  SHA512:
6
- metadata.gz: 31e54e96f5654aad8e28ce5291c8fad262b8d94f6dae1c628444ed8065598a0193a328d3dfb720af8c07bcb9100b7333a41a7c167016844d3f40494ea42f6989
7
- data.tar.gz: 8a41100103f6f138c815928cee3a0676c985b74d5535aaaba39f2b7ab3a11722ff46043fe7c32daef828b019bde2ab6565c25b1f4ecbef6aeb219c972da55970
6
+ metadata.gz: c79767f67921b3eccc6c0ee3fd8b7853173950b3977b8c61470494a37a8613760d3e461fd6242037801117823f4f2cba21c64f3038cdcbc4fe39fd85ab4e327a
7
+ data.tar.gz: e35b9d4f772d911e53dff8945e846a86b06c3ddf09b4ed7ebb791d0a4d27c5e13bfd6965aaf5c1098079a7f1d31638be5b8df555275ed762ae64f10f8facf1e3
@@ -115,7 +115,7 @@ module Servactory
115
115
  end
116
116
 
117
117
  failure_message do |actual| # rubocop:disable Metrics/BlockLength
118
- unless actual.instance_of?(Servactory::Result)
118
+ unless actual.is_a?(Servactory::Result)
119
119
  break <<~MESSAGE
120
120
  Incorrect service result:
121
121
 
@@ -184,7 +184,7 @@ module Servactory
184
184
  matched &&= !actual.success?
185
185
  matched &&= actual.failure?
186
186
  matched &&= actual.error.is_a?(Servactory::Exceptions::Failure)
187
- matched &&= actual.error.instance_of?(expected_failure_class)
187
+ matched &&= actual.error.is_a?(expected_failure_class)
188
188
  matched &&= actual.error.type == expected_type
189
189
  matched &&= actual.error.message == expected_message
190
190
  matched &&= actual.error.meta == expected_meta
@@ -208,7 +208,7 @@ module Servactory
208
208
  end
209
209
 
210
210
  failure_message do |actual| # rubocop:disable Metrics/BlockLength
211
- unless actual.instance_of?(Servactory::Result)
211
+ unless actual.is_a?(Servactory::Result)
212
212
  break <<~MESSAGE
213
213
  Incorrect service result:
214
214
 
@@ -236,7 +236,7 @@ module Servactory
236
236
  end
237
237
 
238
238
  if defined?(@expected_failure_class)
239
- unless actual.error.instance_of?(@expected_failure_class)
239
+ unless actual.error.is_a?(@expected_failure_class)
240
240
  break <<~MESSAGE
241
241
  Incorrect instance error:
242
242
 
@@ -245,7 +245,7 @@ module Servactory
245
245
  MESSAGE
246
246
  end
247
247
  else
248
- unless actual.error.instance_of?(Servactory::Exceptions::Failure)
248
+ unless actual.error.is_a?(Servactory::Exceptions::Failure)
249
249
  break <<~MESSAGE
250
250
  Incorrect error object:
251
251
 
@@ -5,7 +5,7 @@ module Servactory
5
5
  MAJOR = 2
6
6
  MINOR = 9
7
7
  PATCH = 0
8
- PRE = "rc4"
8
+ PRE = "rc5"
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join(".")
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: servactory
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.0.rc4
4
+ version: 2.9.0.rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Sokolov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-30 00:00:00.000000000 Z
11
+ date: 2024-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport