George Anderson
2007-Oct-11 17:51 UTC
[rspec-users] Incompatibility Issues after updating CURRENT
Hi, I''m using piston to manage rspec and rspec_on_rails in vendor/plugins. ---- ~/work/simplify_md $ piston st vendor/plugins/ vendor/plugins/rspec (svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec) vendor/plugins/rspec_on_rails (svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails) ---- After I ''piston update''d rspec and rspec_on_rails... ---- ~/work/simplify_md $ piston update vendor/plugins/rspec/ Processing ''vendor/plugins/rspec/''... Fetching remote repository''s latest revision and UUID unchanged from revision 2338 ~/work/simplify_md $ piston update vendor/plugins/rspec_on_rails/ Processing ''vendor/plugins/rspec_on_rails/''... Fetching remote repository''s latest revision and UUID unchanged from revision 2338 ---- ... and try to run a spec, I get the plugin compatibility exception; ---- ~/work/simplify_md $ script/spec spec/controllers/patients_controller_spec.rb /Users/george/work/simplify_md/vendor/plugins/rspec_on_rails/lib/spec/rails/version.rb:14: (RuntimeError) ############################################################################ Your RSpec on Rails plugin is incompatible with your installed RSpec. RSpec : 1.0.7 (r2332) RSpec on Rails : r2331 Make sure your RSpec on Rails plugin is compatible with your RSpec gem. See rspec.rubyforge.org/documentation/rails/install.html for details. ############################################################################ ---- I do NOT have the RSpec gem installed ---- ~/work/simplify_md $ gem list --local |grep rspec ~/work/simplify_md $ ---- Can anyone show me the error of my ways? Thanks, /g -- George Anderson BenevolentCode LLC O: (410) 461-7553 C: (410) 218-5185 george at benevolentcode.com -------------- next part -------------- An HTML attachment was scrubbed... URL: rubyforge.org/pipermail/rspec-users/attachments/20071011/46d04db8/attachment.html
David Chelimsky
2007-Oct-11 18:00 UTC
[rspec-users] Incompatibility Issues after updating CURRENT
On 10/11/07, George Anderson <george at benevolentcode.com> wrote:> Hi, > > I''m using piston to manage rspec and rspec_on_rails in vendor/plugins. > > ---- > ~/work/simplify_md $ piston st vendor/plugins/ > vendor/plugins/rspec > (svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec) > vendor/plugins/rspec_on_rails > (svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails) > ---- > > After I ''piston update''d rspec and rspec_on_rails... > > ---- > ~/work/simplify_md $ piston update vendor/plugins/rspec/ > Processing ''vendor/plugins/rspec/''... > Fetching remote repository''s latest revision and UUID > unchanged from revision 2338 > ~/work/simplify_md $ piston update vendor/plugins/rspec_on_rails/ > Processing ''vendor/plugins/rspec_on_rails/''... > Fetching remote repository''s latest revision and UUID > unchanged from revision 2338> ---- > > > ... and try to run a spec, I get the plugin compatibility exception; > > ---- > ~/work/simplify_md $ script/spec > spec/controllers/patients_controller_spec.rb > /Users/george/work/simplify_md/vendor/plugins/rspec_on_rails/lib/spec/rails/version.rb:14: > (RuntimeError) > ############################################################################ > Your RSpec on Rails plugin is incompatible with your installed RSpec. > > RSpec : 1.0.7 (r2332) > RSpec on Rails : r2331 > > Make sure your RSpec on Rails plugin is compatible with your RSpec gem. > See > rspec.rubyforge.org/documentation/rails/install.html > for details. > ############################################################################That is VERY odd. That was a bug in the 1.0.7 release, which is why we released 1.0.8 right on its heels. But that was over a month ago. I see this in CURRENT/rspec/lib/spec/version.rb: MAJOR = 1 MINOR = 0 TINY = 8 ... REV = "$LastChangedRevision: 2338 $".match(/LastChangedRevision: (\d+)/)[1] ... and this in CURRENT/rspec_on_rails/lib/spec/rails/version.rb REV = "$LastChangedRevision: 2338 $".match(/LastChangedRevision: (\d+)/)[1] So they should be aligning just fine. Sounds like something''s wrong when you update from piston. Not sure how or why.> ---- > > I do NOT have the RSpec gem installed > ---- > ~/work/simplify_md $ gem list --local |grep rspec > ~/work/simplify_md $ > ---- > > Can anyone show me the error of my ways? > > Thanks, > > > /g > -- > > George Anderson > > BenevolentCode LLC > O: (410) 461-7553 > C: (410) 218-5185 > > george at benevolentcode.com > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > rubyforge.org/mailman/listinfo/rspec-users >
George Anderson
2007-Oct-11 18:27 UTC
[rspec-users] Incompatibility Issues after updating CURRENT
> So they should be aligning just fine. Sounds like something''s wrong > when you update from piston. Not sure how or why.Piston persists any changes you make to the "working copy." Perhaps someone was poking around in version.rb (not me of course ;)) and it subsequently got flagged as being changed. If that''s the case, no matter how many ''piston updates'' I ran, the file will never change. For the record, I thought I could use ''piston switch NEW_REPOSITORY_ROOT DIR'' to ''reset'' my working copy. It didn''t work, the "changes" to version.rb persisted. To fix it, you have to (forcefully) nuke the rspec and rspec_on_rails plugins, then ''piston [re]import" them again: svn del vendor/plugins/rspec/ vendor/plugins/rspec_on_rails --force svn up vendor/plugins piston import ... Thanks for your quick response, David. /g On 10/11/07, David Chelimsky <dchelimsky at gmail.com> wrote:> > On 10/11/07, George Anderson <george at benevolentcode.com> wrote: > > Hi, > > > > I''m using piston to manage rspec and rspec_on_rails in vendor/plugins. > > > > ---- > > ~/work/simplify_md $ piston st vendor/plugins/ > > vendor/plugins/rspec > > (svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec) > > vendor/plugins/rspec_on_rails > > (svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails) > > ---- > > > > After I ''piston update''d rspec and rspec_on_rails... > > > > ---- > > ~/work/simplify_md $ piston update vendor/plugins/rspec/ > > Processing ''vendor/plugins/rspec/''... > > Fetching remote repository''s latest revision and UUID > > unchanged from revision 2338 > > ~/work/simplify_md $ piston update vendor/plugins/rspec_on_rails/ > > Processing ''vendor/plugins/rspec_on_rails/''... > > Fetching remote repository''s latest revision and UUID > > unchanged from revision 2338 > > > > > ---- > > > > > > ... and try to run a spec, I get the plugin compatibility exception; > > > > ---- > > ~/work/simplify_md $ script/spec > > spec/controllers/patients_controller_spec.rb > > /Users/george/work/simplify_md/vendor/plugins/rspec_on_rails > /lib/spec/rails/version.rb:14: > > (RuntimeError) > > ############################################################ > ################ > > Your RSpec on Rails plugin is incompatible with your installed RSpec. > > > > RSpec : 1.0.7 (r2332) > > RSpec on Rails : r2331 > > > > Make sure your RSpec on Rails plugin is compatible with your RSpec gem. > > See > > rspec.rubyforge.org/documentation/rails/install.html > > for details. > > ############################################################ > ################ > > That is VERY odd. That was a bug in the 1.0.7 release, which is why we > released 1.0.8 right on its heels. But that was over a month ago. > > I see this in CURRENT/rspec/lib/spec/version.rb: > > MAJOR = 1 > MINOR = 0 > TINY = 8 > ... > REV = "$LastChangedRevision: 2338 $".match(/LastChangedRevision: > (\d+)/)[1] > > ... and this in CURRENT/rspec_on_rails/lib/spec/rails/version.rb > > REV = "$LastChangedRevision: 2338 > $".match(/LastChangedRevision: (\d+)/)[1] > > So they should be aligning just fine. Sounds like something''s wrong > when you update from piston. Not sure how or why. > > > ---- > > > > I do NOT have the RSpec gem installed > > ---- > > ~/work/simplify_md $ gem list --local |grep rspec > > ~/work/simplify_md $ > > ---- > > > > Can anyone show me the error of my ways? > > > > Thanks, > > > > > > /g > > -- > > > > George Anderson > > > > BenevolentCode LLC > > O: (410) 461-7553 > > C: (410) 218-5185 > > > > george at benevolentcode.com > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > rubyforge.org/mailman/listinfo/rspec-users > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > rubyforge.org/mailman/listinfo/rspec-users >-- George Anderson BenevolentCode LLC O: (410) 461-7553 C: (410) 218-5185 george at benevolentcode.com -------------- next part -------------- An HTML attachment was scrubbed... URL: rubyforge.org/pipermail/rspec-users/attachments/20071011/a36a1d1f/attachment-0001.html