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

Conditionally require the psych gem. It's included in ruby 1.9.2 or better. #77

Merged
merged 1 commit into from
Aug 26, 2012
Merged

Conversation

Painted-Fox
Copy link
Contributor

The psych library ships with Ruby 1.9.2 or greater. Unfortunately, it seems there is no way to conditionally add a dependency to ruhoh.gemspec, so this solution attempts a compromise by removing the dependency in the gemspec and adding the conditional dependency for bundler's Gemfile. This means users with ruby 1.8.x will be prompted to manually install psych when they run ruhoh for the first time. I got the idea from this article.

What motivates me to do this is to resolve #54 (at least partially). The latest 1.9.x RubyInstaller includes psych, so Windows users with a recent version of ruby will be able to install and run ruhoh without going through the trouble of hacking the psych gem in order to install it.

@plusjade
Copy link
Member

@MrWerewolf just want to say I'm right there with you, I appreciate the fix and would love to get this merged in. My problem is just I needed to throughly test all the use-cases before I can pull this in. I'm sure I added the psych gem stuff plus this for a good reason. I just need to look at the commits, figure out the problem I was having and make sure everything is cool.

Thanks for your patience... that psych gem and yaml support in general is turning out to be a pretty big pain in the ass.

@Painted-Fox
Copy link
Contributor Author

@plusjade let me know if there's anything I can do to help.

plusjade added a commit that referenced this pull request Aug 26, 2012
Conditionally require the psych gem.  It's included in ruby 1.9.2 or better.
@plusjade plusjade merged commit 5b691d8 into ruhoh:1.0.rc Aug 26, 2012
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