calcpace 1.8.1 → 1.8.2
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/.github/workflows/publish_gem.yml +30 -0
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +1 -0
- data/README.md +2 -2
- data/Rakefile +1 -0
- data/lib/calcpace/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6480fc19dccfe8c5ff2ee46c2ed4aced622298279acb451b8adfe9b1ae03b819
|
|
4
|
+
data.tar.gz: 1176a1d2c2a5bcf6f155b3a175927ca5aaa30d616bf3ee44fd98292b3c2af5bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e7fc6d4dc07267a4dc62ed61508af26715c8d40b2629a203ab25bb2ddf08342a43860014e4e9d2e916d7d5476771a981f7afc3bbdcec633b9827792005fcb4d8
|
|
7
|
+
data.tar.gz: 778a7d8ab6544c8fbab2cdc8d6b0d1502ceb00497ac2a5d1053270b42378d4922e83d827566c71c4597491db03aac5b238fffcb6732a012f437c28ff81578a5e
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Push gem
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches: [ main ]
|
|
5
|
+
paths:
|
|
6
|
+
- 'lib/*/version.rb'
|
|
7
|
+
jobs:
|
|
8
|
+
publish_gem:
|
|
9
|
+
name: Push gem to RubyGems.org
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
permissions:
|
|
12
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
13
|
+
contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag
|
|
14
|
+
steps:
|
|
15
|
+
# Set up
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- name: Set up Ruby
|
|
18
|
+
uses: ruby/setup-ruby@v1
|
|
19
|
+
with:
|
|
20
|
+
bundler-cache: true
|
|
21
|
+
ruby-version: ruby
|
|
22
|
+
# Release
|
|
23
|
+
- uses: rubygems/release-gem@v1
|
|
24
|
+
- name: Create GitHub release
|
|
25
|
+
run: |
|
|
26
|
+
tag_name="$(git describe --tags --abbrev=0)"
|
|
27
|
+
release_title="Release version ${tag_name}"
|
|
28
|
+
gh release create "${tag_name}" --verify-tag --generate-notes --title "${release_title}"
|
|
29
|
+
env:
|
|
30
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/CHANGELOG.md
CHANGED
|
@@ -5,9 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [1.8.
|
|
8
|
+
## [1.8.2] - 2026-03-07
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
|
+
- GitHub Actions workflow for automated gem publishing to RubyGems.org on push to `main` when `lib/calcpace/version.rb` changes
|
|
12
|
+
- Trusted publishing via OIDC (no API key required) using `rubygems/release-gem` action
|
|
13
|
+
- Automatic GitHub Release creation with generated notes on each publish
|
|
14
|
+
- `bundler/gem_tasks` added to `Rakefile` to support `rake release` and related tasks
|
|
11
15
|
- SimpleCov integration for code coverage measurement
|
|
12
16
|
- RuboCop lint job to CI pipeline
|
|
13
17
|
- YARD documentation for all previously undocumented public methods in `Calculator` (`checked_velocity`, `clock_velocity`, `checked_pace`, `clock_pace`, `time`, `checked_time`, `clock_time`, `distance`, `checked_distance`)
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Calcpace [](https://badge.fury.io/rb/calcpace)
|
|
2
2
|
|
|
3
3
|
Calcpace is a Ruby gem designed for calculations and conversions related to distance and time. It can calculate velocity, pace, total time, and distance, accepting time in various formats, including HH:MM:SS. The gem supports conversion to 42 different units, including kilometers, miles, meters, and feet. It also provides methods to validate input.
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ Calcpace is a Ruby gem designed for calculations and conversions related to dist
|
|
|
7
7
|
### Add to your Gemfile
|
|
8
8
|
|
|
9
9
|
```ruby
|
|
10
|
-
gem 'calcpace', '~> 1.8.
|
|
10
|
+
gem 'calcpace', '~> 1.8.2'
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Then run:
|
data/Rakefile
CHANGED
data/lib/calcpace/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: calcpace
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.8.
|
|
4
|
+
version: 1.8.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- João Gilberto Saraiva
|
|
@@ -17,6 +17,7 @@ executables: []
|
|
|
17
17
|
extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
|
19
19
|
files:
|
|
20
|
+
- ".github/workflows/publish_gem.yml"
|
|
20
21
|
- ".github/workflows/tests.yml"
|
|
21
22
|
- ".gitignore"
|
|
22
23
|
- ".rubocop.yml"
|
|
@@ -60,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
60
61
|
- !ruby/object:Gem::Version
|
|
61
62
|
version: '0'
|
|
62
63
|
requirements: []
|
|
63
|
-
rubygems_version: 4.0.
|
|
64
|
+
rubygems_version: 4.0.3
|
|
64
65
|
specification_version: 4
|
|
65
66
|
summary: A Ruby gem for pace, distance, and time calculations.
|
|
66
67
|
test_files: []
|