Displaying 6 results from an estimated 6 matches for "add_frozen_gem_path".
2013 Apr 16
1
Ruby Error Encountered when Installing Dashboard for Puppet Open Source
...or Gem:Module
  (See full trace by running task with --trace)
So I ran it again with trace turned on and got the following.
  rake aborted!
  undefined method `source_index'' for Gem:Module
  
/usr/share/puppet-dashboard/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21:in 
`add_frozen_gem_path''
  /usr/share/puppet-dashboard/config/boot.rb:50:in `load_initializer''
  /usr/share/puppet-dashboard/config/boot.rb:41:in `run''
  /usr/share/puppet-dashboard/config/boot.rb:14:in `boot!''
  /usr/share/puppet-dashboard/config/boot.rb:113
  /usr/lib/ruby/site_ruby/1...
2010 Apr 30
0
Netbeans - Malformed version number string mswin32 (ArgumentError)
.../lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/
vendor_gem_source_index.rb:29:in `initialize''
        from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/
gem_dependency.rb:21:in `new''
        from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/
gem_dependency.rb:21:in `add_frozen_gem_path''
Now I can''t do anything... can''t run project... can do anything...
Any thoughts?  Did updating Ruby gems outside Netbeans screw
everything up?  I am happy to start fresh but can''t do a darn thing.
I am at the point where I am going to restart the whole proje...
2010 Oct 24
1
Re: [Rails-core] Re: (Unable to start rails application) ruby scipt/server error
...run
      load_initializer
      Rails::Initializer.run(:set_load_path)
    end
  end
  class VendorBoot < Boot
    def load_initializer
      require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
      Rails::Initializer.run(:install_gem_spec_stubs)
      Rails::GemDependency.add_frozen_gem_path
    end
  end
  class GemBoot < Boot
    def load_initializer
      self.class.load_rubygems
      load_rails_gem
      require ''initializer''
    end
    def load_rails_gem
      if version = self.class.gem_version
        gem ''rails'', version
      else...
2010 Oct 22
6
(Unable to start rails application) ruby scipt/server error
1) I  installed the ruby-1.9.2-p0  and rubygems-1.3.7  in the
(/usr/local/src directory )
2) Then i installed rails from terminal by typing follwoing
           sudo gem install rails --include-dependencies
3) Then i  made a rails applcation from terminal as
                        rails new demo
                             then
                       cd demo
                      ruby
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...index cd21fb9..0ad0f78 100644
--- a/src/config/boot.rb
+++ b/src/config/boot.rb
@@ -44,6 +44,7 @@ module Rails
     def load_initializer
       require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
       Rails::Initializer.run(:install_gem_spec_stubs)
+      Rails::GemDependency.add_frozen_gem_path
     end
   end
 
@@ -67,7 +68,7 @@ module Rails
 
     class << self
       def rubygems_version
-        Gem::RubyGemsVersion if defined? Gem::RubyGemsVersion
+        Gem::RubyGemsVersion rescue nil
       end
 
       def gem_version
@@ -82,14 +83,14 @@ module Rails
 
       def load_ruby...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply 
to this email, as some of the replaced lines are too long, so git 
won't let me send the email.  However, there is nothing wrong with 
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server