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 the ability to have environment sections. #7

Closed
wants to merge 2 commits into from

Conversation

maxwell
Copy link
Contributor

@maxwell maxwell commented Apr 13, 2012

by default, if no RAILS_ENV or RACK_ENV is set, any enumerable hash value is excluded from the yaml file. Values which are enumerable are mashed over the top level hash if the current env matches the top level key.

I added to your cucumber suite, and did a bad thing by putting another class in your railite. :/

I am more than happy to move it out, as well as write unit tests, but seeing as rspec/minitest/whatever was not set up, I figure that would be something we could manage later.

Any and all suggestions welcome.

def to_hash
build_hash_from_enviroment
end

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Below should prob be private :/

@maxwell
Copy link
Contributor Author

maxwell commented Apr 18, 2012

following up. :) (I will rebase now)

…LS_ENV or RACK_ENV is set, any enumerable hash value is excluded from the yaml file. Values which are enumerable are mashed over the top level hash if the current env matches the top level key
@maxwell
Copy link
Contributor Author

maxwell commented Apr 18, 2012

..and I broke tests. I will fix them soon, but still any feedback about how I could make this nicer for you would be appreciated.

@laserlemon
Copy link
Owner

Sorry for the slow response. Have been busy trying to close on a house. Will get to this as soon as I'm able. Thanks for the contribution!

@maxwell
Copy link
Contributor Author

maxwell commented Apr 20, 2012

Closing this because something better made it to master. thanks!!

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