linguistics 1.0.8 → 1.0.9

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.
data/rake/testing.rb CHANGED
@@ -16,7 +16,7 @@ end
16
16
  SPEC_FILES = [] unless defined?( SPEC_FILES )
17
17
  TEST_FILES = [] unless defined?( TEST_FILES )
18
18
 
19
- COMMON_SPEC_OPTS = ['-Du'] unless defined?( COMMON_SPEC_OPTS )
19
+ COMMON_RSPEC_OPTS = [] unless defined?( COMMON_RSPEC_OPTS )
20
20
 
21
21
  COVERAGE_TARGETDIR = BASEDIR + 'coverage' unless defined?( COVERAGE_TARGETDIR )
22
22
  RCOV_EXCLUDES = 'spec,tests,/Library/Ruby,/var/lib,/usr/local/lib' unless
@@ -39,149 +39,114 @@ end
39
39
 
40
40
  ### RSpec specifications
41
41
  begin
42
- gem 'rspec', '>= 1.1.3'
42
+ gem 'rspec', '>= 2.0.0'
43
43
 
44
- require 'spec'
45
- require 'spec/rake/spectask'
44
+ require 'rspec'
45
+ require 'rspec/core/rake_task'
46
46
 
47
47
  ### Task: spec
48
48
  desc "Run specs"
49
49
  task :spec => 'spec:doc'
50
+ task :specs => :spec
50
51
 
51
52
  namespace :spec do
52
53
  desc "Run rspec every time there's a change to one of the files"
53
54
  task :autotest do
54
- require 'autotest/rspec'
55
-
56
- autotester = Autotest::Rspec.new
57
- autotester.run
55
+ require 'autotest'
56
+ Autotest.add_discovery { "rspec2" }
57
+ Autotest.run
58
58
  end
59
59
 
60
60
  desc "Generate regular color 'doc' spec output"
61
- Spec::Rake::SpecTask.new( :doc ) do |task|
62
- task.spec_files = SPEC_FILES
63
- task.spec_opts = COMMON_SPEC_OPTS + ['-f', 's', '-c']
61
+ RSpec::Core::RakeTask.new( :doc ) do |task|
62
+ task.rspec_opts = COMMON_RSPEC_OPTS + ['-f', 'd', '-c']
64
63
  end
65
64
 
66
65
  desc "Generate spec output with profiling"
67
- Spec::Rake::SpecTask.new( :profile ) do |task|
68
- task.spec_files = SPEC_FILES
69
- task.spec_opts = COMMON_SPEC_OPTS + ['-f', 'o']
66
+ RSpec::Core::RakeTask.new( :profile ) do |task|
67
+ task.rspec_opts = COMMON_RSPEC_OPTS + ['-f', 'p', '-p']
70
68
  end
71
69
 
72
70
  desc "Generate quiet non-colored plain-text output"
73
- Spec::Rake::SpecTask.new( :quiet ) do |task|
74
- task.spec_files = SPEC_FILES
75
- task.spec_opts = COMMON_SPEC_OPTS + ['-f', 'p']
71
+ RSpec::Core::RakeTask.new( :quiet ) do |task|
72
+ task.rspec_opts = COMMON_RSPEC_OPTS + ['-f', 'p']
76
73
  end
77
74
 
78
75
  desc "Generate HTML output"
79
- Spec::Rake::SpecTask.new( :html ) do |task|
80
- task.spec_files = SPEC_FILES
81
- task.spec_opts = COMMON_SPEC_OPTS + ['-f', 'h']
76
+ RSpec::Core::RakeTask.new( :html ) do |task|
77
+ task.rspec_opts = COMMON_RSPEC_OPTS + ['-f', 'h']
82
78
  end
83
79
 
84
- end
85
- rescue LoadError => err
86
- task :no_rspec do
87
- $stderr.puts "Specification tasks not defined: %s" % [ err.message ]
88
- end
89
-
90
- task :spec => :no_rspec
91
- namespace :spec do
92
- task :autotest => :no_rspec
93
- task :doc => :no_rspec
94
- task :profile => :no_rspec
95
- task :quiet => :no_rspec
96
- task :html => :no_rspec
97
- end
98
- end
99
-
100
-
101
- ### Test::Unit tests
102
- begin
103
- require 'rake/testtask'
104
-
105
- Rake::TestTask.new( :unittests ) do |task|
106
- task.libs += [LIBDIR]
107
- task.test_files = TEST_FILES
108
- task.verbose = true
109
- end
110
80
 
