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: a687c0732e8408239c867b8480924c6206084bf4
4
- data.tar.gz: 3baa0d3876880a58b2ad5376af3d2614cb47a418
3
+ metadata.gz: e2ddea2b59a1c227882eb159bdeb1390c1552c5e
4
+ data.tar.gz: 497f36c31c93b5c6140035795daeca42574f2536
5
5
  SHA512:
6
- metadata.gz: d8dff1e952c3ae79c2c71713b98b4bf9cebfad82a5e917cf5d0491983051157b8e8ac96b7acbcda8a73030a322fbfe401cce664b13773c68846dfb4a17ba9c8f
7
- data.tar.gz: fba213383d1700cdd1915a44d3c6649ef6f441b35e48087924d224da7a3c446aa4367200ae644c3a98c64bccda5a767cd6a756b22d1b0826b682f2b8638c8302
6
+ metadata.gz: 52e1ec5a20d253ab8e4d6bd50833b7dd2a5d59f86954aaa6a7c90b14fdece3109bc29bb1a4ede0d3e5df117a072faacd27f53f0897b2e7a7762ae022fc332b1e
7
+ data.tar.gz: 180b16a0260acd5bbdfc14ae77e03eb9af6eddff1d49ce7d3350fdbdad6d3b23df1b6e8a5afaa0a07e76936130869afc96155be971f626fa37758786689ed92c
@@ -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.
@@ -1,5 +1,5 @@
1
1
  module Adhearsion
2
2
  module Asterisk
3
- VERSION = "1.4.0"
3
+ VERSION = "1.5.0"
4
4
  end
5
5
  end
@@ -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.0
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-05-10 00:00:00.000000000 Z
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.0
235
+ rubygems_version: 2.0.3
236
236
  signing_key:
237
237
  specification_version: 4
238
238
  summary: Asterisk specific features for Adhearsion