wordnet-defaultdb 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ ��o�Qd��z�����b3��XS�j�w}�
2
+ ܍V�!"��5q�x,n�uЗ�\�8Q�TW٨��������5,I�������YJ�#�9�B��p��O��$ b>���G�H.�fl�h�E���Q�v�����2#H��Ӆ�f�e�����M��� ��Z���/)�dl[�Vv�K�S T*Ҁѵ��u�B�w'C����HewD��`E$�x1�E$�, }P��G[-p�������H����s��
@@ -0,0 +1,4 @@
1
+ == 1.0.1 [2011-07-14] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ Initial release, based on WordNetSQL 1.0.1.
4
+
@@ -0,0 +1,31 @@
1
+ WordNet Release 3.0
2
+
3
+ This software and database is being provided to you, the LICENSEE, by
4
+ Princeton University under the following license. By obtaining, using
5
+ and/or copying this software and database, you agree that you have
6
+ read, understood, and will comply with these terms and conditions.:
7
+
8
+ Permission to use, copy, modify and distribute this software and
9
+ database and its documentation for any purpose and without fee or
10
+ royalty is hereby granted, provided that you agree to comply with
11
+ the following copyright notice and statements, including the disclaimer,
12
+ and that the same appear on ALL copies of the software, database and
13
+ documentation, including modifications that you make for internal
14
+ use or for distribution.
15
+
16
+ WordNet 3.0 Copyright 2006 by Princeton University. All rights reserved.
17
+
18
+ THIS SOFTWARE AND DATABASE IS PROVIDED "AS IS" AND PRINCETON
19
+ UNIVERSITY MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
20
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PRINCETON
21
+ UNIVERSITY MAKES NO REPRESENTATIONS OR WARRANTIES OF MERCHANT-
22
+ ABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE
23
+ OF THE LICENSED SOFTWARE, DATABASE OR DOCUMENTATION WILL NOT
24
+ INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR
25
+ OTHER RIGHTS.
26
+
27
+ The name of Princeton University or Princeton may not be used in
28
+ advertising or publicity pertaining to distribution of the software
29
+ and/or database. Title to copyright in this software, database and
30
+ any associated documentation shall at all times remain with
31
+ Princeton University and LICENSEE agrees to preserve same.
@@ -0,0 +1,7 @@
1
+ History.rdoc
2
+ LICENSE-WORDNET.txt
3
+ Manifest.txt
4
+ README.rdoc
5
+ Rakefile
6
+ data/wordnet-defaultdb/wordnet30.sqlite
7
+ lib/wordnet-defaultdb.rb
@@ -0,0 +1,55 @@
1
+ # wordnet_defaultdb
2
+
3
+ * http://deveiate.org/projects/Ruby-WordNet/wiki/Databases
4
+
5
+
6
+ ## Description
7
+
8
+ This gem is a container for the default WordNetSQL database files loaded by
9
+ the 'wordnet' gem if you don't have your own installation of the WordNet
10
+ databases. It's mostly just a wrapper around the Sqlite database from:
11
+
12
+ http://sourceforge.net/projects/wnsql/
13
+
14
+ To use it, just install the gem and then create the WordNet::Lexicon with
15
+ no arguments.
16
+
17
+
18
+ ## Installation
19
+
20
+ gem install wordnet-defaultdb
21
+
22
+
23
+ ## License
24
+
25
+ WordNet Release 3.0
26
+
27
+ This software and database is being provided to you, the LICENSEE, by
28
+ Princeton University under the following license. By obtaining, using
29
+ and/or copying this software and database, you agree that you have
30
+ read, understood, and will comply with these terms and conditions.:
31
+
32
+ Permission to use, copy, modify and distribute this software and
33
+ database and its documentation for any purpose and without fee or
34
+ royalty is hereby granted, provided that you agree to comply with
35
+ the following copyright notice and statements, including the disclaimer,
36
+ and that the same appear on ALL copies of the software, database and
37
+ documentation, including modifications that you make for internal
38
+ use or for distribution.
39
+
40
+ WordNet 3.0 Copyright 2006 by Princeton University. All rights reserved.
41
+
42
+ THIS SOFTWARE AND DATABASE IS PROVIDED "AS IS" AND PRINCETON
43
+ UNIVERSITY MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
44
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PRINCETON
45
+ UNIVERSITY MAKES NO REPRESENTATIONS OR WARRANTIES OF MERCHANT-
46
+ ABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE
47
+ OF THE LICENSED SOFTWARE, DATABASE OR DOCUMENTATION WILL NOT
48
+ INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR
49
+ OTHER RIGHTS.
50
+
51
+ The name of Princeton University or Princeton may not be used in
52
+ advertising or publicity pertaining to distribution of the software
53
+ and/or database. Title to copyright in this software, database and
54
+ any associated documentation shall at all times remain with
55
+ Princeton University and LICENSEE agrees to preserve same.
@@ -0,0 +1,145 @@
1
+ #!/usr/bin/env rake
2
+
3
+
4
+ begin
5
+ require 'hoe'
6
+ rescue LoadError
7
+ abort "This Rakefile requires 'hoe' (gem install hoe)"
8
+ end
9
+
10
+ require 'pathname'
11
+ require 'rake/clean'
12
+
13
+ $trace = Rake.application.options.trace
14
+
15
+ WNSQL_VERSION = '1.0.1'
16
+
17
+ # http://downloads.sourceforge.net/project/wnsql/wnsql-1.0.1/wordnet30-sqlite-1.0.1.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fwnsql%2Ffiles%2Fwnsql-1.0.1%2F&ts=1335825137&use_mirror=cdnetworks-us-1
18
+
19
+ WNSQL_BASE_URI = 'http://downloads.sourceforge.net/project/wnsql'
20
+ WNSQL_ZIPFILE = "wordnet30-sqlite-#{WNSQL_VERSION}.zip"
21
+ WNSQL_URI = "#{WNSQL_BASE_URI}/wnsql-#{WNSQL_VERSION}/#{WNSQL_ZIPFILE}"
22
+
23
+ BASEDIR = Pathname( __FILE__ ).dirname.relative_path_from( Pathname.pwd )
24
+ DATADIR = BASEDIR + 'data'
25
+ DBDIR = DATADIR + 'wordnet-defaultdb'
26
+ WNSQL_DB_FILE = DBDIR + 'wordnet30.sqlite'
27
+ WNSQL_LICENSE = BASEDIR + 'LICENSE-WORDNET.txt'
28
+
29
+ Hoe.plugin :mercurial
30
+ Hoe.plugin :signing
31
+
32
+ Hoe.plugins.delete :rubyforge
33
+
34
+ hoespec = Hoe.spec 'wordnet-defaultdb' do
35
+ self.readme_file = 'README.rdoc'
36
+ self.history_file = 'History.rdoc'
37
+ self.extra_rdoc_files = FileList[ '*.rdoc' ]
38
+
39
+ self.developer 'Michael Granger', 'ged@FaerieMUD.org'
40
+
41
+ self.dependency 'wordnet', '~> 1.0.0.pre'
42
+ self.dependency 'sqlite3', '~> 1.3'
43
+ self.dependency 'rubyzip', '~> 0.9', :developer
44
+
45
+ self.spec_extras[:licenses] = ["BSD"]
46
+ self.require_ruby_version( '>=1.8.7' )
47
+ end
48
+
49
+ ENV['VERSION'] ||= hoespec.spec.version.to_s
50
+
51
+ task :default => :gem
52
+
53
+
54
+ ### Make the ChangeLog update if the repo has changed since it was last built
55
+ file '.hg/branch'
56
+ file 'ChangeLog' => '.hg/branch' do |task|
57
+ $stderr.puts "Updating the changelog..."
58
+ content = make_changelog()
59
+ File.open( task.name, 'w', 0644 ) do |fh|
60
+ fh.print( content )
61
+ end
62
+ end
63
+
64
+ # Rebuild the ChangeLog immediately before release
65
+ task :prerelease => 'ChangeLog'
66
+
67
+
68
+ #
69
+ # Tasks for downloading the data file/s
70
+ #
71
+
72
+ ### Download the file at +sourceuri+ via HTTP and write it to +targetfile+.
73
+ def download( sourceuri, targetfile=nil )
74
+ oldsync = $stdout.sync
75
+ $stdout.sync = true
76
+ require 'open-uri'
77
+
78
+ targetpath = Pathname.new( targetfile )
79
+
80
+ $stderr.puts "Downloading %s to %s" % [sourceuri, targetfile]
81
+ $stderr.puts " connecting..." if $trace
82
+ ifh = open( sourceuri ) do |ifh|
83
+ $stderr.puts " connected..." if $trace
84
+ targetpath.open( File::WRONLY|File::TRUNC|File::CREAT, 0644 ) do |ofh|
85
+ $stderr.puts "Downloading..."
86
+ buf = ''
87
+
88
+ while ifh.read( 16384, buf )
89
+ until buf.empty?
90
+ bytes = ofh.write( buf )
91
+ buf.slice!( 0, bytes )
92
+ end
93
+ end
94
+
95
+ $stderr.puts "Done."
96
+ end
97
+
98
+ end
99
+
100
+ return targetpath
101
+ ensure
102
+ $stdout.sync = oldsync
103
+ end
104
+
105
+
106
+ ### Extract the contents of the specified +zipfile+ into the given +targetdir+.
107
+ def unzip( zipfile, targetdir, *files )
108
+ require 'zip/zip'
109
+ targetdir = Pathname( targetdir )
110
+ raise "No such directory: #{targetdir}" unless targetdir.directory?
111
+
112
+ Zip::ZipFile.foreach( zipfile ) do |entry|
113
+ # $stderr.puts " entry is: %p, looking for: %p" % [ entry.name, files ]
114
+ next unless files.empty? || files.include?( entry.name )
115
+ target_path = targetdir + entry.name
116
+ $stderr.puts " extracting: %s" % [ target_path ]
117
+ entry.extract( target_path ) { true }
118
+ files.delete( entry.name )
119
+ break if files.empty?
120
+ end
121
+
122
+ raise "Couldn't unzip: %p: not found in %s" % [ files, zipfile ] unless files.empty?
123
+ end
124
+
125
+
126
+ # Download the database zipfile
127
+ file WNSQL_ZIPFILE.to_s do |task|
128
+ download WNSQL_URI, task.name
129
+ end
130
+ CLOBBER.include( WNSQL_ZIPFILE.to_s )
131
+
132
+ # Extract the database from the downloaded zipfile
133
+ file WNSQL_DB_FILE.to_s => [WNSQL_ZIPFILE.to_s] do |task|
134
+ mkdir_p( WNSQL_DB_FILE.dirname, :verbose => $trace )
135
+ unzip task.prerequisites.first, WNSQL_DB_FILE.dirname.to_s, WNSQL_DB_FILE.basename.to_s
136
+ end
137
+ CLOBBER.include( WNSQL_DB_FILE.to_s, DATADIR.to_s )
138
+
139
+ # Extract the license file from the downloaded zipfile
140
+ file WNSQL_LICENSE.to_s => [WNSQL_ZIPFILE.to_s] do |task|
141
+ mkdir_p( WNSQL_LICENSE.dirname, :verbose => $trace )
142
+ unzip task.prerequisites.first, WNSQL_LICENSE.dirname.to_s, WNSQL_LICENSE.basename.to_s
143
+ end
144
+ CLOBBER.include( WNSQL_LICENSE.to_s )
145
+
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # This gem is a container for the default WordNetSQL database files required for
4
+ # the 'wordnet' gem. It's mostly just a wrapper around the Sqlite database from:
5
+ #
6
+ # http://sourceforge.net/projects/wnsql/
7
+ #
8
+ # == Author/s
9
+ #
10
+ # * Michael Granger <ged@FaerieMUD.org>
11
+ #
12
+ module WordNet
13
+ module DefaultDB
14
+
15
+ # Library version constant
16
+ VERSION = '0.99.0'
17
+
18
+ # Version-control revision constant
19
+ REVISION = %q$Revision: 1188ab2f44d3 $
20
+
21
+ end # module DefaultDB
22
+ end # module Wordnet
23
+
metadata ADDED
@@ -0,0 +1,202 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wordnet-defaultdb
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Michael Granger
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain:
12
+ - !binary |-
13
+ LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURMRENDQWhTZ0F3SUJB
14
+ Z0lCQURBTkJna3Foa2lHOXcwQkFRVUZBREE4TVF3d0NnWURWUVFEREFOblpX
15
+ UXgKRnpBVkJnb0praWFKay9Jc1pBRVpGZ2RmWVdWeWFXVmZNUk13RVFZS0Na
16
+ SW1pWlB5TEdRQkdSWURiM0puTUI0WApEVEV3TURreE5qRTBORGcxTVZvWERU
17
+ RXhNRGt4TmpFME5EZzFNVm93UERFTU1Bb0dBMVVFQXd3RFoyVmtNUmN3CkZR
18
+ WUtDWkltaVpQeUxHUUJHUllIWDJGbGNtbGxYekVUTUJFR0NnbVNKb21UOGl4
19
+ a0FSa1dBMjl5WnpDQ0FTSXcKRFFZSktvWklodmNOQVFFQkJRQURnZ0VQQURD
20
+ Q0FRb0NnZ0VCQUx5Ly9CRnhDMWYvY1BTbnd0SkJXb0ZpRnJpcgpoN1JpY0kr
21
+ am9xL29jVlhRcUk0VERXUHlGLzh0cWt2dCtyRDk5WDlxczJZZVI4Q1UvWWlJ
22
+ c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otLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
39
+ date: 2012-05-01 00:00:00.000000000 Z
40
+ dependencies:
41
+ - !ruby/object:Gem::Dependency
42
+ name: wordnet
43
+ requirement: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ~>
47
+ - !ruby/object:Gem::Version
48
+ version: 1.0.0.pre
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ~>
55
+ - !ruby/object:Gem::Version
56
+ version: 1.0.0.pre
57
+ - !ruby/object:Gem::Dependency
58
+ name: sqlite3
59
+ requirement: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ~>
63
+ - !ruby/object:Gem::Version
64
+ version: '1.3'
65
+ type: :runtime
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ~>
71
+ - !ruby/object:Gem::Version
72
+ version: '1.3'
73
+ - !ruby/object:Gem::Dependency
74
+ name: hoe-mercurial
75
+ requirement: !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ~>
79
+ - !ruby/object:Gem::Version
80
+ version: 1.4.0
81
+ type: :development
82
+ prerelease: false
83
+ version_requirements: !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ~>
87
+ - !ruby/object:Gem::Version
88
+ version: 1.4.0
89
+ - !ruby/object:Gem::Dependency
90
+ name: hoe-highline
91
+ requirement: !ruby/object:Gem::Requirement
92
+ none: false
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 0.0.1
97
+ type: :development
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ~>
103
+ - !ruby/object:Gem::Version
104
+ version: 0.0.1
105
+ - !ruby/object:Gem::Dependency
106
+ name: rdoc
107
+ requirement: !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ~>
111
+ - !ruby/object:Gem::Version
112
+ version: '3.10'
113
+ type: :development
114
+ prerelease: false
115
+ version_requirements: !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ~>
119
+ - !ruby/object:Gem::Version
120
+ version: '3.10'
121
+ - !ruby/object:Gem::Dependency
122
+ name: rubyzip
123
+ requirement: !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ~>
127
+ - !ruby/object:Gem::Version
128
+ version: '0.9'
129
+ type: :development
130
+ prerelease: false
131
+ version_requirements: !ruby/object:Gem::Requirement
132
+ none: false
133
+ requirements:
134
+ - - ~>
135
+ - !ruby/object:Gem::Version
136
+ version: '0.9'
137
+ - !ruby/object:Gem::Dependency
138
+ name: hoe
139
+ requirement: !ruby/object:Gem::Requirement
140
+ none: false
141
+ requirements:
142
+ - - ~>
143
+ - !ruby/object:Gem::Version
144
+ version: '3.0'
145
+ type: :development
146
+ prerelease: false
147
+ version_requirements: !ruby/object:Gem::Requirement
148
+ none: false
149
+ requirements:
150
+ - - ~>
151
+ - !ruby/object:Gem::Version
152
+ version: '3.0'
153
+ description: ! "This gem is a container for the default WordNetSQL database files
154
+ loaded by \nthe 'wordnet' gem if you don't have your own installation of the WordNet
155
+ \ndatabases. It's mostly just a wrapper around the Sqlite database from:\n\n http://sourceforge.net/projects/wnsql/\n\nTo
156
+ use it, just install the gem and then create the WordNet::Lexicon with\nno arguments."
157
+ email:
158
+ - ged@FaerieMUD.org
159
+ executables: []
160
+ extensions: []
161
+ extra_rdoc_files:
162
+ - History.rdoc
163
+ - LICENSE-WORDNET.txt
164
+ - Manifest.txt
165
+ - README.rdoc
166
+ files:
167
+ - History.rdoc
168
+ - LICENSE-WORDNET.txt
169
+ - Manifest.txt
170
+ - README.rdoc
171
+ - Rakefile
172
+ - data/wordnet-defaultdb/wordnet30.sqlite
173
+ - lib/wordnet-defaultdb.rb
174
+ homepage: http://deveiate.org/projects/Ruby-WordNet/wiki/Databases
175
+ licenses:
176
+ - BSD
177
+ post_install_message:
178
+ rdoc_options:
179
+ - --main
180
+ - README.rdoc
181
+ require_paths:
182
+ - lib
183
+ required_ruby_version: !ruby/object:Gem::Requirement
184
+ none: false
185
+ requirements:
186
+ - - ! '>='
187
+ - !ruby/object:Gem::Version
188
+ version: 1.8.7
189
+ required_rubygems_version: !ruby/object:Gem::Requirement
190
+ none: false
191
+ requirements:
192
+ - - ! '>='
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ requirements: []
196
+ rubyforge_project: wordnet-defaultdb
197
+ rubygems_version: 1.8.21
198
+ signing_key:
199
+ specification_version: 3
200
+ summary: This gem is a container for the default WordNetSQL database files loaded
201
+ by the 'wordnet' gem if you don't have your own installation of the WordNet databases
202
+ test_files: []
Binary file