-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
36 create a global convert method to distances and velocities (#37)
* Bump gems * Create new convert options * Remove old checker options * Add options to calculate with and without checks and rename methods * Add comment lint to Calcpace class * Rename pace to velocity * Update Readme with new features * Update gemspec to 1.3.0 version * Minor adjust in text of Readme
- Loading branch information
Showing
12 changed files
with
283 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
/calcpace-* | ||
calcpace-* | ||
calcpace.gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,19 +2,21 @@ | |
|
||
Gem::Specification.new do |s| | ||
s.name = 'calcpace' | ||
s.version = '1.2.0' | ||
s.summary = 'Calcpace: calculate time, distance, pace, velocity and convert distances in an easy and precise way.' | ||
s.description = 'Calcpace is a Ruby gem that helps with calculations related to running/cycling activities or general purposes involving distance and time. It can calculate pace, total time, and distance. It also converts distances between miles and kilometers and check formats of time and distance. The results are provided in a readable format, with times in HH:MM:SS or seconds and distances in X.X format. If you need, the gem supports BigDecimal to handle the calculations with more precision.' | ||
s.version = '1.3.0' | ||
s.summary = 'Calcpace: calculate total, distance, velocity and convert distances in an easy and precise way.' | ||
s.description = 'Calcpace is a Ruby gem that helps with calculations related to distance and time. It can calculate velocity, total time, and distance. It also converts distance and velocity, check formats of time and can handle calculus with BigDecimal.' | ||
s.authors = ['Joao Gilberto Saraiva'] | ||
s.email = '[email protected]' | ||
s.files = ['lib/calcpace.rb', 'lib/calcpace/calculator.rb', 'lib/calcpace/checker.rb', 'lib/calcpace/converter.rb'] | ||
s.test_files = ['test/calcpace/test_calculator.rb', 'test/calcpace/test_checker.rb', 'test/calcpace/test_converter.rb'] | ||
s.files = ['lib/calcpace.rb', 'lib/calcpace/calculator.rb', 'lib/calcpace/checker.rb', | ||
'lib/calcpace/converter.rb'] | ||
s.test_files = ['test/calcpace/test_calculator.rb', 'test/calcpace/test_checker.rb', | ||
'test/calcpace/test_converter.rb'] | ||
s.add_development_dependency 'minitest', '~> 5.14' | ||
s.add_development_dependency 'rake', '~> 13.0' | ||
s.add_development_dependency 'rake-compiler', '~> 1.0' | ||
s.add_development_dependency 'rdoc', '~> 6.2' | ||
s.add_development_dependency 'rubocop', '~> 0.79' | ||
s.add_development_dependency 'rubocop-minitest', '~> 0.11' | ||
s.add_development_dependency 'rubocop', '~> 1.66' | ||
|
||
s.required_ruby_version = '>= 2.7.0' | ||
s.post_install_message = "It's time to calculate! Thank you for installing Calcpace." | ||
s.metadata = { 'source_code_uri' => 'https://github.com/0jonjo/calcpace' } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.