ruby_rhymes 0.1.0 → 0.1.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.
@@ -2,7 +2,14 @@
2
2
  # Authors:: Vlad Shulman (vshulman@github) and Thomas Kleibus (thomas-kielbus@github)
3
3
  # License:: Distributes under the same terms as Ruby
4
4
 
5
- # this class is the gateway to generating exciting poetry
5
+ # this class is the gateway to generating exciting poetry. Use it like this:
6
+ #
7
+ # >> phrase = "to be or not to beer".to_phrase
8
+ # >> phrase.flat_rhymes
9
+ # => ["adhere", "alvear", "amir", ...]
10
+ # >> "to be or not to beer".to_phrase.syllables
11
+ # => 6
12
+
6
13
  class Phrase
7
14
  def initialize(phrase)
8
15
  @phrase_tokens = Phrase.clean_and_tokenize(phrase)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_rhymes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Vlad Shulman
@@ -33,7 +33,33 @@ files:
33
33
  - lib/ruby_rhymes.rb
34
34
  - lib/syllable_arrays.rb
35
35
  - lib/words.txt
36
+ - doc/classes/Phrase/Pronunciation.html
37
+ - doc/classes/Phrase/Pronunciation.src/M000010.html
38
+ - doc/classes/Phrase/Pronunciation.src/M000011.html
39
+ - doc/classes/Phrase/Pronunciation.src/M000012.html
40
+ - doc/classes/Phrase/Pronunciations.html
41
+ - doc/classes/Phrase/Pronunciations.src/M000008.html
42
+ - doc/classes/Phrase/Pronunciations.src/M000009.html
43
+ - doc/classes/Phrase.html
44
+ - doc/classes/Phrase.src/M000001.html
45
+ - doc/classes/Phrase.src/M000002.html
46
+ - doc/classes/Phrase.src/M000003.html
47
+ - doc/classes/Phrase.src/M000004.html
48
+ - doc/classes/Phrase.src/M000005.html
49
+ - doc/classes/Phrase.src/M000006.html
50
+ - doc/classes/Phrase.src/M000007.html
51
+ - doc/classes/String.html
52
+ - doc/classes/String.src/M000013.html
53
+ - doc/created.rid
54
+ - doc/files/lib/ruby_rhymes_rb.html
55
+ - doc/files/lib/syllable_arrays_rb.html
56
+ - doc/fr_class_index.html
57
+ - doc/fr_file_index.html
58
+ - doc/fr_method_index.html
59
+ - doc/index.html
60
+ - doc/rdoc-style.css
36
61
  - README.md
62
+ - README.rdoc
37
63
  homepage: https://github.com/vshulman/RubyRhymes
38
64
  licenses: []
39
65