You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by as...@apache.org on 2008/11/06 22:10:39 UTC
svn commit: r711977 - /incubator/buildr/trunk/lib/buildr/core/project.rb
Author: assaf
Date: Thu Nov 6 13:10:33 2008
New Revision: 711977
URL: http://svn.apache.org/viewvc?rev=711977&view=rev
Log:
Apparently some old specs use symbols for project names, make sure symbols are handled as strings.
Introduced when fixing BUILDR-175.
Modified:
incubator/buildr/trunk/lib/buildr/core/project.rb
Modified: incubator/buildr/trunk/lib/buildr/core/project.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/buildr/core/project.rb?rev=711977&r1=711976&r2=711977&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/buildr/core/project.rb (original)
+++ incubator/buildr/trunk/lib/buildr/core/project.rb Thu Nov 6 13:10:33 2008
@@ -240,7 +240,7 @@
rake_check_options options, :scope if options
raise ArgumentError, 'Only one project name at a time' unless args.size == 1
@projects ||= {}
- name = args.first
+ name = args.first.to_s
# Make sure parent project is evaluated (e.g. if looking for foo:bar, find foo first)
unless @projects[name]
parts = name.split(':')