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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f95c7fb8bfdeb768fbd1400f7e785a2ed18016322f2cdcba3ea7196aa4e86ac
4
- data.tar.gz: cad0296a218108884703af07bcbf1b303a6e12c51ab14ad872586c50cfc8e82c
3
+ metadata.gz: fc90a3ea0092a4e2672fd40a3bf3e6bb25fba612fc663fc7c249741e79b7a990
4
+ data.tar.gz: 8676468d98902404d400b78711668930c9aaed268ddc1f555283b67fb731e2dd
5
5
  SHA512:
6
- metadata.gz: 5d18a8d142974967fcfe358b561c83d76d1c5d8d2a277092ed4a8b42de14cd791b004830ff9f145735e6bc0a1265295f4fd6190c674ba62b57190d7e035a863b
7
- data.tar.gz: c155ff9780d5f82893825787ee39ba319ddb1f16396d6a933334a83e485ff4d2eb2840d5fc1399f9873cd69a2458f029ced0d128d9099c4f08137d360e3e2007
6
+ metadata.gz: 8194112635d7ffebe3983ae4393c05183ea86e3beab2efe645d512cb56c59f38187ab62d5d7bb7fb589ca20989a6763d42af0d881fdff4bb94be69954d9cb3c2
7
+ data.tar.gz: 2907241a5a589b2ab3bfee5e08ebf3c498af79f18ba3bd4d2ae3ef543681d251db2213f3d3dffe441aa39263136b7ea755fa4376fa46acc02af0beca379d2a5e
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  doc/*
2
+ test-cases/*
data/Gemfile CHANGED
@@ -1,9 +1,9 @@
1
1
  source 'https://rubygems.org'
2
- ruby '2.5.5'
2
+ ruby '3.2.2'
3
3
 
4
- gem 'diff-lcs', '~> 1.3'
5
- gem 'ruby-dictionary', '~>1.1', '>=1.1.1'
6
- gem 'string-similarity', '~> 2.1'
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.3)
5
- rspec (3.0.0)
6
- rspec-core (~> 3.0.0)
7
- rspec-expectations (~> 3.0.0)
8
- rspec-mocks (~> 3.0.0)
9
- rspec-core (3.0.4)
10
- rspec-support (~> 3.0.0)
11
- rspec-expectations (3.0.4)
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.0.0)
14
- rspec-mocks (3.0.4)
15
- rspec-support (~> 3.0.0)
16
- rspec-support (3.0.4)
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 (~> 1.3)
26
+ diff-lcs
25
27
  rspec (~> 3.0)
26
- ruby-dictionary (~> 1.1, >= 1.1.1)
27
- string-similarity (~> 2.1)
28
+ ruby-dictionary
29
+ string-similarity
28
30
 
29
31
  RUBY VERSION
30
- ruby 2.5.5p157
32
+ ruby 3.2.2p53
31
33
 
32
34
  BUNDLED WITH
33
- 1.17.3
35
+ 2.5.1
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # SequenceAlignment
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 'sequence_alignment'
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 sequence_alignment
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)
@@ -1,3 +1,3 @@
1
1
  class TextAlignment
2
- VERSION = '0.11.10'
2
+ VERSION = '0.12.0'
3
3
  end
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.11.10
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: 2021-04-23 00:00:00.000000000 Z
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.0.9
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