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

README example not working #6

Closed
joelmccracken opened this issue Dec 31, 2014 · 2 comments
Closed

README example not working #6

joelmccracken opened this issue Dec 31, 2014 · 2 comments
Assignees

Comments

@joelmccracken
Copy link

When I tried this library, I wasn't able to get the demo to work:

irb(main):001:0> require 'micro_kanren'
=> true
irb(main):002:0> include MicroKanren::Core
=> Object
irb(main):003:0> include MicroKanren::MiniKanrenWrappers
=> Object
irb(main):004:0> res = call_fresh(->(q){ eq(q,5) }).call(empty_state)
=> #<Proc:0x007fdcb9221c60@/usr/local/lib/ruby/gems/2.1.0/gems/micro_kanren-0.0.2/lib/micro_kanren/
lisp.rb:6 (lambda)>                                                                               
irb(main):005:0> res.to_s
=> "#<Proc:0x007fdcb9221c60@/usr/local/lib/ruby/gems/2.1.0/gems/micro_kanren-0.0.2/lib/micro_kanren
/lisp.rb:6 (lambda)>"
@jsl
Copy link
Owner

jsl commented Jan 23, 2015

Hi @joelmccracken, I'm sorry about the slow response. I guess I didn't have notifications turned on for this library previously.

I see from your output that you're running Ruby 2.1.0. I just noticed that the test suite for this library was failing when running with Ruby 2.1.0 on Travis. I just bumped the travis config to use 2.1.2, and the build is green on Travis now, as it is for me locally.

You would think that a patch level ruby version bump shouldn't change functionality, but it seems like perhaps that isn't the case between Ruby 2.1.0 and 2.1.2. Anyway, if you get a chance to try it on 2.1.2 please let me know if the test is successful.

Thanks!

@jsl jsl self-assigned this Jan 23, 2015
@jsl
Copy link
Owner

jsl commented Jan 23, 2015

I just tested on travis, and this works with all released versions of Ruby 2.0, 2.1 and 2.2. I'm guessing there was a bad patch level that was released somewhere in there that caused the failures. Anyway I updated the travis tests and the documentation based on the issue you raised. Please feel free to re-open if this is something that you can reproduce on a new Ruby and I'll take a look.

Thanks!

@jsl jsl closed this as completed Jan 23, 2015
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

No branches or pull requests

2 participants