PSA 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.
Files changed (3) hide show
  1. data/lib/PSA.rb +10 -0
  2. data/lib/PSA/version.rb +1 -1
  3. metadata +1 -1
data/lib/PSA.rb CHANGED
@@ -20,5 +20,15 @@ module Intercom
20
20
  msg = "ah " * length
21
21
  broadcast(msg,"Bells")
22
22
  end
23
+
24
+ VOICES = ["Agnes","Albert","Alex","Bad News","Bahh","Bells","Boing","Bruce","Bubbles","Cellos","Deranged","Fred","Good News","Hysterical","Junior","Kathy","Pipe Organ","Princess","Ralph","Trinoids","Vicki","Victoria","Whisper","Zarvox"]
25
+
26
+ VOICES.each_with_index do |voice_name, i|
27
+ class_eval <<-RUBY, __FILE__, __LINE__ + 1
28
+ def #{voice_name.downcase.tr(' ','_')}(msg)
29
+ broadcast(msg,"#{voice_name}")
30
+ end
31
+ RUBY
32
+ end
23
33
  end
24
34
  end
data/lib/PSA/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module PSA
2
- VERSION = "0.0.1"
2
+ VERSION = "1"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: PSA
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: '1'
6
6
  platform: ruby
7
7
  authors:
8
8
  - Oren Mazor