smart_schema 0.10.0 → 0.11.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: 1091be1a928799b1f68dbceb9d9776f1f522ede5052798373174effd3e113d90
4
- data.tar.gz: a67e0c2668890e7cff9da035058596b9d80fe497f501487a56dbc1545b85f99a
3
+ metadata.gz: 7d11dda1a68409b32b4256ea9b364e83eea9aba1bbf1eb83dccc346dbffa92eb
4
+ data.tar.gz: 8db348ce6ca9c2332fe7e5dc3a21c29101bd7c3eea2202d6e67d04322d523286
5
5
  SHA512:
6
- metadata.gz: 71079e1950ce9a55b9f72ace447d96c07eebd5fd2696787be7dad04e2f46d1b51a2d4f9eee1b9eb519b567345ff054ccd4a3966f4cc38c5461405b7fdfce7fdb
7
- data.tar.gz: a7334f5669d2b95e573a5d416c42193ecb60546f24babc8a1034c3459c753e728f2214a9a421b7d047a7bd7a959a74f995d9ebb8318d5550fd17198484ca2e18
6
+ metadata.gz: f82f40dccd57d8e1a5b392ff6ea2ae235c32a455b048b2016759ce049d74cfa402c16066213c50d60aa0da49918e503cab211728cb0f6673ed7410e8c7aa477a
7
+ data.tar.gz: c497d9ebd6154b00b42933cf08871af4122428271a13de366f2123a77923130d57fe4e842e922fddc270cdfd9fdbd8489fe9cf5df567aac2479ff99e5af29df3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ # [0.11.0] - 2022-11-25
5
+ ## Changed
6
+ - Reduced object allocation count inside the type validation logic (updated `smart_types` to `~> 0.8`);
7
+ - Support for *Ruby@2.5* and *Ruby@2.6* has ended;
8
+ - Updated development dependencies;
9
+
4
10
  # [0.10.0] - 2022-10-16
5
11
  ## Changed
6
12
  - Updated `smart_engine` dependency with a `SmartCore::Engine::ReadWriteLock` fixes;
data/Gemfile.lock CHANGED
@@ -3,7 +3,7 @@ PATH
3
3
  specs:
4
4
  smart_schema (0.10.0)
5
5
  smart_engine (~> 0.17)
6
- smart_types (~> 0.4)
6
+ smart_types (~> 0.8)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -13,12 +13,12 @@ GEM
13
13
  i18n (>= 1.6, < 2)
14
14
  minitest (>= 5.1)
15
15
  tzinfo (~> 2.0)
16
- armitage-rubocop (1.30.1.1)
17
- rubocop (= 1.30.1)
18
- rubocop-performance (= 1.14.2)
19
- rubocop-rails (= 2.15.0)
16
+ armitage-rubocop (1.36.0)
17
+ rubocop (= 1.36.0)
18
+ rubocop-performance (= 1.15.0)
19
+ rubocop-rails (= 2.16.1)
20
20
  rubocop-rake (= 0.6.0)
21
- rubocop-rspec (= 2.11.1)
21
+ rubocop-rspec (= 2.13.2)
22
22
  ast (2.4.2)
23
23
  coderay (1.1.3)
24
24
  concurrent-ruby (1.1.10)
@@ -26,6 +26,7 @@ GEM
26
26
  docile (1.4.0)
27
27
  i18n (1.12.0)
28
28
  concurrent-ruby (~> 1.0)
29
+ json (2.6.2)
29
30
  method_source (1.0.0)
30
31
  minitest (5.16.3)
31
32
  parallel (1.22.1)
@@ -34,46 +35,47 @@ GEM
34
35
  pry (0.14.1)
35
36
  coderay (~> 1.1)
36
37
  method_source (~> 1.0)
37
- rack (3.0.0)
38
+ rack (3.0.1)
38
39
  rainbow (3.1.1)
39
40
  rake (13.0.6)
40
- regexp_parser (2.6.0)
41
+ regexp_parser (2.6.1)
41
42
  rexml (3.2.5)
42
- rspec (3.11.0)
43
- rspec-core (~> 3.11.0)
44
- rspec-expectations (~> 3.11.0)
45
- rspec-mocks (~> 3.11.0)
46
- rspec-core (3.11.0)
47
- rspec-support (~> 3.11.0)
48
- rspec-expectations (3.11.1)
43
+ rspec (3.12.0)
44
+ rspec-core (~> 3.12.0)
45
+ rspec-expectations (~> 3.12.0)
46
+ rspec-mocks (~> 3.12.0)
47
+ rspec-core (3.12.0)
48
+ rspec-support (~> 3.12.0)
49
+ rspec-expectations (3.12.0)
49
50
  diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.11.0)
51
- rspec-mocks (3.11.1)
51
+ rspec-support (~> 3.12.0)
52
+ rspec-mocks (3.12.0)
52
53
  diff-lcs (>= 1.2.0, < 2.0)
