freec 0.2.1 → 0.2.2

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/Rakefile CHANGED
@@ -9,7 +9,7 @@ end
9
9
 
10
10
  spec = Gem::Specification.new do |s|
11
11
  s.name = "freec"
12
- s.version = '0.2.1'
12
+ s.version = '0.2.2'
13
13
  s.author = "Jan Kubr"
14
14
  s.email = "mail@jankubr.com"
15
15
  s.homepage = "http://github.com/jankubr/freec"
@@ -106,6 +106,8 @@ private
106
106
  parse_response
107
107
  send_and_read("filter Unique-ID #{@unique_id}")
108
108
  parse_response
109
+ send_and_read("divert_events on")
110
+ parse_response
109
111
  end
110
112
 
111
113
  def subscribe_to_new_channel_events
@@ -37,7 +37,8 @@ describe Freec do
37
37
  @freec.should_receive(:send_data).with("connect")
38
38
  @freec.should_receive(:send_data)
39
39
  @freec.should_receive(:send_data)
40
- @io.should_receive(:gets).exactly(3).and_return(initial_response)
40
+ @freec.should_receive(:send_data)
41
+ @io.should_receive(:gets).exactly(4).and_return(initial_response)
41
42
  @freec.send :call_initialization
42
43
  end
43
44
 
@@ -45,7 +46,8 @@ describe Freec do
45
46
  @freec.should_receive(:send_data)
46
47
  @freec.should_receive(:send_data).with('events plain all')
47
48
  @freec.should_receive(:send_data).with('filter Unique-ID f3c2d5ee-d064-4f55-9280-5be2a65867e8')
48
- @io.should_receive(:gets).exactly(3).and_return(initial_response)
49
+ @freec.should_receive(:send_data).with('divert_events on')
50
+ @io.should_receive(:gets).exactly(4).and_return(initial_response)
49
51
  @freec.send :call_initialization
50
52
  end
51
53
 
@@ -114,8 +116,9 @@ describe Freec do
114
116
  @freec.should_receive(:send_data).with("connect")
115
117
  @freec.should_receive(:send_data).with("events plain all")
116
118
  @freec.should_receive(:send_data).with('filter Unique-ID f3c2d5ee-d064-4f55-9280-5be2a65867e8')
119
+ @freec.should_receive(:send_data).with('divert_events on')
117
120
 
118
- @io.should_receive(:gets).and_return(initial_response, initial_response, initial_response, "bye\n\n")
121
+ @io.should_receive(:gets).and_return(initial_response, initial_response, initial_response, initial_response, "bye\n\n")
119
122
  @io.should_receive(:closed?).twice.and_return(false)
120
123
  @freec.should_receive(:step).and_return(nil)
121
124
  @freec.should_receive(:execute_app).with('hangup')
@@ -129,6 +132,7 @@ describe Freec do
129
132
  @freec.should_receive(:send_data).with("connect")
130
133
  @freec.should_receive(:send_data).with("events plain all")
131
134
  @freec.should_receive(:send_data).with('filter Unique-ID f3c2d5ee-d064-4f55-9280-5be2a65867e8')
135
+ @freec.should_receive(:send_data).with('divert_events on')
132
136
  @io.should_receive(:gets).and_return(initial_response, initial_response, event_parts(disconnect_event)[0], event_parts(disconnect_event)[1])
133
137
  @io.should_receive(:closed?).twice.and_return(true)
134
138
  @freec.should_receive(:step).never
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freec
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 19
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 2
8
- - 1
9
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Jan Kubr
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-04-02 00:00:00 +02:00
18
+ date: 2010-10-07 00:00:00 +02:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: rspec
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 3
27
30
  segments:
28
31
  - 0
29
32
  version: "0"
@@ -64,23 +67,27 @@ rdoc_options:
64
67
  require_paths:
65
68
  - lib
66
69
  required_ruby_version: !ruby/object:Gem::Requirement
70
+ none: false
67
71
  requirements:
68
72
  - - ">="
69
73
  - !ruby/object:Gem::Version
74
+ hash: 3
70
75
  segments:
71
76
  - 0
72
77
  version: "0"
73
78
  required_rubygems_version: !ruby/object:Gem::Requirement
79
+ none: false
74
80
  requirements:
75
81
  - - ">="
76
82
  - !ruby/object:Gem::Version
83
+ hash: 3
77
84
  segments:
78
85
  - 0
79
86
  version: "0"
80
87
  requirements:
81
88
  - daemons
82
89
  rubyforge_project: freec
83
- rubygems_version: 1.3.6
90
+ rubygems_version: 1.3.7
84
91
  signing_key:
85
92
  specification_version: 3
86
93
  summary: The layer between your Ruby voice app and FreeSWITCH.