Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7097857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T10:59:15+00:00 2026-05-28T10:59:15+00:00

I installed a new gem needle in my rails 3.1. It installed properly but

  • 0

I installed a new gem needle in my rails 3.1.

It installed properly but when I start my rails using command rails server --debugger

I get the following warnings:

.rvm/gems/ruby-1.9.2-p290/gems/needle-1.3.0/lib/needle/definition-context.rb:36: warning: undefining `initialize' may cause serious problems
.rvm/gems/ruby-1.9.2-p290/gems/needle-1.3.0/lib/needle/definition-context.rb:36: warning: undefining 'object_id' may cause serious problems
.rvm/gems/ruby-1.9.2-p290/gems/needle-1.3.0/lib/needle/definition-context.rb:36: warning: undefining '__send__' may cause serious problems

How can I get rid of it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T10:59:16+00:00Added an answer on May 28, 2026 at 10:59 am

    The problem is within the needle gem itself. It does this:

    public_instance_methods -
    [ "instance_eval", "object_id", "__id__", "__send__", "initialize",
      "remove_const", "method_missing", "method", "class", "inspect", "to_s",
      "instance_variables", "block_given?" ]
    

    But in Ruby 1.9, the public_instance_methods method returns objects of the Symbol variety, not String. So what happens is effectively this:

    [:__send__, <and other methods>] - ["__send__", <and other methods>]
    => [:__send__, <and other methods>]
    

    When it should be NOT removing those methods in the provided Array.

    This indicates to me that the library hasn’t been updated (or at least tested) for Ruby 1.9. I would recommend finding where the code is for this library, forking it and then applying a patch that converts the array to symbols using something like map(&:to_sym) to fix this problem.

    But be aware: there may be other cases where these differences between 1.8 and 1.9 are present.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've installed new Rails 3.1.3 using gem # gem install rails Then type: wbednarski@mbp13:~$
I've installed rails using 'gem install rails', but when I try to create a
I have installed the gem 'simple_uuid' but nothing seems to be working. Using irb
I'm new to Rails. I've installed the newest Devise gem and I'm getting this
I've just installed the latest RVM on my new server using Mixed Mode, and
Using ubuntu 10.04, rvm. At first, I've installed ruby 1.9.2 with rvm, gem rails
I've installed the guard-rspec gem for use in my rails application. When I start
Though I have gem installed I get following error /rbing.rb:4: uninitialized constant RBing (NameError)
Recently installed new wordpress theme. The problem is, there are only following font options
I installed a new version of Apache server, I used options like --with-PACKAGE to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.