Commits

Michael Granger committed 47e042f

Updating dependencies, adding Gemfile

Comments (0)

Files changed (5)

 docs/.*\.dump$
 ^release\.notes$
 ^doc/
+Gemfile.lock
-hoe-deveiate -v0.1.1
-linkparser -v1.1.3
+hoe-deveiate -v0.3.0
+hoe-bundler -v1.2.0
+linkparser -v1.1.4
 simplecov -v0.6.4
 wordnet -v1.0.0
+wordnet-defaultdb -v1.0.1
 ruby-stemmer -v0.9.3
 
 [ source.ruby ]
 disableIndentCorrections = true
+tabSize = 4
+softTabs = false
 
+[ source.ruby.rspec ]
+tabSize = 4
+softTabs = false
+
+
+# -*- ruby -*-
+
+# DO NOT EDIT THIS FILE. Instead, edit Rakefile, and run `rake bundler:gemfile`.
+
+source "https://rubygems.org/"
+
+gem "loggability", "~>0.7"
+
+gem "hoe-mercurial", "~>1.4.0", :group => [:development, :test]
+gem "hoe-highline", "~>0.1.0", :group => [:development, :test]
+gem "rdoc", "~>4.0", :group => [:development, :test]
+gem "hoe-deveiate", "~>0.3", :group => [:development, :test]
+gem "hoe-bundler", "~>1.2", :group => [:development, :test]
+gem "linkparser", "~>1.1", :group => [:development, :test]
+gem "wordnet", "~>1.0", :group => [:development, :test]
+gem "wordnet-defaultdb", "~>1.0", :group => [:development, :test]
+gem "ruby-stemmer", "~>0.9", :group => [:development, :test]
+gem "hoe", "~>3.7", :group => [:development, :test]
+
+# vim: syntax=ruby
 #!/usr/bin/env rake
 
-require 'hoe'
+begin
+	require 'rspec'
+	require 'rspec/core/rake_task'
+rescue LoadError
+	abort "This Rakefile requires RSpec. Try again after doing 'gem install rspec'"
+end
+
+begin
+	require 'hoe'
+rescue LoadError
+	abort "This Rakefile requires Hoe. Try again after doing 'gem install hoe'"
+end
+
+# The path to the generated .gemspec file
+GEMSPEC = '.gemspec'
 
 Hoe.plugin :mercurial
+Hoe.plugin :bundler
+Hoe.plugin :publish
 Hoe.plugin :signing
 
 Hoe.plugins.delete :rubyforge
 
-hoespec = Hoe.spec 'linguistics' do
-	self.name = 'linguistics'
-	self.readme_file = 'README.rdoc'
-	self.history_file = 'History.rdoc'
-	self.extra_rdoc_files = FileList[ '*.rdoc' ]
+hoespec = Hoe.spec 'linguistics' do |spec|
+	spec.name = 'linguistics'
+	spec.readme_file = 'README.rdoc'
+	spec.history_file = 'History.rdoc'
+	spec.extra_rdoc_files = FileList[ '*.rdoc' ]
+	spec.license 'BSD'
 
-	self.developer 'Michael Granger', 'ged@FaerieMUD.org'
+	spec.developer 'Michael Granger', 'ged@FaerieMUD.org'
 
-	self.dependency 'loggability', '~> 0.5'
+	spec.dependency 'loggability', '~> 0.7'
 
-	self.dependency 'hoe-deveiate', '~> 0.1', :development
-	self.dependency 'linkparser', '~> 1.1', :development
-	self.dependency 'wordnet', '~> 0.99', :development
-	self.dependency 'ruby-stemmer', '~> 0.9', :development
+	spec.dependency 'hoe-deveiate', '~> 0.3', :development
+	spec.dependency 'hoe-bundler', '~> 1.2', :development
+	spec.dependency 'linkparser', '~> 1.1', :development
+	spec.dependency 'wordnet', '~> 1.0', :development
+	spec.dependency 'wordnet-defaultdb', '~> 1.0', :development
+	spec.dependency 'ruby-stemmer', '~> 0.9', :development
 
-	self.spec_extras[:licenses] = ["BSD"]
-	self.spec_extras[:rdoc_options] = ['-f', 'fivefish', '-t', 'Ruby Linguistics Toolkit']
-	self.spec_extras[:post_install_message] = [
+	spec.spec_extras[:rdoc_options] = ['-f', 'fivefish', '-t', 'Ruby Linguistics Toolkit']
+	spec.spec_extras[:post_install_message] = [
 			"This library also presents tie-ins for the 'linkparser' and",
 			"'wordnet' libraries, which you can enable by installing the",
 			"gems of the same name."
 		  ].join( "\n" )
 
-	self.require_ruby_version( '>=1.9.3' )
-	self.hg_sign_tags = true if self.respond_to?( :hg_sign_tags= )
-	self.check_history_on_release = true if self.respond_to?( :check_history_on_release= )
+	spec.require_ruby_version( '>=1.9.3' )
+	spec.hg_sign_tags = true if spec.respond_to?( :hg_sign_tags= )
+	spec.check_history_on_release = true if spec.respond_to?( :check_history_on_release= )
 
-	self.rdoc_locations << "deveiate:/usr/local/www/public/code/#{remote_rdoc_dir}"
+	spec.rdoc_locations << "deveiate:/usr/local/www/public/code/#{remote_rdoc_dir}"
 end
 
 ENV['VERSION'] ||= hoespec.spec.version.to_s
 	ENV["COVERAGE"] = 'yes'
 	Rake::Task[:spec].invoke
 end
+
+
+desc "generate a gemspec from your Hoe.spec"
+file GEMSPEC => 'Rakefile' do |task|
+	spec = hoespec.spec.dup
+	spec.files.delete( '.gemtest' )
+	spec.version = "#{spec.version}.pre.#{Time.now.strftime("%Y%m%d%H%M%S")}"
+	File.open( task.name, 'w' ) do |fh|
+		fh.write( spec.to_ruby )
+	end
+end
+