Sha256: 876815037e087bb45735801f24c6c2f538411cf345786cf86517dc485db6a247

Contents?: true

Size: 474 Bytes

Versions: 31

Compression:

Stored size: 474 Bytes

Contents

if !defined?(Spring) && [nil, "development", "test"].include?(ENV["RAILS_ENV"])
  gem "bundler"
  require "bundler"

  # Load Spring without loading other gems in the Gemfile, for speed.
  Bundler.locked_gems&.specs&.find { |spec| spec.name == "spring" }&.tap do |spring|
    Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
    gem "spring", spring.version
    require "spring/binstub"
  rescue Gem::LoadError
    # Ignore when Spring is not installed.
  end
end

Version data entries

31 entries across 31 versions & 4 rubygems

Version Path
railties-6.1.7.10 lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.7.9 lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.7.8 lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.7.7 lib/rails/generators/rails/app/templates/bin/spring.tt
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.7.6 lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.7.5 lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.7.4 lib/rails/generators/rails/app/templates/bin/spring.tt
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.7.3 lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.7.2 lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.7.1 lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.7 lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.6.1 lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.6 lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.5.1 lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.5 lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.4.7 lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.4.6 lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.4.5 lib/rails/generators/rails/app/templates/bin/spring.tt