Sha256: 5eb65bb667f4c4d69596962aeb48100e7e4fa611744f0335069086e4c8970db6

Contents?: true

Size: 1.94 KB

Versions: 32

Compression:

Stored size: 1.94 KB

Contents

#!/usr/bin/env ruby

if defined?(Spring)
  $stderr.puts "You've tried to invoke Spring when it's already loaded (i.e. the Spring " \
               "constant is defined)."
  $stderr.puts
  $stderr.puts "This is probably because you generated binstubs with " \
               "Spring 1.0, and you now have a Spring version > 1.0 on your system. To solve " \
               "this, upgrade your bundle to the latest Spring version and then run " \
               "`bundle exec spring binstub --all` to regenerate your binstubs. This is a one-time " \
               "step necessary to upgrade from 1.0 to 1.1."
  $stderr.puts
  $stderr.puts "Here's the backtrace:"
  $stderr.puts
  $stderr.puts caller
  exit 1
end

if defined?(Gem)
  if Gem::Version.new(Gem::VERSION) < Gem::Version.new("2.1.0")
    warn "Warning: You're using Rubygems #{Gem::VERSION} with Spring. " \
         "Upgrade to at least Rubygems 2.1.0 and run `gem pristine --all` for better " \
         "startup performance."
  else
    stubs = Gem::Specification.stubs.grep(Gem::StubSpecification)

    # stubbed? method added in https://github.com/rubygems/rubygems/pull/694
    if Gem::Specification.stubs.first.respond_to?(:stubbed?)
      unstubbed = stubs.reject(&:stubbed?)
    else
      unstubbed = stubs.reject { |s| s.send(:data).is_a?(Gem::StubSpecification::StubLine) }
    end

    # `gem pristine --all` ignores default gems. it doesn't really matter,
    # as there are probably not many of them on the system.
    unstubbed.reject!(&:default_gem?)

    if unstubbed.any?
      warn "Warning: Running `gem pristine --all` to regenerate your installed gemspecs " \
           "(and deleting then reinstalling your bundle if you use bundle --path) " \
           "will improve the startup performance of Spring."
    end
  end
end

lib = File.expand_path("../../lib", __FILE__)
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib) # enable local development
require 'spring/client'
Spring::Client.run(ARGV)

Version data entries

32 entries across 32 versions & 3 rubygems

Version Path
spring-4.2.1 bin/spring
spring-4.2.0 bin/spring
spring-4.1.3 bin/spring
spring-4.1.2 bin/spring
spring-4.1.1 bin/spring
spring-4.1.0 bin/spring
spring-4.0.0 bin/spring
spring-3.1.1 bin/spring
spring-3.1.0 bin/spring
spring-3.0.0 bin/spring
nrispring-2.1.3 bin/spring
nrispring-2.1.2 bin/spring
nrispring-2.1.1 bin/spring
spring-2.1.1 bin/spring
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/spring-2.1.0/bin/spring
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/spring-2.1.0/bin/spring
spring-2.1.0 bin/spring
spring-2.0.2 bin/spring
spring-2.0.1 bin/spring
spring-2.0.0 bin/spring