bratta-mactts 0.1.1 → 0.1.2

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/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  = Mac::TTS Changelog
2
2
 
3
+ == 0.1.2 7/21/2009
4
+
5
+ Consistent method names between class and instance methods for say()
6
+
3
7
  == 0.1.0 7/21/2009
4
8
 
5
9
  Initial release
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('mactts', '0.1.1') do |p|
5
+ Echoe.new('mactts', '0.1.2') do |p|
6
6
  p.description = "Ruby wrapper around the Mac OS X say command"
7
7
  p.url = "http://github.com/bratta/mactts"
8
8
  p.author = "Tim Gourley"
@@ -41,7 +41,7 @@ module Mac
41
41
  # Mac::TTS.say('This is my text!', :alex)
42
42
  def self.say(text, voice = :fred)
43
43
  mactts = TTS.new(:voice => voice)
44
- mactts.speak(text)
44
+ mactts.say(text)
45
45
  end
46
46
 
47
47
  # Use TTS to speak your text, with the voice specified
@@ -49,8 +49,8 @@ module Mac
49
49
  #
50
50
  # Usage:
51
51
  # mactts = Mac::TTS.new
52
- # mactts.speak('This is my text!')
53
- def speak(text)
52
+ # mactts.say('This is my text!')
53
+ def say(text)
54
54
  check_for_command
55
55
  validate_voice
56
56
  perform_say(text, @voice)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{mactts}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Tim Gourley"]
@@ -30,27 +30,27 @@ describe Mac::TTS, "When using an instantiated object" do
30
30
  end
31
31
 
32
32
  it "should say default text" do
33
- @mactts.speak(@sample_text).should == true
33
+ @mactts.say(@sample_text).should == true
34
34
  end
35
35
 
36
36
  it "should say default text as alex" do
37
37
  @mactts.voice = :alex
38
- @mactts.speak(@sample_text).should == true
38
+ @mactts.say(@sample_text).should == true
39
39
  end
40
40
 
41
41
  it "should raise an error when an invalid voice is specified" do
42
42
  @mactts.voice = :beef
43
- lambda{ @mactts.speak(@sample_text) }.should raise_error(Mac::TTS::InvalidVoiceException)
43
+ lambda{ @mactts.say(@sample_text) }.should raise_error(Mac::TTS::InvalidVoiceException)
44
44
  end
45
45
 
46
46
  it "should raise an error when an invalid command is specified" do
47
47
  @mactts.voice = :fred
48
48
  @mactts.say_command = '/should/not/exist'
49
- lambda{ @mactts.speak(@sample_text) }.should raise_error(Mac::TTS::SayCommandNotFoundException)
49
+ lambda{ @mactts.say(@sample_text) }.should raise_error(Mac::TTS::SayCommandNotFoundException)
50
50
  end
51
51
 
52
52
  it "should return false if a valid command that is not say is specified" do
53
53
  @mactts.say_command = '/usr/bin/env'
54
- @mactts.speak(@sample_text).should == false
54
+ @mactts.say(@sample_text).should == false
55
55
  end
56
56
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bratta-mactts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Gourley