Commits

Michael Granger committed a7cda4b

Prep for release.

  • Participants
  • Parent commits b554ff3

Comments (0)

Files changed (7)

File History.rdoc

-== v2.0.0 [2011-11-01] Michael Granger  <ged@FaerieMUD.org>
- 
+== v2.0.0 [2012-10-10] Michael Granger  <ged@FaerieMUD.org>
+
 Rewritten to be more modular, easier to extend and maintain, and to work under
 1.9.
- 
+
 
 === v1.0.9 [2011-09-01] Michael Granger  <ged@FaerieMUD.org>
 

File Manifest.txt

 lib/linguistics/en/numbers.rb
 lib/linguistics/en/participles.rb
 lib/linguistics/en/pluralization.rb
+lib/linguistics/en/stemmer.rb
 lib/linguistics/en/titlecase.rb
 lib/linguistics/en/wordnet.rb
 lib/linguistics/inflector.rb
 spec/linguistics/en/numbers_spec.rb
 spec/linguistics/en/participles_spec.rb
 spec/linguistics/en/pluralization_spec.rb
+spec/linguistics/en/stemmer_spec.rb
 spec/linguistics/en/titlecase_spec.rb
 spec/linguistics/en/wordnet_spec.rb
 spec/linguistics/en_spec.rb

File lib/linguistics.rb

 		end
 
 		# Load in plugins for the language
-		Gem.find_files( "linguistics/#{language}/**.rb" ).each do |extension|
+		Gem.find_files( "linguistics/#{language}/*.rb" ).each do |extension|
+			next if extension.include?( '/spec/' ) # Skip specs
 			extension.sub!( %r{.*/linguistics/}, 'linguistics/' )
 			self.log.debug "  trying to load #{language_entry[:eng_name]} extension %p" % [ extension ]
 			begin

File lib/linguistics/en/stemmer.rb

 #!/usr/bin/env ruby
 
+require 'linguistics' unless defined?( Linguistics )
 require 'linguistics/en' unless defined?( Linguistics::EN )
 
 # Ruby-Stemmer support for the English-language Linguistics module. It

File spec/lib/helpers.rb

 require 'spec/lib/constants'
 require 'loggability/spechelpers'
 
-
 ### Mock with RSpec
 RSpec.configure do |c|
 	c.mock_with( :rspec )

File spec/linguistics/en/articles_spec.rb

 describe Linguistics::EN::Articles do
 
 	before( :all ) do
-		setup_logging( :fatal )
+		setup_logging()
 		Linguistics.use( :en )
 	end
 

File spec/linguistics/en/stemmer_spec.rb

 require 'spec/lib/helpers'
 
 require 'linguistics'
+require 'linguistics/en'
 require 'linguistics/en/stemmer'
 
 
 describe Linguistics::EN::Stemmer do
 
 	before( :all ) do
-		setup_logging( :debug )
+		setup_logging()
 		Linguistics.use( :en )
 	end
 
 		before( :all ) do
 			# If the system *does* have stemmer support, pretend it doesn't.
 			if Linguistics::EN.has_stemmer?
-				error = LoadError.new( "no such file to load -- lingua/stemmer" )
+				error = LoadError.new( "simulated exception: no such file to load -- lingua/stemmer" )
 				Linguistics::EN::Stemmer.instance_variable_set( :@has_stemmer, false )
 				Linguistics::EN::Stemmer.instance_variable_set( :@stemmer_error, error )
 			end