text_alignment 0.11.10 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile +4 -4
- data/Gemfile.lock +19 -17
- data/README.md +3 -3
- data/lib/text_alignment/char_mapping.rb +2 -2
- data/lib/text_alignment/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc90a3ea0092a4e2672fd40a3bf3e6bb25fba612fc663fc7c249741e79b7a990
|
4
|
+
data.tar.gz: 8676468d98902404d400b78711668930c9aaed268ddc1f555283b67fb731e2dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8194112635d7ffebe3983ae4393c05183ea86e3beab2efe645d512cb56c59f38187ab62d5d7bb7fb589ca20989a6763d42af0d881fdff4bb94be69954d9cb3c2
|
7
|
+
data.tar.gz: 2907241a5a589b2ab3bfee5e08ebf3c498af79f18ba3bd4d2ae3ef543681d251db2213f3d3dffe441aa39263136b7ea755fa4376fa46acc02af0beca379d2a5e
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
-
ruby '2.
|
2
|
+
ruby '3.2.2'
|
3
3
|
|
4
|
-
gem 'diff-lcs'
|
5
|
-
gem 'ruby-dictionary'
|
6
|
-
gem 'string-similarity'
|
4
|
+
gem 'diff-lcs'
|
5
|
+
gem 'ruby-dictionary'
|
6
|
+
gem 'string-similarity'
|
7
7
|
|
8
8
|
group :test do
|
9
9
|
gem 'rspec', '~>3.0'
|
data/Gemfile.lock
CHANGED
@@ -1,33 +1,35 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
diff-lcs (1.
|
5
|
-
rspec (3.
|
6
|
-
rspec-core (~> 3.
|
7
|
-
rspec-expectations (~> 3.
|
8
|
-
rspec-mocks (~> 3.
|
9
|
-
rspec-core (3.
|
10
|
-
rspec-support (~> 3.
|
11
|
-
rspec-expectations (3.
|
4
|
+
diff-lcs (1.5.0)
|
5
|
+
rspec (3.12.0)
|
6
|
+
rspec-core (~> 3.12.0)
|
7
|
+
rspec-expectations (~> 3.12.0)
|
8
|
+
rspec-mocks (~> 3.12.0)
|
9
|
+
rspec-core (3.12.2)
|
10
|
+
rspec-support (~> 3.12.0)
|
11
|
+
rspec-expectations (3.12.3)
|
12
12
|
diff-lcs (>= 1.2.0, < 2.0)
|
13
|
-
rspec-support (~> 3.
|
14
|
-
rspec-mocks (3.
|
15
|
-
|
16
|
-
|
13
|
+
rspec-support (~> 3.12.0)
|
14
|
+
rspec-mocks (3.12.6)
|
15
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
16
|
+
rspec-support (~> 3.12.0)
|
17
|
+
rspec-support (3.12.1)
|
17
18
|
ruby-dictionary (1.1.1)
|
18
19
|
string-similarity (2.1.0)
|
19
20
|
|
20
21
|
PLATFORMS
|
21
22
|
ruby
|
23
|
+
x86_64-linux
|
22
24
|
|
23
25
|
DEPENDENCIES
|
24
|
-
diff-lcs
|
26
|
+
diff-lcs
|
25
27
|
rspec (~> 3.0)
|
26
|
-
ruby-dictionary
|
27
|
-
string-similarity
|
28
|
+
ruby-dictionary
|
29
|
+
string-similarity
|
28
30
|
|
29
31
|
RUBY VERSION
|
30
|
-
ruby 2.
|
32
|
+
ruby 3.2.2p53
|
31
33
|
|
32
34
|
BUNDLED WITH
|
33
|
-
|
35
|
+
2.5.1
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# TextAlignment
|
2
2
|
|
3
3
|
It allows to get an optimal alignemnt of two character sequences, e.g., text.
|
4
4
|
|
@@ -7,7 +7,7 @@ It allows to get an optimal alignemnt of two character sequences, e.g., text.
|
|
7
7
|
|
8
8
|
Add this line to your application's Gemfile:
|
9
9
|
|
10
|
-
gem '
|
10
|
+
gem 'text_alignment'
|
11
11
|
|
12
12
|
And then execute:
|
13
13
|
|
@@ -15,7 +15,7 @@ And then execute:
|
|
15
15
|
|
16
16
|
Or install it yourself as:
|
17
17
|
|
18
|
-
$ gem install
|
18
|
+
$ gem install text_alignment
|
19
19
|
|
20
20
|
|
21
21
|
## Contributing
|
@@ -98,11 +98,11 @@ class TextAlignment::CharMapping
|
|
98
98
|
end
|
99
99
|
|
100
100
|
def enmap_position(position)
|
101
|
-
@index_enmap[position]
|
101
|
+
@index_enmap[position] || raise(ArgumentError, "Unusual position for annotation: #{position}")
|
102
102
|
end
|
103
103
|
|
104
104
|
def demap_position(position)
|
105
|
-
@index_demap[position]
|
105
|
+
@index_demap[position] || raise(ArgumentError, "Unusual position for annotation: #{position}")
|
106
106
|
end
|
107
107
|
|
108
108
|
def enmap_denotations(denotations)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: text_alignment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jin-Dong Kim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-dictionary
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
|
-
rubygems_version: 3.
|
114
|
+
rubygems_version: 3.4.19
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Ruby class for aligning two character strings
|