53
- rspec-support (~> 3.11.0)
54
- rspec-support (3.11.1)
55
- rubocop (1.30.1)
54
+ rspec-support (~> 3.12.0)
55
+ rspec-support (3.12.0)
56
+ rubocop (1.36.0)
57
+ json (~> 2.3)
56
58
  parallel (~> 1.10)
57
- parser (>= 3.1.0.0)
59
+ parser (>= 3.1.2.1)
58
60
  rainbow (>= 2.2.2, < 4.0)
59
61
  regexp_parser (>= 1.8, < 3.0)
60
62
  rexml (>= 3.2.5, < 4.0)
61
- rubocop-ast (>= 1.18.0, < 2.0)
63
+ rubocop-ast (>= 1.20.1, < 2.0)
62
64
  ruby-progressbar (~> 1.7)
63
65
  unicode-display_width (>= 1.4.0, < 3.0)
64
- rubocop-ast (1.21.0)
66
+ rubocop-ast (1.23.0)
65
67
  parser (>= 3.1.1.0)
66
- rubocop-performance (1.14.2)
68
+ rubocop-performance (1.15.0)
67
69
  rubocop (>= 1.7.0, < 2.0)
68
70
  rubocop-ast (>= 0.4.0)
69
- rubocop-rails (2.15.0)
71
+ rubocop-rails (2.16.1)
70
72
  activesupport (>= 4.2.0)
71
73
  rack (>= 1.1)
72
- rubocop (>= 1.7.0, < 2.0)
74
+ rubocop (>= 1.33.0, < 2.0)
73
75
  rubocop-rake (0.6.0)
74
76
  rubocop (~> 1.0)
75
- rubocop-rspec (2.11.1)
76
- rubocop (~> 1.19)
77
+ rubocop-rspec (2.13.2)
78
+ rubocop (~> 1.33)
77
79
  ruby-progressbar (1.11.0)
78
80
  simplecov (0.21.2)
79
81
  docile (~> 1.1)
@@ -82,7 +84,7 @@ GEM
82
84
  simplecov-html (0.12.3)
83
85
  simplecov_json_formatter (0.1.4)
84
86
  smart_engine (0.17.0)
85
- smart_types (0.7.1)
87
+ smart_types (0.8.0)
86
88
  smart_engine (~> 0.11)
87
89
  tzinfo (2.0.5)
88
90
  concurrent-ruby (~> 1.0)
@@ -49,8 +49,8 @@ class SmartCore::Schema::Checker::Rules::Requirement::Result
49
49
  @key_exists = key_exists
50
50
  @success = required ? key_exists : true
51
51
  @failure = required ? !key_exists : false
52
- @error = required && !key_exists ? ERROR_CODE : nil
53
- @message = required && !key_exists ? "Required key :#{key} not found" : nil
52
+ @error = (required && !key_exists) ? ERROR_CODE : nil
53
+ @message = (required && !key_exists) ? "Required key :#{key} not found" : nil
54
54
  end
55
55
 
56
56
  # @return [Boolean]
@@ -7,8 +7,8 @@ module SmartCore
7
7
  #
8
8
  # @api public
9
9
  # @since 0.1.0
10
- # @version 0.10.0
11
- VERSION = '0.10.0'
10
+ # @version 0.11.0
11
+ VERSION = '0.11.0'
12
12
  end
13
13
  # rubocop:enable Style/StaticClass
14
14
  end
data/smart_schema.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
  require_relative 'lib/smart_core/schema/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.required_ruby_version = Gem::Requirement.new('>= 2.5.8')
6
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.7')
7
7
 
8
8
  spec.name = 'smart_schema'
9
9
  spec.version = SmartCore::Schema::VERSION
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.require_paths = ['lib']
32
32
 
33
33
  spec.add_dependency 'smart_engine', '~> 0.17'
34
- spec.add_dependency 'smart_types', '~> 0.4'
34
+ spec.add_dependency 'smart_types', '~> 0.8'
35
35
 
36
36
  spec.add_development_dependency 'pry', '~> 0.13'
37
37
  spec.add_development_dependency 'bundler', '~> 2.2'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-16 00:00:00.000000000 Z
11
+ date: 2022-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: smart_engine
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.4'
33
+ version: '0.8'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.4'
40
+ version: '0.8'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -194,14 +194,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
194
194
  requirements:
195
195
  - - ">="
196
196
  - !ruby/object:Gem::Version
197
- version: 2.5.8
197
+ version: '2.7'
198
198
  required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  requirements:
200
200
  - - ">="
201
201
  - !ruby/object:Gem::Version
202
202
  version: '0'
203
203
  requirements: []
204
- rubygems_version: 3.3.11
204
+ rubygems_version: 3.3.7
205
205
  signing_key:
206
206
  specification_version: 4
207
207
  summary: SmartCore::Schema is a schema validator for Hash-like data structures