[rspec-devel] [Proposal] change 'spec' to 'rspec'
dchelimsky at gmail.com
Mon Sep 29 23:30:03 EDT 2008
On Mon, Sep 29, 2008 at 10:28 PM, Jim Weirich <jim.weirich at gmail.com> wrote:
> On Sep 29, 2008, at 11:22 PM, David Chelimsky wrote:
>> The convention for gems is that the top level module shares a name
>> with the gem, but rspec uses 'spec' instead, resulting in things like
>> require 'rubygems'
>> gem 'rspec'
>> require 'spec'
>> I'd like to propose that we change the 'spec' namespace to 'rspec'.
>> We'd have to continue to support 'spec' for backwards compatibility
>> for a long time, but we can do that with a few extra files that just
>> require other files.
> The second line has no effect. The following is equivalent:
> require 'rubygems'
> require 'spec'
Wouldn't the 2nd line have an effect if you wanted to specify a version?
gem 'rspec', '=1.1.5'
> In which case, it might be a good thing to get the library name (gem name)
> on the require.
> -- Jim Weirich
> -- jim.weirich at gmail.com
More information about the rspec-devel