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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8e3c9a491b95568c00e5fabb1a9ba33be46c07035f72a24e51155b60bd6ecaa
4
- data.tar.gz: 7c644cc582c27f1204a98bf86238c45b5a236520350c97786d04d119698a2840
3
+ metadata.gz: 6480fc19dccfe8c5ff2ee46c2ed4aced622298279acb451b8adfe9b1ae03b819
4
+ data.tar.gz: 1176a1d2c2a5bcf6f155b3a175927ca5aaa30d616bf3ee44fd98292b3c2af5bd
5
5
  SHA512:
6
- metadata.gz: a503fad2dcb76fc61459315f9f6d866dc47cad64fff8459c5ea94ba3b82f22664e2b04a2e7a105de4130e169661de7c01b7b6dc54950bdf2b5179279d30e75d4
7
- data.tar.gz: 28e0d2c909e0a7c811d0f992a397b63de2be086ed76a64e29839884a5597d6f1ce161dca9b3092a308947fb49c0bf7d7aca4fdfb351c51fe56253a5096e92efa
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.1] - 2026-03-06
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
@@ -66,6 +66,7 @@ GEM
66
66
 
67
67
  PLATFORMS
68
68
  ruby
69
+ x86_64-linux
69
70
 
70
71
  DEPENDENCIES
71
72
  minitest (~> 5.25)
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Calcpace [![Gem Version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=rb&r=r&ts=1683906897&type=6e&v=1.8.1&x2=0)](https://badge.fury.io/rb/calcpace)
1
+ # Calcpace [![Gem Version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=rb&r=r&ts=1683906897&type=6e&v=1.8.2&x2=0)](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.1'
10
+ gem 'calcpace', '~> 1.8.2'
11
11
  ```
12
12
 
13
13
  Then run:
data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'minitest/test_task'
4
+ require 'bundler/gem_tasks'
4
5
 
5
6
  Minitest::TestTask.create(:test) do |t|
6
7
  t.libs << 'test'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Calcpace
4
- VERSION = '1.8.1'
4
+ VERSION = '1.8.2'
5
5
  end
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.1
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.6
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: []