linguistics 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +4 -0
- data/ChangeLog +312 -484
- data/Rakefile +66 -41
- data/lib/linguistics.rb +1 -1
- data/lib/linguistics/en.rb +1 -1
- data/lib/linguistics/en/wordnet.rb +1 -1
- data/rake/documentation.rb +123 -0
- data/rake/helpers.rb +375 -307
- data/rake/hg.rb +63 -6
- data/rake/manual.rb +11 -6
- data/rake/packaging.rb +20 -35
- data/rake/publishing.rb +161 -138
- data/rake/testing.rb +53 -88
- data/tests/en/infinitive.tests.rb +1 -1
- data/tests/en/inflect.tests.rb +1 -1
- data/tests/en/lafcadio.tests.rb +1 -1
- data/tests/en/linkparser.tests.rb +1 -1
- data/tests/en/lprintf.tests.rb +1 -1
- data/tests/en/titlecase.tests.rb +1 -1
- data/tests/en/wordnet.tests.rb +1 -1
- metadata +52 -24
- metadata.gz.sig +2 -0
- data/rake/rdoc.rb +0 -30
- data/rake/win32.rb +0 -190
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
|
-
|
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', '>=
|
42
|
+
gem 'rspec', '>= 2.0.0'
|
43
43
|
|
44
|
-
require '
|
45
|
-
require '
|
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
|
55
|
-
|
56
|
-
|
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
|
-
|
62
|
-
task.
|
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
|
-
|
68
|
-
task.
|
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
|
-
|
74
|
-
task.
|
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
|
-
|
80
|
-
task.
|
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
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
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
|
-
|
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
|
-
|
155
|
-
task.
|
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
|
-
|
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 :
|
173
|
-
$stderr.puts "
|
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 :
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
task :
|
182
|
-
task :
|
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
|
-
|
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
|
|
data/tests/en/inflect.tests.rb
CHANGED
data/tests/en/lafcadio.tests.rb
CHANGED
data/tests/en/lprintf.tests.rb
CHANGED
data/tests/en/titlecase.tests.rb
CHANGED
data/tests/en/wordnet.tests.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linguistics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
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
|
+
MIIDLDCCAhSgAwIBAgIBADANBgkqhkiG9w0BAQUFADA8MQwwCgYDVQQDDANnZWQx
|
20
|
+
FzAVBgoJkiaJk/IsZAEZFgdfYWVyaWVfMRMwEQYKCZImiZPyLGQBGRYDb3JnMB4X
|
21
|
+
DTEwMDkxNjE0NDg1MVoXDTExMDkxNjE0NDg1MVowPDEMMAoGA1UEAwwDZ2VkMRcw
|
22
|
+
FQYKCZImiZPyLGQBGRYHX2FlcmllXzETMBEGCgmSJomT8ixkARkWA29yZzCCASIw
|
23
|
+
DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALy//BFxC1f/cPSnwtJBWoFiFrir
|
24
|
+
h7RicI+joq/ocVXQqI4TDWPyF/8tqkvt+rD99X9qs2YeR8CU/YiIpLWrQOYST70J
|
25
|
+
vDn7Uvhb2muFVqq6+vobeTkILBEO6pionWDG8jSbo3qKm1RjKJDwg9p4wNKhPuu8
|
26
|
+
KGue/BFb67KflqyApPmPeb3Vdd9clspzqeFqp7cUBMEpFS6LWxy4Gk+qvFFJBJLB
|
27
|
+
BUHE/LZVJMVzfpC5Uq+QmY7B+FH/QqNndn3tOHgsPadLTNimuB1sCuL1a4z3Pepd
|
28
|
+
TeLBEFmEao5Dk3K/Q8o8vlbIB/jBDTUx6Djbgxw77909x6gI9doU4LD5XMcCAwEA
|
29
|
+
AaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFJeoGkOr9l4B
|
30
|
+
+saMkW/ZXT4UeSvVMA0GCSqGSIb3DQEBBQUAA4IBAQBG2KObvYI2eHyyBUJSJ3jN
|
31
|
+
vEnU3d60znAXbrSd2qb3r1lY1EPDD3bcy0MggCfGdg3Xu54z21oqyIdk8uGtWBPL
|
32
|
+
HIa9EgfFGSUEgvcIvaYqiN4jTUtidfEFw+Ltjs8AP9gWgSIYS6Gr38V0WGFFNzIH
|
33
|
+
aOD2wmu9oo/RffW4hS/8GuvfMzcw7CQ355wFR4KB/nyze+EsZ1Y5DerCAagMVuDQ
|
34
|
+
U0BLmWDFzPGGWlPeQCrYHCr+AcJz+NRnaHCKLZdSKj/RHuTOt+gblRex8FAh8NeA
|
35
|
+
cmlhXe46pZNJgWKbxZah85jIjx95hR8vOI+NAM5iH9kOqK13DrxacTKPhqj5PjwF
|
36
|
+
-----END CERTIFICATE-----
|
11
37
|
|
12
|
-
date:
|
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
|
-
- -
|
73
|
-
-
|
74
|
-
-
|
75
|
-
- -i
|
97
|
+
- --tab-width=4
|
98
|
+
- --show-hash
|
99
|
+
- --include
|
76
100
|
- .
|
77
|
-
-
|
78
|
-
-
|
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
|
-
|
90
|
-
|
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:
|
100
|
-
rubygems_version: 1.
|
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
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
|