servactory 2.9.0.rc3 → 2.9.0.rc5

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: db731a222e915d37026b04c38cf65d916f3e2c9d7f16b39e7802b63e4a2e62a1
4
- data.tar.gz: 533e74fc14b689fedf92f8d0cbdca8d910bb2e80525b1bb4888b0c09f67f398f
3
+ metadata.gz: cc0f7f02e7f7a32fa1c9b84a4b2b45d87cdfc3ed7f0cb27fe2b15d93c570ae43
4
+ data.tar.gz: 2048fe4a17318921ea6704f4c6bc6e78f7c6ee85d423178db0a6fe5da4c3cc8b
5
5
  SHA512:
6
- metadata.gz: 8dcc8e601a71bc9e2b2664c4be96762bf36f39cdf385ee40c79a968d67b5a0c03483ae7d048e17613abb08598acbf73e64b1caaf5f854929f9c98a3a3c5dad2b
7
- data.tar.gz: 15f59437a0fdb279e24f0d09a7f279d3849379cc7547a8338e826fe158804e1ff6edb1662b2c126cc4c4a3c31f04d174c075f06de4938256e50c4bacc1bb9977
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 = "rc3"
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.rc3
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-23 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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '5.1'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '8.0'
22
+ version: '8.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '5.1'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '8.0'
32
+ version: '8.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: i18n
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -377,7 +377,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
377
377
  - !ruby/object:Gem::Version
378
378
  version: '0'
379
379
  requirements: []
380
- rubygems_version: 3.5.11
380
+ rubygems_version: 3.5.16
381
381
  signing_key:
382
382
  specification_version: 4
383
383
  summary: A set of tools for building reliable services of any complexity