ios_parser 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ios_parser/lexer.rb +2 -1
- data/lib/ios_parser/version.rb +1 -1
- data/spec/lib/ios_parser/pure_spec.rb +16 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1af0b045e17fe043f6309c0d39c47dad8a193890fbac92cdebd7e64363047a71
|
4
|
+
data.tar.gz: dd52ebd34d8571a5accf1304007a22cfec3347a3225ec7d5f7ed6495eb7cd6fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec03dae6277cea48f160fec4613746a06a74dce16d96841eff20569b481a5b9bffccaa425501e95c07b248b60952b9f48a475135735dc02917949511d9064756
|
7
|
+
data.tar.gz: 10db031217e4488e390f35a6f071f691c20ba60f8a838879e24f4e29987da18068459367504c95e6d0853949a337e0b890cc9aab60b936c8f7bec9e9fb67fa2b
|
data/lib/ios_parser/lexer.rb
CHANGED
@@ -287,7 +287,8 @@ module IOSParser
|
|
287
287
|
('A'..'Z').cover?(char) ||
|
288
288
|
['-', '+', '$', ':', '/', ',', '(', ')', '|', '*', '#', '=', '<', '>',
|
289
289
|
'!', '"', '&', '@', ';', '%', '~', '{', '}', "'", '?', '[', ']', '_',
|
290
|
-
'^', '\\', '`'].include?(char)
|
290
|
+
'^', '\\', '`'].include?(char) ||
|
291
|
+
/[[:graph:]]/.match(char)
|
291
292
|
end
|
292
293
|
|
293
294
|
def space
|
data/lib/ios_parser/version.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
require_relative '../../spec_helper'
|
2
|
+
require 'ios_parser'
|
3
|
+
require 'ios_parser/lexer'
|
4
|
+
|
5
|
+
module IOSParser
|
6
|
+
describe PureLexer do
|
7
|
+
describe '#call' do
|
8
|
+
it 'accepts non-whitespace printable characters as words' do
|
9
|
+
input = "before emdash – after emdash"
|
10
|
+
tokens = PureLexer.new.call(input)
|
11
|
+
expect(tokens.map(&:value)).to eq %w[before emdash – after emdash]
|
12
|
+
expect(tokens.map(&:col)).to eq [1, 8, 15, 17, 23]
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
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.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Miller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- spec/lib/ios_parser/ios/queryable_spec.rb
|
90
90
|
- spec/lib/ios_parser/ios_spec.rb
|
91
91
|
- spec/lib/ios_parser/lexer_spec.rb
|
92
|
+
- spec/lib/ios_parser/pure_spec.rb
|
92
93
|
- spec/lib/ios_parser_spec.rb
|
93
94
|
- spec/spec_helper.rb
|
94
95
|
homepage: https://github.com/bjmllr/ios_parser
|
@@ -110,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
111
|
- !ruby/object:Gem::Version
|
111
112
|
version: '0'
|
112
113
|
requirements: []
|
113
|
-
rubygems_version: 3.
|
114
|
+
rubygems_version: 3.3.7
|
114
115
|
signing_key:
|
115
116
|
specification_version: 4
|
116
117
|
summary: convert network switch and router config files to structured data
|
@@ -118,5 +119,6 @@ test_files:
|
|
118
119
|
- spec/lib/ios_parser/ios/queryable_spec.rb
|
119
120
|
- spec/lib/ios_parser/ios_spec.rb
|
120
121
|
- spec/lib/ios_parser/lexer_spec.rb
|
122
|
+
- spec/lib/ios_parser/pure_spec.rb
|
121
123
|
- spec/lib/ios_parser_spec.rb
|
122
124
|
- spec/spec_helper.rb
|