Received: by 10.68.232.1 with SMTP id tk1mr92627pbc.7.1347213044159; Sun, 09 Sep 2012 10:50:44 -0700 (PDT) X-BeenThere: guard-dev@googlegroups.com Received: by 10.68.129.102 with SMTP id nv6ls342683pbb.8.gmail; Sun, 09 Sep 2012 10:50:43 -0700 (PDT) Received: by 10.66.77.39 with SMTP id p7mr1910936paw.0.1347213043809; Sun, 09 Sep 2012 10:50:43 -0700 (PDT) Received: by 10.66.77.39 with SMTP id p7mr1910935paw.0.1347213043793; Sun, 09 Sep 2012 10:50:43 -0700 (PDT) Return-Path: Received: from mail-pz0-f49.google.com (mail-pz0-f49.google.com [209.85.210.49]) by gmr-mx.google.com with ESMTPS id vw9si211691pbc.2.2012.09.09.10.50.43 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 09 Sep 2012 10:50:43 -0700 (PDT) Received-SPF: pass (google.com: domain of slhai...@gmail.com designates 209.85.210.49 as permitted sender) client-ip=209.85.210.49; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of slhai...@gmail.com designates 209.85.210.49 as permitted sender) smtp.mail=slhai...@gmail.com; dkim=pass header...@gmail.com Received: by dajq27 with SMTP id q27so875799daj.8 for ; Sun, 09 Sep 2012 10:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:x-mailer:organization:x-priority:message-id:to:cc:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; bh=ScnP43q6KQpUqXN4xROiccVTnavinJYaNwL0EzFntto=; b=AlKFTg8hKZPj0fCTUBaLMVcT0/lhXuUOpn8DBnaMy4g+kHd8+LouOuaOjtw2I2ecjo PUN4HX4LV+KjqOEQCfJNrsb5LpgHRv/+R8WRk1wkO3dMAOEWctkQBS+JAEbiqd5EIY9v EI0LvS0lXrd9RRzub5Qvruaa17gaiSa1+Tm9PbH1DlOAd6JSqF81R+NhAgLTncr9cKxD maucQ4X6DMCdobuExjS1ook+0RVZWvx5ZYQL4RMq+xdyLusR5H6l15sZpiluoQmIyQx1 MH/f4QntGAAaEvICXqdMaK/G5mW/9TH6oTTSuS9dN5cUobhC5hsVEe/MAP9nNDKNLKVC XAdw== Received: by 10.68.230.232 with SMTP id tb8mr1240252pbc.19.1347213043623; Sun, 09 Sep 2012 10:50:43 -0700 (PDT) Return-Path: Received: from Pequod (70-36-134-25.dsl.dynamic.sonic.net. [70.36.134.25]) by mx.google.com with ESMTPS id y11sm6560763pbv.66.2012.09.09.10.50.41 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 09 Sep 2012 10:50:42 -0700 (PDT) Date: Sun, 9 Sep 2012 10:50:19 -0700 From: Shauna Haines X-Mailer: The Bat! (v1.63 Beta/7) Personal Organization: Ah, Software X-Priority: 3 (Normal) Message-ID: <10481980938.20120909105...@gmail.com> To: rails2012 CC: guard-dev@googlegroups.com Subject: Re[2]: Could not load 'guard/spork' or find class Guard::Spork In-Reply-To: References: <17121833.92.1336780599508.JavaMail.geo-discussion-forums@pbvi9> <129EEFC0-4347-496E-88B4-E4C67A751...@thibaud.me> MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Maybe my original post wasn't explicit enough: the guard-spork gem won't load on Windows 7, so it is not in my Gemfile. But I remember being able to start them separately before - first spork and then guard. Sunday, September 9, 2012, 8:54:08 AM, rails2012 wrote: r> It's funny. I missed the same thing: r> gem 'guard-spork', '0.3.2' r> On Tuesday, May 15, 2012 12:54:28 AM UTC-7, thibaudgg wrote: >> >> Can you give your Gemfile? It seems that guard-spork is missing. >> >> On May 12, 2012, at 01:56 , Shauna wrote: >> >> > I've been working my way through Michael Hartl's tutorial : >> http://ruby.railstutorial.org/chapters/static-pages?version=3.2#sec:spork. >> >> > >> > I'm on a Windows 7 system, so I know I can't use guard-spork. But I >> could swear that before I was able to start a Ruby DRb server and then run >> 'guard' without any problems. Now I can start up a Ruby DRb server fine and >> it does process my RSpec tests. But when I then try to 'bundle exec guard' >> I get: >> > ERROR: Could not load 'guard/spork' or find class Guard::Spork ... >> > ERROR: Invalid Guardfile, original error is: >> > undefined method 'new' for nil:NilClass >> > ERROR: No guards found in Guardfile, please add at least one. ... >> > Guard is now watching at 'C:/Sites/rm403' >> > and it doesn't detect when I change a spec file. >> > Here is the 'C:/Sites/rm403/Guardfile: >> > >> > guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => >> { 'RAILS_ENV' => 'test' } do >> > watch('config/application.rb') >> > watch('config/environment.rb') >> > watch(%r{^config/environments/.+\.rb$}) >> > watch(%r{^config/initializers/.+\.rb$}) >> > watch('Gemfile') >> > watch('Gemfile.lock') >> > watch('spec/spec_helper.rb') { :rspec } >> > watch('test/test_helper.rb') { :test_unit } >> > watch(%r{features/support/}) { :cucumber } >> > watch('spec/support/') >> > end >> > >> > guard 'rspec', :version => 2, :all_after_pass => false, :cli => '--drb >> --color' do >> > watch(%r{^spec/.+_spec\.rb$}) >> > watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } >> > watch('spec/spec_helper.rb') { "spec" } >> > >> > # Rails example >> > watch(%r{^app/(.+)\.rb$}) { |m| >> "spec/#{m[1]}_spec.rb" } >> > watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| >> "spec/#{m[1]}#{m[2]}_spec.rb" } >> > watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| >> > ["spec/routing/#{m[1]}_routing_spec.rb", >> > "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", >> > "spec/acceptance/#{m[1]}_spec.rb", >> > "spec/requests/#{m[1]}_spec.rb"] } >> > # (m[1][/_pages/] ? "spec/requests/#{m[1]}_spec.rb" : >> > # >> "spec/requests/#{m[1].singularize}_pages_spec.rb")] >> > watch(%r{^spec/support/(.+)\.rb$}) { "spec" } >> > watch('config/routes.rb') { "spec/routing" } >> > watch('app/controllers/application_controller.rb') { >> "spec/controllers" } >> > # Capybara request specs >> > watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| >> "spec/requests/#{m[1]}_spec.rb" } >> > end >> > >> > So is there some syntax error in my Guardfile that's preventing guard >> from interpreting it correctly? I tried remming out the whole spork section >> but then spork doesn't work at all. Can someone point me in the right >> direction? Thanks.