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

  • Home
  • SEARCH
  • 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 7308639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T23:35:06+00:00 2026-05-28T23:35:06+00:00

The deep_cloning gem is causing this error: NameError: uninitialized constant %{AnyModel} When I do

  • 0

The deep_cloning gem is causing this error:

NameError: uninitialized constant %{AnyModel}

When I do bundle update, it tells me this:

deep_cloning at /Users/me! =D/.rvm/gems/ruby-1.8.7-p352@secret_gemset/bundler/gems/deep_cloning-423f1e30eeef did not have a valid gemspec.
This prevents bundler from installing bins or native extensions, but that may not affect its functionality.
The validation message from Rubygems was:
  ["deep_cloning-0.2.0.gem"] are not files

What am I doing wrong here?

In my Gemfile I specify the path to the gem like so:

gem "deep_cloning", :git => "git://github.com/DerNalia/deep_cloning.git"

Update: the stacktrace from the unitialized constant error:

> MyModel.find(455)
NameError: uninitialized constant MyModel
    from /rvm_gemset_path/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:443:in `load_missing_constant'
    from /rvm_gemset_path/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80:in `rake_original_const_missing'
    from /rvm_gemset_path/gems/rake-0.8.7/lib/rake.rb:2503:in `const_missing'
    from /rvm_gemset_path/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:92:in `const_missing'
    from (irb):1
  • 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-28T23:35:07+00:00Added an answer on May 28, 2026 at 11:35 pm

    You should remove the line :

    s.files = [
    ...
         "deep_cloning-0.2.0.gem"
    ...
    ]
    

    from your gemspec.

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

Sidebar

Related Questions

Here is my gem: https://github.com/DerNalia/deep_cloning and this is how I include it in my
//deep linking $.fn.ajaxAnim = function() { $(this).animW(); $(this).html('<div class=load-prog>loading...</div>'); } $(document).ready(function(){ contM = $('#main-content');
I want a true deep copy. In Java, this was easy, but how do
I got the unchecked expression error when compiling and found the offending line to
I know it is really annoying to read this topic again. Before you start
This has been driving me crazy for a few days now. I have an
(I'm using the pyprocessing module in this example, but replacing processing with multiprocessing should
I have a deep hierarchical model that looks like this: Accounts -> Venues ->Events
Is there a definitive reference on this in programming? I see a lot of
i use the solution in this link not work Deep cloning objects the following

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.