Saturday, November 24, 2007

[Update1: I tried doing a list of the repository listed here, and it returned nothing.

ruby script/plugin list --source=svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec
ruby script/plugin list --source=http://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec

]

[Update2: I wonder whether the plugin script pays attention to the svn: protocol, or whether it uses something from subversion. I don't have subversion installed, so I don't know.

]

[Update3: I found another rspec on rails tutorial that has the path enclosed in quotes. I'm used to not having to use quotes in powershell, so I tend not to use them unless there are spaces in the name. When I try it with rspec_on_rails (I added a --trace, since it didn't give me output, it gives me the following:

ruby script/plugin install --trace "svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails"
Plugin not found: ["svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails"]

]

Well, first things first. Let's get a rails project set up with rspec as the test framework.

WhatIsThis will be the name of the website, so let's jump into powershell, go to the ruby/rails_apps directory and create the app

rails WhatIsThis

Ah, the beauty of setting up a rails app, as the console just zips by with the creation of my structure.

Let's get rspec installed on rails. I'm taking the recommended approach of installing it as a plugin.

Hmmm... First weirdness. I went to my site directory and executed the following two commands:

ruby script/plugin install svn://rubyforge.org/var/svn/rspect/tags/CURRENT/rspec
ruby script/plugin install svn://rubyforge.org/var/svn/rspect/tags/CURRENT/rspec_on_rails

I generally expect some output, but nothing happened; I just got back to my command prompt. Strange. I also would expect something to show up in vendor/plugin, but nothing was there. I ran script/plugin with no parameters to see some help, and it has an example of getting from an subversion repository, but it uses http: instead of svn:, so I'll try that.

ruby script/plugin install http://rubyforge.org/var/svn/rspect/tags/CURRENT/rspec

Well, at least I got some feedback:

Plugin not found: [http://rubyforge.org/var/svn/rspect/tags/CURRENT/rspec]

Oh, hey, maybe you've noticed that I spelled rspec wrong (it doesn't have a t). Let's try it without a t. I wonder if Aretha Franklin was on the radio, and I just subconsciously added a t. I ran the correctly spelled and it appears that I already have rspec installed (I installed the gem, I don't know if that has anything do with it). 

ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec

already installed: rspec (svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec).  pass --force to reinstall

Let's try the rspec_on_rails install.

ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails

Huh? I am getting no feedback again. Nothing, no "not found" or "already installed." Hmmm... Could it be that I don't have svn locally? Let me try the http option.

ruby script/plugin install http://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails

Nope, got the "Plugin not found" error. Now, I am really confused. I can't even get the "already installed" message again. Talk about frustrating. I wonder what I'm missing here. I notice that there is an rspec_on_rails directory in my vendor/plugins, but it is empty. Should I start over? Let's do that.

del -recurse WhatIsThis
rails WhatIsThis
cd WhatIsThis
ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec (no output came from this command)
ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails (no output came from this command)

I just don't think those last two lines did anything. There is nothing in vendor/plugins, which goes against my expectations.

I ran a ruby script/plugin list, but there is no rspec or anything. I wonder if my powershell needs to be running as administrator. Let's try that. Ran powershell as administrator and executed the plugin install, but it didn't do anything. ARGH!

Well, I have to leave to take care of some stuff, so my first session has ended in frustration. Maybe someone will have some ideas?

Saturday, November 24, 2007 11:31:02 AM (Eastern Standard Time, UTC-05:00)  #    Comments [0]