checkability 2.0.3 → 2.1.0

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: b338934af7b685f8c2737d5e96daa3913ca6040afdcfe65f2d45d05dfacc5b86
4
- data.tar.gz: 8fd02d3a5b7394641d4dd371771197c6646be3285df8265fbad3634eb2101778
3
+ metadata.gz: ae01f58d2012ce52ed74568c007178ad6e43b40046c41d6f088b42bcbac0d766
4
+ data.tar.gz: 769768802d26c6a47f90517fb5875f3b18f6b347ffd86455d7d0b79ab0d6c930
5
5
  SHA512:
6
- metadata.gz: c7f287a23f6ad83c3c305991dbac396efae4011bd8142a795e22992346922d34bf3b696b149d48a5d82f6aaa393f4f9d57fd725285a8bd523b3828b795bf3925
7
- data.tar.gz: 6cd5eb1a4e0c25f415c7dd3237ae5022ce1b87f6a626c01dd74da4627dd7eee23921143c0d943ab61b782c83d711ae829e1f68c22aeccf2d862f960d16f02fc3
6
+ metadata.gz: 393836e6c626564325df8a5c13583804c071b720ad100003f876d4cdddda55aecd6e815b03d2389a204c4746d0ed9d9700a76d7a1d5a9ee8db79cfd86323d38b
7
+ data.tar.gz: 0a45353c00ca35c7ee4acf69097f937667f1dcb850ff1285d2e92e31a6bc4995edad468c10bb970bad2db6bc4c5ace876cf85181b85bf6d85cd182995b55e320
data/README.md CHANGED
@@ -76,4 +76,5 @@ The gem is available as open source under the terms of the [MIT License](https:/
76
76
 
77
77
  ## Future works
78
78
 
79
- - [ ] Use ChainOfResponsibility pattern to simplify call of checkers
79
+ - [X] Use ChainOfResponsibility pattern to simplify call of checkers
80
+ - [ ] Improve test with adding doubles
@@ -28,9 +28,9 @@ module Checkability
28
28
  #
29
29
  def check
30
30
  _first_handler.handle(check_obj)
31
- rescue StandardError => e
32
- check_obj.ch_messages << "false:::#{e}: #{handler_confs}."
33
- false
31
+ # rescue StandardError => e
32
+ # check_obj.ch_messages << "false:::#{e}: #{handler_confs}."
33
+ # false
34
34
  end
35
35
 
36
36
  private
@@ -42,8 +42,8 @@ module Checkability
42
42
  def _handlers
43
43
  handlers = _make_handlers
44
44
  handlers.each_value.with_index do |handler, i|
45
- next_handler_name = handlers.keys[i + 1]
46
- handler.next_handler(handlers[next_handler_name]) if handlers[next_handler_name]
45
+ next_handler = handlers[handlers.keys[i + 1]]
46
+ handler.next_handler(next_handler) if next_handler
47
47
  end
48
48
  handlers
49
49
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Checkability
4
- VERSION = '2.0.3'
4
+ VERSION = '2.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: checkability
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Eremeev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-06 00:00:00.000000000 Z
11
+ date: 2021-04-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Provide Checkers functionality.
14
14
  email: