adhearsion 2.5.3 → 2.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/adhearsion/calls.rb +5 -1
- data/lib/adhearsion/initializer.rb +3 -3
- data/lib/adhearsion/router/route.rb +2 -0
- data/lib/adhearsion/version.rb +1 -1
- data/spec/adhearsion/calls_spec.rb +17 -5
- data/spec/adhearsion/router/route_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 934b35739888ae39b19f72ea09e02289ebc56bb5
|
4
|
+
data.tar.gz: 8f84e7ccdc30266aff7fe3ff47854dff86511efb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f23fb10c0bdaa93a47f4a4516d756d452a611d07282c8f1396b2c4132f08e7ff1be4af6cec65ebb40a0752d15e6509c04621fb1a13853e4da33f693eae15075d
|
7
|
+
data.tar.gz: 5516860dc709922c9d7babe161d5f760a91a1ce20c9af8cdf68ee2ac3d737258a1acd62d896ffb76c45ffd6405c1a3f3c62d0277b93bbe5b69e494593904b149
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# [develop](https://github.com/adhearsion/adhearsion)
|
2
2
|
|
3
|
+
# [2.5.4](https://github.com/adhearsion/adhearsion/compare/v2.5.3...v2.5.4) - [2014-07-18](https://rubygems.org/gems/adhearsion/versions/2.5.4)
|
4
|
+
* Bugfix: Ignore dead calls when searching by tag
|
5
|
+
* Bugfix: Routing a dead call should end cleanly ([#441](https://github.com/adhearsion/adhearsion/issues/441))
|
6
|
+
* Bugfix: Ensure config gets correctly loaded by application
|
7
|
+
|
3
8
|
# [2.5.3](https://github.com/adhearsion/adhearsion/compare/v2.5.2...v2.5.3) - [2014-04-25](https://rubygems.org/gems/adhearsion/versions/2.5.3)
|
4
9
|
* Bugfix: Do not quiesce until the second SIGTERM, as per documentation ([#483](https://github.com/adhearsion/adhearsion/issues/483))
|
5
10
|
* Bugfix: Consistent support for output options in all output methods ([#481](https://github.com/adhearsion/adhearsion/issues/481))
|
data/lib/adhearsion/calls.rb
CHANGED
@@ -195,17 +195,17 @@ module Adhearsion
|
|
195
195
|
end
|
196
196
|
|
197
197
|
def load_config_file
|
198
|
-
|
198
|
+
load "#{Adhearsion.config.root}/config/adhearsion.rb"
|
199
199
|
end
|
200
200
|
|
201
201
|
def load_events_file
|
202
202
|
path = "#{Adhearsion.config.root}/config/events.rb"
|
203
|
-
|
203
|
+
load path if File.exists?(path)
|
204
204
|
end
|
205
205
|
|
206
206
|
def load_routes_file
|
207
207
|
path = "#{Adhearsion.config.root}/config/routes.rb"
|
208
|
-
|
208
|
+
load path if File.exists?(path)
|
209
209
|
end
|
210
210
|
|
211
211
|
def init_get_logging_appenders
|
data/lib/adhearsion/version.rb
CHANGED
@@ -72,13 +72,25 @@ module Adhearsion
|
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
75
|
-
|
76
|
-
|
75
|
+
context "tagged calls" do
|
76
|
+
it "finding calls by a tag" do
|
77
|
+
calls.each { |call| subject << call }
|
78
|
+
|
79
|
+
tagged_call = calls.last
|
80
|
+
tagged_call.tag :moderator
|
81
|
+
|
82
|
+
subject.with_tag(:moderator).should be == [tagged_call]
|
83
|
+
end
|
84
|
+
|
85
|
+
it "when a call is dead, ignore it in the search" do
|
86
|
+
calls.each { |call| subject << call }
|
77
87
|
|
78
|
-
|
79
|
-
|
88
|
+
tagged_call = calls.last
|
89
|
+
tagged_call.tag :moderator
|
90
|
+
Celluloid::Actor.kill tagged_call
|
80
91
|
|
81
|
-
|
92
|
+
subject.with_tag(:moderator).should be == []
|
93
|
+
end
|
82
94
|
end
|
83
95
|
|
84
96
|
it "finding calls by uri" do
|
@@ -139,6 +139,14 @@ module Adhearsion
|
|
139
139
|
latch.wait(2).should be true
|
140
140
|
end
|
141
141
|
|
142
|
+
context "when the call has already ended before routing can begin" do
|
143
|
+
before { Celluloid::Actor.kill call }
|
144
|
+
|
145
|
+
it "should fall through cleanly" do
|
146
|
+
expect { route.dispatch call }.not_to raise_error
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
142
150
|
context "when the CallController mutates its metadata" do
|
143
151
|
let :controller do
|
144
152
|
Class.new CallController do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adhearsion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Phillips
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-
|
14
|
+
date: 2014-07-18 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|