111
- rescue LoadError => err
112
- task :no_test do
113
- $stderr.puts "Test tasks not defined: %s" % [ err.message ]
114
81
  end
115
82
 
116
- task :unittests => :no_rspec
117
- end
118
-
119
-
120
- ### RCov (via RSpec) tasks
121
- begin
122
- gem 'rcov'
123
- gem 'rspec', '>= 1.1.3'
124
-
125
- require 'spec'
126
- require 'rcov'
127
-
128
83
  ### Task: coverage (via RCov)
129
84
  desc "Build test coverage reports"
130
- unless SPEC_FILES.empty?
131
- Spec::Rake::SpecTask.new( :coverage ) do |task|
132
- task.spec_files = SPEC_FILES
133
- task.libs += [LIBDIR]
134
- task.spec_opts = ['-f', 'p', '-b']
135
- task.rcov_opts = RCOV_OPTS
136
- task.rcov = true
137
- end
85
+ RSpec::Core::RakeTask.new( :coverage ) do |task|
86
+ task.ruby_opts = [ "-I#{LIBDIR}" ]
87
+ task.rspec_opts = ['-f', 'p', '-b']
88
+ task.rcov_opts = RCOV_OPTS
89
+ task.rcov = true
138
90
  end
139
91
 
140
-
141
92
  ### Task: rcov
142
93
  task :rcov => :coverage
143
94
 
144
95
  ### Other coverage tasks
145
96
  namespace :coverage do
146
97
  desc "Generate a detailed text coverage report"
147
- Spec::Rake::SpecTask.new( :text ) do |task|
148
- task.spec_files = SPEC_FILES
98
+ RSpec::Core::RakeTask.new( :text ) do |task|
149
99
  task.rcov_opts = RCOV_OPTS + ['--text-report']
150
100
  task.rcov = true
151
101
  end
152
102
 
153
103
  desc "Show differences in coverage from last run"
154
- Spec::Rake::SpecTask.new( :diff ) do |task|
155
- task.spec_files = SPEC_FILES
156
- task.spec_opts = ['-f', 'p', '-b']
104
+ RSpec::Core::RakeTask.new( :diff ) do |task|
105
+ task.rspec_opts = ['-f', 'p', '-b']
157
106
  task.rcov_opts = RCOV_OPTS - ['--save'] + ['--text-coverage-diff']
158
107
  task.rcov = true
159
108
  end
160
109
 
161
110
  desc "Run RCov in 'spec-only' mode to check coverage from specs"
162
- Spec::Rake::SpecTask.new( :speconly ) do |task|
163
- task.spec_files = SPEC_FILES
111
+ RSpec::Core::RakeTask.new( :speconly ) do |task|
164
112
  task.rcov_opts = ['--exclude', RCOV_EXCLUDES, '--text-report', '--save']
165
113
  task.rcov = true
166
114
  end
167
115
  end
168
116
 
169
117
  CLOBBER.include( COVERAGE_TARGETDIR )
170
-
171
118
  rescue LoadError => err
172
- task :no_rcov do
173
- $stderr.puts "Coverage tasks not defined: RSpec+RCov tasklib not available: %s" %
174
- [ err.message ]
119
+ task :no_rspec do
120
+ $stderr.puts "Specification tasks not defined: %s" % [ err.message ]
175
121
  end
176
122
 
177
- task :coverage => :no_rcov
178
- task :clobber_coverage
179
- task :rcov => :no_rcov
180
- namespace :coverage do
181
- task :text => :no_rcov
182
- task :diff => :no_rcov
123
+ task :spec => :no_rspec
124
+ namespace :spec do
125
+ task :autotest => :no_rspec
126
+ task :doc => :no_rspec
127
+ task :profile => :no_rspec
128
+ task :quiet => :no_rspec
129
+ task :html => :no_rspec
183
130
  end
