rley 0.8.10 → 0.8.11

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92dd793350853b0466c7d541d8e19bd5d03b661f6bc207836155968b8580584b
4
- data.tar.gz: c1583a4668d945c55ab7b687748eec224adb16721a4fd108813abb61d4f3356a
3
+ metadata.gz: f7ad228834b0f81ead8bc7ba0276c46b15d1d26e6c041bca00737bc5e224642b
4
+ data.tar.gz: 8877d597137a6aa3548abe6bdeeb5c51d9e94479094c78db377680657131a7d2
5
5
  SHA512:
6
- metadata.gz: 948a5292ff798277c50e9a2b1829e9c0afb47886d7b1e4887409a98bcb08e490d493d3c672563b965f074756ce553f3a00c4729270a983f25b9b4a0389ab3505
7
- data.tar.gz: d372ccc4cac0643c535759db3f63e2f5fa604dbc80fd72a85a9fb3f867b26a0a31d4a7e70925da0f2845f6e89d764efc886f5895ef1592798a13c76923839466
6
+ metadata.gz: b7f4da7fafc790cd5c737310b811b4b5e51d5f37c37373ce04089c73e8ade7c318d3638ee1b345e165b7cbd59cc7636038ad866f19352f8208d8de759c47006d
7
+ data.tar.gz: 611344a1d84c111e3280cac654082670eecc27f4da781e9f32e5bfdc21f52a1ff3c17cb812de2b346cfbf29247c5976321368cebcf55e0463860f5f7281ab61a
data/.rubocop.yml CHANGED
@@ -133,6 +133,9 @@ Lint/RaiseException:
133
133
 
134
134
  Lint/RedundantDirGlobSort:
135
135
  Enabled: true
136
+
137
+ Lint/RefinementImportMethods: # new in 1.27
138
+ Enabled: true
136
139
 
137
140
  Lint/RequireRelativeSelfPath:
138
141
  Enabled: true
@@ -328,6 +331,9 @@ Style/MultilineInPatternThen:
328
331
 
329
332
  Style/NegatedIfElseCondition:
330
333
  Enabled: true
334
+
335
+ Style/NestedFileDirname: # new in 1.26
336
+ Enabled: true
331
337
 
332
338
  Style/Next:
333
339
  Enabled: false
@@ -355,6 +361,9 @@ Style/RaiseArgs:
355
361
 
356
362
  Style/RedundantArgument:
357
363
  Enabled: true
364
+
365
+ Style/RedundantInitialize: # new in 1.27
366
+ Enabled: true
358
367
 
359
368
  Style/RedundantReturn:
360
369
  Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.8.10 / 2022-04-08
2
+ - Refactoring of `RGN::Tokenizer` class.
3
+ * [CHANGE] Class `RGN::Tokenizer` changes.
4
+
1
5
  ### 0.8.09 / 2022-01-28
2
6
  - Added code for coming tutorial
3
7
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  module Rley # Module used as a namespace
7
7
  # The version number of the gem.
8
- Version = '0.8.10'
8
+ Version = '0.8.11'
9
9
 
10
10
  # Brief description of the gem.
11
11
  Description = "Ruby implementation of the Earley's parsing algorithm"
@@ -46,7 +46,7 @@ module Rley
46
46
  # Here are all the implemented Rley notation keywords
47
47
  @@keywords = %w[
48
48
  match_closest repeat
49
- ].map { |x| [x, x] }.to_h
49
+ ].to_h { |x| [x, x] }
50
50
 
51
51
  # Constructor. Initialize a tokenizer for RGN input.
52
52
  # @param source [String] RGN text to tokenize.
@@ -129,10 +129,7 @@ module Rley
129
129
  ws_found = false
130
130
  end # until
131
131
 
132
- # unterminated(@string_start.line, @string_start.column) if state == :multiline
133
132
  token
134
-
135
- # return token
136
133
  end
137
134
 
138
135
  def build_token(aSymbolName, aLexeme)
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rley
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.10
4
+ version: 0.8.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitri Geshef
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-08 00:00:00.000000000 Z
11
+ date: 2022-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: prime
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.1.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.1.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rake
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -296,14 +310,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
296
310
  requirements:
297
311
  - - ">="
298
312
  - !ruby/object:Gem::Version
299
- version: 2.5.0
313
+ version: 2.6.0
300
314
  required_rubygems_version: !ruby/object:Gem::Requirement
301
315
  requirements:
302
316
  - - ">="
303
317
  - !ruby/object:Gem::Version
304
318
  version: '0'
305
319
  requirements: []
306
- rubygems_version: 3.3.3
320
+ rubygems_version: 3.3.7
307
321
  signing_key:
308
322
  specification_version: 4
309
323
  summary: Ruby implementation of the Earley's parsing algorithm