buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From as...@apache.org
Subject svn commit: r651757 - in /incubator/buildr/trunk: Rakefile buildr.gemspec
Date Sat, 26 Apr 2008 00:48:37 GMT
Author: assaf
Date: Fri Apr 25 17:48:37 2008
New Revision: 651757

URL: http://svn.apache.org/viewvc?rev=651757&view=rev
Log:
Added buildr.gemspec file

Added:
    incubator/buildr/trunk/buildr.gemspec
Modified:
    incubator/buildr/trunk/Rakefile

Modified: incubator/buildr/trunk/Rakefile
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/Rakefile?rev=651757&r1=651756&r2=651757&view=diff
==============================================================================
--- incubator/buildr/trunk/Rakefile (original)
+++ incubator/buildr/trunk/Rakefile Fri Apr 25 17:48:37 2008
@@ -20,48 +20,19 @@
 def spec(platform = nil)
   @specs ||= {}
   platform ||= RUBY_PLATFORM =~ /java/ ? 'java' : 'ruby'
-  @specs[platform] ||= Gem::Specification.new do |spec|
-    spec.name           = 'buildr'
-    spec.version        = File.read(__FILE__.pathmap('%d/lib/buildr.rb')).scan(/VERSION\s*=\s*(['"])(.*)\1/)[0][1]
-    spec.author         = 'Apache Buildr'
-    spec.email          = 'buildr-user@incubator.apache.org'
-    spec.homepage       = "http://incubator.apache.org/#{spec.name}/"
-    spec.summary        = 'A build system that doesn\'t suck'
-
-    spec.files          = FileList['lib/**/*', 'addon/**/*', 'README', 'CHANGELOG', 'LICENSE',
'NOTICE', 'DISCLAIMER', 'KEYS',
-                                   'Rakefile', 'rakelib/**/*', 'spec/**/*', 'doc/**/*'].to_ary
-    spec.require_paths  = ['lib', 'addon']
-    spec.bindir         = 'bin'                               # Use these for applications.
-    spec.executable     = 'buildr'
-
-    spec.has_rdoc           = true
-    spec.extra_rdoc_files   = ['README', 'CHANGELOG', 'LICENSE', 'NOTICE', 'DISCLAIMER']
-    spec.rdoc_options       << '--title' << "Buildr -- #{spec.summary}" <<
-                               '--main' << 'README' << '--line-numbers' <<
'--inline-source' << '-p' <<
-                               '--webcvs' << 'http://svn.apache.org/repos/asf/incubator/buildr/trunk/'
-    spec.rubyforge_project  = 'buildr'
-
-    spec.platform  = platform
-    # Tested against these dependencies.
-    spec.add_dependency 'rake',                 '~> 0.8'
-    spec.add_dependency 'builder',              '~> 2.1'
-    spec.add_dependency 'net-ssh',              '~> 1.1'
-    spec.add_dependency 'net-sftp',             '~> 1.1'
-    spec.add_dependency 'rubyzip',              '~> 0.9'
-    spec.add_dependency 'highline',             '~> 1.4'
-    spec.add_dependency 'Antwrap',              '~> 0.7'
-    spec.add_dependency 'rspec',                '~> 1.1'
-    spec.add_dependency 'xml-simple',           '~> 1.0'
-    spec.add_dependency 'archive-tar-minitar',  '~> 0.5'
-    spec.add_dependency 'rubyforge',            '~> 0.4'
+  @specs[platform] ||= begin
+    spec = Gem::Specification.load(File.join(File.dirname(__FILE__), 'buildr.gemspec'))
+    spec.platform = platform
     if platform =~ /java/
       spec.add_dependency 'ci_reporter', '~> 1.5'
     else
-      #spec.add_dependency 'rjb',        '~> 1.1', '!= 1.1.3'
+      #spec.add_dependency 'rjb',        '~> 1.1', '!= 1.1.3' # TODO: look at this
       spec.add_dependency 'rjb',         '~> 1.1'
     end
+    spec
   end
 end
+
 
 
 desc 'Compile Java libraries used by Buildr'

Added: incubator/buildr/trunk/buildr.gemspec
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/buildr.gemspec?rev=651757&view=auto
==============================================================================
--- incubator/buildr/trunk/buildr.gemspec (added)
+++ incubator/buildr/trunk/buildr.gemspec Fri Apr 25 17:48:37 2008
@@ -0,0 +1,34 @@
+Gem::Specification.new do |spec|
+  spec.name           = 'buildr'
+  spec.version        = '1.3.0'
+  spec.author         = 'Apache Buildr'
+  spec.email          = "#{spec.name}-user@incubator.apache.org"
+  spec.homepage       = "http://incubator.apache.org/#{spec.name}/"
+  spec.summary        = 'A build system that doesn\'t suck'
+
+  spec.files          = FileList['lib/**/*', 'addon/**/*', 'README', 'CHANGELOG', 'LICENSE',
'NOTICE', 'DISCLAIMER', 'KEYS',
+                                 '*.gemspec', 'Rakefile', 'rakelib/**/*', 'spec/**/*', 'doc/**/*'].to_ary
+  spec.require_paths  = ['lib', 'addon']
+  spec.bindir         = 'bin'                               # Use these for applications.
+  spec.executable     = 'buildr'
+
+  spec.has_rdoc           = true
+  spec.extra_rdoc_files   = ['README', 'CHANGELOG', 'LICENSE', 'NOTICE', 'DISCLAIMER']
+  spec.rdoc_options       << '--title' << "Buildr -- #{spec.summary}" <<
+                             '--main' << 'README' << '--line-numbers' <<
'--inline-source' << '-p' <<
+                             '--webcvs' << 'http://svn.apache.org/repos/asf/incubator/#{spec.name}/trunk/'
+  spec.rubyforge_project  = 'buildr'
+
+  # Tested against these dependencies.
+  spec.add_dependency 'rake',                 '~> 0.8'
+  spec.add_dependency 'builder',              '~> 2.1'
+  spec.add_dependency 'net-ssh',              '~> 1.1'
+  spec.add_dependency 'net-sftp',             '~> 1.1'
+  spec.add_dependency 'rubyzip',              '~> 0.9'
+  spec.add_dependency 'highline',             '~> 1.4'
+  spec.add_dependency 'Antwrap',              '~> 0.7'
+  spec.add_dependency 'rspec',                '~> 1.1'
+  spec.add_dependency 'xml-simple',           '~> 1.0'
+  spec.add_dependency 'archive-tar-minitar',  '~> 0.5'
+  spec.add_dependency 'rubyforge',            '~> 0.4'
+end



Mime
View raw message