ios_parser 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/ext/ios_parser/c_lexer/lexer.c +1 -1
- data/lib/ios_parser/version.rb +1 -1
- data/spec/lib/ios_parser/lexer_spec.rb +13 -0
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7ca27e440ca7f9a38c976bff002dc996725d77e1ec3fcd12749e119b910ed08d
|
4
|
+
data.tar.gz: 5c59a60ccdf9c10e5d6fd8841dfb2eac7fae046b3447aa401cc61982210d9b08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68394ff82c8d23b91accdd947529e352d09459d1fd6a5747ab4bb3ec7a53863b01cf8079fffb0e3f9b941c443451664e2acd2c4201ba7c06cea5b6bfe4ab584a
|
7
|
+
data.tar.gz: 33106cf36832dc6d082f278bf5d2a324d03274b37eb496828b29180587e812577b94387bcb9ec6428ed961710da9662c9b24b6b2923fe4f35003e196dcbd95f2
|
@@ -154,7 +154,7 @@ static void delimit(LexInfo *lex) {
|
|
154
154
|
case (LEX_STATE_INTEGER):
|
155
155
|
strncpy(string, &lex->text[lex->token_start], lex->token_length);
|
156
156
|
string[lex->token_length] = '\0';
|
157
|
-
token = rb_int_new(
|
157
|
+
token = rb_int_new(atoll(string));
|
158
158
|
break;
|
159
159
|
|
160
160
|
case (LEX_STATE_DECIMAL):
|
data/lib/ios_parser/version.rb
CHANGED
@@ -379,6 +379,19 @@ END
|
|
379
379
|
it { expect(subject_pure.map(&:value)).to eq output }
|
380
380
|
it { expect(subject.map(&:value)).to eq output }
|
381
381
|
end # context 'comment at end of line' do
|
382
|
+
|
383
|
+
context 'large integers up to 2^63-1' do
|
384
|
+
let(:input) do
|
385
|
+
"42 4200000000 9223372036854775807"
|
386
|
+
end
|
387
|
+
|
388
|
+
let(:output) do
|
389
|
+
[42, 4200000000, 9223372036854775807]
|
390
|
+
end
|
391
|
+
|
392
|
+
it { expect(subject_pure.map(&:value)).to eq output }
|
393
|
+
it { expect(subject.map(&:value)).to eq output }
|
394
|
+
end # context 'large integers up to 2^63-1' do
|
382
395
|
end
|
383
396
|
end
|
384
397
|
end
|
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.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Miller
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0.54'
|
55
|
-
description:
|
55
|
+
description:
|
56
56
|
email: bjmllr@gmail.com
|
57
57
|
executables: []
|
58
58
|
extensions:
|
@@ -95,7 +95,7 @@ homepage: https://github.com/bjmllr/ios_parser
|
|
95
95
|
licenses:
|
96
96
|
- GPL-3.0
|
97
97
|
metadata: {}
|
98
|
-
post_install_message:
|
98
|
+
post_install_message:
|
99
99
|
rdoc_options: []
|
100
100
|
require_paths:
|
101
101
|
- lib
|
@@ -110,9 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
|
-
|
114
|
-
|
115
|
-
signing_key:
|
113
|
+
rubygems_version: 3.1.4
|
114
|
+
signing_key:
|
116
115
|
specification_version: 4
|
117
116
|
summary: convert network switch and router config files to structured data
|
118
117
|
test_files:
|