adhearsion-asr 1.1.0 → 1.1.1

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: b3c4b6f6a2412a2328172c2abbc9a4b7dab4d679
4
- data.tar.gz: f01bf73b73e3ee9e73829babf1195579d226e9ee
3
+ metadata.gz: 8d7e97002dde733bc1e12c3c68a741e4642d38f7
4
+ data.tar.gz: f77c5dc898935b8b471b8d973289c79aea2b1e32
5
5
  SHA512:
6
- metadata.gz: af9517ceeae874df35dda3d9cc21efae4b0fc2ae7316c5e9b33279f980b779fc79e32839b16eca035cf028e48a570f6f7c889bf36b747f43f50d100d12e3e5aa
7
- data.tar.gz: 5cea700a6a39da4a2cb0d38185943a43aef1484b6291a7bfc2fe142b3fa1908788fc12860f3a3ea04f932013ae08952f3ef3b888e9999fec240fe828c30e1afd
6
+ metadata.gz: f6ca17cd388bd6c8d997aa7a66485bba6efccb3e6b7f4a45cd5b31d6b08386de3b5f84e45751c70683c61e5d4e6974e998dd095bd09b1af31dd2b836ed5f28ef
7
+ data.tar.gz: d4ba8f56d484aa5c752616ea978363dea2d35704295584449ae54db10dd94bafa07e81225aef40b3e9edd8b16a532006aad55ad6e558c705832823e4fda30759
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # [develop](https://github.com/adhearsion/adhearsion-asr)
2
2
 
3
+ # [v1.1.1](https://github.com/adhearsion/adhearsion-asr/compare/1.1.0...1.1.1) - [2014-01-28](https://rubygems.org/gems/adhearsion-asr/versions/1.1.1)
4
+ * Bugfix: Handle stop completion reason smoothly
5
+
3
6
  # [v1.1.0](https://github.com/adhearsion/adhearsion-asr/compare/1.0.1...1.1.0) - [2014-01-02](https://rubygems.org/gems/adhearsion-asr/versions/1.1.0)
4
7
  * Feature: Alias `Result#response` to `#utterance`, with a deprecation warning
5
8
  * Feature: Add `#match?` predicate to `Result` object
@@ -54,6 +54,8 @@ module AdhearsionASR
54
54
  result.status = :noinput
55
55
  when Punchblock::Event::Complete::Hangup
56
56
  result.status = :hangup
57
+ when Punchblock::Event::Complete::Stop
58
+ result.status = :stop
57
59
  else
58
60
  raise "Unknown completion reason received: #{reason}"
59
61
  end
@@ -1,3 +1,3 @@
1
1
  module AdhearsionASR
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -586,6 +586,16 @@ module AdhearsionASR
586
586
  end
587
587
  end
588
588
 
589
+ context "that is a stop" do
590
+ let(:reason) { Punchblock::Event::Complete::Stop.new }
591
+
592
+ it "returns :stop status and a nil utterance" do
593
+ result.status.should eql(:stop)
594
+ result.should_not be_match
595
+ result.utterance.should be_nil
596
+ end
597
+ end
598
+
589
599
  context "that is an error" do
590
600
  let(:reason) { Punchblock::Event::Complete::Error.new details: 'foobar' }
591
601
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adhearsion-asr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Langfeld
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-02 00:00:00.000000000 Z
11
+ date: 2014-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: adhearsion