[rspec-users] submitting a patch

Scott Taylor mailing_lists at railsnewbie.com
Tue Mar 20 02:23:39 EDT 2007

I've created a short patch so that spec.opts can use a single line  
(or multiple lines for backwards compatibility) for options.  I've  
run the specs against spec:trunk

I have two questions:

1.  I've run rake pre_commit, but after the specs are done running, I  
get this error:

rake aborted!
ERROR while running webgen: /opt/local/lib/ruby/site_ruby/1.8/ 
rubygems/custom_require.rb:27:in `gem_original_require': no such file  
to load -- webgen/plugins/tags/tags (LoadError)
         from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ 
custom_require.rb:27:in `require'
         from /Users/smtlaissezfaire/proj/ruby/projects/rspec/trunk/ 
doc/plugin/version.rb:1:in `load_plugin'
         from /opt/local/lib/ruby/gems/1.8/gems/webgen-0.4.2/lib/ 
webgen/plugin.rb:224:in `load_from_file'
         from /opt/local/lib/ruby/gems/1.8/gems/webgen-0.4.2/lib/ 
webgen/plugin.rb:223:in `catch'
         from /opt/local/lib/ruby/gems/1.8/gems/webgen-0.4.2/lib/ 
webgen/plugin.rb:223:in `load_from_file'
         from /opt/local/lib/ruby/gems/1.8/gems/webgen-0.4.2/lib/ 
webgen/plugin.rb:237:in `load_from_block'
         from /opt/local/lib/ruby/gems/1.8/gems/webgen-0.4.2/lib/ 
webgen/plugin.rb:237:in `catch'
         from /opt/local/lib/ruby/gems/1.8/gems/webgen-0.4.2/lib/ 
webgen/plugin.rb:237:in `load_from_block'
          ... 13 levels...
         from /opt/local/lib/ruby/gems/1.8/gems/webgen-0.4.2/lib/ 
webgen/cli.rb:454:in `cli_main'
         from /opt/local/lib/ruby/gems/1.8/gems/webgen-0.4.2/bin/ 
         from /opt/local/bin/webgen:16:in `load'
         from /opt/local/bin/webgen:16

So - Is this some incompatiblity between the newer version of ruby?   
I've installed all of the following gems (as the docs say):

* rake          # Runs the build script
* rcov          # Verifies that the code is 100% covered by specs
* webgen        # Generates the static HTML website
* RedCloth      # Required by webgen
* syntax        # Required by our own custom webgen extension to  
highlight ruby code
* diff-lcs      # Required if you use the --diff switch
* meta_project  # Required in order to make releases at RubyForge
* heckle        # Required if you use the --heckle switch

What am I missing?

2. The website says to include docs.  This is a relatively minor  
change.  Should I just put a comment in front of the methods  
indicating the changes, in typical rdoc style?


Scott Taylor

More information about the rspec-users mailing list