Comments (6)
What version of the gem are you using? I can reproduce the segfault on 0.2.0, but on 0.3.1 I get a TypeError:
pry> Unnatural::Fast.sort([1, 2, 3])
TypeError: no implicit conversion of Fixnum into String
from unnatural.
Hi there!
I have whatever version is installed by gem 'unnatural'
, just added it today.
Gemfile.lock
says it's 0.2.0:
unnatural (0.2.0)
from unnatural.
Strange, 0.3.1 was pushed to rubygems.org before today so you should have gotten that version. If you didn't give a specific version in Gemfile
, maybe try bundle update unnatural
? Or see if gem install unnatural -v0.3.1
gives an error?
from unnatural.
Good thought, manually installing with gem install unnatural -v0.3.1
worked fine.
I then completely deleted all traces of unnatural from my system and Gemfile, re-ran bundler, added unnatural back to my Gemfile and ran bundler again, and it still installed 0.2.0
. This is with ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-darwin16]
.
I went to a non-rvm locked directory and made a new Gemfile, and it installed 0.3.1. That's with ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin16]
.
Maybe it's a dependency thing.
from unnatural.
Further investigation, I added gem 'unnatural', '~> 0.3.1'
and that showed the problem. The package gemspec is locking to a particular rake version, which seems like it should be a dev dependency and not a package dependency.
Fetching gem metadata from https://rubygems.org/............
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies....
Bundler could not find compatible versions for gem "rake":
In snapshot (Gemfile.lock):
rake (= 12.0.0)
In Gemfile:
...
unnatural (~> 0.3.1) was resolved to 0.3.1, which depends on
rake (< 12, >= 9)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
This seems to be the culprit: https://github.com/bjmllr/unnatural/blob/669c8e9/unnatural.gemspec#L26
from unnatural.
I have removed that line and released a new version (0.3.2). Does this fix the problem for you? rake is still a runtime dependency since ffi-compiler uses it, but there should be no version restriction any more.
from unnatural.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unnatural.