Ms::Sequest::Srf wrong argument type Class (expected Module) (TypeError)

34 views
Skip to first unread message

Fengbo Xie

unread,
Jul 4, 2011, 3:13:35 AM7/4/11
to Mspire Forum, jtpr...@gmail.com
Hi:
I just gem installed ms-sequest version 0.1.1, my ruby version is ruby
1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
Either when I run srf_to_sqt.rb or when require 'ms/sequest/srf', got
the following error:

/Library/Ruby/Gems/1.8/gems/ms-sequest-0.1.1/lib/ms/sequest/srf.rb:
18:in `include': wrong argument type Class (expected Module)
(TypeError)
from /Library/Ruby/Gems/1.8/gems/ms-sequest-0.1.1/lib/ms/sequest/
srf.rb:18
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`require'
from /Library/Ruby/Gems/1.8/gems/ms-sequest-0.1.1/lib/ms/sequest/srf/
sqt.rb:4
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`require'
from /Library/Ruby/Gems/1.8/gems/ms-sequest-0.1.1/bin/srf_to_sqt.rb:4
from /usr/bin/srf_to_sqt.rb:19:in `load'
from /usr/bin/srf_to_sqt.rb:19

I've googled for a while and got this blog post:
http://www.imminentweb.com/technologies/rubys-include-and-extend
which says "Do not attempt to include or extend another Class"
Unfortunately, Ms::Indent::Search is also defined as a Class.
How can I work around? Thanks in advance.

jtprince

unread,
Jul 5, 2011, 8:28:00 PM7/5/11
to mspire...@googlegroups.com, jtpr...@gmail.com
Thanks for the heads up.  Now fixed in ms-sequest 0.1.2

gem update ms-sequest

tested on ruby-1.9.2-head and ruby-1.8.7-head 
Reply all
Reply to author
Forward
0 new messages