Putting the gem building stuff into a gemspec.
This commit is contained in:
		
							parent
							
								
									0d35ac037a
								
							
						
					
					
						commit
						bc994b9fa2
					
				
							
								
								
									
										29
									
								
								Rakefile
									
									
									
									
									
								
							
							
						
						
									
										29
									
								
								Rakefile
									
									
									
									
									
								
							| @ -42,35 +42,6 @@ Rake::RDocTask.new("doc") { |rdoc| | ||||
|   rdoc.rdoc_files.include('lib/**/*.rb') | ||||
| } | ||||
| 
 | ||||
| # Genereate the package | ||||
| spec = Gem::Specification.new do |s| | ||||
| 
 | ||||
|   s.name = 'gpx' | ||||
|   s.version = PKG_VERSION | ||||
|   s.summary = <<-EOF | ||||
|    A basic API for reading and writing GPX files. | ||||
|   EOF | ||||
|   s.description = <<-EOF | ||||
|    A basic API for reading and writing GPX files. | ||||
|   EOF | ||||
| 
 | ||||
|   s.files = PKG_FILES | ||||
| 
 | ||||
|   s.require_path = 'lib' | ||||
|   s.autorequire = 'gpx' | ||||
| 
 | ||||
|   s.has_rdoc = true | ||||
| 
 | ||||
|   s.author = "Doug Fales" | ||||
|   s.email = "doug.fales@gmail.com" | ||||
|   s.homepage = "http://gpx.rubyforge.com/" | ||||
| end | ||||
| 
 | ||||
| Rake::GemPackageTask.new(spec) do |pkg| | ||||
|   pkg.need_zip = true | ||||
|   pkg.need_tar = true | ||||
| end | ||||
| 
 | ||||
| desc "Report code statistics (KLOCs, etc) from the application" | ||||
| task :stats do | ||||
|   require 'code_statistics' | ||||
|  | ||||
							
								
								
									
										16
									
								
								gpx.gemspec
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								gpx.gemspec
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,16 @@ | ||||
| require 'xml/libxml' | ||||
| require 'lib/gpx/gpx' # load this and xml/libxml just to get GPX::VERSION | ||||
| require 'rake'        # For FileList | ||||
| Gem::Specification.new do |s| | ||||
|   s.name = 'gpx' | ||||
|   s.version = GPX::VERSION | ||||
|   s.summary = %q{A basic API for reading and writing GPX files.} | ||||
|   s.description = %q{A basic API for reading and writing GPX files.} | ||||
|   s.files = FileList[ "lib/**/*", "bin/*", "tests/**/*", "[A-Z]*", "Rakefile", "doc/**/*" ] | ||||
|   s.require_path = 'lib' | ||||
|   s.has_rdoc = true | ||||
|   s.author = "Doug Fales" | ||||
|   s.email = "doug.fales@gmail.com" | ||||
|   s.homepage = "http://dougfales.github.com/gpx/" | ||||
|   s.rubyforge_project = "gpx" | ||||
| end | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Doug Fales
						Doug Fales