-
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.
[38] Create pace methods and refact other methods (#39)
* 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 * Create pace methods, adjust calculus to check if bigdecimal is active * create method to change to float if necessary before calculate * Add pace to comments in calcpace class * Convert to bigdecimal in any calculation when it is active * remove bigdecimal from calcpace gem due not so useful * Refactor checks in methods of calculator module * Refactor to use symbols when converter units * Update readme to v1.4.0 and gitignore * Updated gemspec * Minor adjusts in examples of Readme
- Loading branch information
Showing
9 changed files
with
235 additions
and
164 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.gemspec | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ | |
|
||
Gem::Specification.new do |s| | ||
s.name = 'calcpace' | ||
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.version = '1.4.0' | ||
s.summary = 'Calcpace: calculate total, distance, velocity and convert distances in an easy way.' | ||
s.description = 'Calcpace is designed for calculations and conversions related to distance and time. It can calculate velocity, pace, total time, and distance and it supports conversion to 26 different units, including kilometers, miles, meters, and feet.' | ||
s.authors = ['Joao Gilberto Saraiva'] | ||
s.email = '[email protected]' | ||
s.files = ['lib/calcpace.rb', 'lib/calcpace/calculator.rb', 'lib/calcpace/checker.rb', | ||
|
@@ -16,7 +16,6 @@ Gem::Specification.new do |s| | |
s.add_development_dependency 'rake-compiler', '~> 1.0' | ||
s.add_development_dependency 'rdoc', '~> 6.2' | ||
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
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.