lingo 1.10.1 → 1.10.2.pre1

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: 8fd58301e81e9ce8479312ff2e1dce3bc8bd61ae1f7b8cb44378d46ccd4bcdde
4
- data.tar.gz: bd9f09cdf91521b32622ed8d6246cd444bc7383b13abfa69610c8664a22b2037
3
+ metadata.gz: e73f4d423ff4229299213961597c4e3c1a9235642a51542169496b22e7a1e796
4
+ data.tar.gz: 511b4c7f8756a62ed1d43cbee939364eb4f7f868030a47489b978537ac2816c2
5
5
  SHA512:
6
- metadata.gz: 57c0e2d9db9a184c0bad95993f6a4bddbc62e9ee52f8cd8924c6faf6d0877347b2d68a1cd35d9fcc85636403bd67ab33936364ac514c672793b0bd117b44873a
7
- data.tar.gz: 3f4b351d159aeb592660ab10c4f7d4af13b979c94c1f2e808ce4b85256e05d2d5adf2f7ab67bed737b7a58d45d4041ba7c288c50ef0e7a68926456bf7508b9f3
6
+ metadata.gz: c98fbb22b2753886852b38e696655455d33fb51e4d38f0922880cf2679fd0cd616e07eb573e440638eacc1acba8a9073f554b8e17989b5c1316bed9c21f2dca4
7
+ data.tar.gz: 1e3905c76e9712bb6b22ded44fe968c0415f91dc0d46b1f55ba9f6af209e155d3f86dec980bdbbee0988d2be64b538922049970aa28fc899a2e7d1461226ab71
data/ChangeLog CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  = Revision history for Lingo
4
4
 
5
+ == 1.10.2 [unreleased]
6
+
7
+ * Fixed regression introduced in 1.9.0 where source form was assumed to be a
8
+ Lingo::Language::Token (issue reported by Leonhard Maylein).
9
+
5
10
  == 1.10.1 [2019-02-01]
6
11
 
7
12
  * Fixed regression introduced in 1.8.6 where renamed constant in
data/README CHANGED
@@ -344,7 +344,7 @@ the +lingo+ executable to process your text files. See <tt>lingo --help</tt>
344
344
  for available options.
345
345
 
346
346
  Please note that Lingo requires Ruby version 2.1 or higher to run
