adhearsion-asterisk 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2ddea2b59a1c227882eb159bdeb1390c1552c5e
|
4
|
+
data.tar.gz: 497f36c31c93b5c6140035795daeca42574f2536
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52e1ec5a20d253ab8e4d6bd50833b7dd2a5d59f86954aaa6a7c90b14fdece3109bc29bb1a4ede0d3e5df117a072faacd27f53f0897b2e7a7762ae022fc332b1e
|
7
|
+
data.tar.gz: 180b16a0260acd5bbdfc14ae77e03eb9af6eddff1d49ce7d3350fdbdad6d3b23df1b6e8a5afaa0a07e76936130869afc96155be971f626fa37758786689ed92c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# develop
|
2
2
|
|
3
|
+
# v1.5.0
|
4
|
+
* Feature: Add `#say_characters`, which uses `SayDigits` to override adhearsion's built in SSML-generating method
|
5
|
+
|
3
6
|
# v1.4.0
|
4
7
|
* Feature: Add `#goto`, which will pass a call to another context/extension/priority and disconnect from Adhearsion
|
5
8
|
|
@@ -372,6 +372,14 @@ module Adhearsion
|
|
372
372
|
execute "SayDigits", argument
|
373
373
|
end
|
374
374
|
|
375
|
+
#Executes SayDigits with the passed argument.
|
376
|
+
#This will override adhearsion's native #say_characters method, which does not currently work with asterisk
|
377
|
+
#
|
378
|
+
# @param [Numeric|String] Numeric argument, or a string contanining numbers.
|
379
|
+
def say_characters(argument)
|
380
|
+
play_digits argument
|
381
|
+
end
|
382
|
+
|
375
383
|
#Executes Playtones with the passed argument.
|
376
384
|
#
|
377
385
|
# @param [String|Array] Array or comma-separated string of tones.
|
@@ -459,6 +459,14 @@ module Adhearsion::Asterisk
|
|
459
459
|
end
|
460
460
|
end
|
461
461
|
|
462
|
+
describe "#say_characters" do
|
463
|
+
let(:numeric) { 20 }
|
464
|
+
it "uses asterisk's SayDigits functionality" do
|
465
|
+
subject.should_receive(:execute).once.with("SayDigits", numeric)
|
466
|
+
subject.say_characters(numeric)
|
467
|
+
end
|
468
|
+
end
|
469
|
+
|
462
470
|
describe "#play_tones" do
|
463
471
|
context "should send the correct command Playtones playing tones" do
|
464
472
|
before do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adhearsion-asterisk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Langfeld
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-08-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: adhearsion
|
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
232
|
version: '0'
|
233
233
|
requirements: []
|
234
234
|
rubyforge_project: adhearsion-asterisk
|
235
|
-
rubygems_version: 2.0.
|
235
|
+
rubygems_version: 2.0.3
|
236
236
|
signing_key:
|
237
237
|
specification_version: 4
|
238
238
|
summary: Asterisk specific features for Adhearsion
|