Forum: RSpec submodule rspec and rspec-rails issues

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F04aeb28129f653b207e8b5d92706096?d=identicon&s=25 Amos King (Guest)
on 2009-04-30 20:27
(Received via mailing list)
I started a brand new rails app and then ran the following.

%>git submodule add git://github.com/aslakhellesoy/cucumber.git
vendor/plugins/cucumber
%>git submodule add git://github.com/brynary/webrat.git
vendor/plugins/webrat
%>git submodule add git://github.com/dchelimsky/rspec.git
vendor/plugins/rspec
%>git submodule add git://github.com/dchelimsky/rspec-rails.git
vendor/plugins/rspec-rails
%>script/generate rspec
%>rake spec

Then I have the following output:

rake aborted!

********************************************************************************
*  You are trying to run an rspec rake task defined in
*  /Users/amos/workspace/akingsoftware/hops/lib/tasks/rspec.rake,
*  but rspec can not be found in vendor/gems, vendor/plugins or system
gems.
********************************************************************************


Here is the trace if I run it too.

/Users/amos/workspace/akingsoftware/hops/lib/tasks/rspec.rake:18:in
`initialize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:578:in
`invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
`synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in
`invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:564:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:1999:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:1977:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.4/bin/rake:31



Am I missing something?

--
Amos King
http://dirtyInformation.com
http://github.com/Adkron
--
Looking for something to do? Visit http://ImThere.com
5d38ab152e1e3e219512a9859fcd93af?d=identicon&s=25 David Chelimsky (Guest)
on 2009-04-30 20:33
(Received via mailing list)
On Thu, Apr 30, 2009 at 1:26 PM, Amos King <amos.l.king@gmail.com>
wrote:
>
>
> `synchronize'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:1977:in `run'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in
> `standard_exception_handling'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in `run'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/bin/rake:31
>
>
>
> Am I missing something?

See https://rspec.lighthouseapp.com/projects/5645/tickets/807
369b9fd2a0d9e7cdbc60907a2a056ad9?d=identicon&s=25 Scott Taylor (Guest)
on 2009-04-30 20:34
(Received via mailing list)
On Apr 30, 2009, at 2:26 PM, Amos King wrote:

> %>script/generate rspec
> %>rake spec

Did you run "git submodule update --init" ?

Scott
F04aeb28129f653b207e8b5d92706096?d=identicon&s=25 Amos King (Guest)
on 2009-04-30 21:22
(Received via mailing list)
yes, but when you add it does it.

On Thu, Apr 30, 2009 at 1:33 PM, Scott Taylor <scott@railsnewbie.com>
wrote:
>> vendor/plugins/rspec
>>
>>
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `execute'
>> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `each'
>>
>> rspec-users mailing list
>> rspec-users@rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



--
Amos King
http://dirtyInformation.com
http://github.com/Adkron
--
Looking for something to do? Visit http://ImThere.com
F04aeb28129f653b207e8b5d92706096?d=identicon&s=25 Amos King (Guest)
on 2009-04-30 21:35
(Received via mailing list)
So why am I required to install rspec as a frozen/system gem to work
with rails?  I would be happy with that if the support for rails gems
was a little better.  I'm stuck to the published gem at that point, or
I have to jump through hoops on every deployment or build box.

