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

Various fixes 2 #47

Merged
merged 7 commits into from
Nov 6, 2015
Merged

Various fixes 2 #47

merged 7 commits into from
Nov 6, 2015

Conversation

smellsblue
Copy link
Contributor

This fixes #42 and fixes #46, along with some random things I found along the way.

This test doesn't seem to really need random data, just arbitrary data
After reading https://github.com/jruby/jruby/wiki/Improving-startup-time#ensure-your-system-has-adequate-entropy, I think we should avoid using SecureRandom except where we really need it
This along with --dev significantly improves spec duration with JRuby
Don't rely on current directory... it could include a relative path with a space, which could cause issues
Use relative path to JRuby Bundler monkeypatch, so spaces won't cause a problem
This requires significantly more memory to run, but results in much faster builds
This and the previous commit fixes #46
let(:resource_id) { SecureRandom.uuid }
let(:content) { SecureRandom.base64 }
let(:resource_id) { "42" }
let(:content) { "zapatito" }
Copy link
Contributor

Choose a reason for hiding this comment

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

😆

42 is a perfect randomly generated number!

@pcarranza
Copy link
Contributor

Looks good, go for it 👍

smellsblue added a commit that referenced this pull request Nov 6, 2015
@smellsblue smellsblue merged commit 1daacf4 into master Nov 6, 2015
@smellsblue smellsblue deleted the various-fixes-2 branch November 6, 2015 17:24
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.

JRuby build is slow Make sure writes are thread safe
2 participants