--Z8pjODCYYz+3zRe3
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi.

I happily hand-compiled Ruby 1.9.0-0 into /home/shot/opt/ruby today
and I=E2=80=99m running into a strange error with RSpec =E2=80=93 all my ex=
amples work
perfectly with Ruby 1.8 but are considered peding on Ruby 1.9.

My setups:

a) Ubuntu-packaged Ruby 1.8.6p36 (ruby1.8 1.8.6.36-1ubuntu3),
RubyGems 1.0.1 (rubygems 1.0.1-3) and RSpec 1.1.1 (in /var/lib/gems/1.8)

b) source-compiled Ruby 1.9.0-0 and RSpec 1.1.1
(in /home/shot/opt/ruby/lib/ruby/gems/1.9.0)

Now for the examples (two scenarios, both
with fresh shell, so the same original $PATH):

a)

shot@devielle:~/work/PhD/bzr/trunk$ export PATH=3D/var/lib/gems/1.8/bin:$PA=
TH
shot@devielle:~/work/PhD/bzr/trunk$ spec spec/architecture_spec.rb
=2E..

Finished in 0.00815 seconds

3 examples, 0 failures



b)

shot@devielle:~/work/PhD/bzr/trunk$ export PATH=3D/home/shot/opt/ruby/bin:$=
PATH
shot@devielle:~/work/PhD/bzr/trunk$ spec spec/architecture_spec.rb
PPP

Pending:
ArtDecomp::Architecture before(:all) (Not Yet Implemented)
ArtDecomp::Architecture before(:all) (Not Yet Implemented)
ArtDecomp::Architecture before(:all) (Not Yet Implemented)

Finished in 0.012114249 seconds

3 examples, 0 failures, 3 pending



How can I bugtrack/fix this?

I had to patch RSpec in the below manner to get it running
on Ruby 1.9, but I doubt these fixes can be the culprit.

--- lib/spec/runner/options.rb.orig     2007-12-27 16:36:03.000000000 +0100
+++ lib/spec/runner/options.rb  2007-12-27 16:36:28.000000000 +0100
@@ -102,7 +102,7 @@
       def colour=3D(colour)
         @colour =3D colour
         begin; \
-          require 'Win32/Console/ANSI' if @colour && PLATFORM =3D~ /win32/=
; \
+#         require 'Win32/Console/ANSI' if @colour && PLATFORM =3D~ /win32/=
; \
         rescue LoadError ; \
           raise "You must gem install win32console to use colour on Window=
s" ; \
         end
--- lib/spec/matchers/be.rb.orig        2007-12-27 16:30:51.000000000 +0100
+++ lib/spec/matchers/be.rb     2007-12-27 16:32:14.000000000 +0100
@@ -124,7 +124,8 @@
         def parse_expected(expected)
           if Symbol =3D=3D=3D expected
             @handling_predicate =3D true
-            ["be_an_","be_a_","be_"].each do |@prefix|
+            ["be_an_","be_a_","be_"].each do |at_prefix|
+              @prefix =3D at_prefix
               if expected.starts_with?(@prefix)
                 return "#{expected.to_s.sub(@prefix,"")}".to_sym
               end

-- Shot
--=20
Basically my philosophy on release management is that it
should be like police brutality.    -- Maciej Stachowiak

--Z8pjODCYYz+3zRe3
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFHc+vni/mCfdEo8UoRAlnnAJ4k3UBd9rNRywbVn1FH5O6w3m2mbgCgvxLK
UBPW+YCaqUCg5AfXU0mgk2o=
=rM+M
-----END PGP SIGNATURE-----

--Z8pjODCYYz+3zRe3--