Skip to content

Conversation

@janheindejong
Copy link

@janheindejong janheindejong commented Apr 20, 2019

I added the definitions of the different ton force metrics. Added:

  • force_metric_ton, metric_ton_force, t_force and force_t in the root system
  • force_long_ton and long_ton_force in the Avoir-Dupois group
  • force_short_ton and short_ton_force in the Avoir-Dupois group
  • UK_ton_force and US_ton_force in AvoirdupoisUK and AvoirdupoisUS

Furthermore, I moved force_ton and ton_force to the AvoirdupoisUS.

This definition is backward compatible (i.e. force_ton and ton_force are still the same).

I'm not entirely sure if I'm working with the systems and groups correctly. I haven't been able to create different implementations of ton_force, depending on what system is used. In my case, the one defined last in the definitions file is used, irrespective of what system is used.

Please let me know what you think!

@hgrecco
Copy link
Owner

hgrecco commented Apr 22, 2019

Looks good. Just two things:

  1. I think it will be good to enumerate in the commit message the backwards incompatible changes, if any.
  2. It would be good to squash all the commits into a single one to keep the history clean

Adds definitions for metric ton force and long ton force to the default
definitions. Fully backward compatible (i.e. ton_force, force_ton and
US_ton_force are still available, and behave the same as before).

Added definitions:

- force_metric_ton, metric_ton_force, force_t, t_force
- force_short_ton, short_ton_force
- force_long_ton, long_ton_force, UK_ton_force
@janheindejong
Copy link
Author

Voila!

@hgrecco
Copy link
Owner

hgrecco commented Apr 22, 2019

bors r+

bors bot added a commit that referenced this pull request Apr 22, 2019
796: Added t_force, short_ton_force and long_ton_force r=hgrecco a=janheindejong

I added the definitions of the different ton force metrics. Added: 

- ``force_metric_ton``, ``metric_ton_force``, ``t_force`` and ``force_t`` in the root system 
- ``force_long_ton`` and ``long_ton_force`` in the Avoir-Dupois group 
- ``force_short_ton`` and ``short_ton_force`` in the Avoir-Dupois group 
- ``UK_ton_force`` and ``US_ton_force`` in AvoirdupoisUK and AvoirdupoisUS

Furthermore, I moved ``force_ton`` and ``ton_force`` to the AvoirdupoisUS. 

This definition is backward compatible (i.e. ``force_ton`` and ``ton_force`` are still the same). 

I'm not entirely sure if I'm working with the systems and groups correctly. I haven't been able to create different implementations of ``ton_force``, depending on what system is used. In my case, the one defined last in the definitions file is used, irrespective of what system is used. 

Please let me know what you think! 

Co-authored-by: JHdJ <jhdj@allseas.com>
@bors
Copy link
Contributor

bors bot commented Apr 22, 2019

Build succeeded

@bors bors bot merged commit 1438ec8 into hgrecco:master Apr 22, 2019
@janheindejong janheindejong deleted the expand_ton_force branch April 23, 2019 08:02
@janheindejong
Copy link
Author

Great! Any idea when you'll release a new version, so we can start using this in our organisation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants