Rakefile
changeset 9 47425483883e
parent 0 3cc90e88c6ab
child 10 8388c2d1d7af
equal deleted inserted replaced
8:1ad0d5bc5083 9:47425483883e
    13 Hoe.plugin :signing
    13 Hoe.plugin :signing
    14 Hoe.plugin :deveiate
    14 Hoe.plugin :deveiate
    15 Hoe.plugin :bundler
    15 Hoe.plugin :bundler
    16 
    16 
    17 Hoe.plugins.delete :rubyforge
    17 Hoe.plugins.delete :rubyforge
    18 Hoe.plugins.delete :gemcutter
       
    19 
    18 
    20 hoespec = Hoe.spec 'thingfish-metastore-pggraph' do |spec|
    19 hoespec = Hoe.spec 'thingfish-metastore-pggraph' do |spec|
    21 	spec.readme_file = 'README.rdoc'
    20 	spec.readme_file = 'README.md'
    22 	spec.history_file = 'History.rdoc'
    21 	spec.history_file = 'History.md'
    23 	spec.extra_rdoc_files = FileList[ '*.rdoc' ]
    22 	spec.extra_rdoc_files = FileList[ '*.rdoc' ]
    24 	spec.license 'BSD'
    23 	spec.license 'BSD-3-Clause'
       
    24 	spec.urls = {
       
    25 		home: 'https://bitbucket.org/mahlon/thingfish-metastore-pggraph',
       
    26 		code: 'https://bitbucket.org/mahlon/thingfish-metastore-pggraph'
       
    27 	}
    25 
    28 
    26 	if File.directory?( '.hg' )
    29 	if File.directory?( '.hg' )
    27 		spec.spec_extras[:rdoc_options] = ['-f', 'fivefish', '-t', 'Thingfish-Metastore-PgGraph']
    30 		spec.spec_extras[:rdoc_options] = ['-f', 'fivefish', '-t', 'Thingfish-Metastore-PgGraph']
    28 	end
    31 	end
    29 
    32 
    30 	spec.developer 'Michael Granger', 'ged@FaerieMUD.org'
    33 	spec.developer 'Michael Granger', 'ged@FaerieMUD.org'
    31 	spec.developer 'Mahlon E. Smith', 'mahlon@martini.nu'
    34 	spec.developer 'Mahlon E. Smith', 'mahlon@martini.nu'
    32 
    35 
    33 	spec.dependency 'loggability', '~> 0.10'
    36 	spec.dependency 'thingfish', '~> 0.5'
       
    37 	spec.dependency 'loggability', '~> 0.11'
       
    38 	spec.dependency 'configurability', '~> 2.2'
       
    39 	spec.dependency 'sequel', '~> 4.35'
       
    40 	spec.dependency 'pg', '~> 0.19'
    34 
    41 
    35 	spec.dependency 'rspec', '~> 3.0', :developer
    42 	spec.dependency 'hoe-deveiate', '~> 0.8',  :development
       
    43 	spec.dependency 'rspec', '~> 3.0', :development
    36 
    44 
    37 	spec.require_ruby_version( '>=2.0.0' )
    45 	spec.require_ruby_version( '>=2.3.0' )
    38 	spec.hg_sign_tags = true if spec.respond_to?( :hg_sign_tags= )
    46 	spec.hg_sign_tags = true if spec.respond_to?( :hg_sign_tags= )
    39 end
    47 end
    40 
    48 
    41 
    49 
    42 ENV['VERSION'] ||= hoespec.spec.version.to_s
    50 ENV['VERSION'] ||= hoespec.spec.version.to_s
    58 task :gemspec => GEMSPEC
    66 task :gemspec => GEMSPEC
    59 file GEMSPEC => __FILE__ do |task|
    67 file GEMSPEC => __FILE__ do |task|
    60 	spec = $hoespec.spec
    68 	spec = $hoespec.spec
    61 	spec.files.delete( '.gemtest' )
    69 	spec.files.delete( '.gemtest' )
    62 	spec.signing_key = nil
    70 	spec.signing_key = nil
    63 	spec.version = "#{spec.version}.pre#{Time.now.strftime("%Y%m%d%H%M%S")}"
    71 	spec.version = "#{spec.version.bump}.0.pre#{Time.now.strftime("%Y%m%d%H%M%S")}"
    64 	File.open( task.name, 'w' ) do |fh|
    72 	File.open( task.name, 'w' ) do |fh|
    65 		fh.write( spec.to_ruby )
    73 		fh.write( spec.to_ruby )
    66 	end
    74 	end
    67 end
    75 end
    68 
    76 
    69 task :default => :gemspec
    77 task :default => :gemspec
       
    78 CLOBBER.include( GEMSPEC.to_s )
    70 
    79