ruby_ami 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +3 -0
- data/README.md +8 -11
- data/lib/ruby_ami/event.rb +2 -0
- data/lib/ruby_ami/version.rb +1 -1
- metadata +56 -32
- checksums.yaml +0 -7
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# [develop](https://github.com/adhearsion/ruby_ami)
|
2
2
|
|
3
|
+
# [2.2.1](https://github.com/adhearsion/ruby_ami/compare/v2.2.0...v2.2.1) - [2014-05-22](https://rubygems.org/gems/ruby_ami/versions/2.2.1)
|
4
|
+
* Bugfix: Ensure DateTime is present when consumer code doesn't `require 'time'` ([#24](https://github.com/adhearsion/ruby_ami/issues/24))
|
5
|
+
|
3
6
|
# [2.2.0](https://github.com/adhearsion/ruby_ami/compare/v2.1.0...v2.2.0) - [2014-02-28](https://rubygems.org/gems/ruby_ami/versions/2.2.0)
|
4
7
|
* Feature: Provide timestamps of events as `#timestamp`, `#receipt_time` and `#best_time`.
|
5
8
|
* Feature: More performant parsing of AGI environment strings
|
data/README.md
CHANGED
@@ -10,27 +10,24 @@ NB: If you're looking to develop an application on Asterisk, you should take a l
|
|
10
10
|
```ruby
|
11
11
|
require 'ruby_ami'
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
port: 5038,
|
17
|
-
event_handler: ->(e) { handle_event e },
|
18
|
-
logger: Logger.new(STDOUT),
|
19
|
-
log_level: Logger::DEBUG,
|
20
|
-
timeout: 10
|
13
|
+
stream = RubyAMI::Stream.new '127.0.0.1', 5038, 'manager', 'password',
|
14
|
+
->(e) { handle_event e },
|
15
|
+
Logger.new(STDOUT), 10
|
21
16
|
|
22
17
|
def handle_event(event)
|
23
18
|
case event.name
|
24
19
|
when 'FullyBooted'
|
25
|
-
|
20
|
+
stream.async.send_action 'Originate', 'Channel' => 'SIP/foo'
|
26
21
|
end
|
27
22
|
end
|
28
23
|
|
29
|
-
|
24
|
+
stream.start
|
30
25
|
|
31
|
-
Celluloid::Actor.join
|
26
|
+
Celluloid::Actor.join stream
|
32
27
|
```
|
33
28
|
|
29
|
+
RubyAMI also has a class called `RubyAMI::Client` which used to be the main usage method. The purpose of this class was to tie together two AMI connections and separate events and action execution between the two in order to avoid some issues present in Asterisk < 1.8 with regards to separating overlapping events and executing multiple actions simultaneously. These issues are no longer present, and so **`RubyAMI::Client` is now deprecated and will be removed in RubyAMI 3.0**.
|
30
|
+
|
34
31
|
## Links:
|
35
32
|
* [Source](https://github.com/adhearsion/ruby_ami)
|
36
33
|
* [Documentation](http://rdoc.info/github/adhearsion/ruby_ami/master/frames)
|
data/lib/ruby_ami/event.rb
CHANGED
data/lib/ruby_ami/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_ami
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Ben Langfeld
|
@@ -9,160 +10,182 @@ authors:
|
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2014-
|
13
|
+
date: 2014-05-22 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: celluloid-io
|
16
17
|
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
17
19
|
requirements:
|
18
|
-
- -
|
20
|
+
- - ~>
|
19
21
|
- !ruby/object:Gem::Version
|
20
22
|
version: '0.13'
|
21
23
|
type: :runtime
|
22
24
|
prerelease: false
|
23
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
24
27
|
requirements:
|
25
|
-
- -
|
28
|
+
- - ~>
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: '0.13'
|
28
31
|
- !ruby/object:Gem::Dependency
|
29
32
|
name: bundler
|
30
33
|
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
31
35
|
requirements:
|
32
|
-
- -
|
36
|
+
- - ~>
|
33
37
|
- !ruby/object:Gem::Version
|
34
38
|
version: '1.0'
|
35
39
|
type: :development
|
36
40
|
prerelease: false
|
37
41
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
38
43
|
requirements:
|
39
|
-
- -
|
44
|
+
- - ~>
|
40
45
|
- !ruby/object:Gem::Version
|
41
46
|
version: '1.0'
|
42
47
|
- !ruby/object:Gem::Dependency
|
43
48
|
name: rspec
|
44
49
|
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
45
51
|
requirements:
|
46
|
-
- -
|
52
|
+
- - ~>
|
47
53
|
- !ruby/object:Gem::Version
|
48
54
|
version: '2.5'
|
49
55
|
type: :development
|
50
56
|
prerelease: false
|
51
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
52
59
|
requirements:
|
53
|
-
- -
|
60
|
+
- - ~>
|
54
61
|
- !ruby/object:Gem::Version
|
55
62
|
version: '2.5'
|
56
63
|
- !ruby/object:Gem::Dependency
|
57
64
|
name: cucumber
|
58
65
|
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
59
67
|
requirements:
|
60
|
-
- -
|
68
|
+
- - ! '>='
|
61
69
|
- !ruby/object:Gem::Version
|
62
70
|
version: '0'
|
63
71
|
type: :development
|
64
72
|
prerelease: false
|
65
73
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
66
75
|
requirements:
|
67
|
-
- -
|
76
|
+
- - ! '>='
|
68
77
|
- !ruby/object:Gem::Version
|
69
78
|
version: '0'
|
70
79
|
- !ruby/object:Gem::Dependency
|
71
80
|
name: yard
|
72
81
|
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
73
83
|
requirements:
|
74
|
-
- -
|
84
|
+
- - ~>
|
75
85
|
- !ruby/object:Gem::Version
|
76
86
|
version: '0.6'
|
77
87
|
type: :development
|
78
88
|
prerelease: false
|
79
89
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
80
91
|
requirements:
|
81
|
-
- -
|
92
|
+
- - ~>
|
82
93
|
- !ruby/object:Gem::Version
|
83
94
|
version: '0.6'
|
84
95
|
- !ruby/object:Gem::Dependency
|
85
96
|
name: rake
|
86
97
|
requirement: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
87
99
|
requirements:
|
88
|
-
- -
|
100
|
+
- - ! '>='
|
89
101
|
- !ruby/object:Gem::Version
|
90
102
|
version: '0'
|
91
103
|
type: :development
|
92
104
|
prerelease: false
|
93
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
94
107
|
requirements:
|
95
|
-
- -
|
108
|
+
- - ! '>='
|
96
109
|
- !ruby/object:Gem::Version
|
97
110
|
version: '0'
|
98
111
|
- !ruby/object:Gem::Dependency
|
99
112
|
name: guard-rspec
|
100
113
|
requirement: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
101
115
|
requirements:
|
102
|
-
- -
|
116
|
+
- - ! '>='
|
103
117
|
- !ruby/object:Gem::Version
|
104
118
|
version: '0'
|
105
119
|
type: :development
|
106
120
|
prerelease: false
|
107
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
108
123
|
requirements:
|
109
|
-
- -
|
124
|
+
- - ! '>='
|
110
125
|
- !ruby/object:Gem::Version
|
111
126
|
version: '0'
|
112
127
|
- !ruby/object:Gem::Dependency
|
113
128
|
name: guard-shell
|
114
129
|
requirement: !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
115
131
|
requirements:
|
116
|
-
- -
|
132
|
+
- - ! '>='
|
117
133
|
- !ruby/object:Gem::Version
|
118
134
|
version: '0'
|
119
135
|
type: :development
|
120
136
|
prerelease: false
|
121
137
|
version_requirements: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
122
139
|
requirements:
|
123
|
-
- -
|
140
|
+
- - ! '>='
|
124
141
|
- !ruby/object:Gem::Version
|
125
142
|
version: '0'
|
126
143
|
- !ruby/object:Gem::Dependency
|
127
144
|
name: guard-cucumber
|
128
145
|
requirement: !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
129
147
|
requirements:
|
130
|
-
- -
|
148
|
+
- - ! '>='
|
131
149
|
- !ruby/object:Gem::Version
|
132
150
|
version: '0'
|
133
151
|
type: :development
|
134
152
|
prerelease: false
|
135
153
|
version_requirements: !ruby/object:Gem::Requirement
|
154
|
+
none: false
|
136
155
|
requirements:
|
137
|
-
- -
|
156
|
+
- - ! '>='
|
138
157
|
- !ruby/object:Gem::Version
|
139
158
|
version: '0'
|
140
159
|
- !ruby/object:Gem::Dependency
|
141
160
|
name: guard-rake
|
142
161
|
requirement: !ruby/object:Gem::Requirement
|
162
|
+
none: false
|
143
163
|
requirements:
|
144
|
-
- -
|
164
|
+
- - ! '>='
|
145
165
|
- !ruby/object:Gem::Version
|
146
166
|
version: '0'
|
147
167
|
type: :development
|
148
168
|
prerelease: false
|
149
169
|
version_requirements: !ruby/object:Gem::Requirement
|
170
|
+
none: false
|
150
171
|
requirements:
|
151
|
-
- -
|
172
|
+
- - ! '>='
|
152
173
|
- !ruby/object:Gem::Version
|
153
174
|
version: '0'
|
154
175
|
- !ruby/object:Gem::Dependency
|
155
176
|
name: benchmark_suite
|
156
177
|
requirement: !ruby/object:Gem::Requirement
|
178
|
+
none: false
|
157
179
|
requirements:
|
158
|
-
- -
|
180
|
+
- - ! '>='
|
159
181
|
- !ruby/object:Gem::Version
|
160
182
|
version: '0'
|
161
183
|
type: :development
|
162
184
|
prerelease: false
|
163
185
|
version_requirements: !ruby/object:Gem::Requirement
|
186
|
+
none: false
|
164
187
|
requirements:
|
165
|
-
- -
|
188
|
+
- - ! '>='
|
166
189
|
- !ruby/object:Gem::Version
|
167
190
|
version: '0'
|
168
191
|
description: A Ruby client library for the Asterisk Management Interface built on
|
@@ -174,9 +197,9 @@ executables: []
|
|
174
197
|
extensions: []
|
175
198
|
extra_rdoc_files: []
|
176
199
|
files:
|
177
|
-
-
|
178
|
-
-
|
179
|
-
-
|
200
|
+
- .gitignore
|
201
|
+
- .rspec
|
202
|
+
- .travis.yml
|
180
203
|
- CHANGELOG.md
|
181
204
|
- Gemfile
|
182
205
|
- Guardfile
|
@@ -217,26 +240,27 @@ files:
|
|
217
240
|
- spec/support/mock_server.rb
|
218
241
|
homepage: ''
|
219
242
|
licenses: []
|
220
|
-
metadata: {}
|
221
243
|
post_install_message:
|
222
244
|
rdoc_options: []
|
223
245
|
require_paths:
|
224
246
|
- lib
|
225
247
|
required_ruby_version: !ruby/object:Gem::Requirement
|
248
|
+
none: false
|
226
249
|
requirements:
|
227
|
-
- -
|
250
|
+
- - ! '>='
|
228
251
|
- !ruby/object:Gem::Version
|
229
252
|
version: '0'
|
230
253
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
254
|
+
none: false
|
231
255
|
requirements:
|
232
|
-
- -
|
256
|
+
- - ! '>='
|
233
257
|
- !ruby/object:Gem::Version
|
234
258
|
version: '0'
|
235
259
|
requirements: []
|
236
260
|
rubyforge_project: ruby_ami
|
237
|
-
rubygems_version:
|
261
|
+
rubygems_version: 1.8.23
|
238
262
|
signing_key:
|
239
|
-
specification_version:
|
263
|
+
specification_version: 3
|
240
264
|
summary: Futzing with AMI so you don't have to
|
241
265
|
test_files:
|
242
266
|
- features/lexer.feature
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 290ed21fc6ee40c83c12d15b2acf9240f7ce47f1
|
4
|
-
data.tar.gz: 34ec462b7e67818135a307ead4baafae599fbae4
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 20c254c3d24652245ee2d806406aee1646e2756960e9a1a0a1bf14a9e77ec7e9b3c2048fde0a5e5b0d83210fe50d531cdc2222bddf552c2bae04a51fcd6d54fb
|
7
|
-
data.tar.gz: 039e2f837d3a941dedaab896db37bdc6867da934b0bc2eb3c9b1a3bb0e8ff2c9ae1d5ecda2d159a7adf843777834e6cb3a3b9764eab13a29366e378a7b4b28ce
|