method

check_for_unbuilt_gems

rails latest stable - Class: Rails::Initializer

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

check_for_unbuilt_gems()
public

No documentation available.

# File railties/lib/initializer.rb, line 312
    def check_for_unbuilt_gems
      unbuilt_gems = @configuration.gems.select(&:frozen?).reject(&:built?)
      if unbuilt_gems.size > 0
        # don't print if the gems:build rake tasks are being run
        unless $gems_build_rake_task
          abort "The following gems have native components that need to be built\n\#{unbuilt_gems.map { |gem| \"\#{gem.name}  \#{gem.requirement}\" } * \"\\n  \"}\n\nYou're running:\nruby \#{Gem.ruby_version} at \#{Gem.ruby}\nrubygems \#{Gem::RubyGemsVersion} at \#{Gem.path * ', '}\n\nRun `rake gems:build` to build the unbuilt gems.\n"
        end
      end
    end