Rails 2.3.4 or Rails Edge?

5 views
Skip to first unread message

Martin Streicher

unread,
Sep 17, 2009, 10:31:36 PM9/17/09
to Lovd by Less
Has anyone moved lovdbyless to 2.3.4? The application runs under
2.3.4, but rake:test produces an error.

<code>
/test/functional/../test_helper.rb:24: undefined method
`use_transactional_fixtures=' for Test::Unit::TestCase:Class
(NoMethodError)
</code>

Edge Rails produces more errors.

Martin

Jonathon Brenner

unread,
Sep 18, 2009, 9:19:40 AM9/18/09
to lovdb...@googlegroups.com
Negative. I think it's still at 2.0.2

On Sep 17, 2009, at 10:31 PM, Martin Streicher <martin.s...@gmail.com

Martin Streicher

unread,
Sep 18, 2009, 10:42:15 AM9/18/09
to Lovd by Less
My particular issue with TestCase is widely documented and easily
fixed.

I am able to run tests, albeit with some errors that look like
dependency issues.

Martin Streicher

unread,
Sep 18, 2009, 3:47:25 PM9/18/09
to Lovd by Less
What is the current state of development of lovdbyless? Is it actively
maintained? Revised? Anyone want to team with me to move it ahead to
2.3.4?

Jonathon Brenner

unread,
Sep 18, 2009, 5:30:23 PM9/18/09
to lovdb...@googlegroups.com
It's maintained by the community, though I don't believe there have been many significant revisions lately. I've been planning to do a 2.3.4/1.9 port, but haven't found the time.

I knew I recognized your name; I've seen some of your posts to the Raleigh Ruby Brigade mailing list. I'm a fellow member, but haven't been to a meet-up since Sean Cribb's presentation on Radiant. 

Martin Streicher

unread,
Sep 18, 2009, 6:22:11 PM9/18/09
to Lovd by Less
I have all the tests passing cleanly on 2.3.4 as of this evening. So
far, I have:

- Nuked the gems in vendor/gems in favor of the latest revision of
each

- Change test/test_helper.rb to use the 2.3 ActiveSupport::TestCase

- Changed occurrences of UUID.random_create to
UUIDTools::UUID.random_create

- Followed the instructions of all emitted deprecation warnings to
rename *_url method calls

- Ran rails:update to rename application.rb to
application_controller.rb

I think that is it.

I want to try using the application a little before I post diffs or
post the entire code base to my Github account for others to try.

Or if the community wants to help, I could post what I have later this
evening and others can test too. Just be mindful of its condition.

Thoughts are welcome.

Martin


Martin Streicher

unread,
Sep 18, 2009, 6:27:20 PM9/18/09
to Lovd by Less
That's me.

I am trying to determine the suitability of lovd for a new project. I
would love to hear pros and cons.

One con was 2.0.2, but I hope to address that.

Jonathon Brenner

unread,
Sep 18, 2009, 6:52:19 PM9/18/09
to lovdb...@googlegroups.com
I figured I had nothing better to do tonight, so I'd also started a 2.3.4/1.9.1 port since my last email.  I brought everything in line with 2.3.4 standards and now I'm just working through 1.9 stuff.

FYI, here's our typical workflow for changes:

1. Fork steven's master on github. 
2. Make a local clone of your github repository.
3. Make changes locally.
4. Push your changes to your fork.
5. Send a pull request. We'll get notified and merge in the changes we need.

Martin Streicher

unread,
Sep 18, 2009, 10:44:17 PM9/18/09
to Lovd by Less
Jonathon: Do you want me to follow this procedure or has your
deprecated or obsoleted mine? If you have 2.3.4 working, then I can
simply fetch when you are ready. I am happy to follow steps 1-5 if
need be.

Jonathon Brenner

unread,
Sep 19, 2009, 8:35:03 AM9/19/09
to lovdb...@googlegroups.com
Your work will definitely be helpful. Go ahead and send a pull request with your changes.

Martin Streicher

unread,
Sep 21, 2009, 2:19:29 AM9/21/09
to Lovd by Less

Done. I sent the request to Bristol.

Martin Streicher

unread,
Sep 21, 2009, 3:15:02 AM9/21/09
to Lovd by Less

One issue that I have noticed:

sudo rake gems:install
Password:
(in /Users/supergiantrobot/Projects/op/trunk/lovd-by-less)
rake aborted!
uninitialized constant Test

black-2:lovd-by-less supergiantrobot$ sudo rake gems:install --trace
(in /Users/supergiantrobot/Projects/op/trunk/lovd-by-less)
** Invoke gems:install (first_time)
** Invoke gems:base (first_time)
** Execute gems:base
** Invoke environment (first_time)
** Execute environment
rake aborted!
uninitialized constant Test
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/
dependencies.rb:443:in `load_missing_constant'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/
dependencies.rb:80:in `const_missing'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/
dependencies.rb:92:in `const_missing'
/Users/supergiantrobot/Projects/op/trunk/lovd-by-less/vendor/plugins/
flashback/lib/flashback.rb:58
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'

