adhearsion 1.0.3 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -62,8 +62,6 @@ module Theatre
62
62
  @callback.call @payload
63
63
  end
64
64
  with_state_lock { @current_state = :success }
65
- rescue => @error
66
- with_state_lock { @current_state = :error }
67
65
  ensure
68
66
  @finished_time = Time.now.freeze
69
67
  end
@@ -76,39 +76,51 @@ describe "A simulated use of the 'ahn' command" do
76
76
  it "arguments to 'start' are executed properly properly" do
77
77
  some_path = "/tmp/blargh"
78
78
  simulate_args "start", some_path
79
- flexmock(Adhearsion::CLI::AhnCommand::CommandHandler).should_receive(:start).once.with(some_path, false, nil)
79
+ flexmock(Adhearsion::CLI::AhnCommand::CommandHandler).should_receive(:start).once.with(some_path, :foreground, nil)
80
80
  Adhearsion::CLI::AhnCommand.execute!
81
81
  end
82
82
 
83
83
  it "should execute arguments to 'start' for daemonizing properly" do
84
84
  somewhere = "/tmp/blarghh"
85
85
  simulate_args "start", 'daemon', somewhere
86
- flexmock(Adhearsion::CLI::AhnCommand::CommandHandler).should_receive(:start).once.with(somewhere, true, nil)
86
+ flexmock(Adhearsion::CLI::AhnCommand::CommandHandler).should_receive(:start).once.with(somewhere, :daemon, nil)
87
+ Adhearsion::CLI::AhnCommand.execute!
88
+ end
89
+
90
+ it "should execute arguments to 'start' for using a console properly" do
91
+ somewhere = "/tmp/blarghh"
92
+ simulate_args "start", 'console', somewhere
93
+ flexmock(Adhearsion::CLI::AhnCommand::CommandHandler).should_receive(:start).once.with(somewhere, :console, nil)
87
94
  Adhearsion::CLI::AhnCommand.execute!
88
95
  end
89
96
 
90
97
  it 'parse_arguments should recognize start with daemon properly' do
91
98
  path = '/path/to/somesuch'
92
- arguments = ["start", 'daemon', path]
93
- Adhearsion::CLI::AhnCommand.parse_arguments(arguments).should == [:start, path, true, nil]
99
+ arguments = ['start', 'daemon', path]
100
+ Adhearsion::CLI::AhnCommand.parse_arguments(arguments).should == [:start, path, :daemon, nil]
101
+ end
102
+
103
+ it 'should not allow both daemon and console to be specified' do
104
+ path = '/path/to/somesuch'
105
+ arguments = ['start', 'daemon', 'console', path]
106
+ lambda { Adhearsion::CLI::AhnCommand.parse_arguments(arguments) }.should raise_error Adhearsion::CLI::AhnCommand::CommandHandler::CLIException
94
107
  end
95
108
 
96
109
  it 'should recognize start with daemon and pid file properly' do
97
110
  project_path = '/second/star/on/the/right'
98
111
  pid_file_path = '/straight/on/til/morning'
99
112
  arguments = ["start", "daemon", project_path, "--pid-file=#{pid_file_path}"]
100
- Adhearsion::CLI::AhnCommand.parse_arguments(arguments).should == [:start, project_path, true, pid_file_path]
113
+ Adhearsion::CLI::AhnCommand.parse_arguments(arguments).should == [:start, project_path, :daemon, pid_file_path]
101
114
  end
102
115
 
103
116
  it 'parse_arguments should recognize start without daemon properly' do
104
117
  path = '/path/to/somewhere'
105
118
  arguments = ['start', path]
106
- Adhearsion::CLI::AhnCommand.parse_arguments(arguments).should == [:start, path, false, nil]
119
+ Adhearsion::CLI::AhnCommand.parse_arguments(arguments).should == [:start, path, :foreground, nil]
107
120
  end
108
121
 
109
122
  it "if no path is provided, running Ahn command blows up" do
110
- flexmock(Adhearsion::CLI::AhnCommand).should_receive(:fail_and_print_usage).once.and_return
111
- Adhearsion::CLI::AhnCommand.parse_arguments(['start'])
123
+ lambda { Adhearsion::CLI::AhnCommand.parse_arguments(['start']) }.should raise_error Adhearsion::CLI::AhnCommand::CommandHandler::CLIException
112
124
  end
113
125
 
114
126
  it "printing the version" do
@@ -38,7 +38,7 @@ describe "Adhearsion::Initializer" do
38
38
  it "should create a pid file in the app's path by default when daemonizing" do
39
39
  stub_behavior_for_initializer_with_no_path_changing_behavior do
40
40
  flexmock(File).should_receive(:open).once.with(File.join(path, 'adhearsion.pid'), 'w', Proc)
41
- ahn = Adhearsion::Initializer.start path, :daemon => true
41
+ ahn = Adhearsion::Initializer.start path, :mode => :daemon
42
42
  ahn.pid_file[0, path.size].should == path
43
43
  end
44
44
  end
@@ -13,6 +13,7 @@ module DialplanCommandTestHelpers
13
13
  @output = MockSocket.new
14
14
  @mock_call = Object.new
15
15
  @mock_call.metaclass.send(:attr_reader, :call)
16
+ @mock_call.instance_variable_set(:@call, MockCall.new)
16
17
  mock_call.extend(Adhearsion::VoIP::Asterisk::Commands)
