Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

uninitialized constant Mutex on 1.8.7 #3

Closed
cldwalker opened this Issue · 1 comment

2 participants

@cldwalker

While trying out the latest spira and promise on 1.8.7-p334 I got:

$ SomeModel.for uri
NameError: uninitialized constant Mutex
  /Users/bozo/.rip/rdf/lib/promise.rb:35:in `initialize'
  /Users/bozo/.rip/rdf/lib/promise.rb:106:in `new'
  /Users/bozo/.rip/rdf/lib/promise.rb:106:in `promise'
  /Users/bozo/.rip/rdf/lib/spira/resource/instance_methods.rb:72:in `reload'
  /Users/bozo/.rip/rdf/lib/spira/resource/instance_methods.rb:42:in `initialize'
  /Users/bozo/.rip/rdf/lib/spira/resource/class_methods.rb:90:in `new'
  /Users/bozo/.rip/rdf/lib/spira/resource/class_methods.rb:90:in `project'
  /Users/bozo/.rip/rdf/lib/spira/resource/class_methods.rb:69:in `for'

Looks like you need a require 'thread' in promise.rb for ruby 1.8.7

@bhuga
Owner

I have rubygems loading as an environment option which takes care of this for me so I never found it. If you make a pull request which requires thread if Mutex is undefined I'll merge it.

@cldwalker cldwalker closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.