ruby_ami 0.1.5 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +12 -0
- data/CHANGELOG.md +4 -0
- data/Rakefile +15 -28
- data/features/support/lexer_helper.rb +0 -6
- data/lib/ruby_ami/version.rb +1 -1
- data/ruby_ami.gemspec +0 -1
- metadata +39 -49
data/.travis.yml
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 1.9.2
|
4
|
+
- 1.9.3
|
5
|
+
- jruby-19mode
|
6
|
+
- rbx-19mode
|
7
|
+
- ruby-head
|
8
|
+
before_install:
|
9
|
+
- wget http://ftp.us.debian.org/debian/pool/main/r/ragel/ragel_6.7-1_i386.deb
|
10
|
+
- sudo dpkg -i ragel_6.7-1_i386.deb
|
11
|
+
notifications:
|
12
|
+
irc: "irc.freenode.org#adhearsion"
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
@@ -8,12 +8,6 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
|
|
8
8
|
spec.rspec_opts = '--color'
|
9
9
|
end
|
10
10
|
|
11
|
-
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
12
|
-
spec.pattern = 'spec/**/*_spec.rb'
|
13
|
-
spec.rcov = true
|
14
|
-
spec.rspec_opts = '--color'
|
15
|
-
end
|
16
|
-
|
17
11
|
require 'cucumber'
|
18
12
|
require 'cucumber/rake/task'
|
19
13
|
require 'ci/reporter/rake/cucumber'
|
@@ -34,36 +28,29 @@ YARD::Rake::YardocTask.new
|
|
34
28
|
desc "Check Ragel version"
|
35
29
|
task :check_ragel_version do
|
36
30
|
ragel_version_match = `ragel --version`.match /(\d)\.(\d)+/
|
37
|
-
abort "Could not get Ragel version! Is it installed? You must have at least version 6.
|
31
|
+
abort "Could not get Ragel version! Is it installed? You must have at least version 6.7" unless ragel_version_match
|
38
32
|
big, small = ragel_version_match.captures.map &:to_i
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
if (big == 6 && small < 7)
|
43
|
-
puts "WARNING: A change to Ruby since 1.9 affects the Ragel generated code."
|
44
|
-
puts "WARNING: You MUST be using Ragel version 6.7 or have patched it using"
|
45
|
-
puts "WARNING: the patch found at:"
|
46
|
-
puts "WARNING: http://www.mail-archive.com/ragel-users@complang.org/msg00440.html"
|
33
|
+
puts "You're using Ragel v#{ragel_version_match[0]}"
|
34
|
+
if big < 6 || big == 6 && small < 7
|
35
|
+
abort "Please upgrade Ragel! v6.7 or later is required"
|
47
36
|
end
|
48
37
|
end
|
49
38
|
|
50
|
-
RAGEL_FILES = %w[lib/ruby_ami/lexer.rl.rb]
|
51
|
-
|
52
39
|
desc "Used to regenerate the AMI source code files. Note: requires Ragel 6.3 or later be installed on your system"
|
53
40
|
task :ragel => :check_ragel_version do
|
54
|
-
|
55
|
-
ruby_file = ragel_file.sub ".rl.rb", ".rb"
|
56
|
-
puts `ragel -n -R #{ragel_file} -o #{ruby_file} 2>&1`
|
57
|
-
raise "Failed generating code from Ragel file #{ragel_file}" if $?.to_i.nonzero?
|
58
|
-
end
|
41
|
+
run_ragel '-n -R'
|
59
42
|
end
|
60
43
|
|
61
44
|
desc "Generates a GraphVis document showing the Ragel state machine"
|
62
45
|
task :visualize_ragel => :check_ragel_version do
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
46
|
+
run_ragel '-V', 'dot'
|
47
|
+
end
|
48
|
+
|
49
|
+
def run_ragel(options = nil, extension = 'rb')
|
50
|
+
ragel_file = 'lib/ruby_ami/lexer.rl.rb'
|
51
|
+
base_file = ragel_file.sub ".rl.rb", ""
|
52
|
+
command = ["ragel", options, "#{ragel_file} -o #{base_file}.#{extension} 2>&1"].compact.join ' '
|
53
|
+
puts "Running command '#{command}'"
|
54
|
+
puts `#{command}`
|
55
|
+
raise "Failed generating code from Ragel file #{ragel_file}" if $?.to_i.nonzero?
|
69
56
|
end
|
data/lib/ruby_ami/version.rb
CHANGED
data/ruby_ami.gemspec
CHANGED
@@ -31,7 +31,6 @@ Gem::Specification.new do |s|
|
|
31
31
|
s.add_development_dependency %q<cucumber>, [">= 0"]
|
32
32
|
s.add_development_dependency %q<ci_reporter>, [">= 1.6.3"]
|
33
33
|
s.add_development_dependency %q<yard>, ["~> 0.6.0"]
|
34
|
-
s.add_development_dependency %q<rcov>, [">= 0"]
|
35
34
|
s.add_development_dependency %q<rake>, [">= 0"]
|
36
35
|
s.add_development_dependency %q<mocha>, [">= 0"]
|
37
36
|
s.add_development_dependency %q<simplecov>, [">= 0"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_ami
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-03-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
|
-
requirement: &
|
16
|
+
requirement: &2156179340 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.0.9
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2156179340
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: uuidtools
|
27
|
-
requirement: &
|
27
|
+
requirement: &2156178740 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2156178740
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: eventmachine
|
38
|
-
requirement: &
|
38
|
+
requirement: &2156178040 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2156178040
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: future-resource
|
49
|
-
requirement: &
|
49
|
+
requirement: &2156152540 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2156152540
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: girl_friday
|
60
|
-
requirement: &
|
60
|
+
requirement: &2156151600 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2156151600
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: countdownlatch
|
71
|
-
requirement: &
|
71
|
+
requirement: &2156150780 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 1.0.0
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2156150780
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: i18n
|
82
|
-
requirement: &
|
82
|
+
requirement: &2156150040 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *2156150040
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: bundler
|
93
|
-
requirement: &
|
93
|
+
requirement: &2156149080 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 1.0.0
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *2156149080
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: rspec
|
104
|
-
requirement: &
|
104
|
+
requirement: &2156147520 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: 2.5.0
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *2156147520
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: cucumber
|
115
|
-
requirement: &
|
115
|
+
requirement: &2156146800 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *2156146800
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: ci_reporter
|
126
|
-
requirement: &
|
126
|
+
requirement: &2156146060 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ! '>='
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: 1.6.3
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *2156146060
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: yard
|
137
|
-
requirement: &
|
137
|
+
requirement: &2156145420 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ~>
|
@@ -142,21 +142,10 @@ dependencies:
|
|
142
142
|
version: 0.6.0
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
146
|
-
- !ruby/object:Gem::Dependency
|
147
|
-
name: rcov
|
148
|
-
requirement: &2156171500 !ruby/object:Gem::Requirement
|
149
|
-
none: false
|
150
|
-
requirements:
|
151
|
-
- - ! '>='
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: '0'
|
154
|
-
type: :development
|
155
|
-
prerelease: false
|
156
|
-
version_requirements: *2156171500
|
145
|
+
version_requirements: *2156145420
|
157
146
|
- !ruby/object:Gem::Dependency
|
158
147
|
name: rake
|
159
|
-
requirement: &
|
148
|
+
requirement: &2156144640 !ruby/object:Gem::Requirement
|
160
149
|
none: false
|
161
150
|
requirements:
|
162
151
|
- - ! '>='
|
@@ -164,10 +153,10 @@ dependencies:
|
|
164
153
|
version: '0'
|
165
154
|
type: :development
|
166
155
|
prerelease: false
|
167
|
-
version_requirements: *
|
156
|
+
version_requirements: *2156144640
|
168
157
|
- !ruby/object:Gem::Dependency
|
169
158
|
name: mocha
|
170
|
-
requirement: &
|
159
|
+
requirement: &2156065360 !ruby/object:Gem::Requirement
|
171
160
|
none: false
|
172
161
|
requirements:
|
173
162
|
- - ! '>='
|
@@ -175,10 +164,10 @@ dependencies:
|
|
175
164
|
version: '0'
|
176
165
|
type: :development
|
177
166
|
prerelease: false
|
178
|
-
version_requirements: *
|
167
|
+
version_requirements: *2156065360
|
179
168
|
- !ruby/object:Gem::Dependency
|
180
169
|
name: simplecov
|
181
|
-
requirement: &
|
170
|
+
requirement: &2156064660 !ruby/object:Gem::Requirement
|
182
171
|
none: false
|
183
172
|
requirements:
|
184
173
|
- - ! '>='
|
@@ -186,10 +175,10 @@ dependencies:
|
|
186
175
|
version: '0'
|
187
176
|
type: :development
|
188
177
|
prerelease: false
|
189
|
-
version_requirements: *
|
178
|
+
version_requirements: *2156064660
|
190
179
|
- !ruby/object:Gem::Dependency
|
191
180
|
name: simplecov-rcov
|
192
|
-
requirement: &
|
181
|
+
requirement: &2156064140 !ruby/object:Gem::Requirement
|
193
182
|
none: false
|
194
183
|
requirements:
|
195
184
|
- - ! '>='
|
@@ -197,10 +186,10 @@ dependencies:
|
|
197
186
|
version: '0'
|
198
187
|
type: :development
|
199
188
|
prerelease: false
|
200
|
-
version_requirements: *
|
189
|
+
version_requirements: *2156064140
|
201
190
|
- !ruby/object:Gem::Dependency
|
202
191
|
name: guard-rspec
|
203
|
-
requirement: &
|
192
|
+
requirement: &2156063580 !ruby/object:Gem::Requirement
|
204
193
|
none: false
|
205
194
|
requirements:
|
206
195
|
- - ! '>='
|
@@ -208,7 +197,7 @@ dependencies:
|
|
208
197
|
version: '0'
|
209
198
|
type: :development
|
210
199
|
prerelease: false
|
211
|
-
version_requirements: *
|
200
|
+
version_requirements: *2156063580
|
212
201
|
description: A Ruby client library for the Asterisk Management Interface build on
|
213
202
|
eventmachine.
|
214
203
|
email:
|
@@ -219,6 +208,7 @@ extra_rdoc_files: []
|
|
219
208
|
files:
|
220
209
|
- .gitignore
|
221
210
|
- .rspec
|
211
|
+
- .travis.yml
|
222
212
|
- CHANGELOG.md
|
223
213
|
- Gemfile
|
224
214
|
- Guardfile
|
@@ -268,7 +258,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
268
258
|
version: '0'
|
269
259
|
segments:
|
270
260
|
- 0
|
271
|
-
hash:
|
261
|
+
hash: 4125080480231007262
|
272
262
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
273
263
|
none: false
|
274
264
|
requirements:
|
@@ -277,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
277
267
|
version: '0'
|
278
268
|
segments:
|
279
269
|
- 0
|
280
|
-
hash:
|
270
|
+
hash: 4125080480231007262
|
281
271
|
requirements: []
|
282
272
|
rubyforge_project: ruby_ami
|
283
273
|
rubygems_version: 1.8.10
|