17
18
  flexmock(mock_call) do |call|
18
19
  call.should_receive(:from_pbx).and_return(input)
@@ -21,6 +22,12 @@ module DialplanCommandTestHelpers
21
22
  end
22
23
  end
23
24
 
25
+ class MockCall
26
+ def with_command_lock
27
+ yield
28
+ end
29
+ end
30
+
24
31
  class MockSocket
25
32
 
26
33
  def print(message)
@@ -9,7 +9,7 @@ module ConfigurationManagerTestHelper
9
9
 
10
10
  def mock_config_manager_for(config_string)
11
11
  new_config_manager_with("bogus filename").tap do |manager|
12
- flexmock(manager).should_receive(:execute).and_return(config_string)
12
+ flexmock(File).should_receive(:open).and_return config_string
13
13
  end
14
14
  end
15
15
 
metadata CHANGED
@@ -1,422 +1,399 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: adhearsion
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 3
9
- version: 1.0.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
12
- - Jay Phillips
13
- - Jason Goecke
14
- - Ben Klang
15
- - Ben Langfeld
7
+ authors:
8
+ - Jay Phillips
9
+ - Jason Goecke
10
+ - Ben Klang
11
+ - Ben Langfeld
16
12
  autorequire:
17
13
  bindir: bin
18
14
  cert_chain: []
19
-
20
- date: 2011-05-05 00:00:00 -04:00
15
+ date: 2011-05-29 00:00:00.000000000 -04:00
21
16
  default_executable:
22
- dependencies:
23
- - !ruby/object:Gem::Dependency
24
- name: bundler
25
- prerelease: false
26
- requirement: &id001 !ruby/object:Gem::Requirement
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- segments:
31
- - 1
32
- - 0
33
- - 10
34
- version: 1.0.10
35
- type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: log4r
39
- prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- segments:
45
- - 1
46
- - 0
47
- - 5
48
- version: 1.0.5
49
- type: :runtime
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: activesupport
53
- prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 2
60
- - 1
61
- - 0
62
- version: 2.1.0
63
- type: :runtime
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: i18n
67
- prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- segments:
73
- - 0
74
- version: "0"
75
- type: :runtime
76
- version_requirements: *id004
77
- - !ruby/object:Gem::Dependency
78
- name: rubigen
79
- prerelease: false
80
- requirement: &id005 !ruby/object:Gem::Requirement
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- segments:
85
- - 1
86
- - 5
87
- - 6
88
- version: 1.5.6
89
- type: :runtime
90
- version_requirements: *id005
91
- - !ruby/object:Gem::Dependency
92
- name: rake
93
- prerelease: false
94
- requirement: &id006 !ruby/object:Gem::Requirement
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- segments:
99
- - 0
100
- version: "0"
101
- type: :runtime
102
- version_requirements: *id006
103
- - !ruby/object:Gem::Dependency
104
- name: rubigen
105
- prerelease: false
106
- requirement: &id007 !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- segments:
111
- - 1
112
- - 5
113
- - 6
114
- version: 1.5.6
115
- type: :development
116
- version_requirements: *id007
117
- - !ruby/object:Gem::Dependency
118
- name: rspec
119
- prerelease: false
120
- requirement: &id008 !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- segments:
125
- - 2
126
- - 4
127
- - 0
128
- version: 2.4.0
129
- type: :development
130
- version_requirements: *id008
131
- - !ruby/object:Gem::Dependency
132
- name: flexmock
133
- prerelease: false
134
- requirement: &id009 !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- segments:
139
- - 0
140
- version: "0"
141
- type: :development
142
- version_requirements: *id009
143
- - !ruby/object:Gem::Dependency
144
- name: activerecord
145
- prerelease: false
146
- requirement: &id010 !ruby/object:Gem::Requirement
147
- requirements:
148
- - - ">="
149
- - !ruby/object:Gem::Version
150
- segments:
151
- - 0
152
- version: "0"
153
- type: :development
154
- version_requirements: *id010
155
- - !ruby/object:Gem::Dependency
156
- name: rake
157
- prerelease: false
158
- requirement: &id011 !ruby/object:Gem::Requirement
159
- requirements:
160
- - - ">="
161
- - !ruby/object:Gem::Version
162
- segments:
163
- - 0
164
- version: "0"
165
- type: :development
166
- version_requirements: *id011
17
+ dependencies:
18
+ - !ruby/object:Gem::Dependency
19
+ name: bundler
20
+ requirement: &2153140220 !ruby/object:Gem::Requirement
21
+ none: false
22
+ requirements:
23
+ - - ! '>='
24
+ - !ruby/object:Gem::Version
25
+ version: 1.0.10
26
+ type: :runtime
27
+ prerelease: false
28
+ version_requirements: *2153140220
29
+ - !ruby/object:Gem::Dependency
30
+ name: log4r
31
+ requirement: &2153139740 !ruby/object:Gem::Requirement
32
+ none: false
33
+ requirements:
34
+ - - ! '>='
35
+ - !ruby/object:Gem::Version
36
+ version: 1.0.5
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: *2153139740
40
+ - !ruby/object:Gem::Dependency
41
+ name: activesupport
42
+ requirement: &2153139260 !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: 2.1.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: *2153139260
51
+ - !ruby/object:Gem::Dependency
52
+ name: i18n
53
+ requirement: &2153138880 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ! '>='
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ type: :runtime
60
+ prerelease: false
61
+ version_requirements: *2153138880
62
+ - !ruby/object:Gem::Dependency
63
+ name: rubigen
64
+ requirement: &2153138320 !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: 1.5.6
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: *2153138320
73
+ - !ruby/object:Gem::Dependency
74
+ name: rake
75
+ requirement: &2153137900 !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ! '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ type: :runtime
82
+ prerelease: false
83
+ version_requirements: *2153137900
84
+ - !ruby/object:Gem::Dependency
85
+ name: pry
86
+ requirement: &2153137440 !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ! '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ type: :runtime
93
+ prerelease: false
94
+ version_requirements: *2153137440
95
+ - !ruby/object:Gem::Dependency
96
+ name: rubigen
97
+ requirement: &2153136920 !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: 1.5.6
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: *2153136920
106
+ - !ruby/object:Gem::Dependency
107
+ name: rspec
108
+ requirement: &2153136400 !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ! '>='
112
+ - !ruby/object:Gem::Version
113
+ version: 2.4.0
114
+ type: :development
115
+ prerelease: false
116
+ version_requirements: *2153136400
117
+ - !ruby/object:Gem::Dependency
118
+ name: flexmock
119
+ requirement: &2153136020 !ruby/object:Gem::Requirement
120
+ none: false
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ type: :development
126
+ prerelease: false
127
+ version_requirements: *2153136020
128
+ - !ruby/object:Gem::Dependency
129
+ name: activerecord
130
+ requirement: &2153135560 !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ! '>='
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
136
+ type: :development
137
+ prerelease: false
138
+ version_requirements: *2153135560
139
+ - !ruby/object:Gem::Dependency
140
+ name: rake
141
+ requirement: &2153135140 !ruby/object:Gem::Requirement
142
+ none: false
143
+ requirements:
144
+ - - ! '>='
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: *2153135140
167
150
  description: Adhearsion is an open-source telephony development framework