347
- (2.5[http://ruby-lang.org/en/downloads/] is the currently recommended
347
+ (2.6[http://ruby-lang.org/en/downloads/] is the currently recommended
348
348
  version).
349
349
 
350
350
  Since Lingo depends on native extensions, you need to make sure that
@@ -6,7 +6,7 @@
6
6
  # Lingo -- A full-featured automatic indexing system #
7
7
  # #
8
8
  # Copyright (C) 2005-2007 John Vorhauer #
9
- # Copyright (C) 2007-2016 John Vorhauer, Jens Wille #
9
+ # Copyright (C) 2007-2019 John Vorhauer, Jens Wille #
10
10
  # #
11
11
  # Lingo is free software; you can redistribute it and/or modify it under the #
12
12
  # terms of the GNU Affero General Public License as published by the Free #
@@ -184,9 +184,12 @@ class Lingo
184
184
 
185
185
  def forward_vector(vec, pos = nil, src = nil)
186
186
  vec = vec.form if vec.is_a?(WordForm)
187
-
188
187
  vec = Unicode.downcase(vec)
189
- vec << @src << src.form if @src && src
188
+
189
+ if @src && src
190
+ src = src.form if src.is_a?(Token)
191
+ vec << @src << src
192
+ end
190
193
 
191
194
  @sort_fmt ? vectors[vec] << pos : forward(vec_pos(vec, [pos]))
192
195
  end
@@ -6,7 +6,7 @@
6
6
  # Lingo -- A full-featured automatic indexing system #
7
7
  # #
8
8
  # Copyright (C) 2005-2007 John Vorhauer #
9
- # Copyright (C) 2007-2016 John Vorhauer, Jens Wille #
9
+ # Copyright (C) 2007-2019 John Vorhauer, Jens Wille #
10
10
  # #
11
11
  # Lingo is free software; you can redistribute it and/or modify it under the #
12
12
  # terms of the GNU Affero General Public License as published by the Free #
@@ -33,7 +33,9 @@ class Lingo
33
33
  end
34
34
 
35
35
  def error(msg = 'An error occurred')
36
- "#{msg}: #{err} (#{err.class})"
36
+ res = ["#{msg}: #{err} (#{err.class})"]
37
+ res.concat(err.backtrace) if $VERBOSE
38
+ res.join("\n. . . . ")
37
39
  end
38
40
 
39
41
  end
@@ -4,13 +4,13 @@ class Lingo
4
4
 
5
5
  MAJOR = 1
6
6
  MINOR = 10
7
- TINY = 1
7
+ TINY = 2
8
8
 
9
9
  class << self
10
10
 
11
11
  # Returns array representation.
12
12
  def to_a
13
- [MAJOR, MINOR, TINY]
13
+ [MAJOR, MINOR, TINY] << 'pre1'
14
14
  end
15
15
 
16
16
  # Short-cut for version string.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lingo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.1
4
+ version: 1.10.2.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Vorhauer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-02-01 00:00:00.000000000 Z
12
+ date: 2019-02-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cyclops
@@ -146,7 +146,7 @@ dependencies:
146
146
  version: '0.9'
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
- version: 0.9.0
149
+ version: 0.9.1
150
150
  type: :development
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
@@ -156,7 +156,7 @@ dependencies:
156
156
  version: '0.9'
157
157
  - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: 0.9.0
159
+ version: 0.9.1
160
160
  - !ruby/object:Gem::Dependency
161
161
  name: rake
162
162
  requirement: !ruby/object:Gem::Requirement
@@ -204,7 +204,10 @@ executables:
204
204
  - lingosrv
205
205
  - lingoweb
206
206
  extensions: []
207
- extra_rdoc_files: []
207
+ extra_rdoc_files:
208
+ - README
209
+ - COPYING
210
+ - ChangeLog
208
211
  files:
209
212
  - COPYING
210
213
  - ChangeLog
@@ -368,13 +371,20 @@ licenses:
368
371
  metadata: {}
369
372
  post_install_message: |2+
370
373
 
371
- lingo-1.10.1 [2019-02-01]:
374
+ lingo-1.10.2 [unreleased]:
372
375
 
373
- * Fixed regression introduced in 1.8.6 where renamed constant in
374
- Lingo::Attendee::VectorFilter was not reflected in Lingo::Srv
375
- (issue #16 by svelsae).
376
+ * Fixed regression introduced in 1.9.0 where source form was assumed to be a
377
+ Lingo::Language::Token (issue reported by Leonhard Maylein).
376
378
 
377
- rdoc_options: []
379
+ rdoc_options:
380
+ - "--title"
381
+ - lingo Application documentation (v1.10.2.pre1)
382
+ - "--charset"
383
+ - UTF-8
384
+ - "--line-numbers"
385
+ - "--all"
386
+ - "--main"
387
+ - README
378
388
  require_paths:
379
389
  - lib
380
390
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -384,12 +394,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
384
394
  version: '2.1'
385
395
  required_rubygems_version: !ruby/object:Gem::Requirement
386
396
  requirements:
387
- - - ">="
397
+ - - ">"
388
398
  - !ruby/object:Gem::Version
389
- version: '0'
399
+ version: 1.3.1
390
400
  requirements: []
391
- rubyforge_project:
392
- rubygems_version: 2.7.7
401
+ rubygems_version: 3.0.2
393
402
  signing_key:
394
403
  specification_version: 4
395
404
  summary: The full-featured automatic indexing system