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

Added support for multiple gaps operation #5

Merged
merged 1 commit into from
Jan 6, 2012

Conversation

artemk
Copy link
Contributor

@artemk artemk commented Dec 7, 2011

Using this commit you can use gap operation on multiple timeframes.

@rossmeissl
Copy link
Owner

Thanks @artemk for the pull request!

Can you think of a nice way to do this without monkey-patching Array?

Like . . .

Timeframe.collection(timeframe1, timeframe2).gaps_left_by(timeframe3, timeframe4)

or something?

@artemk
Copy link
Contributor Author

artemk commented Dec 8, 2011

of course i can, but this is more convenient way. Also it not monkey patching Array, but adding new method to open class.
Also that will be to many 'Timeframe' words :)

@artemk
Copy link
Contributor Author

artemk commented Dec 19, 2011

anything new on this?

@rossmeissl
Copy link
Owner

Haven't had time for the multiyear revamp yet, sadly. Will do ASAP.

On this pull request, I'm still uncomfortable with a mandatory core extension to Array. How about you make it optional? You can do this by just removing this line. Timeframe users who want this (fairly obscure, I think) additional functionality would just require 'timeframe/core_ext/array' in their own code.

That work for you?

Add skip_year_boundary_crossing_check option to #crop
@rossmeissl rossmeissl merged commit 335ccda into rossmeissl:master Jan 6, 2012
@rossmeissl
Copy link
Owner

Thanks again @artemk

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