168
151
  email: dev&Adhearsion.com
169
- executables:
170
- - ahn
171
- - ahnctl
172
- - jahn
152
+ executables:
153
+ - ahn
154
+ - ahnctl
155
+ - jahn
173
156
  extensions: []
174
-
175
157
  extra_rdoc_files: []
176
-
177
- files:
178
- - .gitignore
179
- - CHANGELOG
180
- - EVENTS
181
- - Gemfile
182
- - LICENSE
183
- - README.markdown
184
- - Rakefile
185
- - adhearsion.gemspec
186
- - app_generators/ahn/USAGE
187
- - app_generators/ahn/ahn_generator.rb
188
- - app_generators/ahn/templates/.ahnrc
189
- - app_generators/ahn/templates/Gemfile
190
- - app_generators/ahn/templates/README
191
- - app_generators/ahn/templates/Rakefile
192
- - app_generators/ahn/templates/components/ami_remote/ami_remote.rb
193
- - app_generators/ahn/templates/components/disabled/HOW_TO_ENABLE
194
- - app_generators/ahn/templates/components/disabled/restful_rpc/README.markdown
195
- - app_generators/ahn/templates/components/disabled/restful_rpc/example-client.rb
196
- - app_generators/ahn/templates/components/disabled/restful_rpc/restful_rpc.rb
197
- - app_generators/ahn/templates/components/disabled/restful_rpc/restful_rpc.yml
198
- - app_generators/ahn/templates/components/disabled/restful_rpc/spec/restful_rpc_spec.rb
199
- - app_generators/ahn/templates/components/disabled/sandbox/sandbox.rb
200
- - app_generators/ahn/templates/components/disabled/sandbox/sandbox.yml
201
- - app_generators/ahn/templates/components/disabled/stomp_gateway/README.markdown
202
- - app_generators/ahn/templates/components/disabled/stomp_gateway/stomp_gateway.rb
203
- - app_generators/ahn/templates/components/disabled/stomp_gateway/stomp_gateway.yml
204
- - app_generators/ahn/templates/components/disabled/xmpp_gateway/README.markdown
205
- - app_generators/ahn/templates/components/disabled/xmpp_gateway/xmpp_gateway.rb
206
- - app_generators/ahn/templates/components/disabled/xmpp_gateway/xmpp_gateway.yml
207
- - app_generators/ahn/templates/components/simon_game/simon_game.rb
208
- - app_generators/ahn/templates/config/startup.rb
209
- - app_generators/ahn/templates/dialplan.rb
210
- - app_generators/ahn/templates/events.rb
211
- - bin/ahn
212
- - bin/ahnctl
213
- - bin/jahn
214
- - examples/asterisk_manager_interface/standalone.rb
215
- - lib/adhearsion.rb
216
- - lib/adhearsion/cli.rb
217
- - lib/adhearsion/component_manager.rb
218
- - lib/adhearsion/component_manager/component_tester.rb
219
- - lib/adhearsion/component_manager/spec_framework.rb
220
- - lib/adhearsion/events_support.rb
221
- - lib/adhearsion/foundation/all.rb
222
- - lib/adhearsion/foundation/blank_slate.rb
223
- - lib/adhearsion/foundation/custom_daemonizer.rb
224
- - lib/adhearsion/foundation/event_socket.rb
225
- - lib/adhearsion/foundation/future_resource.rb
226
- - lib/adhearsion/foundation/metaprogramming.rb
227
- - lib/adhearsion/foundation/numeric.rb
228
- - lib/adhearsion/foundation/object.rb
229
- - lib/adhearsion/foundation/pseudo_guid.rb
230
- - lib/adhearsion/foundation/relationship_properties.rb
231
- - lib/adhearsion/foundation/string.rb
232
- - lib/adhearsion/foundation/synchronized_hash.rb
233
- - lib/adhearsion/foundation/thread_safety.rb
234
- - lib/adhearsion/host_definitions.rb
235
- - lib/adhearsion/initializer.rb
236
- - lib/adhearsion/initializer/asterisk.rb
237
- - lib/adhearsion/initializer/configuration.rb
238
- - lib/adhearsion/initializer/database.rb
239
- - lib/adhearsion/initializer/drb.rb
240
- - lib/adhearsion/initializer/freeswitch.rb
241
- - lib/adhearsion/initializer/ldap.rb
242
- - lib/adhearsion/initializer/rails.rb
243
- - lib/adhearsion/initializer/xmpp.rb
244
- - lib/adhearsion/logging.rb
245
- - lib/adhearsion/tasks.rb
246
- - lib/adhearsion/tasks/components.rb
247
- - lib/adhearsion/tasks/database.rb
248
- - lib/adhearsion/tasks/deprecations.rb
249
- - lib/adhearsion/tasks/generating.rb
250
- - lib/adhearsion/tasks/lint.rb
251
- - lib/adhearsion/tasks/testing.rb
252
- - lib/adhearsion/version.rb
253
- - lib/adhearsion/voip/asterisk.rb
254
- - lib/adhearsion/voip/asterisk/agi_server.rb
255
- - lib/adhearsion/voip/asterisk/commands.rb
256
- - lib/adhearsion/voip/asterisk/config_generators/agents.conf.rb
257
- - lib/adhearsion/voip/asterisk/config_generators/config_generator.rb
258
- - lib/adhearsion/voip/asterisk/config_generators/queues.conf.rb
259
- - lib/adhearsion/voip/asterisk/config_generators/voicemail.conf.rb
260
- - lib/adhearsion/voip/asterisk/config_manager.rb
261
- - lib/adhearsion/voip/asterisk/manager_interface.rb
262
- - lib/adhearsion/voip/asterisk/manager_interface/ami_lexer.rb
263
- - lib/adhearsion/voip/asterisk/manager_interface/ami_lexer.rl.rb
264
- - lib/adhearsion/voip/asterisk/manager_interface/ami_messages.rb
265
- - lib/adhearsion/voip/asterisk/manager_interface/ami_protocol_lexer_machine.rl
266
- - lib/adhearsion/voip/asterisk/special_dial_plan_managers.rb
267
- - lib/adhearsion/voip/asterisk/super_manager.rb
268
- - lib/adhearsion/voip/call.rb
269
- - lib/adhearsion/voip/call_routing.rb
270
- - lib/adhearsion/voip/commands.rb
271
- - lib/adhearsion/voip/constants.rb
272
- - lib/adhearsion/voip/conveniences.rb
273
- - lib/adhearsion/voip/dial_plan.rb
274
- - lib/adhearsion/voip/dsl/dialing_dsl.rb
275
- - lib/adhearsion/voip/dsl/dialing_dsl/dialing_dsl_monkey_patches.rb
276
- - lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
277
- - lib/adhearsion/voip/dsl/dialplan/dispatcher.rb
278
- - lib/adhearsion/voip/dsl/dialplan/parser.rb
279
- - lib/adhearsion/voip/dsl/dialplan/thread_mixin.rb
280
- - lib/adhearsion/voip/dsl/numerical_string.rb
281
- - lib/adhearsion/voip/freeswitch/basic_connection_manager.rb
282
- - lib/adhearsion/voip/freeswitch/event_handler.rb
283
- - lib/adhearsion/voip/freeswitch/freeswitch_dialplan_command_factory.rb
284
- - lib/adhearsion/voip/freeswitch/inbound_connection_manager.rb
285
- - lib/adhearsion/voip/freeswitch/oes_server.rb
286
- - lib/adhearsion/voip/menu_state_machine/calculated_match.rb
287
- - lib/adhearsion/voip/menu_state_machine/matchers.rb
288
- - lib/adhearsion/voip/menu_state_machine/menu_builder.rb
289
- - lib/adhearsion/voip/menu_state_machine/menu_class.rb
290
- - lib/adhearsion/xmpp/connection.rb
291
- - lib/theatre.rb
292
- - lib/theatre/README.markdown
293
- - lib/theatre/callback_definition_loader.rb
294
- - lib/theatre/guid.rb
295
- - lib/theatre/invocation.rb
296
- - lib/theatre/namespace_manager.rb
297
- - lib/theatre/version.rb
298
- - spec/ahn_command_spec.rb
299
- - spec/component_manager_spec.rb
300
- - spec/constants_spec.rb
301
- - spec/drb_spec.rb
302
- - spec/fixtures/dialplan.rb
303
- - spec/foundation/event_socket_spec.rb
304
- - spec/host_definitions_spec.rb
305
- - spec/initialization_spec.rb
306
- - spec/initializer/configuration_spec.rb
307
- - spec/initializer/loading_spec.rb
308
- - spec/initializer/paths_spec.rb
309
- - spec/logging_spec.rb
310
- - spec/relationship_properties_spec.rb
311
- - spec/silence.rb
312
- - spec/spec_helper.rb
313
- - spec/voip/asterisk/agi_server_spec.rb
314
- - spec/voip/asterisk/ami/ami_spec.rb
315
- - spec/voip/asterisk/ami/lexer/ami_fixtures.yml
316
- - spec/voip/asterisk/ami/lexer/lexer_story
317
- - spec/voip/asterisk/ami/lexer/lexer_story.rb
318
- - spec/voip/asterisk/ami/lexer/story_helper.rb
319
- - spec/voip/asterisk/ami/old_tests.rb
320
- - spec/voip/asterisk/ami/super_manager/super_manager_story
321
- - spec/voip/asterisk/ami/super_manager/super_manager_story.rb
322
- - spec/voip/asterisk/ami/super_manager/super_manager_story_helper.rb
323
- - spec/voip/asterisk/commands_spec.rb
324
- - spec/voip/asterisk/config_file_generators/agents_spec.rb
325
- - spec/voip/asterisk/config_file_generators/queues_spec.rb
326
- - spec/voip/asterisk/config_file_generators/voicemail_spec.rb
327
- - spec/voip/asterisk/config_manager_spec.rb
328
- - spec/voip/asterisk/menu_command/calculated_match_spec.rb
329
- - spec/voip/asterisk/menu_command/matchers_spec.rb
330
- - spec/voip/call_routing_spec.rb
331
- - spec/voip/dialplan_manager_spec.rb
332
- - spec/voip/dsl/dialing_dsl_spec.rb
333
- - spec/voip/dsl/dispatcher_spec.rb
334
- - spec/voip/dsl/dispatcher_spec_helper.rb
335
- - spec/voip/dsl/parser_spec.rb
336
- - spec/voip/freeswitch/basic_connection_manager_spec.rb
337
- - spec/voip/freeswitch/inbound_connection_manager_spec.rb
338
- - spec/voip/freeswitch/oes_server_spec.rb
339
- - spec/voip/numerical_string_spec.rb
340
- - spec/voip/phone_number_spec.rb
341
- - theatre-spec/dsl_examples/dynamic_stomp.rb
342
- - theatre-spec/dsl_examples/simple_before_call.rb
343
- - theatre-spec/dsl_spec.rb
344
- - theatre-spec/invocation_spec.rb
345
- - theatre-spec/namespace_spec.rb
346
- - theatre-spec/spec_helper.rb
347
- - theatre-spec/spec_helper_spec.rb
348
- - theatre-spec/theatre_class_spec.rb
158
+ files:
159
+ - .gitignore
160
+ - CHANGELOG
161
+ - EVENTS
162
+ - Gemfile
163
+ - LICENSE
164
+ - README.markdown
165
+ - Rakefile
166
+ - adhearsion.gemspec
167
+ - app_generators/ahn/USAGE
168
+ - app_generators/ahn/ahn_generator.rb
169
+ - app_generators/ahn/templates/.ahnrc
170
+ - app_generators/ahn/templates/Gemfile
171
+ - app_generators/ahn/templates/README
172
+ - app_generators/ahn/templates/Rakefile
173
+ - app_generators/ahn/templates/components/ami_remote/ami_remote.rb
174
+ - app_generators/ahn/templates/components/disabled/HOW_TO_ENABLE
175
+ - app_generators/ahn/templates/components/disabled/restful_rpc/README.markdown
176
+ - app_generators/ahn/templates/components/disabled/restful_rpc/example-client.rb
177
+ - app_generators/ahn/templates/components/disabled/restful_rpc/restful_rpc.rb
178
+ - app_generators/ahn/templates/components/disabled/restful_rpc/restful_rpc.yml
179
+ - app_generators/ahn/templates/components/disabled/restful_rpc/spec/restful_rpc_spec.rb
180
+ - app_generators/ahn/templates/components/disabled/sandbox/sandbox.rb
181
+ - app_generators/ahn/templates/components/disabled/sandbox/sandbox.yml
182
+ - app_generators/ahn/templates/components/disabled/stomp_gateway/README.markdown
183
+ - app_generators/ahn/templates/components/disabled/stomp_gateway/stomp_gateway.rb
184
+ - app_generators/ahn/templates/components/disabled/stomp_gateway/stomp_gateway.yml
185
+ - app_generators/ahn/templates/components/disabled/xmpp_gateway/README.markdown
186
+ - app_generators/ahn/templates/components/disabled/xmpp_gateway/xmpp_gateway.rb
187
+ - app_generators/ahn/templates/components/disabled/xmpp_gateway/xmpp_gateway.yml
188
+ - app_generators/ahn/templates/components/simon_game/simon_game.rb
189
+ - app_generators/ahn/templates/config/startup.rb
190
+ - app_generators/ahn/templates/dialplan.rb
191
+ - app_generators/ahn/templates/events.rb
192
+ - bin/ahn
193
+ - bin/ahnctl
194
+ - bin/jahn
195
+ - examples/asterisk_manager_interface/standalone.rb
196
+ - lib/adhearsion.rb
197
+ - lib/adhearsion/cli.rb
198
+ - lib/adhearsion/component_manager.rb
199
+ - lib/adhearsion/component_manager/component_tester.rb
200
+ - lib/adhearsion/component_manager/spec_framework.rb
201
+ - lib/adhearsion/console.rb
202
+ - lib/adhearsion/events_support.rb
203
+ - lib/adhearsion/foundation/all.rb
204
+ - lib/adhearsion/foundation/blank_slate.rb
205
+ - lib/adhearsion/foundation/custom_daemonizer.rb
206
+ - lib/adhearsion/foundation/event_socket.rb
207
+ - lib/adhearsion/foundation/future_resource.rb
208
+ - lib/adhearsion/foundation/metaprogramming.rb
209
+ - lib/adhearsion/foundation/numeric.rb
210
+ - lib/adhearsion/foundation/object.rb
211
+ - lib/adhearsion/foundation/pseudo_guid.rb
212
+ - lib/adhearsion/foundation/relationship_properties.rb
213
+ - lib/adhearsion/foundation/string.rb
214
+ - lib/adhearsion/foundation/synchronized_hash.rb
215
+ - lib/adhearsion/foundation/thread_safety.rb
216
+ - lib/adhearsion/host_definitions.rb
217
+ - lib/adhearsion/initializer.rb
218
+ - lib/adhearsion/initializer/asterisk.rb
219
+ - lib/adhearsion/initializer/configuration.rb
220
+ - lib/adhearsion/initializer/database.rb
221
+ - lib/adhearsion/initializer/drb.rb
222
+ - lib/adhearsion/initializer/freeswitch.rb
223
+ - lib/adhearsion/initializer/ldap.rb
224
+ - lib/adhearsion/initializer/rails.rb
225
+ - lib/adhearsion/initializer/xmpp.rb
226
+ - lib/adhearsion/logging.rb
227
+ - lib/adhearsion/tasks.rb
228
+ - lib/adhearsion/tasks/components.rb
229
+ - lib/adhearsion/tasks/database.rb
230
+ - lib/adhearsion/tasks/deprecations.rb
231
+ - lib/adhearsion/tasks/generating.rb
232
+ - lib/adhearsion/tasks/lint.rb
233
+ - lib/adhearsion/tasks/testing.rb
234
+ - lib/adhearsion/version.rb
235
+ - lib/adhearsion/voip/asterisk.rb
236
+ - lib/adhearsion/voip/asterisk/agi_server.rb
237
+ - lib/adhearsion/voip/asterisk/commands.rb
238
+ - lib/adhearsion/voip/asterisk/config_generators/agents.conf.rb
239
+ - lib/adhearsion/voip/asterisk/config_generators/config_generator.rb
240
+ - lib/adhearsion/voip/asterisk/config_generators/queues.conf.rb
241
+ - lib/adhearsion/voip/asterisk/config_generators/voicemail.conf.rb
242
+ - lib/adhearsion/voip/asterisk/config_manager.rb
243
+ - lib/adhearsion/voip/asterisk/manager_interface.rb
244
+ - lib/adhearsion/voip/asterisk/manager_interface/ami_lexer.rb
245
+ - lib/adhearsion/voip/asterisk/manager_interface/ami_lexer.rl.rb
246
+ - lib/adhearsion/voip/asterisk/manager_interface/ami_messages.rb
247
+ - lib/adhearsion/voip/asterisk/manager_interface/ami_protocol_lexer_machine.rl
248
+ - lib/adhearsion/voip/asterisk/special_dial_plan_managers.rb
249
+ - lib/adhearsion/voip/asterisk/super_manager.rb
250
+ - lib/adhearsion/voip/call.rb
251
+ - lib/adhearsion/voip/call_routing.rb
252
+ - lib/adhearsion/voip/commands.rb
253
+ - lib/adhearsion/voip/constants.rb
254
+ - lib/adhearsion/voip/conveniences.rb
255
+ - lib/adhearsion/voip/dial_plan.rb
256
+ - lib/adhearsion/voip/dsl/dialing_dsl.rb
257
+ - lib/adhearsion/voip/dsl/dialing_dsl/dialing_dsl_monkey_patches.rb
258
+ - lib/adhearsion/voip/dsl/dialplan/control_passing_exception.rb
259
+ - lib/adhearsion/voip/dsl/dialplan/dispatcher.rb
260
+ - lib/adhearsion/voip/dsl/dialplan/parser.rb
261
+ - lib/adhearsion/voip/dsl/dialplan/thread_mixin.rb
262
+ - lib/adhearsion/voip/dsl/numerical_string.rb
263
+ - lib/adhearsion/voip/freeswitch/basic_connection_manager.rb
264
+ - lib/adhearsion/voip/freeswitch/event_handler.rb
265
+ - lib/adhearsion/voip/freeswitch/freeswitch_dialplan_command_factory.rb
266
+ - lib/adhearsion/voip/freeswitch/inbound_connection_manager.rb
267
+ - lib/adhearsion/voip/freeswitch/oes_server.rb
268
+ - lib/adhearsion/voip/menu_state_machine/calculated_match.rb
269
+ - lib/adhearsion/voip/menu_state_machine/matchers.rb
270
+ - lib/adhearsion/voip/menu_state_machine/menu_builder.rb
271
+ - lib/adhearsion/voip/menu_state_machine/menu_class.rb
272
+ - lib/adhearsion/xmpp/connection.rb
273
+ - lib/theatre.rb
274
+ - lib/theatre/README.markdown
275
+ - lib/theatre/callback_definition_loader.rb
276
+ - lib/theatre/guid.rb
277
+ - lib/theatre/invocation.rb
278
+ - lib/theatre/namespace_manager.rb
279
+ - lib/theatre/version.rb
280
+ - spec/ahn_command_spec.rb
281
+ - spec/component_manager_spec.rb
282
+ - spec/constants_spec.rb
283
+ - spec/drb_spec.rb
284
+ - spec/fixtures/dialplan.rb
285
+ - spec/foundation/event_socket_spec.rb
286
+ - spec/host_definitions_spec.rb
287
+ - spec/initialization_spec.rb
288
+ - spec/initializer/configuration_spec.rb
289
+ - spec/initializer/loading_spec.rb
290
+ - spec/initializer/paths_spec.rb
291
+ - spec/logging_spec.rb
292
+ - spec/relationship_properties_spec.rb
293
+ - spec/silence.rb
294
+ - spec/spec_helper.rb
295
+ - spec/voip/asterisk/agi_server_spec.rb
296
+ - spec/voip/asterisk/ami/ami_spec.rb
297
+ - spec/voip/asterisk/ami/lexer/ami_fixtures.yml
298
+ - spec/voip/asterisk/ami/lexer/lexer_story
299
+ - spec/voip/asterisk/ami/lexer/lexer_story.rb
300
+ - spec/voip/asterisk/ami/lexer/story_helper.rb
301
+ - spec/voip/asterisk/ami/old_tests.rb
302
+ - spec/voip/asterisk/ami/super_manager/super_manager_story
303
+ - spec/voip/asterisk/ami/super_manager/super_manager_story.rb
304
+ - spec/voip/asterisk/ami/super_manager/super_manager_story_helper.rb
305
+ - spec/voip/asterisk/commands_spec.rb
306
+ - spec/voip/asterisk/config_file_generators/agents_spec.rb
307
+ - spec/voip/asterisk/config_file_generators/queues_spec.rb
308
+ - spec/voip/asterisk/config_file_generators/voicemail_spec.rb
309
+ - spec/voip/asterisk/config_manager_spec.rb
310
+ - spec/voip/asterisk/menu_command/calculated_match_spec.rb
311
+ - spec/voip/asterisk/menu_command/matchers_spec.rb
312
+ - spec/voip/call_routing_spec.rb
313
+ - spec/voip/dialplan_manager_spec.rb
314
+ - spec/voip/dsl/dialing_dsl_spec.rb
315
+ - spec/voip/dsl/dispatcher_spec.rb
316
+ - spec/voip/dsl/dispatcher_spec_helper.rb
317
+ - spec/voip/dsl/parser_spec.rb
318
+ - spec/voip/freeswitch/basic_connection_manager_spec.rb
319
+ - spec/voip/freeswitch/inbound_connection_manager_spec.rb
320
+ - spec/voip/freeswitch/oes_server_spec.rb
321
+ - spec/voip/numerical_string_spec.rb
322
+ - spec/voip/phone_number_spec.rb
323
+ - theatre-spec/dsl_examples/dynamic_stomp.rb
324
+ - theatre-spec/dsl_examples/simple_before_call.rb
325
+ - theatre-spec/dsl_spec.rb
326
+ - theatre-spec/invocation_spec.rb
327
+ - theatre-spec/namespace_spec.rb
328
+ - theatre-spec/spec_helper.rb
329
+ - theatre-spec/spec_helper_spec.rb
330
+ - theatre-spec/theatre_class_spec.rb
349
331
  has_rdoc: true
