adhearsion 1.2.5 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -11,4 +11,6 @@ Gemfile.lock
11
11
  coverage
12
12
  spec/reports
13
13
  doc
14
- /.rbx/
14
+ /.rbx/
15
+ tmp/
16
+ *.log
data/CHANGELOG CHANGED
@@ -1,4 +1,6 @@
1
1
  support/1.x.x
2
+ 1.2.6
3
+ - Bugfix: Adhearsion was not explicitly closing dialplan.rb or events.rb files when loading them. This caused file descriptors to remain open on JRuby even though they were GC'd by CRuby.
2
4
 
3
5
  1.2.5
4
6
  - Catch missing exceptions raised in the after_initialized hook
@@ -2,7 +2,7 @@ module Adhearsion #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1 unless defined? MAJOR
4
4
  MINOR = 2 unless defined? MINOR
5
- TINY = 5 unless defined? TINY
5
+ TINY = 6 unless defined? TINY
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.') unless defined? STRING
8
8
  end
@@ -205,6 +205,8 @@ module Adhearsion
205
205
  def load(dialplan_file)
206
206
  dialplan_code = dialplan_file.read
207
207
  @context_collector.instance_eval(dialplan_code, dialplan_file.path)
208
+ ensure
209
+ dialplan_file.close
208
210
  nil
209
211
  end
210
212
 
@@ -26,6 +26,8 @@ module Theatre
26
26
  file = File.open(file) if file.kind_of? String
27
27
  instance_eval file.read, file.path
28
28
  self
29
+ ensure
30
+ file.close
29
31
  end
30
32
 
31
33
  ##
@@ -126,11 +126,9 @@ describe "Using Invocations that've been ran through the Theatre" do
126
126
  invocation = Theatre::Invocation.new('/foo/bar', lambda { raise LocalJumpError })
127
127
  invocation.queued
128
128
 
129
- now = Time.now
130
- flexmock(Time).should_receive(:now).twice.and_return now
131
-
132
129
  invocation.start
133
130
  invocation.should be_error
131
+ invocation.finished_time.should be_kind_of(Time)
134
132
  end
135
133
 
136
134
  it "should set the #started_time property after starting" 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: 1.2.5
4
+ version: 1.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,11 +12,11 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2012-03-20 00:00:00.000000000 Z
15
+ date: 2012-06-14 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler
19
- requirement: &2164812460 !ruby/object:Gem::Requirement
19
+ requirement: !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
22
  - - ! '>='
@@ -24,10 +24,15 @@ dependencies:
24
24
  version: 1.0.10
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *2164812460
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.10
28
33
  - !ruby/object:Gem::Dependency
29
34
  name: log4r
30
- requirement: &2164810380 !ruby/object:Gem::Requirement
35
+ requirement: !ruby/object:Gem::Requirement
31
36
  none: false
32
37
  requirements:
33
38
  - - ! '>='
@@ -35,10 +40,15 @@ dependencies:
35
40
  version: 1.0.5
36
41
  type: :runtime
37
42
  prerelease: false
38
- version_requirements: *2164810380
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: 1.0.5
39
49
  - !ruby/object:Gem::Dependency
40
50
  name: activesupport
41
- requirement: &2164809260 !ruby/object:Gem::Requirement
51
+ requirement: !ruby/object:Gem::Requirement
42
52
  none: false
43
53
  requirements:
44
54
  - - ! '>='
@@ -46,10 +56,15 @@ dependencies:
46
56
  version: 2.1.0
47
57
  type: :runtime
48
58
  prerelease: false
49
- version_requirements: *2164809260
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ! '>='
63
+ - !ruby/object:Gem::Version
64
+ version: 2.1.0
50
65
  - !ruby/object:Gem::Dependency
51
66
  name: i18n
52
- requirement: &2164808200 !ruby/object:Gem::Requirement
67
+ requirement: !ruby/object:Gem::Requirement
53
68
  none: false
54
69
  requirements:
55
70
  - - ! '>='
@@ -57,10 +72,15 @@ dependencies:
57
72
  version: '0'
58
73
  type: :runtime
59
74
  prerelease: false
60
- version_requirements: *2164808200
75
+ version_requirements: !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ! '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
61
81
  - !ruby/object:Gem::Dependency
62
82
  name: json
63
- requirement: &2164806740 !ruby/object:Gem::Requirement
83
+ requirement: !ruby/object:Gem::Requirement
64
84
  none: false
65
85
  requirements:
66
86
  - - ! '>='
@@ -68,10 +88,15 @@ dependencies:
68
88
  version: '0'
69
89
  type: :runtime
70
90
  prerelease: false
71
- version_requirements: *2164806740
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ none: false
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
72
97
  - !ruby/object:Gem::Dependency
73
98
  name: thor
74
- requirement: &2164805980 !ruby/object:Gem::Requirement
99
+ requirement: !ruby/object:Gem::Requirement
75
100
  none: false
76
101
  requirements:
77
102
  - - ! '>='
@@ -79,10 +104,15 @@ dependencies:
79
104
  version: '0'
80
105
  type: :runtime
81
106
  prerelease: false
82
- version_requirements: *2164805980
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ! '>='
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
83
113
  - !ruby/object:Gem::Dependency
84
114
  name: rake
85
- requirement: &2164805280 !ruby/object:Gem::Requirement
115
+ requirement: !ruby/object:Gem::Requirement
86
116
  none: false
87
117
  requirements:
88
118
  - - ! '>='
@@ -90,10 +120,15 @@ dependencies:
90
120
  version: '0'
91
121
  type: :runtime
92
122
  prerelease: false
93
- version_requirements: *2164805280
123
+ version_requirements: !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
94
129
  - !ruby/object:Gem::Dependency
95
130
  name: pry
96
- requirement: &2164804440 !ruby/object:Gem::Requirement
131
+ requirement: !ruby/object:Gem::Requirement
97
132
  none: false
98
133
  requirements:
99
134
  - - ! '>='
@@ -101,10 +136,15 @@ dependencies:
101
136
  version: '0'
102
137
  type: :runtime
103
138
  prerelease: false
104
- version_requirements: *2164804440
139
+ version_requirements: !ruby/object:Gem::Requirement
140
+ none: false
141
+ requirements:
142
+ - - ! '>='
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
105
145
  - !ruby/object:Gem::Dependency
106
146
  name: rspec
107
- requirement: &2164841480 !ruby/object:Gem::Requirement
147
+ requirement: !ruby/object:Gem::Requirement
108
148
  none: false
109
149
  requirements:
110
150
  - - ! '>='
@@ -115,10 +155,18 @@ dependencies:
115
155
  version: 2.8.0
116
156
  type: :development
117
157
  prerelease: false
118
- version_requirements: *2164841480
158
+ version_requirements: !ruby/object:Gem::Requirement
159
+ none: false
160
+ requirements:
161
+ - - ! '>='
162
+ - !ruby/object:Gem::Version
163
+ version: 2.4.0
164
+ - - <
165
+ - !ruby/object:Gem::Version
166
+ version: 2.8.0
119
167
  - !ruby/object:Gem::Dependency
120
168
  name: flexmock
121
- requirement: &2164839340 !ruby/object:Gem::Requirement
169
+ requirement: !ruby/object:Gem::Requirement
122
170
  none: false
123
171
  requirements:
124
172
  - - ! '>='
@@ -126,10 +174,15 @@ dependencies:
126
174
  version: '0'
127
175
  type: :development
128
176
  prerelease: false
129
- version_requirements: *2164839340
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ none: false
179
+ requirements:
180
+ - - ! '>='
181
+ - !ruby/object:Gem::Version
182
+ version: '0'
130
183
  - !ruby/object:Gem::Dependency
131
184
  name: activerecord
132
- requirement: &2164837440 !ruby/object:Gem::Requirement
185
+ requirement: !ruby/object:Gem::Requirement
133
186
  none: false
134
187
  requirements:
135
188
  - - ! '>='
@@ -137,10 +190,15 @@ dependencies:
137
190
  version: 2.1.0
138
191
  type: :development
139
192
  prerelease: false
140
- version_requirements: *2164837440
193
+ version_requirements: !ruby/object:Gem::Requirement
194
+ none: false
195
+ requirements:
196
+ - - ! '>='
197
+ - !ruby/object:Gem::Version
198
+ version: 2.1.0
141
199
  - !ruby/object:Gem::Dependency
142
200
  name: rake
143
- requirement: &2164848960 !ruby/object:Gem::Requirement
201
+ requirement: !ruby/object:Gem::Requirement
144
202
  none: false
145
203
  requirements:
146
204
  - - ! '>='
@@ -148,10 +206,15 @@ dependencies:
148
206
  version: '0'
149
207
  type: :development
150
208
  prerelease: false
151
- version_requirements: *2164848960
209
+ version_requirements: !ruby/object:Gem::Requirement
210
+ none: false
211
+ requirements:
212
+ - - ! '>='
213
+ - !ruby/object:Gem::Version
214
+ version: '0'
152
215
  - !ruby/object:Gem::Dependency
153
216
  name: simplecov
154
- requirement: &2164848040 !ruby/object:Gem::Requirement
217
+ requirement: !ruby/object:Gem::Requirement
155
218
  none: false
156
219
  requirements:
157
220
  - - ! '>='
@@ -159,10 +222,15 @@ dependencies:
159
222
  version: '0'
160
223
  type: :development
161
224
  prerelease: false
162
- version_requirements: *2164848040
225
+ version_requirements: !ruby/object:Gem::Requirement
226
+ none: false
227
+ requirements:
228
+ - - ! '>='
229
+ - !ruby/object:Gem::Version
230
+ version: '0'
163
231
  - !ruby/object:Gem::Dependency
164
232
  name: simplecov-rcov
165
- requirement: &2164846980 !ruby/object:Gem::Requirement
233
+ requirement: !ruby/object:Gem::Requirement
166
234
  none: false
167
235
  requirements:
168
236
  - - ! '>='
@@ -170,10 +238,15 @@ dependencies:
170
238
  version: '0'
171
239
  type: :development
172
240
  prerelease: false
173
- version_requirements: *2164846980
241
+ version_requirements: !ruby/object:Gem::Requirement
242
+ none: false
243
+ requirements:
244
+ - - ! '>='
245
+ - !ruby/object:Gem::Version
246
+ version: '0'
174
247
  - !ruby/object:Gem::Dependency
175
248
  name: ci_reporter
176
- requirement: &2164845760 !ruby/object:Gem::Requirement
249
+ requirement: !ruby/object:Gem::Requirement
177
250
  none: false
178
251
  requirements:
179
252
  - - ! '>='
@@ -181,7 +254,12 @@ dependencies:
181
254
  version: '0'
182
255
  type: :development
183
256
  prerelease: false
184
- version_requirements: *2164845760
257
+ version_requirements: !ruby/object:Gem::Requirement
258
+ none: false
259
+ requirements:
260
+ - - ! '>='
261
+ - !ruby/object:Gem::Version
262
+ version: '0'
185
263
  description: Adhearsion is an open-source telephony development framework
186
264
  email: dev&Adhearsion.com
187
265
  executables:
@@ -370,7 +448,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
370
448
  version: '0'
371
449
  segments:
372
450
  - 0
373
- hash: -4214800250478439630
451
+ hash: -1033038213187391653
374
452
  required_rubygems_version: !ruby/object:Gem::Requirement
375
453
  none: false
376
454
  requirements:
@@ -379,10 +457,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
379
457
  version: '0'
380
458
  segments:
381
459
  - 0
382
- hash: -4214800250478439630
460
+ hash: -1033038213187391653
383
461
  requirements: []
384
462
  rubyforge_project:
385
- rubygems_version: 1.8.10
463
+ rubygems_version: 1.8.24
386
464
  signing_key:
387
465
  specification_version: 3
388
466
  summary: Adhearsion, open-source telephony development framework