calcpace 2.0.0 → 2.1.1

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: d60f32c2e712a9f2c4ab9a1a8724ac9b932838acab9bbe1db333f557d0cf1797
4
- data.tar.gz: 6bd621feb8849df93ab197bbe77795da67878ddfa46ee493acd8e2ffe53a651e
3
+ metadata.gz: 21a43dcb40d89d292a5a5b5fdbd92d44e89aba2f79ac9ca061fa5cf519b69b2d
4
+ data.tar.gz: e87ed04bccb34335eee7a1fb9de2e2b96fe078543a9538fbe2cffc5c186fb0d8
5
5
  SHA512:
6
- metadata.gz: f6b76162fc0e1e575c1c1fc8d06c782cf603775c374c1a75dc5bacab50e2958a99c18ba47e429b65bc154f72d12d127e7c0fae99f9d59cd4dc2d3a54541fe335
7
- data.tar.gz: 260a67baea8e765b473261c0c24bfc12af6672404713f92bec266c070c5c0ae5beaa7da4ef9b3714d9286f868158fddca5c74e9bb0da182d78bd393947191fdb
6
+ metadata.gz: d7e417b2164aa643d56f1a25609618f1aa4a3ad1305b6bd56cb98831d2c2f9c8b19764976eef6fee2a0f899ee23b716df80a92b74ea3353ce163d47b48c2318d
7
+ data.tar.gz: 79d5ad5d293fc96b68c3dc7ab898e57b3bedee2804252de4170a3934010b2c74918a32c44bce6b97a9d6d78fa50db4ca080234ad858b983f850a8d7c29ecb882
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 4.0.4
1
+ 4.0.10
data/.tool-versions CHANGED
@@ -1,2 +1,2 @@
1
1
  nodejs 24.1.0
2
- ruby 4.0.4
2
+ ruby 4.0.10
data/CHANGELOG.md CHANGED
@@ -7,6 +7,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.1.1] - 2026-11-20
11
+
12
+ ### Changed
13
+ - Bump development Ruby from 4.0.4 to 4.0.10 (Regexp and String security fixes).
14
+ - Development dependency bumps: rubocop 1.92, minitest 6.1, rdoc 8.1,
15
+ simplecov 1.3, rake-compiler 1.3.3. The `Metrics/ModuleLength` exemption in
16
+ `AgeGrading` now uses `rubocop:disable-next` (new in RuboCop 1.92).
17
+ No library code changes.
18
+
19
+ ## [2.1.0] - 2026-10-11
20
+
21
+ ### Added
22
+ - **`effort:` in `estimate_detailed_vo2max`** — how hard the runner says it
23
+ was, one of `EFFORT_LEVELS` (`:easy`, `:moderate`, `:hard`, `:max`; Symbol
24
+ or String, any case). The value is never changed; only how far it can be
25
+ trusted. `:easy`/`:moderate` → sub-maximal and `:low` whatever the duration
26
+ or heart rate; `:max` → `:high` from five minutes on however long it took,
27
+ unless average heart rate is under 85 % of max; `:hard` and `nil` → the
28
+ 2.0.0 rules. An unknown effort raises `Calcpace::InvalidEffortError`.
29
+ - **`Vo2maxResult#basis`** — what set the confidence: `:declared`,
30
+ `:heart_rate` or `:duration`. Added as the last member, so positional
31
+ construction and reading the four existing members are unchanged. It is
32
+ always set, so it does show up in `==` (a result no longer equals a
33
+ four-member `Vo2maxResult.new(...)`), in `to_a`/`to_h` (five entries) and in
34
+ array patterns (`in [value, confidence, sub_maximal, adjusted]` no longer
35
+ matches; use a hash pattern or add a fifth element).
36
+
37
+ Without `effort:` every result is the same as in 2.0.0.
38
+
10
39
  ## [2.0.0] - 2026-10-02
11
40
 
12
41
  A major release. Four physiological models gave unrealistic numbers and now
@@ -1001,7 +1030,9 @@ predictors are untouched.
1001
1030
 
1002
1031
  See git history for changes in earlier versions.
1003
1032
 
1004
- [Unreleased]: https://github.com/0jonjo/calcpace/compare/v2.0.0...HEAD
1033
+ [Unreleased]: https://github.com/0jonjo/calcpace/compare/v2.1.1...HEAD
1034
+ [2.1.1]: https://github.com/0jonjo/calcpace/compare/v2.1.0...v2.1.1
1035
+ [2.1.0]: https://github.com/0jonjo/calcpace/compare/v2.0.0...v2.1.0
1005
1036
  [2.0.0]: https://github.com/0jonjo/calcpace/compare/v1.18.1...v2.0.0