350
332
  homepage: http://adhearsion.com
351
333
  licenses: []
352
-
353
334
  post_install_message:
354
335
  rdoc_options: []
355
-
356
- require_paths:
357
- - lib
358
- required_ruby_version: !ruby/object:Gem::Requirement
359
- requirements:
360
- - - ">="
361
- - !ruby/object:Gem::Version
362
- segments:
363
- - 0
364
- version: "0"
365
- required_rubygems_version: !ruby/object:Gem::Requirement
366
- requirements:
367
- - - ">="
368
- - !ruby/object:Gem::Version
369
- segments:
370
- - 0
371
- version: "0"
336
+ require_paths:
337
+ - lib
338
+ required_ruby_version: !ruby/object:Gem::Requirement
339
+ none: false
340
+ requirements:
341
+ - - ! '>='
342
+ - !ruby/object:Gem::Version
343
+ version: '0'
344
+ required_rubygems_version: !ruby/object:Gem::Requirement
345
+ none: false
346
+ requirements:
347
+ - - ! '>='
348
+ - !ruby/object:Gem::Version
349
+ version: '0'
372
350
  requirements: []
373
-
374
351
  rubyforge_project: adhearsion
375
- rubygems_version: 1.3.6
352
+ rubygems_version: 1.6.2
376
353
  signing_key:
