ios_parser 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: 34aee436a05fb00bbb2964694017e4592083d4411e93614be6767f8919a6b7c1
|
4
|
+
data.tar.gz: e7985ca414f954d59539c10abd1330c2842ac44f2f557aaac9a902145bfe2eec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54a4675f244006397240e590c277f84fcf626f8c561e5c49f5656d62c5bbce0dfda4bdd26c5fc5d8329da7fd8a697948dccbe58f2e1d507f56ccea6f450a032b
|
7
|
+
data.tar.gz: 583e81712114f810869f42c852211298e71adbb0cd51fbe1bf9ae5b9f964d31cbdcd70bd64212ddba808aca1383ce8302bff3adf5ef75f9716599ff0469fbec3
|
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: ruby
|
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
|
name: rake-compiler
|