184
- task :verify => :no_rcov
131
+ end
132
+
133
+
134
+ ### Test::Unit tests
135
+ begin
136
+ require 'rake/testtask'
137
+
138
+ Rake::TestTask.new( :unittests ) do |task|
139
+ task.libs += [LIBDIR]
140
+ task.test_files = TEST_FILES
141
+ task.verbose = true
142
+ end
143
+
144
+ rescue LoadError => err
145
+ task :no_test do
146
+ $stderr.puts "Test tasks not defined: %s" % [ err.message ]
147
+ end
148
+
149
+ task :unittests => :no_rspec
185
150
  end
186
151
 
187
152
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/ruby -w
2
2
  #
3
3
  # Unit test for English infinitive (stem) forms.
4
- # $Id$
4
+ # $Id: infinitive.tests.rb,v 21e0fa69b1a3 2008/09/06 05:20:07 ged $
5
5
  #
6
6
  # Copyright (c) 2003 The FaerieMUD Consortium.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/ruby -w
2
2
  #
3
3
  # Unit test for English inflection
4
- # $Id$
4
+ # $Id: inflect.tests.rb,v 21e0fa69b1a3 2008/09/06 05:20:07 ged $
5
5
  #
6
6
  # Copyright (c) 2003, 2005 The FaerieMUD Consortium.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/ruby -w
2
2
  #
3
3
  # Unit test for additions donated by Francis Hwang, author of Lafcadio
4
- # $Id$
4
+ # $Id: lafcadio.tests.rb,v 221d313ccdd5 2007/06/13 05:25:38 ged $
5
5
  #
6
6
  # Converted from ts_english.rb.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/ruby -w
2
2
  #
3
3
  # Unit test for English link grammar
4
- # $Id$
4
+ # $Id: linkparser.tests.rb,v 21e0fa69b1a3 2008/09/06 05:20:07 ged $
5
5
  #
6
6
  # Copyright (c) 2003-2005 The FaerieMUD Consortium.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/ruby -w
2
2
  #
3
3
  # Unit test for Linguistics::EN#lprintf
4
- # $Id$
4
+ # $Id: lprintf.tests.rb,v 221d313ccdd5 2007/06/13 05:25:38 ged $
5
5
  #
6
6
  # Copyright (c) 2006 The FaerieMUD Consortium.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/ruby -w
2
2
  #
3
3
  # Unit test for English language module's title case method
4
- # $Id$
4
+ # $Id: titlecase.tests.rb,v 221d313ccdd5 2007/06/13 05:25:38 ged $
5
5
  #
6
6
  # Copyright (c) 2005 The FaerieMUD Consortium.
7
7
  #
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/ruby -w
2
2
  #
3
3
  # Unit test for Linguistics::EN WordNet functions
4
- # $Id$
4
+ # $Id: wordnet.tests.rb,v 21e0fa69b1a3 2008/09/06 05:20:07 ged $
5
5
  #
6
6
  # Copyright (c) 2003 The FaerieMUD Consortium.
7
7
  #
metadata CHANGED
@@ -1,16 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linguistics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ hash: 5
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 9
10
+ version: 1.0.9
5
11
  platform: ruby
6
12
  authors:
7
13
  - Michael Granger
8
14
  autorequire:
9
15
  bindir: bin
10
- cert_chain: []
16
+ cert_chain:
17
+ - |
18
+ -----BEGIN CERTIFICATE-----
19
+ MIIDLDCCAhSgAwIBAgIBADANBgkqhkiG9w0BAQUFADA8M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NJgWKbxZah85jIjx95hR8vOI+NAM5iH9kOqK13DrxacTKPhqj5PjwF
36
+ -----END CERTIFICATE-----
11
37
 
12
- date: 2009-11-17 00:00:00 -08:00
13
- default_executable:
38
+ date: 2011-09-02 00:00:00 Z
14
39
  dependencies: []
15
40
 
16
41
  description: |-
@@ -26,11 +51,13 @@ extensions: []
26
51
  extra_rdoc_files:
27
52
  - ChangeLog
28
53
  - README
54
+ - README.english
29
55
  - LICENSE
30
56
  files:
31
57
  - Rakefile
32
58
  - ChangeLog
33
59
  - README
60
+ - README.english
34
61
  - LICENSE
