calcpace 1.5.4 → 1.5.5
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/tests.yml +0 -2
- data/.gitignore +2 -2
- data/README.md +2 -2
- data/calcpace.gemspec +24 -0
- data/lib/calcpace/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '04889c91e456d34e17974f8aeafa14bb99c0f44957bb42fdc6cac4a3c1a87bf1'
|
4
|
+
data.tar.gz: 60b0d8e24f2f10905c8ee8697c892b63efef0fca92fecb42dc86e9cf797b37a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af863c188a3e74b28211bac8956c5fd1ad7440e9cdb8316f5c329a06daf5387ad81ecdeacced1b0011bfad304b0f8b9607c9deeca63dfba628e04162c718cb1f
|
7
|
+
data.tar.gz: ba0a4e7fd03714ca47c9a1cb9b1d8081327e2821b9da44730866437e3ba54c74aec43d93ae9f2f75ac69f7fe1672ee4fb62f4c17f015a35a83045583ebe872e4
|
data/.github/workflows/tests.yml
CHANGED
data/.gitignore
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
calcpace
|
2
|
-
calcpace
|
1
|
+
calcpace-*.gem
|
2
|
+
!calcpace.gemspec
|
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.5.
|
10
|
+
gem 'calcpace', '~> 1.5.5'
|
11
11
|
```
|
12
12
|
|
13
13
|
Then run:
|
data/calcpace.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
require_relative 'lib/calcpace/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = 'calcpace'
|
5
|
+
spec.version = Calcpace::VERSION
|
6
|
+
spec.authors = ['João Gilberto Saraiva']
|
7
|
+
spec.email = ['joaogilberto@tuta.io']
|
8
|
+
|
9
|
+
spec.summary = 'A Ruby gem for pace, distance, and time calculations.'
|
10
|
+
spec.description = 'Calcpace provides methods to calculate and convert values related to pace, distance, time, and speed. It supports various time formats and unit conversions.'
|
11
|
+
spec.homepage = 'https://github.com/0jonjo/calcpace'
|
12
|
+
spec.metadata['source_code_uri'] = spec.homepage
|
13
|
+
spec.license = 'MIT'
|
14
|
+
spec.required_ruby_version = '>= 2.7.0'
|
15
|
+
|
16
|
+
spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/main/CHANGELOG.md" # TODO: Create a CHANGELOG.md
|
17
|
+
|
18
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
19
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
end
|
21
|
+
spec.bindir = 'exe'
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
+
spec.require_paths = ['lib']
|
24
|
+
end
|
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.5.
|
4
|
+
version: 1.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- João Gilberto Saraiva
|
@@ -24,18 +24,19 @@ files:
|
|
24
24
|
- Gemfile.lock
|
25
25
|
- README.md
|
26
26
|
- Rakefile.rb
|
27
|
+
- calcpace.gemspec
|
27
28
|
- lib/calcpace.rb
|
28
29
|
- lib/calcpace/calculator.rb
|
29
30
|
- lib/calcpace/checker.rb
|
30
31
|
- lib/calcpace/converter.rb
|
31
32
|
- lib/calcpace/errors.rb
|
32
33
|
- lib/calcpace/version.rb
|
33
|
-
homepage: https://github.com/
|
34
|
+
homepage: https://github.com/0jonjo/calcpace
|
34
35
|
licenses:
|
35
36
|
- MIT
|
36
37
|
metadata:
|
37
|
-
source_code_uri: https://github.com/
|
38
|
-
changelog_uri: https://github.com/
|
38
|
+
source_code_uri: https://github.com/0jonjo/calcpace
|
39
|
+
changelog_uri: https://github.com/0jonjo/calcpace/blob/main/CHANGELOG.md
|
39
40
|
rdoc_options: []
|
40
41
|
require_paths:
|
41
42
|
- lib
|