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 http://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 A.

BenevolentCode LLC
O: (410) 461-7553
C: (410) 218-5185

[email protected]

On 10/11/07, George A. [email protected] wrote:


Fetching remote repository’s latest revision and UUID
unchanged from revision 2338

############################################################################
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
http://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.

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 C. [email protected] wrote:

        vendor/plugins/rspec_on_rails

~/work/simplify_md $ piston update vendor/plugins/rspec_on_rails/

RSpec : 1.0.7 (r2332)
released 1.0.8 right on its heels. But that was over a month ago.
… and this in CURRENT/rspec_on_rails/lib/spec/rails/version.rb


[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users


rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

George A.

BenevolentCode LLC
O: (410) 461-7553
C: (410) 218-5185

[email protected]