Skip to content

Commit ac02c5d

Browse files
authored
Technical/Update application dependencies (#78)
* Updated runtime/development dependencies * Changed Ruby version to 3.1.2 * Updated rubocop/circleci configs * Updated version, changelog
1 parent aa6d573 commit ac02c5d

File tree

9 files changed

+97
-52
lines changed

9 files changed

+97
-52
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defaults: &defaults
22
working_directory: ~/truemail-server
33
docker:
4-
- image: cimg/ruby:3.1.1
4+
- image: cimg/ruby:3.1.2
55

66
references:
77
install_bundler: &install_bundler

.codeclimate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ checks:
77
plugins:
88
rubocop:
99
enabled: true
10-
channel: rubocop-1-25
10+
channel: rubocop-1-30
1111

1212
reek:
1313
enabled: true

.rubocop.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,24 @@ Style/FileWrite:
148148
Style/MapToHash:
149149
Enabled: true
150150

151+
Style/EnvHome:
152+
Enabled: true
153+
154+
Style/FetchEnvVar:
155+
Enabled: false
156+
157+
Style/MapCompactWithConditionalBlock:
158+
Enabled: true
159+
160+
Style/NestedFileDirname:
161+
Enabled: true
162+
163+
Style/ObjectThen:
164+
Enabled: true
165+
166+
Style/RedundantInitialize:
167+
Enabled: true
168+
151169
# Metrics ---------------------------------------------------------------------
152170

153171
Layout/LineLength:
@@ -324,15 +342,24 @@ Lint/RequireRelativeSelfPath:
324342
Lint/UselessRuby2Keywords:
325343
Enabled: true
326344

345+
Lint/RefinementImportMethods:
346+
Enabled: true
347+
327348
Gemspec/DateAssignment:
328349
Enabled: true
329350

330351
Gemspec/RequireMFA:
331352
Enabled: false
332353

354+
Gemspec/DeprecatedAttributeAssignment:
355+
Enabled: true
356+
333357
Security/IoMethods:
334358
Enabled: true
335359

360+
Security/CompoundHash:
361+
Enabled: true
362+
336363
# Performance -----------------------------------------------------------------
337364

338365
Performance/AncestorsInclude:
@@ -432,3 +459,9 @@ RSpec/BeEq:
432459

433460
RSpec/BeNil:
434461
Enabled: true
462+
463+
RSpec/ChangeByZero:
464+
Enabled: true
465+
466+
RSpec/VerifiedDoubleReference:
467+
Enabled: false

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby-3.1.1
1+
ruby-3.1.2

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
44

5+
## [0.4.1] - 2022-06-01
6+
7+
### Fixed
8+
9+
- Fixed security vulnerability issue [CVE-2022-30122](https://github.com/advisories/GHSA-hxqx-xwvh-44m2), [CVE-2022-30123](https://github.com/advisories/GHSA-wq4h-7r42-5hrr)
10+
11+
### Changed
12+
13+
- Updated application dependencies (rack 2.2.3.1, truemail 2.7.3)
14+
- Updated Ruby version to 3.1.2
15+
- Updated development dependencies
16+
- Updated application version
17+
- Updated readme
18+
519
## [0.4.0] - 2022-03-08
620

721
### Added

Gemfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ ruby(::File.read(::File.join(::File.dirname(__FILE__), '.ruby-version')).strip[/
66

77
gem 'dry-struct', '~> 1.4'
88
gem 'net-smtp', '~> 0.3.1'
9-
gem 'rack', '~> 2.2', '>= 2.2.3'
9+
gem 'rack', '~> 2.2', '>= 2.2.3.1'
1010
gem 'thin', '~> 1.8', '>= 1.8.1'
11-
gem 'truemail', '~> 2.7', '>= 2.7.1'
11+
gem 'truemail', '~> 2.7', '>= 2.7.3'
1212

1313
group :development, :test do
1414
gem 'pry-byebug', '~> 3.9'
1515
gem 'rack-test', '~> 1.1'
1616
gem 'rspec', '~> 3.11'
1717

1818
# Code quality
19-
gem 'bundler-audit', '~> 0.9.0.1', require: false
20-
gem 'fasterer', '~> 0.9.0', require: false
21-
gem 'overcommit', '~> 0.58.0', require: false
22-
gem 'reek', '~> 6.1', require: false
23-
gem 'rubocop', '~> 1.25', '>= 1.25.1', require: false
24-
gem 'rubocop-performance', '~> 1.13', '>= 1.13.3', require: false
25-
gem 'rubocop-rspec', '~> 2.9', require: false
19+
gem 'bundler-audit', '~> 0.9.1', require: false
20+
gem 'fasterer', '~> 0.10.0', require: false
21+
gem 'overcommit', '~> 0.59.1', require: false
22+
gem 'reek', '~> 6.1', '>= 6.1.1', require: false
23+
gem 'rubocop', '~> 1.30', require: false
24+
gem 'rubocop-performance', '~> 1.14', require: false
25+
gem 'rubocop-rspec', '~> 2.11', '>= 2.11.1', require: false
2626
end
2727

2828
group :test do

Gemfile.lock

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ GEM
22
remote: https://rubygems.org/
33
specs:
44
ast (2.4.2)
5-
bundler-audit (0.9.0.1)
5+
bundler-audit (0.9.1)
66
bundler (>= 1.2.0, < 3)
77
thor (~> 1.0)
88
byebug (11.1.3)
99
childprocess (4.1.0)
1010
coderay (1.1.3)
1111
colorize (0.8.1)
12-
concurrent-ruby (1.1.9)
12+
concurrent-ruby (1.1.10)
1313
daemons (1.4.1)
1414
diff-lcs (1.5.0)
1515
digest (3.1.0)
1616
docile (1.4.0)
17-
dry-configurable (0.14.0)
17+
dry-configurable (0.15.0)
1818
concurrent-ruby (~> 1.0)
1919
dry-core (~> 0.6)
2020
dry-container (0.9.0)
@@ -37,46 +37,44 @@ GEM
3737
dry-inflector (~> 0.1, >= 0.1.2)
3838
dry-logic (~> 1.0, >= 1.0.2)
3939
eventmachine (1.2.7)
40-
fasterer (0.9.0)
40+
fasterer (0.10.0)
4141
colorize (~> 0.7)
42-
ruby_parser (>= 3.14.1)
42+
ruby_parser (>= 3.19.1)
4343
ice_nine (0.11.2)
4444
iniparse (1.5.0)
45-
io-wait (0.2.1)
4645
json_matchers (0.11.1)
4746
json_schema
4847
json_schema (0.21.0)
4948
kwalify (0.7.2)
5049
method_source (1.0.0)
51-
net-protocol (0.1.2)
52-
io-wait
50+
net-protocol (0.1.3)
5351
timeout
5452
net-smtp (0.3.1)
5553
digest
5654
net-protocol
5755
timeout
58-
overcommit (0.58.0)
56+
overcommit (0.59.1)
5957
childprocess (>= 0.6.3, < 5)
6058
iniparse (~> 1.4)
6159
rexml (~> 3.2)
62-
parallel (1.21.0)
63-
parser (3.1.1.0)
60+
parallel (1.22.1)
61+
parser (3.1.2.0)
6462
ast (~> 2.4.1)
6563
pry (0.13.1)
6664
coderay (~> 1.1)
6765
method_source (~> 1.0)
6866
pry-byebug (3.9.0)
6967
byebug (~> 11.0)
7068
pry (~> 0.13.0)
71-
rack (2.2.3)
69+
rack (2.2.3.1)
7270
rack-test (1.1.0)
7371
rack (>= 1.0, < 3)
7472
rainbow (3.1.1)
75-
reek (6.1.0)
73+
reek (6.1.1)
7674
kwalify (~> 0.7.0)
7775
parser (~> 3.1.0)
7876
rainbow (>= 2.0, < 4.0)
79-
regexp_parser (2.2.1)
77+
regexp_parser (2.5.0)
8078
rexml (3.2.5)
8179
rspec (3.11.0)
8280
rspec-core (~> 3.11.0)
@@ -87,30 +85,30 @@ GEM
8785
rspec-expectations (3.11.0)
8886
diff-lcs (>= 1.2.0, < 2.0)
8987
rspec-support (~> 3.11.0)
90-
rspec-mocks (3.11.0)
88+
rspec-mocks (3.11.1)
9189
diff-lcs (>= 1.2.0, < 2.0)
9290
rspec-support (~> 3.11.0)
9391
rspec-support (3.11.0)
94-
rubocop (1.25.1)
92+
rubocop (1.30.0)
9593
parallel (~> 1.10)
9694
parser (>= 3.1.0.0)
9795
rainbow (>= 2.2.2, < 4.0)
9896
regexp_parser (>= 1.8, < 3.0)
99-
rexml
100-
rubocop-ast (>= 1.15.1, < 2.0)
97+
rexml (>= 3.2.5, < 4.0)
98+
rubocop-ast (>= 1.18.0, < 2.0)
10199
ruby-progressbar (~> 1.7)
102100
unicode-display_width (>= 1.4.0, < 3.0)
103-
rubocop-ast (1.16.0)
101+
rubocop-ast (1.18.0)
104102
parser (>= 3.1.1.0)
105-
rubocop-performance (1.13.3)
103+
rubocop-performance (1.14.0)
106104
rubocop (>= 1.7.0, < 2.0)
107105
rubocop-ast (>= 0.4.0)
108-
rubocop-rspec (2.9.0)
106+
rubocop-rspec (2.11.1)
109107
rubocop (~> 1.19)
110108
ruby-progressbar (1.11.0)
111-
ruby_parser (3.18.1)
109+
ruby_parser (3.19.1)
112110
sexp_processor (~> 4.16)
113-
sexp_processor (4.16.0)
111+
sexp_processor (4.16.1)
114112
simplecov (0.21.2)
115113
docile (~> 1.1)
116114
simplecov-html (~> 0.11)
@@ -124,38 +122,38 @@ GEM
124122
eventmachine (~> 1.0, >= 1.0.4)
125123
rack (>= 1, < 3)
126124
thor (1.2.1)
127-
timeout (0.2.0)
128-
truemail (2.7.1)
125+
timeout (0.3.0)
126+
truemail (2.7.3)
129127
simpleidn (~> 0.2.1)
130128
unf (0.1.4)
131129
unf_ext
132-
unf_ext (0.0.8)
130+
unf_ext (0.0.8.2)
133131
unicode-display_width (2.1.0)
134132

135133
PLATFORMS
136134
x86_64-darwin-20
137135

138136
DEPENDENCIES
139-
bundler-audit (~> 0.9.0.1)
137+
bundler-audit (~> 0.9.1)
140138
dry-struct (~> 1.4)
141-
fasterer (~> 0.9.0)
139+
fasterer (~> 0.10.0)
142140
json_matchers (~> 0.11.1)
143141
net-smtp (~> 0.3.1)
144-
overcommit (~> 0.58.0)
142+
overcommit (~> 0.59.1)
145143
pry-byebug (~> 3.9)
146-
rack (~> 2.2, >= 2.2.3)
144+
rack (~> 2.2, >= 2.2.3.1)
147145
rack-test (~> 1.1)
148-
reek (~> 6.1)
146+
reek (~> 6.1, >= 6.1.1)
149147
rspec (~> 3.11)
150-
rubocop (~> 1.25, >= 1.25.1)
151-
rubocop-performance (~> 1.13, >= 1.13.3)
152-
rubocop-rspec (~> 2.9)
148+
rubocop (~> 1.30)
149+
rubocop-performance (~> 1.14)
150+
rubocop-rspec (~> 2.11, >= 2.11.1)
153151
simplecov (~> 0.21.2)
154152
thin (~> 1.8, >= 1.8.1)
155-
truemail (~> 2.7, >= 2.7.1)
153+
truemail (~> 2.7, >= 2.7.3)
156154

157155
RUBY VERSION
158-
ruby 3.1.1p18
156+
ruby 3.1.2p20
159157

160158
BUNDLED WITH
161-
2.3.8
159+
2.3.15

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Run Truemail server with command as in example below:
7777
VERIFIER_EMAIL=your_email@example.com ACCESS_TOKENS=a262d915-15bc-417c-afeb-842c63b54154 rackup
7878

7979
# =>
80-
# Thin web server (v1.8.0 codename Possessed Pickle)
80+
# Thin web server (v1.8.1 codename Infinite Smoothie)
8181
# Maximum connections set to 1024
8282
# Listening on localhost:9292, CTRL+C to stop
8383
```
@@ -103,7 +103,7 @@ LOG_STDOUT=true \
103103
thin -R config.ru -a 0.0.0.0 -p 9292 -e production start
104104

105105
# =>
106-
# Thin web server (v1.8.0 codename Possessed Pickle)
106+
# Thin web server (v1.8.1 codename Infinite Smoothie)
107107
# Maximum connections set to 1024
108108
# Listening on localhost:9292, CTRL+C to stop
109109
# 127.0.0.1 - - [26/Feb/2020:16:41:13 +0200] "GET /?email=admin%40bestweb.com.ua HTTP/1.1" 200 - 0.9195

app/truemail_server/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module TruemailServer
4-
VERSION = '0.4.0'
4+
VERSION = '0.4.1'
55
end

0 commit comments

Comments
 (0)