buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boisv...@apache.org
Subject svn commit: r902243 - in /buildr/trunk: CHANGELOG lib/buildr/packaging/package.rb
Date Fri, 22 Jan 2010 19:53:03 GMT
Author: boisvert
Date: Fri Jan 22 19:53:02 2010
New Revision: 902243

URL: http://svn.apache.org/viewvc?rev=902243&view=rev
Log:
BUILDR-364 Package spec should be set to a Symbol when :file is used (Klaas Prause)


Modified:
    buildr/trunk/CHANGELOG
    buildr/trunk/lib/buildr/packaging/package.rb

Modified: buildr/trunk/CHANGELOG
URL: http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=902243&r1=902242&r2=902243&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Fri Jan 22 19:53:02 2010
@@ -39,6 +39,8 @@
 * Fixed:  BUILDR-361 Generate Eclipse .project file even if project has no
           nature.  Also prevent generation of .project if project has
           children. (Antoine Toulme)
+* Fixed:  BUILDR-364 Package spec should be set to a Symbol when :file is
+          used (Klaas Prause)
 * Fixed:  Fail-fast if package.with() or include() called with nil values
 * Fixed:  Failures not reported correctly for ScalaTest (Alex Eagle)
 * Fixed:  Test dependencies should include test compile dependencies

Modified: buildr/trunk/lib/buildr/packaging/package.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/packaging/package.rb?rev=902243&r1=902242&r2=902243&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/packaging/package.rb (original)
+++ buildr/trunk/lib/buildr/packaging/package.rb Fri Jan 22 19:53:02 2010
@@ -135,7 +135,7 @@
       no_options = spec.empty? # since spec is mutated
       if spec[:file]
         rake_check_options spec, :file, :type
-        spec[:type] = args.shift || spec[:type] || spec[:file].split('.').last
+        spec[:type] = args.shift || spec[:type] || spec[:file].split('.').last.to_sym
         file_name = spec[:file]
       else
         rake_check_options spec, *ActsAsArtifact::ARTIFACT_ATTRIBUTES



Mime
View raw message