1006
1037
  [1.18.1]: https://github.com/0jonjo/calcpace/compare/v1.18.0...v1.18.1
1007
1038
  [1.18.0]: https://github.com/0jonjo/calcpace/compare/v1.17.0...v1.18.0
data/Gemfile CHANGED
@@ -6,5 +6,5 @@ gem 'minitest', '~> 6.0'
6
6
  gem 'rake', '~> 13.2'
7
7
  gem 'rake-compiler', '~> 1.0'
8
8
  gem 'rdoc', '~> 8.0'
9
- gem 'rubocop', '~> 1.69'
9
+ gem 'rubocop', '~> 1.92'
10
10
  gem 'simplecov', '~> 1.1', require: false
data/Gemfile.lock CHANGED
@@ -4,53 +4,56 @@ GEM
4
4
  ast (2.4.3)
5
5
  drb (2.2.3)
6
6
  erb (6.0.7)
7
- json (2.21.2)
7
+ json (3.1.0)
8
8
  language_server-protocol (3.17.0.6)
9
9
  lint_roller (1.1.0)
10
10
  logger (1.7.0)
11
- minitest (6.0.6)
11
+ minitest (6.1.0)
12
12
  drb (~> 2.0)
13
- prism (~> 1.5)
14
- parallel (2.1.0)
15
- parser (3.3.12.0)
13
+ prism (>= 1.5, < 3)
14
+ parallel (2.3.0)
15
+ parser (3.3.14.0)
16
16
  ast (~> 2.4.1)
17
17
  racc
18
- prism (1.9.0)
18
+ prism (2.1.0)
19
+ prism (2.1.0-x86_64-linux-gnu)
19
20
  racc (1.8.1)
20
21
  rainbow (3.1.1)
21
22
  rake (13.4.2)
22
- rake-compiler (1.3.1)
23
+ rake-compiler (1.3.3)
23
24
  rake
24
- rbs (4.1.3)
25
+ rbs (4.2.0)
25
26
  logger
26
27
  prism (>= 1.6.0)
27
28
  tsort
28
- rdoc (8.0.0)
29
+ rdoc (8.1.0)
29
30
  erb
30
31
  prism (>= 1.6.0)
31
32
  rbs (>= 4.0.0)
32
33
  tsort
33
- regexp_parser (2.12.0)
34
- rubocop (1.89.0)
35
- json (~> 2.3)
34
+ regexp_parser (2.13.4)
35
+ rubocop (1.92.3)
36
+ json (>= 2.3)
36
37
  language_server-protocol (~> 3.17.0.2)
37
38
  lint_roller (~> 1.1.0)
38
39
  parallel (>= 1.10)
39
40
  parser (>= 3.3.0.2)
40
41
  rainbow (>= 2.2.2, < 4.0)
41
- regexp_parser (>= 2.9.3, < 3.0)
42
+ regexp_parser (>= 2.11.3, < 3.0)
42
43
  rubocop-ast (>= 1.49.0, < 2.0)
43
44
  ruby-progressbar (~> 1.7)
44
45
  unicode-display_width (>= 2.4.0, < 4.0)
45
- rubocop-ast (1.50.0)
46
+ rubocop-ast (1.53.0)
47
+ ast (~> 2.4)
46
48
  parser (>= 3.3.7.2)
47
- prism (~> 1.7)
49
+ prism (>= 1.7)
50
+ racc
48
51
  ruby-progressbar (1.13.0)
49
- simplecov (1.1.1)
52
+ simplecov (1.3.2)
50
53
  tsort (0.2.0)
51
- unicode-display_width (3.2.0)
52
- unicode-emoji (~> 4.1)
53
- unicode-emoji (4.2.0)
54
+ unicode-display_width (3.3.0)
55
+ unicode-emoji (~> 4.3)
56
+ unicode-emoji (4.3.0)
54
57
 
55
58
  PLATFORMS
56
59
  ruby
@@ -61,7 +64,7 @@ DEPENDENCIES
61
64
  rake (~> 13.2)
62
65
  rake-compiler (~> 1.0)
63
66
  rdoc (~> 8.0)
64
- rubocop (~> 1.69)
67
+ rubocop (~> 1.92)
65
68
  simplecov (~> 1.1)
66
69
 
67
70
  BUNDLED WITH