On Thu, Apr 30, 2009 at 2:21 PM, Amos King <amos.l.king@gmail.com>
wrote:
>>> %>git submodule add git://github.com/brynary/webrat.git
>> Scott
>>> *  /Users/amos/workspace/akingsoftware/hops/lib/tasks/rspec.rake,
>>> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `call'
>>> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:564:in `invoke'
>>> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in `run'
>>> --
>>
>
>
>
> --
> Amos King
> http://dirtyInformation.com
> http://github.com/Adkron
> --
> Looking for something to do? Visit http://ImThere.com
>



--
Amos King
http://dirtyInformation.com
http://github.com/Adkron
--
Looking for something to do? Visit http://ImThere.com
902654bac6dff9567f018bd2ed933151?d=identicon&s=25 Nicholas Van Weerdenburg (Guest)
on 2009-04-30 22:06
(Received via mailing list)
On Thu, Apr 30, 2009 at 3:34 PM, Amos King <amos.l.king@gmail.com>
wrote:

> >>
> >>> %>git submodule add git://github.com/dchelimsky/rspec-rails.git
> >>> Then I have the following output:
> >>>
> >>> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `each'
> >>> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in
> >>> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in `run'
> >>> --
> >>
>
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>

It doesn't have to be a frozen gem. That's simply if you want to manage
dependencies via git, etc. for deployment.

I use it as a regular gem.

The current issue is plugins not being supported on latest release.

Regards,
Nick
F04aeb28129f653b207e8b5d92706096?d=identicon&s=25 Amos King (Guest)
on 2009-05-01 04:55
(Received via mailing list)
frozen as gems and still the same problems.

On Thu, Apr 30, 2009 at 3:05 PM, Nicholas Van Weerdenburg
<vanweerd@gmail.com> wrote:
>> > On Thu, Apr 30, 2009 at 1:33 PM, Scott Taylor <scott@railsnewbie.com>
>> >>> %>git submodule add git://github.com/dchelimsky/rspec.git
>> >>>
>> >>> *  but rspec can not be found in vendor/gems, vendor/plugins or system
>> >>> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `call'
>> >>> `invoke_with_call_chain'
>> >>> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in
>> >>> http://dirtyInformation.com
>> >> rspec-users@rubyforge.org
>> > Looking for something to do? Visit http://ImThere.com
>> _______________________________________________
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



--
Amos King
http://dirtyInformation.com
http://github.com/Adkron
--
Looking for something to do? Visit http://ImThere.com
5d38ab152e1e3e219512a9859fcd93af?d=identicon&s=25 David Chelimsky (Guest)
on 2009-05-01 05:05
(Received via mailing list)
On Thu, Apr 30, 2009 at 9:55 PM, Amos King <amos.l.king@gmail.com>
wrote:
> frozen as gems and still the same problems.

The 1.2.6 release should work as a plugin again.
F04aeb28129f653b207e8b5d92706096?d=identicon&s=25 Amos King (Guest)
on 2009-05-01 05:07
(Received via mailing list)
should I go with the plugin.  It doesn't work as a gem now?

On Thu, Apr 30, 2009 at 10:04 PM, David Chelimsky <dchelimsky@gmail.com>
wrote:
>>>> So why am I required to install rspec as a frozen/system gem to work
>>>> >> On Apr 30, 2009, at 2:26 PM, Amos King wrote:
>>>> >>> vendor/plugins/rspec-rails
>>>> >>>
>>>> >>>
>>>> >>> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `execute'
>>>> >>> `invoke_task'
>>>> >>> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/bin/rake:31
>>>> >>> Looking for something to do? Visit http://ImThere.com
>>>> >
>>>>
>>>> http://rubyforge.org/mailman/listinfo/rspec-users
>>> http://rubyforge.org/mailman/listinfo/rspec-users
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users@rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



--
Amos King
http://dirtyInformation.com
http://github.com/Adkron
--
Looking for something to do? Visit http://ImThere.com
5d38ab152e1e3e219512a9859fcd93af?d=identicon&s=25 David Chelimsky (Guest)
on 2009-05-01 05:11
(Received via mailing list)
On Thu, Apr 30, 2009 at 10:05 PM, Amos King <amos.l.king@gmail.com>
wrote:
> should I go with the plugin.  It doesn't work as a gem now?

I didn't say that :) It still works as a gem (I don't understand why
it's not working for you as a gem), *and* I fixed the problem using it
as a plugin, so you should be able to use it either way now.
F04aeb28129f653b207e8b5d92706096?d=identicon&s=25 Amos King (Guest)
on 2009-05-01 05:24
(Received via mailing list)
I went back to a plugin.  The gem isn't working right now, and their
were some others in the irc channel that had the same issue when they
uninstalled the system gem.  If I change the frozen directory to not
have the version number it works, but rails complains.  So I did just
change the plugin loadpath to load from gems/rspec-1.2.6

That worked.  Now I'm back to  plugin since it works really well for
staying on the edge of the commits, and all around plugins are easier
to handle than rails frozen gems.

Thanks for your help.
Amos

On Thu, Apr 30, 2009 at 10:10 PM, David Chelimsky <dchelimsky@gmail.com>
wrote:
>>> On Thu, Apr 30, 2009 at 9:55 PM, Amos King <amos.l.king@gmail.com> wrote:
>>>>>> with rails?  I would be happy with that if the support for rails gems
>>>>>> >>
>>>>>> >>> %>script/generate rspec
>>>>>> >>> rake aborted!
>>>>>> >>> 
********************************************************************************
>>>>>> >>> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:578:in
>>>>>> >>> /Library/Ruby/Gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `top_level'
>>>>>> >>>
>>>>>> >>> _______________________________________________
>>>>>> >
>>>>>>
>>>>>
>>>>>
>>>> rspec-users mailing list
>> --
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



--
Amos King
http://dirtyInformation.com
http://github.com/Adkron
--
Looking for something to do? Visit http://ImThere.com
This topic is locked and can not be replied to.