Discussion:
bundler does not work as advertised!
(too old to reply)
7stud --
2011-07-16 21:22:01 UTC
Permalink
I changed some gem versions in my Gemfile, and then I did:

$ bundle install
Using rake (0.9.2)
Using abstract (1.0.0)
Using activesupport (3.0.9)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.9)
Using erubis (2.6.6)
Using rack (1.2.3)
Using rack-mount (0.6.14)
Using rack-test (0.5.7)
Using tzinfo (0.3.29)
Using actionpack (3.0.9)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.9)
Using mail (2.2.19)
Using actionmailer (3.0.9)
Using arel (2.0.10)
Using activerecord (3.0.9)
Using activeresource (3.0.9)
Using annotate (2.4.0)
Using bundler (1.0.15)
Using diff-lcs (1.1.2)
Using nokogiri (1.5.0)
Using rdoc (3.8)
Using thor (0.14.6)
Using railties (3.0.9)
Using rails (3.0.9)
Using rspec-core (2.0.1)
Using rspec-expectations (2.0.1)
Using rspec-mocks (2.0.1)
Using rspec (2.0.1)
Using rspec-rails (2.0.1)
Using spork (0.8.4) ****************<<<<<<<<<<<******
Using sqlite3-ruby (1.2.5)
Using webrat (0.7.1)
Your bundle is complete! Use `bundle show [gemname]` to see where a
bundled gem is installed.


Now I want to run spork 0.8.4 (as listed in the Gemfile):

$ bundle exec spork
/Users/Me/.rvm/gems/ruby-1.9.2-***@rails3tutorial/gems/spork-0.9.0.rc8/lib/spork/test_framework/cucumber.rb:2:
warning: already initialized constant DEFAULT_PORT
/Users/Me/.rvm/gems/ruby-1.9.2-***@rails3tutorial/gems/spork-0.9.0.rc8/lib/spork/test_framework/cucumber.rb:3:
warning: already initialized constant HELPER_FILE
/Users/Me/.rvm/gems/ruby-1.9.2-***@rails3tutorial/gems/spork-0.9.0.rc8/lib/spork/test_framework/rspec.rb:2:
warning: already initialized constant DEFAULT_PORT
/Users/Me/.rvm/gems/ruby-1.9.2-***@rails3tutorial/gems/spork-0.9.0.rc8/lib/spork/test_framework/rspec.rb:3:
warning: already initialized constant HELPER_FILE
Using RSpec
Loading Spork.prefork block...
Spork is ready and listening on 8989!

It appears to me that the spork version being executed is the version
that used to be in the Gemfile--not the version that is currently
specified in the gemfile. I don't really care what version of spork
executes, but autotest stopped working when I updated some gems to newer
versions in my Gemfile, so I tried specifying all the old versions
again, but spork

Here is the autotest error:

/Users/Me/.rvm/rubies/ruby-1.9.2-p180/bin/ruby -rrubygems -S
/Users/Me/.rvm/gems/ruby-1.9.2-***@rails3tutorial/gems/rspec-core-2.6.4/bin/rspec
--tty
'/Users/Me/rails_projects/sample_app/spec/controllers/pages_controller_spec.rb'
'/Users/Me/rails_projects/sample_app/spec/controllers/users_controller_spec.rb'
'/Users/Me/rails_projects/sample_app/spec/models/user_spec.rb'
'/Users/Me/rails_projects/sample_app/spec/requests/layout_links_spec.rb'
Exception encountered: #<OptionParser::InvalidOption: --tty>
backtrace:
.....
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
7stud --
2011-07-16 21:30:18 UTC
Permalink
$ bundle show spork
/Users/Me/.rvm/gems/ruby-1.9.2-***@rails3tutorial/gems/spork-0.8.4
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Conrad Taylor
2011-07-16 22:02:46 UTC
Permalink
Post by 7stud --
$ bundle show spork
Hi, please do the following:

$ bundle update spork
$ bundle exec spork

Good luck,

-Conrad
Post by 7stud --
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2011-07-16 21:27:30 UTC
Permalink
Post by 7stud --
$ bundle install
...
Using rspec (2.0.1)
Using rspec-rails (2.0.1)
Using spork (0.8.4)   ****************<<<<<<<<<<<******
Using sqlite3-ruby (1.2.5)
Using webrat (0.7.1)
Your bundle is complete! Use `bundle show [gemname]` to see where a
bundled gem is installed.
What does
bundle show spork
show?

Colin
Post by 7stud --
$ bundle exec spork
warning: already initialized constant DEFAULT_PORT
warning: already initialized constant HELPER_FILE
warning: already initialized constant DEFAULT_PORT
warning: already initialized constant HELPER_FILE
Using RSpec
Loading Spork.prefork block...
Spork is ready and listening on 8989!
It appears to me that the spork version being executed is the version
that used to be in the Gemfile--not the version that is currently
specified in the gemfile.  I don't really care what version of spork
executes, but autotest stopped working when I updated some gems to newer
versions in my Gemfile, so I tried specifying all the old versions
again, but spork
/Users/Me/.rvm/rubies/ruby-1.9.2-p180/bin/ruby -rrubygems -S
--tty
'/Users/Me/rails_projects/sample_app/spec/controllers/pages_controller_spec.rb'
'/Users/Me/rails_projects/sample_app/spec/controllers/users_controller_spec.rb'
'/Users/Me/rails_projects/sample_app/spec/models/user_spec.rb'
'/Users/Me/rails_projects/sample_app/spec/requests/layout_links_spec.rb'
Exception encountered: #<OptionParser::InvalidOption: --tty>
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-talk+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
7stud --
2011-07-17 00:08:39 UTC
Permalink
I get the same autotest error after doing that.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Conrad Taylor
2011-07-17 00:30:32 UTC
Permalink
Post by 7stud --
I get the same autotest error after doing that.
Can you execute your tests without spork and autotest? If so, can you
execute your test with spork?

-Conrad
Post by 7stud --
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
7stud --
2011-07-17 09:10:14 UTC
Permalink
Post by Conrad Taylor
Post by 7stud --
I get the same autotest error after doing that.
Can you execute your tests without spork and autotest?
Yes.
Post by Conrad Taylor
If so, can you
execute your test with spork?
I don't know what that means. In any case, I deleted my whole gemset
and started over, and now I can run autotest again.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Conrad Taylor
2011-07-17 10:00:36 UTC
Permalink
Post by 7stud --
Post by Conrad Taylor
Post by 7stud --
I get the same autotest error after doing that.
Can you execute your tests without spork and autotest?
Yes.
Post by Conrad Taylor
If so, can you
execute your test with spork?
I don't know what that means. In any case, I deleted my whole gemset
and started over, and now I can run autotest again.
I was trying to get you to go through a process of elimination.

-Conrad
Post by 7stud --
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Loading...