35
62
  - spec/linguistics/en_spec.rb
36
63
  - spec/linguistics/iso639_spec.rb
@@ -50,54 +77,55 @@ files:
50
77
  - lib/linguistics.rb
51
78
  - rake/191_compat.rb
52
79
  - rake/dependencies.rb
80
+ - rake/documentation.rb
53
81
  - rake/helpers.rb
54
82
  - rake/hg.rb
55
83
  - rake/manual.rb
56
84
  - rake/packaging.rb
57
85
  - rake/publishing.rb
58
- - rake/rdoc.rb
59
86
  - rake/style.rb
60
87
  - rake/svn.rb
61
88
  - rake/testing.rb
62
89
  - rake/verifytask.rb
63
- - rake/win32.rb
64
90
  - ./examples/generalize_sentence.rb
65
91
  - ./README.english
66
- has_rdoc: true
67
92
  homepage: http://deveiate.org/projects/Linguistics/
68
- licenses: []
69
-
93
+ licenses:
94
+ - BSD
70
95
  post_install_message:
71
96
  rdoc_options:
72
- - -w
73
- - "4"
74
- - -HN
75
- - -i
97
+ - --tab-width=4
98
+ - --show-hash
99
+ - --include
76
100
  - .
77
- - -m
78
- - README
79
- - -t
80
- - linguistics
81
- - -W
82
- - http://deveiate.org/projects/Linguistics/browser/
101
+ - --main=README
102
+ - --title=linguistics
83
103
  require_paths:
84
104
  - lib
85
105
  required_ruby_version: !ruby/object:Gem::Requirement
106
+ none: false
86
107
  requirements:
87
108
  - - ">="
88
109
  - !ruby/object:Gem::Version
89
- version: "0"
90
- version:
110
+ hash: 57
111
+ segments:
112
+ - 1
113
+ - 8
114
+ - 7
115
+ version: 1.8.7
91
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
+ none: false
92
118
  requirements:
93
119
  - - ">="
94
120
  - !ruby/object:Gem::Version
121
+ hash: 3
122
+ segments:
123
+ - 0
95
124
  version: "0"
96
- version:
97
125
  requirements: []
98
126
 
99
- rubyforge_project: deveiate
100
- rubygems_version: 1.3.5
127
+ rubyforge_project:
128
+ rubygems_version: 1.8.5
101
129
  signing_key:
102
130
  specification_version: 3
103
131
  summary: a framework for building linguistic utilities for Ruby objects
metadata.gz.sig ADDED
@@ -0,0 +1,2 @@
1
+ nx���P��.E,T �̓����/��ޅ�����ˢ��
2
+ &�'@^ �>"�u5 Ky�#�+�� ̿"�bc���_�ů������x"`�|9�䬸ޖ^ ?e0�J�.H-�X���2�����#`�3��@�����Tfҧ*�����#�X2��{�W��f7K-"W|�3{7Kx"?��t�
data/rake/rdoc.rb DELETED
@@ -1,30 +0,0 @@
1
- #
2
- # RDoc Rake tasks
3
-
4
- #
5
-
6
- gem 'rdoc', '>= 2.4.3'
7
-
8
- require 'rubygems'
9
- require 'rdoc/rdoc'
10
- require 'rake/clean'
11
- require 'rdoc/task'
12
-
13
- # Append docs/lib to the load path if it exists for a locally-installed Darkfish
14
- DOCSLIB = DOCSDIR + 'lib'
15
- $LOAD_PATH.unshift( DOCSLIB.to_s ) if DOCSLIB.exist?
16
-
17
- # Make relative string paths of all the stuff we need to generate docs for
18
- DOCFILES = Rake::FileList[ LIB_FILES + EXT_FILES + GEMSPEC.extra_rdoc_files ]
19
-
20
-
21
- directory RDOCDIR.to_s
22
- CLOBBER.include( RDOCDIR )
23
-
24
- desc "Build API documentation in #{RDOCDIR}"
25
- RDoc::Task.new do |task|
26
- task.main = "README"
27
- task.rdoc_files.include( DOCFILES )
28
- task.rdoc_dir = RDOCDIR.to_s
29
- task.options = RDOC_OPTIONS
30
- end