Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Added support for multiple gaps operation #5

Merged
merged 1 commit into from over 2 years ago

2 participants

Artem Kramarenko Andy Rossmeissl
Artem Kramarenko

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

Andy Rossmeissl
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?

Artem Kramarenko

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 :)

Artem Kramarenko

anything new on this?

Andy Rossmeissl
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?

Artem Kramarenko artemk Merge pull request #1 from ignar/master
Add skip_year_boundary_crossing_check option to #crop
335ccda
Andy Rossmeissl rossmeissl merged commit 335ccda into from
Andy Rossmeissl
Owner

Thanks again @artemk

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

Showing 1 unique commit by 1 author.

Dec 29, 2011
Artem Kramarenko artemk Merge pull request #1 from ignar/master
Add skip_year_boundary_crossing_check option to #crop
335ccda
This page is out of date. Refresh to see the latest.

Showing 0 changed files with 0 additions and 0 deletions. Show diff stats Hide diff stats

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.