servactory 2.9.0.rc4 → 2.9.0.rc6

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: e3de853fe0877c3bd940e62460badeee994a2263ab2453b54ace7c25f6e888be
4
- data.tar.gz: df75e73cd6a4b6f38b1b5c8a0cca8b923a557362e3ce9a2b40c3830db9397417
3
+ metadata.gz: c6a762f7cbe5f9ac88c14ef817109ee6b1e1f29e4c404ddd73b20520fd48705e
4
+ data.tar.gz: 1205b74201b08c5191813f9c02e5da954609d20d66d9bbdb7815bbfeaa01a4c6
5
5
  SHA512:
6
- metadata.gz: 31e54e96f5654aad8e28ce5291c8fad262b8d94f6dae1c628444ed8065598a0193a328d3dfb720af8c07bcb9100b7333a41a7c167016844d3f40494ea42f6989
7
- data.tar.gz: 8a41100103f6f138c815928cee3a0676c985b74d5535aaaba39f2b7ab3a11722ff46043fe7c32daef828b019bde2ab6565c25b1f4ecbef6aeb219c972da55970
6
+ metadata.gz: c3a02731634fa02a71318580051704310519fcbbee287ecadfa15f31ae567e4015b08d30cfb30513d4a21df75a5457a22aec22a4afc46350401c5f1a43dda5fc
7
+ data.tar.gz: 6e157f714eab85943554d2a02a061b82b681c85ce1b1dcaab396d0f67e209db7ab40c334047cb849b500be1d8794f02d73e1d93267d3c27f1707ca3f522f250e
@@ -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,10 +184,10 @@ 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
- matched &&= actual.error.message == expected_message
190
- matched &&= actual.error.meta == expected_meta
189
+ matched &&= actual.error.message == expected_message if defined?(@expected_message)
190
+ matched &&= actual.error.meta == expected_meta if defined?(@expected_meta)
191
191
  matched
192
192
  end
193
193
 
@@ -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
 
@@ -285,6 +285,11 @@ module Servactory
285
285
  <<~MESSAGE
286
286
  Unexpected case when using `be_failure_service`.
287
287
 
288
+ Exception: #{actual.error.inspect}
289
+ Type: #{actual.error.type.inspect}
290
+ Message: #{actual.error.message.inspect}
291
+ Meta: #{actual.error.meta.inspect}
292
+
288
293
  Please try to build an example based on the documentation.
289
294
  Or report your problem to us:
290
295
 
@@ -5,7 +5,7 @@ module Servactory
5
5
  MAJOR = 2
6
6
  MINOR = 9
7
7
  PATCH = 0
8
- PRE = "rc4"
8
+ PRE = "rc6"
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.rc6
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-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -30,6 +30,34 @@ dependencies:
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '8.1'
33
+ - !ruby/object:Gem::Dependency
34
+ name: base64
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0.2'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '0.2'
47
+ - !ruby/object:Gem::Dependency
48
+ name: bigdecimal
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '3.0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '3.0'
33
61
  - !ruby/object:Gem::Dependency
34
62
  name: i18n
35
63
  requirement: !ruby/object:Gem::Requirement
@@ -44,6 +72,20 @@ dependencies:
44
72
  - - "~>"
45
73
  - !ruby/object:Gem::Version
46
74
  version: '1.14'
75
+ - !ruby/object:Gem::Dependency
76
+ name: mutex_m
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '0.2'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '0.2'
47
89
  - !ruby/object:Gem::Dependency
48
90
  name: zeitwerk
49
91
  requirement: !ruby/object:Gem::Requirement