Skip to content

Commit 9d66a12

Browse files
authored
Merge pull request #16 from smart-rb/from-mutex-to-rwlock
[mutex=>rwlock] Migrate from Mutexes to RWLocks
2 parents 489aa12 + f4269bd commit 9d66a12

File tree

19 files changed

+227
-365
lines changed

19 files changed

+227
-365
lines changed

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
All notable changes to this project will be documented in this file.
33

44
## [0.9.1] - 2022-03-06
5-
65
### Fixed
7-
86
- `finalize` now accepts lambdas with arity `-2`. For example `->(a, *b) {}` or `:freeze.to_proc`
97
which in `Ruby >= 3` returns lambda with arity equal to `-2`.
108

Gemfile.lock

Lines changed: 48 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -3,109 +3,104 @@ PATH
33
specs:
44
smart_initializer (0.9.1)
55
qonfig (~> 0.24)
6-
smart_engine (~> 0.11)
7-
smart_types (~> 0.4)
6+
smart_engine (~> 0.16)
7+
smart_types (~> 0.7)
88

99
GEM
1010
remote: https://rubygems.org/
1111
specs:
12-
activesupport (6.1.4.1)
12+
activesupport (7.0.4)
1313
concurrent-ruby (~> 1.0, >= 1.0.2)
1414
i18n (>= 1.6, < 2)
1515
minitest (>= 5.1)
1616
tzinfo (~> 2.0)
17-
zeitwerk (~> 2.3)
18-
armitage-rubocop (1.23.0.1)
19-
rubocop (= 1.23.0)
20-
rubocop-performance (= 1.12.0)
21-
rubocop-rails (= 2.12.4)
17+
armitage-rubocop (1.30.1.1)
18+
rubocop (= 1.30.1)
19+
rubocop-performance (= 1.14.2)
20+
rubocop-rails (= 2.15.0)
2221
rubocop-rake (= 0.6.0)
23-
rubocop-rspec (= 2.6.0)
22+
rubocop-rspec (= 2.11.1)
2423
ast (2.4.2)
2524
coderay (1.1.3)
26-
concurrent-ruby (1.1.9)
27-
diff-lcs (1.4.4)
25+
concurrent-ruby (1.1.10)
26+
diff-lcs (1.5.0)
2827
docile (1.4.0)
29-
i18n (1.8.11)
28+
i18n (1.12.0)
3029
concurrent-ruby (~> 1.0)
3130
method_source (1.0.0)
32-
minitest (5.14.4)
33-
parallel (1.21.0)
34-
parser (3.0.3.1)
31+
minitest (5.16.3)
32+
parallel (1.22.1)
33+
parser (3.1.2.1)
3534
ast (~> 2.4.1)
3635
pry (0.14.1)
3736
coderay (~> 1.1)
3837
method_source (~> 1.0)
39-
qonfig (0.27.0)
40-
rack (2.2.3)
41-
rainbow (3.0.0)
38+
qonfig (0.28.0)
39+
rack (3.0.0)
40+
rainbow (3.1.1)
4241
rake (13.0.6)
43-
regexp_parser (2.2.0)
42+
regexp_parser (2.6.0)
4443
rexml (3.2.5)
45-
rspec (3.10.0)
46-
rspec-core (~> 3.10.0)
47-
rspec-expectations (~> 3.10.0)
48-
rspec-mocks (~> 3.10.0)
49-
rspec-core (3.10.1)
50-
rspec-support (~> 3.10.0)
51-
rspec-expectations (3.10.1)
44+
rspec (3.11.0)
45+
rspec-core (~> 3.11.0)
46+
rspec-expectations (~> 3.11.0)
47+
rspec-mocks (~> 3.11.0)
48+
rspec-core (3.11.0)
49+
rspec-support (~> 3.11.0)
50+
rspec-expectations (3.11.1)
5251
diff-lcs (>= 1.2.0, < 2.0)
53-
rspec-support (~> 3.10.0)
54-
rspec-mocks (3.10.2)
52+
rspec-support (~> 3.11.0)
53+
rspec-mocks (3.11.1)
5554
diff-lcs (>= 1.2.0, < 2.0)
56-
rspec-support (~> 3.10.0)
57-
rspec-support (3.10.3)
58-
rubocop (1.23.0)
55+
rspec-support (~> 3.11.0)
56+
rspec-support (3.11.1)
57+
rubocop (1.30.1)
5958
parallel (~> 1.10)
60-
parser (>= 3.0.0.0)
59+
parser (>= 3.1.0.0)
6160
rainbow (>= 2.2.2, < 4.0)
6261
regexp_parser (>= 1.8, < 3.0)
63-
rexml
64-
rubocop-ast (>= 1.12.0, < 2.0)
62+
rexml (>= 3.2.5, < 4.0)
63+
rubocop-ast (>= 1.18.0, < 2.0)
6564
ruby-progressbar (~> 1.7)
6665
unicode-display_width (>= 1.4.0, < 3.0)
67-
rubocop-ast (1.14.0)
68-
parser (>= 3.0.1.1)
69-
rubocop-performance (1.12.0)
66+
rubocop-ast (1.21.0)
67+
parser (>= 3.1.1.0)
68+
rubocop-performance (1.14.2)
7069
rubocop (>= 1.7.0, < 2.0)
7170
rubocop-ast (>= 0.4.0)
72-
rubocop-rails (2.12.4)
71+
rubocop-rails (2.15.0)
7372
activesupport (>= 4.2.0)
7473
rack (>= 1.1)
7574
rubocop (>= 1.7.0, < 2.0)
7675
rubocop-rake (0.6.0)
7776
rubocop (~> 1.0)
78-
rubocop-rspec (2.6.0)
77+
rubocop-rspec (2.11.1)
7978
rubocop (~> 1.19)
8079
ruby-progressbar (1.11.0)
8180
simplecov (0.21.2)
8281
docile (~> 1.1)
8382
simplecov-html (~> 0.11)
8483
simplecov_json_formatter (~> 0.1)
8584
simplecov-html (0.12.3)
86-
simplecov_json_formatter (0.1.3)
87-
smart_engine (0.12.0)
88-
smart_types (0.7.0)
85+
simplecov_json_formatter (0.1.4)
86+
smart_engine (0.16.0)
87+
smart_types (0.7.1)
8988
smart_engine (~> 0.11)
90-
tzinfo (2.0.4)
89+
tzinfo (2.0.5)
9190
concurrent-ruby (~> 1.0)
92-
unicode-display_width (2.1.0)
93-
zeitwerk (2.5.1)
91+
unicode-display_width (2.3.0)
9492

