text 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,18 @@
1
+ require File.join(File.dirname(__FILE__), 'preamble')
2
+
3
+ class FigletTest < Test::Unit::TestCase
4
+
5
+ if !Text.is_19?
6
+ def test_hello_world
7
+ font = Text::Figlet::Font.new(File.rel('data', 'big.flf'))
8
+ figlet = Text::Figlet::Typesetter.new(font)
9
+ assert_equal File.read(File.rel('data', 'big.txt')), figlet['Hello World']
10
+ end
11
+
12
+ def test_no_smushing
13
+ font = Text::Figlet::Font.new(File.rel('data', 'chunky.flf'))
14
+ figlet = Text::Figlet::Typesetter.new(font, :smush => false)
15
+ assert_equal File.read(File.rel('data', 'chunky.txt')), figlet['Chunky Bacon']
16
+ end
17
+ end
18
+ end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: text
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
5
4
  prerelease:
5
+ version: 1.2.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Paul Battley
@@ -11,63 +11,70 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-06-10 00:00:00.000000000 Z
14
+ date: 2013-08-23 00:00:00.000000000 Z
15
15
  dependencies: []
16
16
  description: ! 'A collection of text algorithms: Levenshtein, Soundex, Metaphone,
17
- Double Metaphone, Porter Stemming'
17
+ Double Metaphone, Figlet, Porter Stemming'
18
18
  email: pbattley@gmail.com
19
19
  executables: []
20
20
  extensions: []
21
21
  extra_rdoc_files:
22
22
  - README.rdoc
23
23
  files:
24
- - lib/text/levenshtein.rb
25
- - lib/text/metaphone.rb
26
- - lib/text/soundex.rb
27
- - lib/text/white_similarity.rb
28
24
  - lib/text/double_metaphone.rb
25
+ - lib/text/levenshtein.rb
29
26
  - lib/text/porter_stemming.rb
27
+ - lib/text/figlet.rb
28
+ - lib/text/figlet/typesetter.rb
29
+ - lib/text/figlet/font.rb
30
+ - lib/text/figlet/smusher.rb
31
+ - lib/text/soundex.rb
30
32
  - lib/text/version.rb
33
+ - lib/text/white_similarity.rb
34
+ - lib/text/metaphone.rb
31
35
  - lib/text.rb
32
- - test/test_porter_stemming.rb
33
- - test/data/chunky.flf
34
- - test/data/porter_stemming_input.txt
35
- - test/data/metaphone.txt
36
- - test/data/double_metaphone.csv
37
36
  - test/data/porter_stemming_output.txt
37
+ - test/data/double_metaphone.csv
38
+ - test/data/big.flf
39
+ - test/data/metaphone.txt
38
40
  - test/data/metaphone_buggy.txt
39
- - test/data/chunky.txt
40
41
  - test/data/big.txt
42
+ - test/data/porter_stemming_input.txt
43
+ - test/data/chunky.flf
44
+ - test/data/chunky.txt
45
+ - test/test_levenshtein.rb
46
+ - test/test_double_metaphone.rb
47
+ - test/test_text.rb
41
48
  - test/preamble.rb
49
+ - test/test_porter_stemming.rb
42
50
  - test/test_soundex.rb
43
- - test/test_text.rb
51
+ - test/test_figlet.rb
44
52
  - test/test_white_similarity.rb
45
53
  - test/test_metaphone.rb
46
- - test/test_levenshtein.rb
47
- - test/test_double_metaphone.rb
48
54
  - README.rdoc
49
55
  - Rakefile
50
56
  homepage: http://github.com/threedaymonk/text
51
- licenses: []
57
+ licenses:
58
+ - MIT
52
59
  post_install_message:
53
60
  rdoc_options: []
54
61
  require_paths:
55
62
  - lib
56
63
  required_ruby_version: !ruby/object:Gem::Requirement
57
- none: false
58
64
  requirements:
59
65
  - - ! '>='
60
66
  - !ruby/object:Gem::Version
61
67
  version: '0'
62
- required_rubygems_version: !ruby/object:Gem::Requirement
63
68
  none: false
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
64
70
  requirements:
65
71
  - - ! '>='
66
72
  - !ruby/object:Gem::Version
67
73
  version: '0'
74
+ none: false
68
75
  requirements: []
69
76
  rubyforge_project: text
70
- rubygems_version: 1.8.11
77
+ rubygems_version: 1.8.25
71
78
  signing_key:
72
79
  specification_version: 3
73
80
  summary: A collection of text algorithms