377
354
  specification_version: 2
378
355
  summary: Adhearsion, open-source telephony development framework
379
- test_files:
380
- - spec/ahn_command_spec.rb
381
- - spec/component_manager_spec.rb
382
- - spec/constants_spec.rb
383
- - spec/drb_spec.rb
384
- - spec/fixtures/dialplan.rb
385
- - spec/foundation/event_socket_spec.rb
386
- - spec/host_definitions_spec.rb
387
- - spec/initialization_spec.rb
388
- - spec/initializer/configuration_spec.rb
389
- - spec/initializer/loading_spec.rb
390
- - spec/initializer/paths_spec.rb
391
- - spec/logging_spec.rb
392
- - spec/relationship_properties_spec.rb
393
- - spec/silence.rb
394
- - spec/spec_helper.rb
395
- - spec/voip/asterisk/agi_server_spec.rb
396
- - spec/voip/asterisk/ami/ami_spec.rb
397
- - spec/voip/asterisk/ami/lexer/ami_fixtures.yml
398
- - spec/voip/asterisk/ami/lexer/lexer_story
399
- - spec/voip/asterisk/ami/lexer/lexer_story.rb
400
- - spec/voip/asterisk/ami/lexer/story_helper.rb
401
- - spec/voip/asterisk/ami/old_tests.rb
402
- - spec/voip/asterisk/ami/super_manager/super_manager_story
403
- - spec/voip/asterisk/ami/super_manager/super_manager_story.rb
404
- - spec/voip/asterisk/ami/super_manager/super_manager_story_helper.rb
405
- - spec/voip/asterisk/commands_spec.rb
406
- - spec/voip/asterisk/config_file_generators/agents_spec.rb
407
- - spec/voip/asterisk/config_file_generators/queues_spec.rb
408
- - spec/voip/asterisk/config_file_generators/voicemail_spec.rb
409
- - spec/voip/asterisk/config_manager_spec.rb
410
- - spec/voip/asterisk/menu_command/calculated_match_spec.rb
411
- - spec/voip/asterisk/menu_command/matchers_spec.rb
412
- - spec/voip/call_routing_spec.rb
413
- - spec/voip/dialplan_manager_spec.rb
414
- - spec/voip/dsl/dialing_dsl_spec.rb
415
- - spec/voip/dsl/dispatcher_spec.rb
416
- - spec/voip/dsl/dispatcher_spec_helper.rb
417
- - spec/voip/dsl/parser_spec.rb
418
- - spec/voip/freeswitch/basic_connection_manager_spec.rb
419
- - spec/voip/freeswitch/inbound_connection_manager_spec.rb
420
- - spec/voip/freeswitch/oes_server_spec.rb
421
- - spec/voip/numerical_string_spec.rb
422
- - spec/voip/phone_number_spec.rb
356
+ test_files:
357
+ - spec/ahn_command_spec.rb
358
+ - spec/component_manager_spec.rb
359
+ - spec/constants_spec.rb
360
+ - spec/drb_spec.rb
361
+ - spec/fixtures/dialplan.rb
362
+ - spec/foundation/event_socket_spec.rb
363
+ - spec/host_definitions_spec.rb
364
+ - spec/initialization_spec.rb
365
+ - spec/initializer/configuration_spec.rb
366
+ - spec/initializer/loading_spec.rb
367
+ - spec/initializer/paths_spec.rb
368
+ - spec/logging_spec.rb
369
+ - spec/relationship_properties_spec.rb
370
+ - spec/silence.rb
371
+ - spec/spec_helper.rb
372
+ - spec/voip/asterisk/agi_server_spec.rb
373
+ - spec/voip/asterisk/ami/ami_spec.rb
374
+ - spec/voip/asterisk/ami/lexer/ami_fixtures.yml
375
+ - spec/voip/asterisk/ami/lexer/lexer_story
376
+ - spec/voip/asterisk/ami/lexer/lexer_story.rb
377
+ - spec/voip/asterisk/ami/lexer/story_helper.rb
378
+ - spec/voip/asterisk/ami/old_tests.rb
379
+ - spec/voip/asterisk/ami/super_manager/super_manager_story
380
+ - spec/voip/asterisk/ami/super_manager/super_manager_story.rb
381
+ - spec/voip/asterisk/ami/super_manager/super_manager_story_helper.rb
382
+ - spec/voip/asterisk/commands_spec.rb
383
+ - spec/voip/asterisk/config_file_generators/agents_spec.rb
384
+ - spec/voip/asterisk/config_file_generators/queues_spec.rb
385
+ - spec/voip/asterisk/config_file_generators/voicemail_spec.rb
386
+ - spec/voip/asterisk/config_manager_spec.rb
387
+ - spec/voip/asterisk/menu_command/calculated_match_spec.rb
388
+ - spec/voip/asterisk/menu_command/matchers_spec.rb
389
+ - spec/voip/call_routing_spec.rb
390
+ - spec/voip/dialplan_manager_spec.rb
391
+ - spec/voip/dsl/dialing_dsl_spec.rb
392
+ - spec/voip/dsl/dispatcher_spec.rb
393
+ - spec/voip/dsl/dispatcher_spec_helper.rb
394
+ - spec/voip/dsl/parser_spec.rb
395
+ - spec/voip/freeswitch/basic_connection_manager_spec.rb
396
+ - spec/voip/freeswitch/inbound_connection_manager_spec.rb
397
+ - spec/voip/freeswitch/oes_server_spec.rb
398
+ - spec/voip/numerical_string_spec.rb
399
+ - spec/voip/phone_number_spec.rb