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/10/20 19:03:22 UTC
svn commit: r706339 - in /incubator/buildr/trunk:
lib/buildr/packaging/artifact.rb spec/packaging/artifact_spec.rb
Author: assaf
Date: Mon Oct 20 10:03:21 2008
New Revision: 706339
URL: http://svn.apache.org/viewvc?rev=706339&view=rev
Log:
Renamed sources_artifact to sources, same naming convention as we used for artifact.pom.
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=706339&r1=706338&r2=706339&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/buildr/packaging/artifact.rb (original)
+++ incubator/buildr/trunk/lib/buildr/packaging/artifact.rb Mon Oct 20 10:03:21 2008
@@ -111,10 +111,10 @@
end
# :call-seq:
- # sources_artifact => Artifact
+ # sources => Artifact
#
# Convenience method that returns the sources artifact corresponding to this artifact.
- def sources_artifact
+ def sources
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=706339&r1=706338&r2=706339&view=diff
==============================================================================
--- incubator/buildr/trunk/spec/packaging/artifact_spec.rb (original)
+++ incubator/buildr/trunk/spec/packaging/artifact_spec.rb Mon Oct 20 10:03:21 2008
@@ -76,7 +76,7 @@
end
it 'should have associated sources artifact' do
- @artifact.sources_artifact.to_hash.should == @artifact.to_hash.merge(:type=>:sources)
+ @artifact.sources.to_hash.should == @artifact.to_hash.merge(:type=>:sources)
end
it 'should download file if file does not exist' do