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 +4 -4
- data/.ruby-version +1 -1
- data/.tool-versions +1 -1
- data/CHANGELOG.md +32 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +23 -20
- data/README.md +35 -957
- data/calcpace.gemspec +3 -2
- data/lib/calcpace/age_grading.rb +1 -2
- data/lib/calcpace/errors.rb +7 -0
- data/lib/calcpace/version.rb +1 -1
- data/lib/calcpace/vo2max_effort.rb +43 -0
- data/lib/calcpace/vo2max_estimator.rb +32 -12
- data/lib/calcpace.rb +1 -0
- metadata +9 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 21a43dcb40d89d292a5a5b5fdbd92d44e89aba2f79ac9ca061fa5cf519b69b2d
|
|
4
|
+
data.tar.gz: e87ed04bccb34335eee7a1fb9de2e2b96fe078543a9538fbe2cffc5c186fb0d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d7e417b2164aa643d56f1a25609618f1aa4a3ad1305b6bd56cb98831d2c2f9c8b19764976eef6fee2a0f899ee23b716df80a92b74ea3353ce163d47b48c2318d
|
|
7
|
+
data.tar.gz: 79d5ad5d293fc96b68c3dc7ab898e57b3bedee2804252de4170a3934010b2c74918a32c44bce6b97a9d6d78fa50db4ca080234ad858b983f850a8d7c29ecb882
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.0.
|
|
1
|
+
4.0.10
|
data/.tool-versions
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
nodejs 24.1.0
|
|
2
|
-
ruby 4.0.
|
|
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.
|
|
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
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 (
|
|
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
|
|
11
|
+
minitest (6.1.0)
|
|
12
12
|
drb (~> 2.0)
|
|
13
|
-
prism (
|
|
14
|
-
parallel (2.
|
|
15
|
-
parser (3.3.
|
|
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.
|
|
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.
|
|
23
|
+
rake-compiler (1.3.3)
|
|
23
24
|
rake
|
|
24
|
-
rbs (4.
|
|
25
|
+
rbs (4.2.0)
|
|
25
26
|
logger
|
|
26
27
|
prism (>= 1.6.0)
|
|
27
28
|
tsort
|
|
28
|
-
rdoc (8.
|
|
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.
|
|
34
|
-
rubocop (1.
|
|
35
|
-
json (
|
|
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.
|
|
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.
|
|
46
|
+
rubocop-ast (1.53.0)
|
|
47
|
+
ast (~> 2.4)
|
|
46
48
|
parser (>= 3.3.7.2)
|
|
47
|
-
prism (
|
|
49
|
+
prism (>= 1.7)
|
|
50
|
+
racc
|
|
48
51
|
ruby-progressbar (1.13.0)
|
|
49
|
-
simplecov (1.
|
|
52
|
+
simplecov (1.3.2)
|
|
50
53
|
tsort (0.2.0)
|
|
51
|
-
unicode-display_width (3.
|
|
52
|
-
unicode-emoji (~> 4.
|
|
53
|
-
unicode-emoji (4.
|
|
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.
|
|
67
|
+
rubocop (~> 1.92)
|
|
65
68
|
simplecov (~> 1.1)
|
|
66
69
|
|
|
67
70
|
BUNDLED WITH
|