Text 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ = Text
2
+
3
+ A collection of text algorithms.
4
+
5
+
6
+ = Usage
7
+
8
+ require 'text'
9
+
10
+ font = Text::Figlet::Font.new('big.flf')
11
+ figlet = Text::Figlet::Typesetter.new(font)
12
+ figlet['Hello World'] # => '...'
13
+
14
+ Text::Levenshtein.distance('test', 'test') # => 0
15
+ Text::Levenshtein.distance('test', 'tent') # => 1
16
+
17
+ Text::Metaphone.metaphone('BRIAN') # => 'BRN'
18
+ Text::Metaphone.double_metaphone('Coburn') # => ['KPRN', nil]
19
+ Text::Metaphone.double_metaphone('Angier') # => ['ANJ', 'ANJR']
20
+
21
+ Text::Soundex.soundex('Knuth') # => 'K530'
22
+
23
+ Text::PorterStemming.stem('abatements') # => 'abat'
24
+
25
+
26
+ = License
27
+
28
+ Same as Ruby.
@@ -9,38 +9,36 @@ require 'rake/rdoctask'
9
9
 
10
10
  gemspec = Gem::Specification.new do |s|
11
11
  s.name = 'Text'
12
- s.version = '1.1.0'
12
+ s.version = '1.1.1'
13
13
  s.summary ='A collection of text algorithms'
14
- s.files = FileList['{lib,test}/**/*.*', '*.txt', 'rakefile.rb']
14
+ s.files = FileList['{lib,test}/**/*.*', 'README.rdoc', 'rakefile.rb']
15
15
  s.require_path = 'lib'
16
- s.autorequire = 'text'
17
- s.has_rdoc = false
16
+ s.has_rdoc = true
18
17
  s.rubyforge_project = 'text'
19
18
  s.homepage = 'http://text.rubyforge.org/'
20
19
  s.author = 'Paul Battley, Michael Neumann, Tim Fletcher'
21
20
  end
22
21
 
23
- Rake::GemPackageTask.new(gemspec) { |t| t.package_dir = 'gems' }
22
+ Rake::GemPackageTask.new(gemspec) do |pkg|
23
+ pkg.need_tar_gz = true
24
+ end
24
25
 
25
- Rake::PackageTask.new('Text', '1.1.0') do |p|
26
- p.need_tar_gz = true
27
- p.package_files.include('lib/**/*.rb')
26
+ Rake::PackageTask.new(gemspec.name, gemspec.version) do |pkg|
27
+ pkg.need_tar_gz = true
28
+ pkg.package_files.include gemspec.files
28
29
  end
29
30
 
30
31
  Rake::TestTask.new do |t|
31
- t.test_files = FileList['test/*_test.rb']
32
32
  t.verbose = false
33
33
  end
34
34
 
35
35
  Rcov::RcovTask.new do |t|
36
- t.test_files = FileList['test/*_test.rb']
37
- t.output_dir = 'coverage'
38
36
  t.rcov_opts = []
39
37
  end
40
38
 
41
39
  Rake::RDocTask.new do |t|
42
- t.main = "README.rdoc"
43
- t.rdoc_files.include("README.rdoc", "lib/**/*.rb")
40
+ t.main = 'README.rdoc'
41
+ t.rdoc_files.include 'README.rdoc', 'lib/**/*.rb'
44
42
  end
45
43
 
46
44
  task :default => :test
File without changes
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.0
2
+ rubygems_version: 0.9.0.10
3
3
  specification_version: 1
4
4
  name: Text
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.0
7
- date: 2006-10-14 00:00:00 +01:00
6
+ version: 1.1.1
7
+ date: 2007-02-20 00:00:00 +00:00
8
8
  summary: A collection of text algorithms
9
9
  require_paths:
10
10
  - lib
@@ -12,10 +12,10 @@ email:
12
12
  homepage: http://text.rubyforge.org/
13
13
  rubyforge_project: text
14
14
  description:
15
- autorequire: text
15
+ autorequire:
16
16
  default_executable:
17
17
  bindir: bin
18
- has_rdoc: false
18
+ has_rdoc: true
19
19
  required_ruby_version: !ruby/object:Gem::Version::Requirement
20
20
  requirements:
21
21
  - - ">"
@@ -39,13 +39,13 @@ files:
39
39
  - lib/text/figlet/font.rb
40
40
  - lib/text/figlet/smusher.rb
41
41
  - lib/text/figlet/typesetter.rb
42
- - test/double_metaphone_test.rb
43
- - test/figlet_test.rb
44
- - test/levenshtein_test.rb
45
- - test/metaphone_test.rb
46
- - test/porter_stemming_test.rb
47
42
  - test/preamble.rb
48
- - test/soundex_test.rb
43
+ - test/test_double_metaphone.rb
44
+ - test/test_figlet.rb
45
+ - test/test_levenshtein.rb
46
+ - test/test_metaphone.rb
47
+ - test/test_porter_stemming.rb
48
+ - test/test_soundex.rb
49
49
  - test/data/big.flf
50
50
  - test/data/big.txt
51
51
  - test/data/chunky.flf
@@ -55,6 +55,7 @@ files:
55
55
  - test/data/metaphone_buggy.txt
56
56
  - test/data/porter_stemming_input.txt
57
57
  - test/data/porter_stemming_output.txt
58
+ - README.rdoc
58
59
  - rakefile.rb
59
60
  test_files: []
60
61