ios_parser 0.5.1-java → 0.5.2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -3
- data/lib/ios_parser/lexer.rb +4 -2
- data/lib/ios_parser/version.rb +1 -1
- data/spec/lib/ios_parser/lexer_spec.rb +29 -0
- data/spec/spec_helper.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c0628b6d7d24d5456f290e334119b4afa4a1eb62ccdbe85688688ae603ce656
|
4
|
+
data.tar.gz: 31d2bf09dcc2f26ba239b057c2137ff7f0d42ea14423d8044714ea658caa7449
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4458547431b857b56c5dd21f78aeaf4df06baad856764a11e1e98694ab025cf88cc9fb955d18089524e0ce917298f7e8e5d57d0d034be0793bfb4730828d9c01
|
7
|
+
data.tar.gz: ef80e9ebddf399569d88b350a3d7f579d216d8904c8ab6bb3af44e1c4ca5575d5de4b646c51afe21c3db167391856404740c5c51f7b5a6148c0942f82c022a8f
|
data/.travis.yml
CHANGED
data/lib/ios_parser/lexer.rb
CHANGED
data/lib/ios_parser/version.rb
CHANGED
@@ -285,6 +285,35 @@ END
|
|
285
285
|
expect { subject }.to raise_error(pattern)
|
286
286
|
end
|
287
287
|
end
|
288
|
+
|
289
|
+
context 'subcommands separated by comment line' do
|
290
|
+
let(:input) do
|
291
|
+
<<-END.unindent
|
292
|
+
router static
|
293
|
+
address-family ipv4 unicast
|
294
|
+
!
|
295
|
+
address-family ipv6 unicast
|
296
|
+
END
|
297
|
+
end
|
298
|
+
|
299
|
+
let(:expected) do
|
300
|
+
[
|
301
|
+
'router', 'static', :EOL,
|
302
|
+
:INDENT,
|
303
|
+
'address-family', 'ipv4', 'unicast', :EOL,
|
304
|
+
'address-family', 'ipv6', 'unicast', :EOL,
|
305
|
+
:DEDENT
|
306
|
+
]
|
307
|
+
end
|
308
|
+
|
309
|
+
it 'lexes both subcommands' do
|
310
|
+
expect(subject.map(&:last)).to eq expected
|
311
|
+
end
|
312
|
+
|
313
|
+
it 'lexes both subcommands (with the pure ruby lexer)' do
|
314
|
+
expect(subject_pure.map(&:last)).to eq expected
|
315
|
+
end
|
316
|
+
end
|
288
317
|
end
|
289
318
|
end
|
290
319
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ios_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Ben Miller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|