github / version_sorter

Fast sorting of version numbers
MIT License
125 stars 42 forks source link

Enable travis #7

Closed vmg closed 9 years ago

vmg commented 9 years ago

Let's see if we can get this to build on as many platforms as possible.

cc @mislav

mislav commented 9 years ago

Nice! You're a miracle worker. Now it seems to fail on 1.8 only because I've used sample().

mislav commented 9 years ago

What prompted you to add the bang equivalents?

vmg commented 9 years ago

It occurred to me that sort! could be implemented very efficiently (and with less code), so I thought I would do just that and then implement sort by calling dup and sort! (this is how Array#sort! implemented in MRI and makes a lot of sense to me).

mislav commented 9 years ago

Sure. I can add tests for the new methods, no prob. I can also switch away from sample if you feel like you're done with this. You've already helped more than enough! :bow:

vmg commented 9 years ago

I'd rather remove 1.8.7 support, it's such a security risk! But if you're set on legacy support, feel free to fix the sample tests, I won't complain :))

mislav commented 9 years ago

If we would be able to remove a bunch of C code if we dropped support for 1.8, then I would be up for it. But if it's the same to us either way, then let's keep it since the previous version had it.

vmg commented 9 years ago

Nah, the code will remain the same. Go ahead and fix the tests then -- I think this is ready to work everywhere.