Martin Streicher

unread,
Sep 21, 2009, 3:28:43 AM9/21/09
to Lovd by Less

I added a require to flashback/lib/flashback.rb

require 'test/unit'

to clear the problem. I pushed and issued another pull request.

Steven Bristol

unread,
Sep 21, 2009, 7:57:28 AM9/21/09
to lovdb...@googlegroups.com

As I understand it, flashback should no longer be required because
rails does this now. Can someone confirm or deny that?


cheers,
steven bristol

Martin Streicher

unread,
Sep 21, 2009, 12:11:17 PM9/21/09
to Lovd by Less
I posted new migrations to my Github version. The migrations use
modern conventions and I have separated the migrations into
individual files with time-stamped names.

Jay Fallon

unread,
Oct 14, 2009, 5:41:04 PM10/14/09
to Lovd by Less
I also get the same problem when I run rake gems:install
(running 2.3.4)

Peleliu:lovd-by-less jayfallon$ sudo rake gems:install --trace
(in /Users/jayfallon/Sites/lovd/lovd-by-less)
** Invoke gems:install (first_time)
** Invoke gems:base (first_time)
** Execute gems:base
** Invoke environment (first_time)
** Execute environment
rake aborted!
uninitialized constant Test
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:443:in `load_missing_constant'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:80:in `const_missing'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:92:in `const_missing'
/Users/jayfallon/Sites/lovd/lovd-by-less/vendor/plugins/flashback/lib/
flashback.rb:58
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:521:in `new_constants_in'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:156:in `require'
/Users/jayfallon/Sites/lovd/lovd-by-less/vendor/plugins/flashback/
init.rb:1:in `evaluate_init_rb'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/plugin.rb:
158:in `evaluate_init_rb'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/plugin.rb:
154:in `evaluate_init_rb'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/plugin.rb:
48:in `load'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/plugin/
loader.rb:38:in `load_plugins'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/plugin/
loader.rb:37:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/plugin/
loader.rb:37:in `load_plugins'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:
369:in `load_plugins'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:
165:in `process'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:
113:in `send'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:
113:in `run'
/Users/jayfallon/Sites/lovd/lovd-by-less/config/environment.rb:7
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:521:in `new_constants_in'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/
active_support/dependencies.rb:156:in `require'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/tasks/misc.rake:4
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
`execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
`execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597: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.7/lib/rake.rb:590:in
`invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in
`invoke'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/tasks/gems.rake:17
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
`execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
`execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597: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.7/lib/rake.rb:590:in
`invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in
`invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
`invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596: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.7/lib/rake.rb:590:in
`invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in
`invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
`invoke_task'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
`top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
`each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
`top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in
`top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19


On Sep 21, 9:11 am, Martin Streicher <martin.streic...@gmail.com>
wrote:

Martin Streicher

unread,
Oct 19, 2009, 10:43:54 AM10/19/09
to Lovd by Less
Jay: Are you seeing this in my latest Github revision?

Jay Fallon

unread,
Oct 19, 2009, 2:18:10 PM10/19/09
to Lovd by Less
Yes, I cloned the latest Github revision this morning. I get the same
error when running rake gems:install and I also get the following when
running rake ts:start

Sphinx 0.9.8.1-release (r1533)
Copyright (c) 2001-2008, Andrew Aksyonoff

using config file '/Users/jayfallon/Sites/lovd-by-less/config/
development.sphinx.conf'...
creating server socket on 127.0.0.1:3312
WARNING: index 'profile_core': preload: failed to open /Users/
jayfallon/Sites/lovd-by-less/db/sphinx/development/profile_core.sph:
No such file or directory; NOT SERVING
WARNING: index 'profile': no such local index 'profile_core' -
SKIPPING LOCAL INDEX
WARNING: index 'profile': no valid local/remote indexes in distributed
index - NOT SERVING
FATAL: no valid indexes to serve
Failed to start searchd daemon. Check /Users/jayfallon/Sites/lovd-by-
less/log/searchd.log.
** Execute ts:start
Loaded suite /usr/local/bin/rake
Started
Reply all
Reply to author
Forward
0 new messages