Closed BoPeng closed 6 years ago
You have to install daru
and nmatrix
first.
$ gem install daru
$ gem install nmatrix
I am working on the documentation and will include them there.
Thanks. I will update .travis.yml
for this.
I have also updated features page, and you will have to update installation instruction.
Will do!! 😄
Btw, Professor, you can install iruby
on linux machine? I failed to do so on my ubuntu machine this morning...
Ok. They pass, but
Check your linux version, you will have to compile czmq from source according to iruby instruction if you are using 14.4, not version 17 of Ubuntu.
It works fine on my end...?
Test on a linux machine then...
If you want complete control over a linux machine, install vmware player or virtualbox and download existing vms from https://www.osboxes.org/vmware-images/.
That's weird, all the int
fail on your end... What Ruby
and iruby
versions are installed on your machine? Mine are 2.5.1
I am 2.3.1
Check your linux version, you will have to compile czmq from source according to iruby instruction if you are using 14.4, not version 17 of Ubuntu.
I guess I need to compile it from source.
ml69@henry:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Changing all instance_of
to is_a
fixes the problem.... does it make sense to do it?
https://stackoverflow.com/questions/3893278/ruby-kind-of-vs-instance-of-vs-is-a
Ruby test passes on travis!
Changing all instance_of to is_a fixes the problem.... does it make sense to do it? https://stackoverflow.com/questions/3893278/ruby-kind-of-vs-instance-of-vs-is-a
Let me try... I used is_a?
before, but I remember I chose instance_of?
instead of is_a?
because is_a?
failed me couple times.
Ruby test passes on travis! https://travis-ci.org/vatlab/sos-ruby
Awesome!!! 🥂
If only Integer
fails, how about we just use is_a?
for integer
?
instance_of
is very strict and does not accept subclasses, is_a
is better but it is easier to get related objects with different types to both return true, thus the order of is_a
is important (test less general case first).
I see your point. People seem to like define their own objects which might be subclasses of the general parent classes. Maybe it is better to use is_a?
instead... Let me try on my end!
I changed instance_of
to is_a
because otherwise the tests would be pass on my linux box. This could be due to ruby version but supporting an older version does not hurt.
I have just released sos-ruby
0.9.15.0, which is our first public release. Please keep working on the documentation etc and we will release 0.9.15.1 etc when we encounter any bug.
OK! I think is_a
works!
Congratulations on the first release of sos-ruby
and many thanks for your great work!
I always learnt A LOT from you, Professor!! And enjoy working with you so much! 😄
Are there any other tasks that I can help?