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

Making things more flexible #1

Closed

Conversation

jasonwbarnett
Copy link
Contributor

Just thought I would submit my changes back to you, just in case any one still uses this :)

Overview of changes:

  • Move API query details into Bart::Utils
  • Move the parsing of API responses into Bart::Utils
  • Removed static list of stations (stations.rb) and replaced it with a dynamic API call.
  • Allow changing the Bart::Station abbr without initializing another Bart::Station object.
  • Allow setting the API Key when creating initializing Bart::Station

@jish
Copy link
Owner

jish commented Jul 30, 2014

Hey thanks for the submission. Is this the whole of another fork you are maintaining?

A few thoughts:

  • It looks like there are some breaking API changes, so to incorporate we'd have to do a major version bump (which should be totally fine)
  • It looks like we're mixing spec style tests with test/unit style tests. We should probably settle on one for consistency's sake
  • There is a lot here. We might have to split this up into chunks. For instance, switching the master branch to use Ruby 1.9+ syntax would probably cut down on the diff of the actual changes a bit.

@jasonwbarnett
Copy link
Contributor Author

jasonwbarnett commented Jul 30, 2014

Yes, it's the whole of another fork I am maintaining. I created the fork like a week or two ago for a rails project I'm working on.

  • Sounds good.
  • I honestly have never done testing before in my entire life, hence the disaster :)
  • Yeah there is definitely a lot here. I think that 1.9+ syntax sounds like a great start. I my code and break it into smaller chunks if need be. Have any ideas for that?

@jish
Copy link
Owner

jish commented Jul 30, 2014

break it into smaller chunks if need be. Have any ideas for that?

Sure, we can create an issue for each item and go one by one. First up Ruby 1.9 syntax #2

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