syllabize 0.4.2 → 0.5.0

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/README.md CHANGED
@@ -18,10 +18,12 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- First, require `syllabize`. Then, you can call the `count_vowels` method on a string.
21
+ First, require `syllabize`. Then, you can call the `count_syllables` method on a string.
22
22
 
23
23
  ```ruby
24
- Syllabize::Counter.new('Ruby').count_syllables
24
+ require 'syllables'
25
+ => true
26
+ 'Ruby'.count_syllables
25
27
  # => 2
26
28
  ```
27
29
 
@@ -105,3 +105,9 @@ module Syllabize
105
105
  end
106
106
 
107
107
  end
108
+
109
+ class String
110
+ def count_syllables
111
+ Syllabize::Counter.new(self).count_syllables
112
+ end
113
+ end
@@ -1,3 +1,3 @@
1
1
  module Syllabize
2
- VERSION = "0.4.2"
2
+ VERSION = "0.5.0"
3
3
  end
@@ -129,4 +129,9 @@ describe Syllabize::Counter do
129
129
  end
130
130
  end
131
131
 
132
+ describe 'string method' do
133
+ subject { 'hello'.count_syllables }
134
+ it { should == 2 }
135
+ end
136
+
132
137
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: syllabize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: