4
In Ruby on Rails, using the Minitest library, the test run time is fast. But the boot time before each rake test (...)
is pretty annoying. Is there any way to make it faster?
Updating
I tried to install Spring here (gem 'spring', group: :development
) as @Alextakitani suggested.
But as we spin bundle exec spring binstub -all
, as it suggests their page i get the following error:
C:\Sites\**<meu_app>**>bundle exec spring binstub --all
DL is deprecated, please use Fiddle
Warning: You're using Rubygems 2.0.2 with Spring. Upgrade to at least Rubygems 2
.1.0 and run `gem pristine --all` for better startup performance.
C:/Users/*****<meu_usuário>*****/.pik/rubies/Ruby-200-p195/lib/ruby/gems/2.0.0/g
ems/spring-1.1.2/lib/spring/env.rb:19:in `initialize': No such file or directory
- /dev/null (Errno::ENOENT)
from C:/Users/*****<meu_usuário>*****/.pik/rubies/Ruby-200-p195/lib/ruby
/gems/2.0.0/gems/spring-1.1.2/lib/spring/env.rb:19:in `open'
from C:/Users/*****<meu_usuário>*****/.pik/rubies/Ruby-200-p195/lib/ruby
/gems/2.0.0/gems/spring-1.1.2/lib/spring/env.rb:19:in `initialize'
from C:/Users/*****<meu_usuário>*****/.pik/rubies/Ruby-200-p195/lib/ruby
/gems/2.0.0/gems/spring-1.1.2/lib/spring/client/command.rb:14:in `new'
from C:/Users/*****<meu_usuário>*****/.pik/rubies/Ruby-200-p195/lib/ruby
/gems/2.0.0/gems/spring-1.1.2/lib/spring/client/command.rb:14:in `initialize'
from C:/Users/*****<meu_usuário>*****/.pik/rubies/Ruby-200-p195/lib/ruby
/gems/2.0.0/gems/spring-1.1.2/lib/spring/client/binstub.rb:136:in `initialize'
from C:/Users/*****<meu_usuário>*****/.pik/rubies/Ruby-200-p195/lib/ruby
/gems/2.0.0/gems/spring-1.1.2/lib/spring/client/command.rb:7:in `new'
from C:/Users/*****<meu_usuário>*****/.pik/rubies/Ruby-200-p195/lib/ruby
/gems/2.0.0/gems/spring-1.1.2/lib/spring/client/command.rb:7:in `call'
from C:/Users/*****<meu_usuário>*****/.pik/rubies/Ruby-200-p195/lib/ruby
/gems/2.0.0/gems/spring-1.1.2/lib/spring/client/binstub.rb:132:in `call'
from C:/Users/*****<meu_usuário>*****/.pik/rubies/Ruby-200-p195/lib/ruby
/gems/2.0.0/gems/spring-1.1.2/lib/spring/client.rb:26:in `run'
from C:/Users/*****<meu_usuário>*****/.pik/rubies/Ruby-200-p195/lib/ruby
/gems/2.0.0/gems/spring-1.1.2/bin/spring:48:in `<top (required)>'
from C:/Users/*****<meu_usuário>*****/.pik/rubies/Ruby-200-p195/bin/spri
ng:23:in `load'
from C:/Users/*****<meu_usuário>*****/.pik/rubies/Ruby-200-p195/bin/spri
ng:23:in `<main>'
Update 2
In Ruby 2.0.0, updating Rubygems (gem update --system
) just removes the alert, but still gives the same error.
I tried using Ruby 1.9.3 and got exactly the same error. Run gem update --system
didn’t help here either.
Try updating rubygems as it prompts for the error message: Gem update --system
– Alex Takitani
But already be ready to be frustrated, much of the slowness that you are facing comes from being using ruby in windows, unfortunately does not work well.
– Alex Takitani
@Alextakitani This removes the alert, but still gives the same error. Idem in Ruby 1.9.3.
– user7261
It may be that you are using the old version of rubygems, try to install the latest version
– Gammeth
Unfortunately, neither Zeus nor Spring work in windows, both use Fork that only works on *Nix. I recommend developing in linux, this was just one of thousands of problems you will find developing in windows, own experience.
– Alex Takitani