freeswitcher 0.4.9 → 0.4.10
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.
- data/AUTHORS +1 -1
- data/CHANGELOG +17 -0
- data/freeswitcher.gemspec +2 -2
- data/lib/fsr/version.rb +1 -1
- data/spec/fsr/listener/inbound.rb +7 -2
- metadata +2 -2
data/AUTHORS
CHANGED
@@ -4,8 +4,8 @@ Following persons have contributed to freeswitcher.
|
|
4
4
|
125 TJ Vanderpoel <bougy.man@gmail.com>
|
5
5
|
122 Jayson Vaughn <vaughn.jayson@gmail.com>
|
6
6
|
40 Michael Fellinger <m.fellinger@gmail.com>
|
7
|
+
13 TJ Vanderpoel <TJ Vanderpoel tj@rubyists.com>
|
7
8
|
10 Harry Vangberg <harry@vangberg.name>
|
8
|
-
10 TJ Vanderpoel <TJ Vanderpoel tj@rubyists.com>
|
9
9
|
6 Mikael Bjerkeland <mikael@consoll.no>
|
10
10
|
4 foo <jvaughn@hellspass.nationwide-recovery.com>
|
11
11
|
3 Kevin Berry <kevin@opensourcealchemist.com>
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
[1351829 | 2010-01-19 20:40:11 UTC] TJ Vanderpoel <TJ Vanderpoel tj@rubyists.com>
|
2
|
+
|
3
|
+
* Inbound listener changes to support sub-events for CUSTOM
|
4
|
+
|
5
|
+
[af361eb | 2010-01-19 20:23:16 UTC] TJ Vanderpoel <TJ Vanderpoel tj@rubyists.com>
|
6
|
+
|
7
|
+
* Completed work on inbound listener, to subscribe to events
|
8
|
+
|
9
|
+
[50f00d3 | 2010-01-19 17:46:30 UTC] TJ Vanderpoel <TJ Vanderpoel tj@rubyists.com>
|
10
|
+
|
11
|
+
* Fixed inbound listener and completed spec fixes for new em-spec
|
12
|
+
|
13
|
+
* HOOKS in inbound listener now allow passing of self as the first arg
|
14
|
+
if your hook block's arity is 2
|
15
|
+
|
16
|
+
* Inbound listener guaranteed to call before_session again
|
17
|
+
|
1
18
|
[bd98082 | 2010-01-16 04:41:58 UTC] TJ Vanderpoel <TJ Vanderpoel tj@rubyists.com>
|
2
19
|
|
3
20
|
* modified to work with em-spec 0.2
|
data/freeswitcher.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{freeswitcher}
|
5
|
-
s.version = "0.4.
|
5
|
+
s.version = "0.4.10"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Jayson Vaughn", "Michael Fellinger", "Kevin Berry", "TJ Vanderpoel"]
|
9
|
-
s.date = %q{2010-01-
|
9
|
+
s.date = %q{2010-01-22}
|
10
10
|
s.description = %q{=========================================================
|
11
11
|
FreeSWITCHeR
|
12
12
|
Copyright (c) 2009 The Rubyists (Jayson Vaughn, Tj Vanderpoel, Michael Fellinger, Kevin Berry)
|
data/lib/fsr/version.rb
CHANGED
@@ -9,7 +9,10 @@ EM.spec_backend = EventMachine::Spec::Bacon
|
|
9
9
|
class InboundListener < FSR::Listener::Inbound
|
10
10
|
attr_accessor :custom_event
|
11
11
|
|
12
|
-
# Stub error? out
|
12
|
+
# Stub error? out, do this to force session establishment
|
13
|
+
# Alternatively, you can
|
14
|
+
# InboundListener.new.authorize_and_register_for_events
|
15
|
+
# explicitly
|
13
16
|
def error?
|
14
17
|
false
|
15
18
|
end
|
@@ -70,7 +73,9 @@ EM.describe InboundListener do
|
|
70
73
|
end
|
71
74
|
|
72
75
|
should "be able to add custom event hooks on instances in the pre_session (before_session)" do
|
73
|
-
@listener.receive_data("Content-Length:
|
76
|
+
@listener.receive_data("Content-Length: 18\n\nEvent-Name: CUSTOM\n\n")
|
77
|
+
@listener.custom_event.should.not.be.nil
|
78
|
+
@listener.custom_event.content[:event_name].should == "CUSTOM"
|
74
79
|
@listener.custom_event.should.equal @listener.recvd_event.first
|
75
80
|
@listener2.receive_data("Content-Length: 22\n\nEvent-Name: TEST_EVENT\n\n")
|
76
81
|
@listener2.test_event.content[:event_name].should.equal "TEST_EVENT"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: freeswitcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jayson Vaughn
|
@@ -12,7 +12,7 @@ autorequire:
|
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
14
|
|
15
|
-
date: 2010-01-
|
15
|
+
date: 2010-01-22 00:00:00 -06:00
|
16
16
|
default_executable:
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|