sequitur 0.1.25 → 0.1.26
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 +4 -4
- data/Gemfile +2 -2
- data/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/lib/sequitur/constants.rb +3 -2
- data/spec/sequitur/symbol_sequence_spec.rb +1 -4
- metadata +27 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86e5e7a51109f635607be37902ce3edf561b204119005eea6baa0f90d1dc90b8
|
4
|
+
data.tar.gz: 686f7ed1ba3e76ab16f06b891809025afd7b020009b3a67cba7600f4c66c18cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff134c984fe467059df107491030b84cfd1c73aca32ef78eca7fca90a5f207db06c552dab126e12e81eb97537789b6d24c36cdf79af0e7934fcf42ff17c818b1
|
7
|
+
data.tar.gz: b6c909ca88b6031252c53f11d4e07babae1c0fe0f3b146d50e0aaea55be7befa5a4fdf8ac456c8da76ecac0cfe579f41f939cdb569c605e9da6fb491d5182991
|
data/Gemfile
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -246,4 +246,4 @@ More examples are available in the examples folder.
|
|
246
246
|
|
247
247
|
Copyright
|
248
248
|
---------
|
249
|
-
Copyright (c) 2014-
|
249
|
+
Copyright (c) 2014-2025, Dimitri Geshef. Sequitur is released under the MIT License see [LICENSE.txt](https://github.com/famished-tiger/Sequitur/blob/master/LICENSE.txt) for details.
|
data/lib/sequitur/constants.rb
CHANGED
@@ -3,11 +3,12 @@
|
|
3
3
|
# File: constants.rb
|
4
4
|
# Purpose: definition of Sequitur constants.
|
5
5
|
|
6
|
-
|
6
|
+
# Module used as a namespace for Sequitur classes
|
7
|
+
module Sequitur
|
7
8
|
# rubocop:disable Naming/ConstantName
|
8
9
|
|
9
10
|
# @return [String] The version number of the gem.
|
10
|
-
Version = '0.1.
|
11
|
+
Version = '0.1.26'
|
11
12
|
|
12
13
|
# @return [String] Brief description of the gem.
|
13
14
|
Description = 'Ruby implementation of the Sequitur algorithm'
|
@@ -42,7 +42,7 @@ module Sequitur # Re-open the module to get rid of qualified names
|
|
42
42
|
expect(clone_a).to eq(instance)
|
43
43
|
|
44
44
|
# Reference objects are distinct but points to same production
|
45
|
-
expect(clone_a.symbols[1]
|
45
|
+
expect(clone_a.symbols[1]).not_to equal(instance.symbols[1])
|
46
46
|
|
47
47
|
# Modifying the clone...
|
48
48
|
clone_a.symbols[1] = 'diff'
|
@@ -91,9 +91,6 @@ module Sequitur # Re-open the module to get rid of qualified names
|
|
91
91
|
expect(refs.size).to eq(2)
|
92
92
|
expect(refs).to eq([ref, ref])
|
93
93
|
|
94
|
-
refs = subject.references
|
95
|
-
expect(refs.size).to eq(2)
|
96
|
-
expect(refs).to eq([ref, ref])
|
97
94
|
specific_refs = subject.references_of(a_prod)
|
98
95
|
expect(specific_refs).to eq(refs)
|
99
96
|
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequitur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitri Geshef
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-02-15 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: rake
|
@@ -16,20 +15,20 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - "~>"
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: 13.
|
18
|
+
version: 13.1.0
|
20
19
|
- - ">="
|
21
20
|
- !ruby/object:Gem::Version
|
22
|
-
version: 13.
|
21
|
+
version: 13.1.0
|
23
22
|
type: :development
|
24
23
|
prerelease: false
|
25
24
|
version_requirements: !ruby/object:Gem::Requirement
|
26
25
|
requirements:
|
27
26
|
- - "~>"
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
version: 13.
|
28
|
+
version: 13.1.0
|
30
29
|
- - ">="
|
31
30
|
- !ruby/object:Gem::Version
|
32
|
-
version: 13.
|
31
|
+
version: 13.1.0
|
33
32
|
- !ruby/object:Gem::Dependency
|
34
33
|
name: rspec
|
35
34
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,6 +69,26 @@ dependencies:
|
|
70
69
|
- - ">="
|
71
70
|
- !ruby/object:Gem::Version
|
72
71
|
version: 3.2.0
|
72
|
+
- !ruby/object:Gem::Dependency
|
73
|
+
name: engtagger
|
74
|
+
requirement: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - "~>"
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 0.4.0
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: 0.4.0
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: 0.4.0
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: 0.4.0
|
73
92
|
description: |
|
74
93
|
Ruby implementation of the Sequitur algorithm. This algorithm automatically
|
75
94
|
finds repetitions and hierarchical structures in a given sequence of input
|
@@ -156,8 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
175
|
- !ruby/object:Gem::Version
|
157
176
|
version: '0'
|
158
177
|
requirements: []
|
159
|
-
rubygems_version: 3.
|
160
|
-
signing_key:
|
178
|
+
rubygems_version: 3.6.2
|
161
179
|
specification_version: 4
|
162
180
|
summary: Ruby implementation of the Sequitur algorithm
|
163
181
|
test_files:
|