Author: assaf
Date: Mon Oct 20 14:10:21 2008
New Revision: 706414

URL: http://svn.apache.org/viewvc?rev=706414&view=rev
Log:
Back to sources_artifact.  I forgot that source comes from sources, and we 
might want to use rules in the future with artifacts, so can't override that 
method.

Modified:
    incubator/buildr/trunk/lib/buildr/packaging/artifact.rb
    incubator/buildr/trunk/spec/packaging/artifact_spec.rb

Modified: incubator/buildr/trunk/lib/buildr/packaging/artifact.rb
URL: 
http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/buildr/packaging/artifact.rb?rev=706414&r1=706413&r2=706414&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/buildr/packaging/artifact.rb (original)
+++ incubator/buildr/trunk/lib/buildr/packaging/artifact.rb Mon Oct 20 14:10:21 
2008
@@ -111,10 +111,10 @@
     end
     
     # :call-seq:
-    #   sources => Artifact
+    #   sources_artifact => Artifact
     # 
     # Convenience method that returns the sources artifact corresponding to 
this artifact.
-    def sources
+    def sources_artifact
       return self if type == :sources
       Buildr.artifact(:group=>group, :id=>id, :version=>version, 
:type=>:sources)
     end

Modified: incubator/buildr/trunk/spec/packaging/artifact_spec.rb
URL: 
http://svn.apache.org/viewvc/incubator/buildr/trunk/spec/packaging/artifact_spec.rb?rev=706414&r1=706413&r2=706414&view=diff
==============================================================================
--- incubator/buildr/trunk/spec/packaging/artifact_spec.rb (original)
+++ incubator/buildr/trunk/spec/packaging/artifact_spec.rb Mon Oct 20 14:10:21 
2008
@@ -76,7 +76,7 @@
   end
   
   it 'should have associated sources artifact' do
-    @artifact.sources.to_hash.should == 
@artifact.to_hash.merge(:type=>:sources)
+    @artifact.sources_artifact.to_hash.should == 
@artifact.to_hash.merge(:type=>:sources)
   end
 
   it 'should download file if file does not exist' do


Reply via email to