settingslogic icon indicating copy to clipboard operation
settingslogic copied to clipboard

Name method conflicts with ZenTest

Open jbhannah opened this issue 15 years ago • 4 comments

When using Spork, RSpec, and Cucumber with a Rails project that uses Settingslogic, trying to start Spork causes the following error:

No such file or directory - No file specified as Settingslogic source (Errno::ENOENT)
/Library/Ruby/Gems/1.8/gems/settingslogic-2.0.6/lib/settingslogic.rb:101:in `initialize'
/Library/Ruby/Gems/1.8/gems/settingslogic-2.0.6/lib/settingslogic.rb:63:in `new'
/Library/Ruby/Gems/1.8/gems/settingslogic-2.0.6/lib/settingslogic.rb:63:in `instance'
/Library/Ruby/Gems/1.8/gems/settingslogic-2.0.6/lib/settingslogic.rb:10:in `name'
/Library/Ruby/Gems/1.8/gems/ZenTest-4.3.2/lib/ZenTest.rb:4
/Library/Ruby/Gems/1.8/gems/ZenTest-4.3.2/lib/ZenTest.rb:3:in `each_object'

This appears to be because the "name" method called by ZenTest conflicts with a Settingslogic method, which causes Settingslogic to throw an error. This appears to be fixed[1] by mtarnovan's fork of Settingslogic by just removing the method; can we have this or an equivalent change made in this branch, and have a new version of the gem made available that includes this fix?

[1]http://github.com/mtarnovan/settingslogic/commit/b21e9fa6b8f02d77e2a199437dffe46c8bf0d085

jbhannah avatar Jun 03 '10 23:06 jbhannah

I'm seeing this also

benlangfeld avatar Aug 22 '10 16:08 benlangfeld

Any chance this could be merged?

benlangfeld avatar Oct 25 '10 12:10 benlangfeld

+1

agibralter avatar Sep 07 '11 15:09 agibralter

I guess for the time being, you can just put gem "settingslogic" after gem "ZenTest" and it works.

agibralter avatar Sep 07 '11 16:09 agibralter