adhearsion-asr 1.0.0 → 1.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 986b084dfe922fa5627f9e98a5d05894fa909992
4
- data.tar.gz: 166383df34b243d866fd4aff3609537a9b1624a6
3
+ metadata.gz: ec55a154bb3ed952ba8f5d8374744de8893b3a56
4
+ data.tar.gz: 5e977b9af682478f2ae771813f788fd080c5f4b6
5
5
  SHA512:
6
- metadata.gz: 0c376a4fd3725a995c2fe4b77da41aafac06662edc6634020551bcfc6305c20962978d5c95cea43579e7703db5f98022980c38c8b2177677940a89890a5ed0d9
7
- data.tar.gz: 611e95193f30a2896e0649b50587de4a605be7637436aeb9ab9567eeead92178709851bb3b6f5d417bd0fb028872360785e7927175bdf16562fd75d2be2df9c4
6
+ metadata.gz: 257a5e8c52bacb02dd86fe2672a2f261b7081c39c2e8bbdd581a93d166adf5fb50dfe3a9840d55fab1721f561faec9399a666e34dd7a9815ab98964e112fcd52
7
+ data.tar.gz: 070b6078aed2e782717de87226df5d128f9baad52c49c8579d1acb9d3ad30ad827a8f2c0ffadc8bdae30a739ddce84dc60df4ec3784b6272e6dccf30015842cb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # [develop](https://github.com/adhearsion/adhearsion-asr)
2
2
 
3
+ # [v1.0.1](https://github.com/adhearsion/adhearsion-asr/compare/1.0.0...1.0.1) - [2013-09-30](https://rubygems.org/gems/adhearsion-asr/versions/1.0.1)
4
+ * Bugfix: A menu definition's block context is now available
5
+
3
6
  # [v1.0.0](https://github.com/adhearsion/adhearsion-asr/compare/0.1.0...1.0.0) - [2013-08-29](https://rubygems.org/gems/adhearsion-asr/versions/1.0.0)
4
7
  * Change: Controller methods are now included in all call controllers by default, but this is configurable
5
8
  * Change: Default renderer/voice config is moved to Adhearsion core
@@ -10,6 +10,8 @@ Gem::Specification.new do |s|
10
10
  s.homepage = "https://github.com/adhearsion/adhearsion-asr"
11
11
  s.summary = %q{Adds speech recognition support to Adhearsion as a plugin}
12
12
  s.description = %q{Adds speech recognition support to Adhearsion as a plugin}
13
+
14
+ s.license = 'MIT'
13
15
 
14
16
  s.rubyforge_project = "adhearsion-asr"
15
17
 
@@ -72,6 +72,14 @@ module AdhearsionASR
72
72
  instance_eval(&block)
73
73
  end
74
74
 
75
+ def method_missing(method_name, *args, &block)
76
+ if @context
77
+ @context.send method_name, *args, &block
78
+ else
79
+ super
80
+ end
81
+ end
82
+
75
83
  def build_grammar
76
84
  raise ArgumentError, "You must specify one or more matches." if @matchers.count < 1
77
85
  matchers = @matchers
@@ -1,3 +1,3 @@
1
1
  module AdhearsionASR
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -608,6 +608,18 @@ module AdhearsionASR
608
608
  end
609
609
  end
610
610
 
611
+ let(:foo) { :bar }
612
+
613
+ it "makes the block context available" do
614
+ expect_component_execution expected_prompt
615
+ doo = nil
616
+ subject.menu prompts do
617
+ doo = foo
618
+ match(1) { do_nothing }
619
+ end
620
+ doo.should == :bar
621
+ end
622
+
611
623
  context "with interruptible: false" do
612
624
  let(:expected_barge_in) { false }
613
625
 
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.0.0
4
+ version: 1.0.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: 2013-08-29 00:00:00.000000000 Z
11
+ date: 2013-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: adhearsion
@@ -150,7 +150,8 @@ files:
150
150
  - spec/adhearsion-asr/controller_methods_spec.rb
151
151
  - spec/spec_helper.rb
152
152
  homepage: https://github.com/adhearsion/adhearsion-asr
153
- licenses: []
153
+ licenses:
154
+ - MIT
154
155
  metadata: {}
155
156
  post_install_message:
156
157
  rdoc_options: []