getting 'Malformed version number string 3.0.pre' error when running tests

Hi

Following is the text from my terminal window.

devtaa:rails chetanm$ rake test --trace
(in /Users/chetanm/workspace/Mortar/Labs/RnD/rails)
** Invoke test (first_time)
** Execute test
(in /Users/chetanm/workspace/Mortar/Labs/RnD/rails/activesupport)
rake aborted!
Malformed version number string 3.0.pre
/Users/chetanm/workspace/Mortar/Labs/RnD/rails/activesupport/Rakefile:
51
(See full trace by running task with --trace)
(in /Users/chetanm/workspace/Mortar/Labs/RnD/rails/actionpack)
rake aborted!
Malformed version number string 3.0.pre
/Users/chetanm/workspace/Mortar/Labs/RnD/rails/actionpack/Rakefile:106
(See full trace by running task with --trace)
(in /Users/chetanm/workspace/Mortar/Labs/RnD/rails/actionmailer)
rake aborted!
Malformed version number string 3.0.pre
/Users/chetanm/workspace/Mortar/Labs/RnD/rails/actionmailer/Rakefile:
56
(See full trace by running task with --trace)
(in /Users/chetanm/workspace/Mortar/Labs/RnD/rails/activemodel)
/usr/local/bin/ruby -I"/Users/chetanm/workspace/Mortar/Labs/RnD/rails/
activemodel/lib" -I"/Users/chetanm/workspace/Mortar/Labs/RnD/rails/
activemodel/test" "/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/
rake/rake_test_loader.rb" "test/cases/naming_test.rb" "test/cases/
observing_test.rb" "test/cases/serializeration/
json_serialization_test.rb" "test/cases/serializeration/
xml_serialization_test.rb" "test/cases/state_machine/event_test.rb"
"test/cases/state_machine/machine_test.rb" "test/cases/state_machine/
state_test.rb" "test/cases/state_machine/state_transition_test.rb"
"test/cases/state_machine_test.rb" "test/cases/validations/
acceptance_validation_test.rb" "test/cases/validations/
conditional_validation_test.rb" "test/cases/validations/
confirmation_validation_test.rb" "test/cases/validations/
exclusion_validation_test.rb" "test/cases/validations/
format_validation_test.rb" "test/cases/validations/
i18n_generate_message_validation_test.rb" "test/cases/validations/
i18n_validation_test.rb" "test/cases/validations/
inclusion_validation_test.rb" "test/cases/validations/
length_validation_test.rb" "test/cases/validations/
numericality_validation_test.rb" "test/cases/validations/
presence_validation_test.rb" "test/cases/validations_test.rb"
Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/
rake_test_loader
Started
........................EE..................................EEEE....EE..EE..EE..EE..EE..EE..EEEE..EE..E..EE..EE..EE....................................................................E........EEE.................EEEEEEE.EE...............EEEEE..........EEEEEE.EEE...............................
Finished in 0.793663 seconds.

____________________________ some text is cut to keep this message
short ________________________

Malformed version number string 3.0.pre
/Users/chetanm/workspace/Mortar/Labs/RnD/rails/railties/Rakefile:151
(See full trace by running task with --trace)
rake aborted!
Errors in activesupport, actionpack, actionmailer, activemodel,
activeresource, activerecord, railties
/Users/chetanm/workspace/Mortar/Labs/RnD/rails/Rakefile:22
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in
`execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in
`execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:578:in
`invoke_with_call_chain'
/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in
`invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:564:in
`invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in
`invoke_task'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in
`top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in
`each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in
`top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in
`standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1999:in
`top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1977:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in
`standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.4/bin/rake:31
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19

I was actually talking about this in my last email.

Eloy

I'm experiencing this as well.

I had this problem; fixed it by upgrading to the latest Rubygems:
https://rails.lighthouseapp.com/projects/8994/tickets/2880-malformed-version-number-string-30pre

Looks like the ability to add prerelease versions using letters was
added in Rubygems version 1.3.2: http://www.mail-archive.com/rubygems-developers@rubyforge.org/msg02701.html

We need to add a Rubygems version dependency on the latest rubygems.
I’ll do it when I get back to the US.

Geoff Buesing wrote:

We need to add a Rubygems version dependency on the latest rubygems. I'll do
it when I get back to the US.

Beat you to it :slight_smile: