adhearsion-asterisk 0.3.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,8 @@
1
- # develop
1
+ # v1.1.0
2
+ # Adhearsion::Call now exposes the AGI context through #agi_context
3
+
4
+ # v1.0.0
5
+ # Stable release
2
6
 
3
7
  # v0.3.0 - 2012-03-29
4
8
  # Remove the monkey-patched version of `CallController#stream_file` since Punchblock now supports stopping output
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2011 Ben Langfeld
3
+ Copyright (c) 2012 Adhearsion Foundation Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -140,4 +140,4 @@ Note on Patches/Pull Requests
140
140
  Copyright
141
141
  ---------
142
142
 
143
- Copyright (c) 2011 Ben Langfeld. MIT licence (see LICENSE for details).
143
+ Copyright (c) 2012 Adhearsion Foundation Inc. MIT license (see LICENSE for details).
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_runtime_dependency %q<adhearsion>, [">= 2.0.0.rc2"]
21
+ s.add_runtime_dependency %q<adhearsion>, ["~> 2.0"]
22
22
  s.add_runtime_dependency %q<activesupport>, [">= 3.0.10"]
23
23
 
24
24
  s.add_development_dependency %q<bundler>, [">= 1.0.0"]
@@ -2,6 +2,7 @@ require 'adhearsion'
2
2
  require 'active_support/dependencies/autoload'
3
3
  require 'adhearsion/asterisk/version'
4
4
  require 'adhearsion/asterisk/call_controller_methods'
5
+ require 'adhearsion/asterisk/has_agi_context'
5
6
  require 'adhearsion/asterisk/plugin'
6
7
 
7
8
  module Adhearsion
@@ -0,0 +1,13 @@
1
+ module Adhearsion
2
+ module Asterisk
3
+ module HasAgiContext
4
+ def agi_context
5
+ self[:agi_context]
6
+ end
7
+ end
8
+
9
+ class Adhearsion::Call
10
+ include HasAgiContext
11
+ end
12
+ end
13
+ end
@@ -1,5 +1,5 @@
1
1
  module Adhearsion
2
2
  module Asterisk
3
- VERSION = "0.3.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ module Adhearsion::Asterisk
4
+ describe HasAgiContext do
5
+ let(:offer) do
6
+ Punchblock::Event::Offer.new :headers => {:agi_context => 'foobar'}
7
+ end
8
+
9
+ subject { Adhearsion::Call.new offer}
10
+
11
+ it "should return the AGI context" do
12
+ subject.agi_context.should be == 'foobar'
13
+ end
14
+ end
15
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adhearsion-asterisk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,22 +10,27 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-03-29 00:00:00.000000000 Z
13
+ date: 2012-04-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: adhearsion
17
- requirement: &2152681880 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
- - - ! '>='
20
+ - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: 2.0.0.rc2
22
+ version: '2.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2152681880
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ~>
29
+ - !ruby/object:Gem::Version
30
+ version: '2.0'
26
31
  - !ruby/object:Gem::Dependency
27
32
  name: activesupport
28
- requirement: &2152681220 !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
29
34
  none: false
30
35
  requirements:
31
36
  - - ! '>='
@@ -33,10 +38,15 @@ dependencies:
33
38
  version: 3.0.10
34
39
  type: :runtime
35
40
  prerelease: false
36
- version_requirements: *2152681220
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: 3.0.10
37
47
  - !ruby/object:Gem::Dependency
38
48
  name: bundler
39
- requirement: &2152680480 !ruby/object:Gem::Requirement
49
+ requirement: !ruby/object:Gem::Requirement
40
50
  none: false
41
51
  requirements:
42
52
  - - ! '>='
@@ -44,10 +54,15 @@ dependencies:
44
54
  version: 1.0.0
45
55
  type: :development
46
56
  prerelease: false
47
- version_requirements: *2152680480
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: 1.0.0
48
63
  - !ruby/object:Gem::Dependency
49
64
  name: rspec
50
- requirement: &2152679880 !ruby/object:Gem::Requirement
65
+ requirement: !ruby/object:Gem::Requirement
51
66
  none: false
52
67
  requirements:
53
68
  - - ! '>='
@@ -55,10 +70,15 @@ dependencies:
55
70
  version: 2.5.0
56
71
  type: :development
57
72
  prerelease: false
58
- version_requirements: *2152679880
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: 2.5.0
59
79
  - !ruby/object:Gem::Dependency
60
80
  name: ci_reporter
61
- requirement: &2152679240 !ruby/object:Gem::Requirement
81
+ requirement: !ruby/object:Gem::Requirement
62
82
  none: false
63
83
  requirements:
64
84
  - - ! '>='
@@ -66,10 +86,15 @@ dependencies:
66
86
  version: 1.6.3
67
87
  type: :development
68
88
  prerelease: false
69
- version_requirements: *2152679240
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ! '>='
93
+ - !ruby/object:Gem::Version
94
+ version: 1.6.3
70
95
  - !ruby/object:Gem::Dependency
71
96
  name: simplecov
72
- requirement: &2152678520 !ruby/object:Gem::Requirement
97
+ requirement: !ruby/object:Gem::Requirement
73
98
  none: false
74
99
  requirements:
75
100
  - - ! '>='
@@ -77,10 +102,15 @@ dependencies:
77
102
  version: '0'
78
103
  type: :development
79
104
  prerelease: false
80
- version_requirements: *2152678520
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
81
111
  - !ruby/object:Gem::Dependency
82
112
  name: simplecov-rcov
83
- requirement: &2152677920 !ruby/object:Gem::Requirement
113
+ requirement: !ruby/object:Gem::Requirement
84
114
  none: false
85
115
  requirements:
86
116
  - - ! '>='
@@ -88,10 +118,15 @@ dependencies:
88
118
  version: '0'
89
119
  type: :development
90
120
  prerelease: false
91
- version_requirements: *2152677920
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
92
127
  - !ruby/object:Gem::Dependency
93
128
  name: yard
94
- requirement: &2152677240 !ruby/object:Gem::Requirement
129
+ requirement: !ruby/object:Gem::Requirement
95
130
  none: false
96
131
  requirements:
97
132
  - - ! '>='
@@ -99,10 +134,15 @@ dependencies:
99
134
  version: 0.6.0
100
135
  type: :development
101
136
  prerelease: false
102
- version_requirements: *2152677240
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: 0.6.0
103
143
  - !ruby/object:Gem::Dependency
104
144
  name: rake
105
- requirement: &2168705200 !ruby/object:Gem::Requirement
145
+ requirement: !ruby/object:Gem::Requirement
106
146
  none: false
107
147
  requirements:
108
148
  - - ! '>='
@@ -110,10 +150,15 @@ dependencies:
110
150
  version: '0'
111
151
  type: :development
112
152
  prerelease: false
113
- version_requirements: *2168705200
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ none: false
155
+ requirements:
156
+ - - ! '>='
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
114
159
  - !ruby/object:Gem::Dependency
115
160
  name: mocha
116
- requirement: &2168704540 !ruby/object:Gem::Requirement
161
+ requirement: !ruby/object:Gem::Requirement
117
162
  none: false
118
163
  requirements:
119
164
  - - ! '>='
@@ -121,10 +166,15 @@ dependencies:
121
166
  version: '0'
122
167
  type: :development
123
168
  prerelease: false
124
- version_requirements: *2168704540
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ none: false
171
+ requirements:
172
+ - - ! '>='
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
125
175
  - !ruby/object:Gem::Dependency
126
176
  name: bones
127
- requirement: &2168704040 !ruby/object:Gem::Requirement
177
+ requirement: !ruby/object:Gem::Requirement
128
178
  none: false
129
179
  requirements:
130
180
  - - ! '>='
@@ -132,10 +182,15 @@ dependencies:
132
182
  version: '0'
133
183
  type: :development
134
184
  prerelease: false
135
- version_requirements: *2168704040
185
+ version_requirements: !ruby/object:Gem::Requirement
186
+ none: false
187
+ requirements:
188
+ - - ! '>='
189
+ - !ruby/object:Gem::Version
190
+ version: '0'
136
191
  - !ruby/object:Gem::Dependency
137
192
  name: guard-rspec
138
- requirement: &2168703200 !ruby/object:Gem::Requirement
193
+ requirement: !ruby/object:Gem::Requirement
139
194
  none: false
140
195
  requirements:
141
196
  - - ! '>='
@@ -143,10 +198,15 @@ dependencies:
143
198
  version: '0'
144
199
  type: :development
145
200
  prerelease: false
146
- version_requirements: *2168703200
201
+ version_requirements: !ruby/object:Gem::Requirement
202
+ none: false
203
+ requirements:
204
+ - - ! '>='
205
+ - !ruby/object:Gem::Version
206
+ version: '0'
147
207
  - !ruby/object:Gem::Dependency
148
208
  name: ruby_gntp
149
- requirement: &2168702500 !ruby/object:Gem::Requirement
209
+ requirement: !ruby/object:Gem::Requirement
150
210
  none: false
151
211
  requirements:
152
212
  - - ! '>='
@@ -154,7 +214,12 @@ dependencies:
154
214
  version: '0'
155
215
  type: :development
156
216
  prerelease: false
157
- version_requirements: *2168702500
217
+ version_requirements: !ruby/object:Gem::Requirement
218
+ none: false
219
+ requirements:
220
+ - - ! '>='
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
158
223
  description: An Adhearsion Plugin providing Asterisk-specific dialplan methods, AMI
159
224
  access, and access to Asterisk configuration
160
225
  email:
@@ -182,6 +247,7 @@ files:
182
247
  - lib/adhearsion/asterisk/config_generator/queues.rb
183
248
  - lib/adhearsion/asterisk/config_generator/voicemail.rb
184
249
  - lib/adhearsion/asterisk/config_manager.rb
250
+ - lib/adhearsion/asterisk/has_agi_context.rb
185
251
  - lib/adhearsion/asterisk/plugin.rb
186
252
  - lib/adhearsion/asterisk/queue_proxy.rb
187
253
  - lib/adhearsion/asterisk/queue_proxy/agent_proxy.rb
@@ -197,6 +263,7 @@ files:
197
263
  - spec/adhearsion/asterisk/queue_proxy/queue_agents_list_proxy_spec.rb
198
264
  - spec/adhearsion/asterisk/queue_proxy_spec.rb
199
265
  - spec/adhearsion/asterisk_spec.rb
266
+ - spec/has_agi_context.rb
200
267
  - spec/spec_helper.rb
201
268
  - spec/support/the_following_code.rb
202
269
  homepage: http://adhearsion.com
@@ -213,7 +280,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
213
280
  version: '0'
214
281
  segments:
215
282
  - 0
216
- hash: -71015258719465438
283
+ hash: -2660545808328016919
217
284
  required_rubygems_version: !ruby/object:Gem::Requirement
218
285
  none: false
219
286
  requirements:
@@ -222,10 +289,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
222
289
  version: '0'
223
290
  segments:
224
291
  - 0
225
- hash: -71015258719465438
292
+ hash: -2660545808328016919
226
293
  requirements: []
227
294
  rubyforge_project: adhearsion-asterisk
228
- rubygems_version: 1.8.10
295
+ rubygems_version: 1.8.21
229
296
  signing_key:
230
297
  specification_version: 3
231
298
  summary: Asterisk specific features for Adhearsion
@@ -240,5 +307,7 @@ test_files:
240
307
  - spec/adhearsion/asterisk/queue_proxy/queue_agents_list_proxy_spec.rb
241
308
  - spec/adhearsion/asterisk/queue_proxy_spec.rb
242
309
  - spec/adhearsion/asterisk_spec.rb
310
+ - spec/has_agi_context.rb
243
311
  - spec/spec_helper.rb
244
312
  - spec/support/the_following_code.rb
313
+ has_rdoc: