Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for BYSETPOS (monthly and yearly frequency) #468

Closed

Conversation

joshbeckman
Copy link

In August 2016, @NicolasMarlier added BYSETPOS support (#349).

Then, in July 2018, @nehresma added a few small changes to run in modern Ruby and a more modern rspec (#449).

Then, in January 2019, @davidstosik and @k3rni suggested changes to reduce complexity.

This incorporates all the above into a single diff.

In August 2016, @NicolasMarlier added BYSETPOS support (ice-cube-ruby#349).

Then, in July 2018, @nehresma added a few small changes to run in modern
Ruby and a more modern rspec
(ice-cube-ruby#449).

Then, in January 2019, @davidstosik and @k3rni suggested changes to
reduce complexity.

This incorporates all the above into a single diff.
Rubocop recommends cover? instead.
This is not available within the currently supported Rails versions

Ref: https://apidock.com/rails/Hash/except
@joshbeckman
Copy link
Author

Note that currently, all logic is passing but some builds are failing due to (I believe): tzinfo/tzinfo#84

@davidstosik
Copy link

davidstosik commented Feb 6, 2019

Looks like Travis has other problems, related to the Bundler version. You might want to rebase your branch on the latest master.

@davidstosik
Copy link

davidstosik commented Feb 6, 2019

I worked on the BYSETPOS addition myself too by the way, and here's the state of what I have: davidstosik#1

One of the specs I added actually fails, so I'd be curious to have others' opinion too. (And to see if all the specs I added pass in your implementation.)

@joshbeckman
Copy link
Author

@davidstosik Thanks! I'll have a look at your branch.

I branched off the latest master to add these changes, so I'm also not sure why bundler is complaining.

I'm also trying to work on the to_s representation of the BYSETPOS data.

@joshbeckman
Copy link
Author

I also like your more generic version of BYSETPOS, so I'll close this in favor of your branch.

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