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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: fe5cc7498b4d04b861b4225eebb71c7dad2e9cb2
4
- data.tar.gz: 3b6b573d4fe0592b5d750e422da096b38270478b
2
+ SHA256:
3
+ metadata.gz: 7ca27e440ca7f9a38c976bff002dc996725d77e1ec3fcd12749e119b910ed08d
4
+ data.tar.gz: 5c59a60ccdf9c10e5d6fd8841dfb2eac7fae046b3447aa401cc61982210d9b08
5
5
  SHA512:
6
- metadata.gz: df6ee8b1f39f13c32f856568b086f66a2893c971cd2ac994c21c45be1a07c3afe0c265740b9976f57fca636876b25a15f4329f1ff726b32c4e9761e82274f357
7
- data.tar.gz: '02698a983bfca376a4f86ae6698aa34cabe251eb8d4b8769b1b21871184633ddcccd0e48baad56ff28c934529c109f83704125e4cb11bc06843b2d0b73d59fa4'
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(atoi(string));
157
+ token = rb_int_new(atoll(string));
158
158
  break;
159
159
 
160
160
  case (LEX_STATE_DECIMAL):
@@ -1,7 +1,7 @@
1
1
  module IOSParser
2
2
  class << self
3
3
  def version
4
- '0.7.0'
4
+ '0.7.1'
5
5
  end
6
6
  end
7
7
  end
@@ -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.0
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: 2019-03-04 00:00:00.000000000 Z
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
- rubyforge_project:
114
- rubygems_version: 2.5.2.3
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: