Changeset 87
- Timestamp:
- 07/08/08 08:07:04 (5 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 removed
- 24 modified
- 2 copied
-
. (modified) (1 prop)
-
Rakefile (modified) (3 diffs, 1 prop)
-
convertdb.rb (modified) (4 diffs, 1 prop)
-
docs/makedocs.rb (modified) (1 prop)
-
examples/addLacedBoots.rb (modified) (1 prop)
-
examples/clothesWithCollars.rb (modified) (1 prop)
-
examples/clothesWithTongues.rb (modified) (1 prop)
-
examples/distance.rb (modified) (1 prop)
-
examples/domainTree.rb (modified) (1 prop)
-
examples/gcs.rb (modified) (1 prop)
-
examples/holonymTree.rb (modified) (1 prop)
-
examples/hypernymTree.rb (modified) (1 prop)
-
examples/hyponymTree.rb (modified) (1 prop)
-
examples/memberTree.rb (modified) (1 prop)
-
examples/meronymTree.rb (modified) (1 prop)
-
experiments/unhandled_pointer_types.rb (modified) (1 prop)
-
install.rb (deleted)
-
lib/wordnet.rb (modified) (1 prop)
-
lib/wordnet/constants.rb (modified) (1 prop)
-
lib/wordnet/lexicon.rb (modified) (1 prop)
-
lib/wordnet/synset.rb (modified) (1 prop)
-
makedist.rb (modified) (2 diffs, 1 prop)
-
rake/svn.rb (modified) (1 diff)
-
redist/bdb-0.5.9.tar.bz2 (deleted)
-
redist/bdb-0.6.5.tar.gz (added)
-
spec/linguawordnet.tests.rb (copied) (copied from trunk/tests/linguawordnet.tests.rb) (1 prop)
-
spec/wordnet/lexicon_spec.rb (modified) (1 prop)
-
spec/wordnet/synset.tests.rb (copied) (copied from trunk/tests/synset.tests.rb) (1 prop)
-
test.rb (deleted)
-
tests (deleted)
-
utils.rb (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 4 4 Ruby-WordNet-* 5 5 commit-msg.txt 6 WordNet-*
-
- Property svn:ignore
-
trunk/Rakefile
- Property svn:keywords set to Date Rev Author URL Id
r86 r87 35 35 PKGDIR = BASEDIR + 'pkg' 36 36 37 RAKE_TASKDIR = BASEDIR + 'rake' 37 38 ARTIFACTS_DIR = Pathname.new( ENV['CC_BUILD_ARTIFACTS'] || '' ) 38 39 39 TEXT_FILES = %w( Rakefile README LICENSE LICENSE.txt).40 TEXT_FILES = %w( Rakefile ChangeLog INSTALL README LICENSE ). 40 41 collect {|filename| BASEDIR + filename } 42 43 BUILD_FILES = %w( convertdb.rb utils.rb ) 41 44 42 45 SPECDIR = BASEDIR + 'spec' … … 51 54 RELEASE_FILES = TEXT_FILES + LIB_FILES + SPEC_FILES 52 55 53 require RAKE DIR + 'helpers'56 require RAKE_TASKDIR + 'helpers.rb' 54 57 55 58 ### Package constants … … 60 63 RELEASE_NAME = "REL #{PKG_VERSION}" 61 64 62 # Load task plugins 63 Pathname.glob( RAKEDIR + '*.rb' ).each do |tasklib| 64 next if tasklib =~ %r{/helpers.rb$} 65 require tasklib 66 end 65 ### Load task libraries 66 require RAKE_TASKDIR + 'svn.rb' 67 require RAKE_TASKDIR + 'verifytask.rb' 68 Pathname.glob( RAKE_TASKDIR + '*.rb' ).each do |tasklib| 69 next if tasklib =~ %r{/(helpers|svn|verifytask)\.rb$} 70 begin 71 require tasklib 72 rescue ScriptError => err 73 fail "Task library '%s' failed to load: %s: %s" % 74 [ tasklib, err.class.name, err.message ] 75 trace "Backtrace: \n " + err.backtrace.join( "\n " ) 76 rescue => err 77 log "Task library '%s' failed to load: %s: %s. Some tasks may not be available." % 78 [ tasklib, err.class.name, err.message ] 79 trace "Backtrace: \n " + err.backtrace.join( "\n " ) 80 end 81 end 82 67 83 68 84 if Rake.application.options.trace -
trunk/convertdb.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
r86 r87 75 75 # Temporary location for the lexicon data files 76 76 BuildDir = Pathname.new( __FILE__ ).expand_path.dirname + 77 Pathname.new( WordNet::Lexicon::D efaultDbEnv).basename77 Pathname.new( WordNet::Lexicon::DEFAULT_DB_ENV ).basename 78 78 79 79 … … 90 90 "used by Ruby-WordNet. This will not affect existing WordNet files,\n"\ 91 91 "but will require up to 40Mb of disk space.\n" 92 exit unless /^y/i =~ prompt WithDefault("Continue?", "y")92 exit unless /^y/i =~ prompt_with_default("Continue?", "y") 93 93 94 94 # Open the database and check to be sure it's empty. Confirm overwrite if … … 98 98 "will be overwritten.\n" 99 99 abort( "user cancelled." ) unless 100 /^y/i =~ prompt WithDefault( "Continue?", "n" )100 /^y/i =~ prompt_with_default( "Continue?", "n" ) 101 101 BuildDir.rmtree 102 102 end … … 104 104 # Find the source data files 105 105 if ARGV.empty? 106 default = nil 107 108 if wndirs = Pathname.glob( Pathname.getwd + 'WordNet-*' ) 109 default = wndirs.first 110 else 111 default = '/usr/local/WordNet-3.0' 112 end 106 113 107 114 # :TODO: Do some more intelligent searching here 108 115 message "Where can I find the WordNet data files?\n" 109 datadir = prompt WithDefault( "Data directory", "/usr/local/WordNet-2.1/dict" )116 datadir = prompt_with_default( "Data directory", default + "dict" ) 110 117 else 111 118 datadir = ARGV.shift 112 119 end 113 114 abort( "Directory '#{datadir}' does not exist" ) unless File::exists?( datadir ) 115 abort( " '#{datadir}' is not a directory" ) unless File::directory?( datadir )116 testfile = File::join(datadir, "data.noun")117 abort( "'#{datadir}' doesn't seem to contain the necessary files.") unless118 File::exists?( testfile )120 datadir = Pathname.new( datadir ) 121 122 abort( "Directory '#{datadir}' does not exist" ) unless datadir.exist? 123 abort( "'#{datadir}' is not a directory" ) unless datadir.directory? 124 testfile = datadir + "data.noun" 125 abort( "'#{datadir}' doesn't seem to contain the necessary files.") unless testfile.exist? 119 126 120 127 # Open the lexicon readwrite into the temporary datadir -
trunk/docs/makedocs.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/examples/addLacedBoots.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/examples/clothesWithCollars.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/examples/clothesWithTongues.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/examples/distance.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/examples/domainTree.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/examples/gcs.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/examples/holonymTree.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/examples/hypernymTree.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/examples/hyponymTree.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/examples/memberTree.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/examples/meronymTree.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/experiments/unhandled_pointer_types.rb
- Property svn:keywords changed from Id URL Rev to Date Rev Author URL Id
-
trunk/lib/wordnet.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/lib/wordnet/constants.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/lib/wordnet/lexicon.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/lib/wordnet/synset.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/makedist.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
r62 r87 24 24 25 25 # SVN Revision 26 SVNRev = %q$Rev : 13$26 SVNRev = %q$Rev$ 27 27 28 28 # SVN Id … … 30 30 31 31 # SVN URL 32 SVNURL = %q$URL : svn+ssh://svn.FaerieMUD.org/usr/local/svn/project-utils/trunk/makedist.rb$32 SVNURL = %q$URL$ 33 33 34 34 $Programs = { -
trunk/rake/svn.rb
r86 r87 260 260 261 261 desc "Check in all the changes in your current working copy" 262 task :checkin => ['svn:update', ' coverage:verify', 'svn:fix_keywords', COMMIT_MSG_FILE] do262 task :checkin => ['svn:update', 'svn:fix_keywords', COMMIT_MSG_FILE] do 263 263 targets = get_target_args() 264 264 $deferr.puts '---', File.read( COMMIT_MSG_FILE ), '---' -
trunk/spec/linguawordnet.tests.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/spec/wordnet/lexicon_spec.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/spec/wordnet/synset.tests.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
-
trunk/utils.rb
- Property svn:keywords changed from author date id revision to Date Rev Author URL Id
