Skip to content

Conversation

@Stantheman
Copy link
Contributor

This adds a -i/--input flag that takes a file or STDIN. In concert with something like fakehubstats, this would allow githubchart to create graphs of non-public or even non-git related streaks.

This is basically my first foray into Ruby, so I'm looking forward to feedback. I still need to add tests.

bin/githubchart Outdated
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be "options.include? :input". has_key works, but include is the more conventional way for testing inclusion.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 536a5dc on Stantheman:stdin into faaa886 on akerl:master.

bin/githubchart Outdated
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to check "If file exists or (input equals '-' and stdin isn't a TTY", for sanity

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 8cb998f on Stantheman:stdin into faaa886 on akerl:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 01a2a73 on Stantheman:stdin into faaa886 on akerl:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling ad1bbef on Stantheman:stdin into faaa886 on akerl:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 26f3105 on Stantheman:stdin into faaa886 on akerl:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 1bc0dff on Stantheman:stdin into faaa886 on akerl:master.

@akerl
Copy link
Owner

akerl commented Sep 2, 2014

Welcome to Ruby Club 👍

akerl added a commit that referenced this pull request Sep 2, 2014
Add an option for file/STDIN to allow for third party chart data
@akerl akerl merged commit 4b5635c into akerl:master Sep 2, 2014
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.

3 participants