9593
PLATFORMS
96-
x86_64-darwin-19
97-
x86_64-darwin-20
98-
x86_64-darwin-21
99-
x86_64-linux
94+
arm64-darwin-21
10095

10196
DEPENDENCIES
102-
armitage-rubocop (~> 1.23)
103-
bundler (~> 2.2)
97+
armitage-rubocop (~> 1.30)
98+
bundler (~> 2.3)
10499
pry (~> 0.14)
105100
rake (~> 13.0)
106-
rspec (~> 3.10)
101+
rspec (~> 3.11)
107102
simplecov (~> 0.21)
108103
smart_initializer!
109104

110105
BUNDLED WITH
111-
2.2.32
106+
2.3.17

gemfiles/with_external_deps.gemfile.lock

Lines changed: 50 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3,110 +3,106 @@ PATH
33
specs:
44
smart_initializer (0.9.1)
55
qonfig (~> 0.24)
6-
smart_engine (~> 0.11)
7-
smart_types (~> 0.4)
6+
smart_engine (~> 0.16)
7+
smart_types (~> 0.7)
88

99
GEM
1010
remote: https://rubygems.org/
1111
specs:
12-
activesupport (6.1.4.1)
12+
activesupport (7.0.4)
1313
concurrent-ruby (~> 1.0, >= 1.0.2)
1414
i18n (>= 1.6, < 2)
1515
minitest (>= 5.1)
1616
tzinfo (~> 2.0)
17-
zeitwerk (~> 2.3)
18-
armitage-rubocop (1.23.0.1)
19-
rubocop (= 1.23.0)
20-
rubocop-performance (= 1.12.0)
21-
rubocop-rails (= 2.12.4)
17+
armitage-rubocop (1.30.1.1)
18+
rubocop (= 1.30.1)
19+
rubocop-performance (= 1.14.2)
20+
rubocop-rails (= 2.15.0)
2221
rubocop-rake (= 0.6.0)
23-
rubocop-rspec (= 2.6.0)
22+
rubocop-rspec (= 2.11.1)
2423
ast (2.4.2)
2524
coderay (1.1.3)
26-
concurrent-ruby (1.1.9)
27-
diff-lcs (1.4.4)
28-
docile (1.3.5)
29-
i18n (1.8.11)
25+
concurrent-ruby (1.1.10)
26+
diff-lcs (1.5.0)
27+
docile (1.4.0)
28+
i18n (1.12.0)
3029
concurrent-ruby (~> 1.0)
3130
method_source (1.0.0)
32-
minitest (5.14.4)
33-
parallel (1.21.0)
34-
parser (3.0.3.1)
31+
minitest (5.16.3)
32+
parallel (1.22.1)
33+
parser (3.1.2.1)
3534
ast (~> 2.4.1)
3635
pry (0.14.1)
3736
coderay (~> 1.1)
3837
method_source (~> 1.0)
39-
qonfig (0.27.0)
40-
rack (2.2.3)
41-
rainbow (3.0.0)
42-
rake (13.0.3)
43-
regexp_parser (2.1.1)
38+
qonfig (0.28.0)
39+
rack (3.0.0)
40+
rainbow (3.1.1)
41+
rake (13.0.6)
42+
regexp_parser (2.6.0)
4443
rexml (3.2.5)
45-
rspec (3.10.0)
46-
rspec-core (~> 3.10.0)
47-
rspec-expectations (~> 3.10.0)
48-
rspec-mocks (~> 3.10.0)
49-
rspec-core (3.10.1)
50-
rspec-support (~> 3.10.0)
51-
rspec-expectations (3.10.1)
44+
rspec (3.11.0)
45+
rspec-core (~> 3.11.0)
46+
rspec-expectations (~> 3.11.0)
47+
rspec-mocks (~> 3.11.0)
48+
rspec-core (3.11.0)
49+
rspec-support (~> 3.11.0)
50+
rspec-expectations (3.11.1)
5251
diff-lcs (>= 1.2.0, < 2.0)
53-
rspec-support (~> 3.10.0)
54-
rspec-mocks (3.10.1)
52+
rspec-support (~> 3.11.0)
53+
rspec-mocks (3.11.1)
5554
diff-lcs (>= 1.2.0, < 2.0)
56-
rspec-support (~> 3.10.0)
57-
rspec-support (3.10.1)
58-
rubocop (1.23.0)
55+
rspec-support (~> 3.11.0)
56+
rspec-support (3.11.1)
57+
rubocop (1.30.1)
5958
parallel (~> 1.10)
60-
parser (>= 3.0.0.0)
59+
parser (>= 3.1.0.0)
6160
rainbow (>= 2.2.2, < 4.0)
6261
regexp_parser (>= 1.8, < 3.0)
63-
rexml
64-
rubocop-ast (>= 1.12.0, < 2.0)
62+
rexml (>= 3.2.5, < 4.0)
63+
rubocop-ast (>= 1.18.0, < 2.0)
6564
ruby-progressbar (~> 1.7)
6665
unicode-display_width (>= 1.4.0, < 3.0)
67-
rubocop-ast (1.13.0)
68-
parser (>= 3.0.1.1)
69-
rubocop-performance (1.12.0)
66+
rubocop-ast (1.21.0)
67+
parser (>= 3.1.1.0)
68+
rubocop-performance (1.14.2)
7069
rubocop (>= 1.7.0, < 2.0)
7170
rubocop-ast (>= 0.4.0)
72-
rubocop-rails (2.12.4)
71+
rubocop-rails (2.15.0)
7372
activesupport (>= 4.2.0)
7473
rack (>= 1.1)
7574
rubocop (>= 1.7.0, < 2.0)
7675
rubocop-rake (0.6.0)
7776
rubocop (~> 1.0)
78-
rubocop-rspec (2.6.0)
77+
rubocop-rspec (2.11.1)
7978
rubocop (~> 1.19)
8079
ruby-progressbar (1.11.0)
8180
simplecov (0.21.2)
8281
docile (~> 1.1)
8382
simplecov-html (~> 0.11)
8483
simplecov_json_formatter (~> 0.1)
8584
simplecov-html (0.12.3)
86-
simplecov_json_formatter (0.1.2)
87-
smart_engine (0.12.0)
88-
smart_types (0.7.0)
85+
simplecov_json_formatter (0.1.4)
86+
smart_engine (0.16.0)
87+
smart_types (0.7.1)
8988
smart_engine (~> 0.11)
9089
thy (0.1.4)
91-
tzinfo (2.0.4)
90+
tzinfo (2.0.5)
9291
concurrent-ruby (~> 1.0)
93-
unicode-display_width (2.1.0)
94-
zeitwerk (2.5.1)
92+
unicode-display_width (2.3.0)
9593

9694
PLATFORMS
97-
x86_64-darwin-20
98-
x86_64-darwin-21
99-
x86_64-linux
95+
arm64-darwin-21
10096

10197
DEPENDENCIES
102-
armitage-rubocop (~> 1.23)
103-
bundler (~> 2.2)
98+
armitage-rubocop (~> 1.30)
99+
bundler (~> 2.3)
104100
pry (~> 0.14)
105101
rake (~> 13.0)
106-
rspec (~> 3.10)
102+
rspec (~> 3.11)
107103
simplecov (~> 0.21)
108104
smart_initializer!
109105
thy (~> 0.1.4)
110106

111107
BUNDLED WITH
112-
2.2.32
108+
2.3.17

0 commit comments

Comments
 (0)