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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d622ced70b173f1c2b514b3060694ecf722641e098367551ac66878c40059c5f
4
- data.tar.gz: 20fedb53829b28a18ce1d5aa72107b13534ea3b01118a7b988fc6f4b4d01a83c
3
+ metadata.gz: 1af0b045e17fe043f6309c0d39c47dad8a193890fbac92cdebd7e64363047a71
4
+ data.tar.gz: dd52ebd34d8571a5accf1304007a22cfec3347a3225ec7d5f7ed6495eb7cd6fd
5
5
  SHA512:
6
- metadata.gz: 5ab205f2e84a5bf71e3bf1ceb1b2b8c5cef6bfcf0900ca4d472fcd1079174a448549efba14d58597eb04cde8f5bf29d5c059db14624b2695b763a75f5468df1f
7
- data.tar.gz: 36fd7e6722935457f9c8e3f60231fe37c4c5fe0ee9a6a9922ed45a5a5b9fbd7d26f9b631056298a8b95acdeb7f4c5e6a136b4df9d0ede939918062e292766231
6
+ metadata.gz: ec03dae6277cea48f160fec4613746a06a74dce16d96841eff20569b481a5b9bffccaa425501e95c07b248b60952b9f48a475135735dc02917949511d9064756
7
+ data.tar.gz: 10db031217e4488e390f35a6f071f691c20ba60f8a838879e24f4e29987da18068459367504c95e6d0853949a337e0b890cc9aab60b936c8f7bec9e9fb67fa2b
@@ -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
@@ -1,7 +1,7 @@
1
1
  module IOSParser
2
2
  class << self
3
3
  def version
4
- '0.8.0'
4
+ '0.9.0'
5
5
  end
6
6
  end
7
7
  end
@@ -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.8.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-07-06 00:00:00.000000000 Z
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.1.6
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